chore: remove duplicate TelemetryMap and TelemetryEvents types in core services (#39994)#39995
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (7)📓 Common learnings📚 Learning: 2026-03-20T13:52:29.575ZApplied to files:
📚 Learning: 2026-03-16T21:50:42.118ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-03-15T14:31:28.969ZApplied to files:
📚 Learning: 2026-02-25T20:10:16.987ZApplied to files:
🔇 Additional comments (2)
WalkthroughThis change consolidates duplicate type definitions by removing Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Proposed changes (including videos or screenshots)
In packages/rest-typings/src/index.ts, I added export of TelemetryMap and TelemetryEvents from the statistics module so they are accessible from the package root. In packages/core-services/src/types/ITelemetryEvent.ts, I removed duplicate type definitions and local helper types, replaced with an import from @rocket.chat/rest-typings.
Issue(s)
Closes #39994
Steps to test or reproduce
Further comments
Summary by CodeRabbit