Skip to content

Conversation

@KevLehman
Copy link
Member

@KevLehman KevLehman commented Aug 15, 2022

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.

@KevLehman KevLehman requested a review from a team as a code owner August 15, 2022 15:18
@KevLehman KevLehman requested a review from sampaiodiego August 15, 2022 15:18
@codecov
Copy link

codecov bot commented Aug 15, 2022

Codecov Report

Merging #26572 (8ab2b8d) into develop (bfbade5) will increase coverage by 0.10%.
The diff coverage is n/a.

Impacted file tree graph

@@             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     
Flag Coverage Δ
e2e 38.67% <ø> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

murtaza98
murtaza98 previously approved these changes Aug 17, 2022
@KevLehman
Copy link
Member Author

@sampaiodiego , from our side, no changes would change "functionality", so we should be good skipping QA for this one after you review it 👀

@KevLehman KevLehman requested a review from sampaiodiego August 19, 2022 17:16
@KevLehman KevLehman added this to the 5.1.0 milestone Aug 19, 2022
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 });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still removing an index 🙈

Copy link
Member Author

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.

@ggazzo ggazzo added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Aug 19, 2022
@sampaiodiego sampaiodiego merged commit 940ef1c into develop Aug 19, 2022
@sampaiodiego sampaiodiego deleted the chore/callbacks-fail-fast branch August 19, 2022 21:58
csuadev pushed a commit that referenced this pull request Aug 26, 2022
Co-authored-by: murtaza98 <murtaza.patrawala@rocket.chat>
@murtaza98 murtaza98 mentioned this pull request Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants