-
Notifications
You must be signed in to change notification settings - Fork 12.9k
chore!: remove deprecated livechat:saveCustomField method
#37421
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: ff2618d 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 removes the deprecated Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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 @@
## release-8.0.0 #37421 +/- ##
=================================================
+ Coverage 70.50% 70.93% +0.43%
=================================================
Files 2870 3035 +165
Lines 102098 104621 +2523
Branches 17589 18422 +833
=================================================
+ Hits 71984 74218 +2234
- Misses 28356 28457 +101
- Partials 1758 1946 +188
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
4ce3847 to
ff2618d
Compare
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
🧹 Nitpick comments (1)
apps/meteor/tests/data/livechat/custom-fields.ts (1)
25-27: Optional: Address Biome void return type warning.Biome flags
return reject(err)because the function returnsvoid. While this pattern is idiomatic in Promise code, you can make it stricter by separating the call from the return.Apply this diff if you want to comply with Biome's stricter rules:
.end((err: Error, res: Response): void => { if (err) { - return reject(err); + reject(err); + return; } resolve(res.body.customField); });Note: The same pattern appears on lines 16 and 44 and could be updated for consistency.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (4)
.changeset/twenty-cars-decide.md(1 hunks)apps/meteor/app/livechat/server/index.ts(0 hunks)apps/meteor/app/livechat/server/methods/saveCustomField.ts(0 hunks)apps/meteor/tests/data/livechat/custom-fields.ts(2 hunks)
💤 Files with no reviewable changes (2)
- apps/meteor/app/livechat/server/methods/saveCustomField.ts
- apps/meteor/app/livechat/server/index.ts
🧰 Additional context used
🧠 Learnings (4)
📚 Learning: 2025-09-19T15:15:04.642Z
Learnt from: rodrigok
Repo: RocketChat/Rocket.Chat PR: 36991
File: apps/meteor/server/services/federation/infrastructure/rocket-chat/adapters/Settings.ts:219-221
Timestamp: 2025-09-19T15:15:04.642Z
Learning: The Federation_Matrix_homeserver_domain setting in apps/meteor/server/services/federation/infrastructure/rocket-chat/adapters/Settings.ts is part of the old federation system and is being deprecated/removed, so configuration issues with this setting should not be flagged for improvement.
Applied to files:
.changeset/twenty-cars-decide.md
📚 Learning: 2025-09-16T22:08:51.490Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-09-16T22:08:51.490Z
Learning: Applies to apps/meteor/tests/e2e/**/*.{ts,tsx,js,jsx} : Avoid code comments in the implementation
Applied to files:
apps/meteor/tests/data/livechat/custom-fields.ts
📚 Learning: 2025-09-16T22:08:51.490Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-09-16T22:08:51.490Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Use descriptive test names that clearly communicate expected behavior
Applied to files:
apps/meteor/tests/data/livechat/custom-fields.ts
📚 Learning: 2025-09-16T22:08:51.490Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-09-16T22:08:51.490Z
Learning: Applies to apps/meteor/tests/e2e/**/*.{ts,tsx,js,jsx} : Write concise, technical TypeScript/JavaScript with accurate typing
Applied to files:
apps/meteor/tests/data/livechat/custom-fields.ts
🧬 Code graph analysis (1)
apps/meteor/tests/data/livechat/custom-fields.ts (1)
apps/meteor/tests/data/api-data.ts (1)
credentials(39-42)
🪛 Biome (2.1.2)
apps/meteor/tests/data/livechat/custom-fields.ts
[error] 27-27: The function should not return a value because its return type is void.
The function is here:
'void' signals the absence of value. The returned value is likely to be ignored by the caller.
(lint/correctness/noVoidTypeReturn)
🔇 Additional comments (3)
.changeset/twenty-cars-decide.md (1)
1-5: LGTM! Changeset correctly documents breaking change.The changeset properly declares a major version bump for removing the deprecated
livechat:saveCustomFieldmethod, which is appropriate for a breaking API change.apps/meteor/tests/data/livechat/custom-fields.ts (2)
4-4: LGTM! Correctly removed unused import.The
methodCallimport is no longer needed after migrating to the REST API endpoint.
22-29: Migration to REST endpoint is complete and correct.Verification confirms no remaining references to the deprecated
livechat:saveCustomFieldMeteor method exist in the codebase. The endpoint migration is consistent across both the test file and client implementation (EditCustomFields.tsx), with proper payload structure and response handling aligned to the REST API pattern.
ARCH-1869
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
Chores
Tests