-
Notifications
You must be signed in to change notification settings - Fork 13k
chore!: removes livechat:removeAllClosedRooms deprecated method
#36931
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
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: b32aa1a 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 |
WalkthroughRemoves the server-side Meteor method Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant MeteorServer as Meteor Server
participant LivechatRooms
participant Remover as removeOmnichannelRoom
rect rgb(240,248,255)
note over Client,MeteorServer: Before change (existing flow)
Client->>MeteorServer: DDP call: livechat:removeAllClosedRooms(departmentIds?)
MeteorServer->>MeteorServer: check permission & apply restrictions
MeteorServer->>LivechatRooms: findClosedRooms(...)
LivechatRooms-->>MeteorServer: closed room IDs
loop per room
MeteorServer->>Remover: removeOmnichannelRoom(roomId)
Remover-->>MeteorServer: removed
end
MeteorServer-->>Client: return countRemoved
end
rect rgb(255,245,238)
note over Client,MeteorServer: After change (method removed)
Client->>MeteorServer: DDP call: livechat:removeAllClosedRooms(...)
MeteorServer-->>Client: method not found / no handler
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.changeset/neat-spoons-cover.md (1)
1-6: Remove remaining client calls to the removed Realtime methodlivechat:removeAllClosedRooms.
- Found references in clients:
- apps/meteor/client/views/omnichannel/directory/chats/ChatsTable/ChatsTableFilter.tsx — line 16: useMethod('livechat:removeAllClosedRooms')
- apps/meteor/client/views/omnichannel/currentChats/FilterByText.tsx — line 84: useMethod('livechat:removeAllClosedRooms')
- Action: remove or replace these calls and update ServerMethods/types, tests, and docs to match the API removal before merging.
🧹 Nitpick comments (1)
.changeset/neat-spoons-cover.md (1)
5-5: Strengthen the BREAKING note and add migration guidance.Call it a “Meteor (DDP) method” for clarity, and provide a short migration note and deprecation reference to help integrators.
Apply:
-Removes deprecated Realtime API method: `livechat:removeAllClosedRooms` +BREAKING: remove deprecated Meteor (DDP) method `livechat:removeAllClosedRooms`. + +Migration: +- Remove any client calls to this method; it no longer exists as of 8.0.0. +- Replace usage with the supported cleanup workflow (e.g., REST/retention APIs or an admin job), and link to docs/changelog. + +Refs: CTZ-58.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.changeset/neat-spoons-cover.md(1 hunks)apps/meteor/app/livechat/server/index.ts(0 hunks)apps/meteor/app/livechat/server/methods/removeAllClosedRooms.ts(0 hunks)
💤 Files with no reviewable changes (2)
- apps/meteor/app/livechat/server/index.ts
- apps/meteor/app/livechat/server/methods/removeAllClosedRooms.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: 📦 Build Packages
- GitHub Check: CodeQL-Build
- GitHub Check: CodeQL-Build
🔇 Additional comments (1)
.changeset/neat-spoons-cover.md (1)
2-2: Verify '@rocket.chat/meteor' is the intended package in .changeset/neat-spoons-cover.mdNo output from the prior script — run these from the repo root and paste outputs so I can confirm the changeset target matches an actual package name:
# show the changeset and config sed -n '1,160p' .changeset/neat-spoons-cover.md || true cat .changeset/config.json || true jq -r '.packages[]?' .changeset/config.json 2>/dev/null || true # list package names tracked in the repo (git) or fallback to find git ls-files -- '**/package.json' -z | xargs -0 -n1 jq -r '.name // empty' | sort -u || true find . -name package.json -not -path '*/node_modules/*' -print0 | xargs -0 -n1 jq -r '.name // empty' | sort -u || true # search repo for the exact package string rg -n --hidden --glob '!node_modules/**' '@rocket\.chat/meteor' || git grep -n '@rocket.chat/meteor' || trueIf the package name is not present in the package.json list or differs from the monorepo's published package, update the changeset to the correct package name used by your publishing workflow.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.0.0 #36931 +/- ##
==============================================
Coverage 70.92% 70.93%
==============================================
Files 3031 3031
Lines 104339 104339
Branches 18373 18372 -1
==============================================
+ Hits 74003 74013 +10
+ Misses 28398 28391 -7
+ Partials 1938 1935 -3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
f6eaabb to
70fdc50
Compare
c3aa41a to
573d627
Compare
573d627 to
e0b11fe
Compare
The merge-base changed after approval.
329ef07 to
8fa1cac
Compare
e0b11fe to
aedabcd
Compare
Proposed changes (including videos or screenshots)
This PR removes the
livechat:removeAllClosedRoomsdeprecated meteor method.Issue(s)
CTZ-58
Steps to test or reproduce
Further comments
Summary by CodeRabbit