fix!: livechat autocomplete endpoints accept unsafe selector parameter - #41898
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 187c570 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
|
| Layer / File(s) | Summary |
|---|---|
Autocomplete query contracts apps/meteor/server/api/v1/omnichannel/lib/departments.ts, apps/meteor/server/api/v1/omnichannel/lib/visitors.ts, .changeset/proud-rabbits-count.md |
Autocomplete helper selectors no longer include conditions. Department and visitor queries use empty condition objects. The changeset declares a major version bump. |
Autocomplete endpoint selector filtering apps/meteor/server/api/v1/omnichannel/departments.ts, apps/meteor/server/api/v1/omnichannel/visitors.ts |
The endpoints parse selector and pass only term and exceptions to the autocomplete helpers. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Merge Risk: ⚪ Minimal · up to 187c5
This localized change removes the unsafe selector parameter from the livechat autocomplete endpoints; no actionable merge-blocking risk remains beyond normal checks and review.
Suggested labels: type: bug
Suggested reviewers: julio-rocketchat, nazabucciarelli, saimpiodiego
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (1 skipped: 1 … | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly identifies the livechat autocomplete endpoints and the unsafe selector parameter addressed by the change. The fix! prefix also signals the breaking API change. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
- Create stacked PR
- Commit on current branch
Warning
Errors were encountered while retrieving linked issues.
Errors (1)
- CORE-2609: Request failed with status code 401
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 @coderabbitai help to get the list of available commands.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-9.0.0 #41898 +/- ##
================================================
Coverage ? 69.37%
================================================
Files ? 4255
Lines ? 168358
Branches ? 29981
================================================
Hits ? 116792
Misses ? 46398
Partials ? 5168
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Changesets now match the title and milestone
056ff73 to
a02feba
Compare
abfb296 to
187c570
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Proposed changes (including videos or screenshots)
This PR remove the
conditionsparameter from theselectorinput in the livechat autocomplete endpoints (livechat/department.autocompleteandlivechat/visitors.autocomplete), following the deprecation introduced in #41766. The parameter is now fully removed as part of the9.0.0major release.Issue(s)
CORE-2609
Steps to test or reproduce
Further comments
Summary by CodeRabbit