-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Chore: Fail-fast on callbacks #26572
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #26572 +/- ##
===========================================
+ Coverage 38.57% 38.67% +0.10%
===========================================
Files 758 758
Lines 18783 18783
Branches 1453 1453
===========================================
+ Hits 7246 7265 +19
+ Misses 11322 11300 -22
- Partials 215 218 +3
Flags with carried forward coverage won't be shown. Click here to find out more. |
apps/meteor/ee/app/livechat-enterprise/server/hooks/handleNextAgentPreferredEvents.js
Outdated
Show resolved
Hide resolved
@sampaiodiego , from our side, no changes would change "functionality", so we should be good skipping QA for this one after you review it 👀 |
…ket.Chat into chore/callbacks-fail-fast
@@ -30,7 +30,6 @@ export class Subscriptions extends Base { | |||
this.tryEnsureIndex({ emailNotifications: 1 }, { sparse: 1 }); | |||
this.tryEnsureIndex({ autoTranslate: 1 }, { sparse: 1 }); | |||
this.tryEnsureIndex({ autoTranslateLanguage: 1 }, { sparse: 1 }); | |||
this.tryEnsureIndex({ 'userHighlights.0': 1 }, { sparse: 1 }); |
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.
still removing an index 🙈
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.
Wait, i removed that one lol. Thanks for fixing it.
Co-authored-by: murtaza98 <murtaza.patrawala@rocket.chat>
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
The idea of this PR is to skip some omnichannel-only callbacks when the room/message being passed is not from Omnichannel. This will allow other messages to perform a little bit better.