-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: guest room limit incorrectly counting DMs #37919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: a71c72a The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis PR modifies the guest room-per-limit feature to exclude Direct Messages from subscription counts. Changes include introducing a new subscription counter API that filters by type, updating license counter logic to exclude DMs, adjusting room-join validation to check potential overflow, and adding test coverage. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20-25 minutes
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
**/*.spec.ts📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (10)📚 Learning: 2025-10-06T20:32:23.658ZApplied to files:
📚 Learning: 2025-09-25T09:59:26.461ZApplied to files:
📚 Learning: 2025-09-25T09:59:26.461ZApplied to files:
📚 Learning: 2025-11-24T17:08:17.065ZApplied to files:
📚 Learning: 2025-11-24T17:08:17.065ZApplied to files:
📚 Learning: 2025-12-10T21:00:43.645ZApplied to files:
📚 Learning: 2025-09-25T09:59:26.461ZApplied to files:
📚 Learning: 2025-11-04T16:49:19.107ZApplied to files:
📚 Learning: 2025-10-28T16:53:42.761ZApplied to files:
📚 Learning: 2025-11-27T17:56:26.050ZApplied to files:
🧬 Code graph analysis (4)packages/model-typings/src/models/ISubscriptionsModel.ts (1)
apps/meteor/ee/app/license/server/startup.ts (1)
apps/meteor/ee/server/startup/maxRoomsPerGuest.ts (1)
packages/models/src/models/Subscriptions.ts (1)
🔇 Additional comments (6)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #37919 +/- ##
===========================================
- Coverage 70.63% 70.63% -0.01%
===========================================
Files 3143 3143
Lines 108693 108693
Branches 19583 19592 +9
===========================================
- Hits 76780 76770 -10
- Misses 29905 29914 +9
- Partials 2008 2009 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
2f9bd81 to
f88ed05
Compare
f88ed05 to
9e12de8
Compare
|
Looks like this PR is ready to merge! 🎉 |
As per SUP-942, this PR fixes an issue where guest room limits were incorrectly counting DMs. Since the counter was based solely on total subscriptions by userId, guests could hit the maximum rooms limit even when only participating in direct messages.
Proposed changes (including videos or screenshots)
Updated the
roomsPerGuestcounter to exclude DM subscriptions, ensuring the limit applies only to non-DM rooms, in line with the documented business rule.Issue(s)
Summary by CodeRabbit
Bug Fixes
✏️ Tip: You can customize this high-level summary in your review settings.