-
Notifications
You must be signed in to change notification settings - Fork 11k
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
fix: Messages not being processed for all slack servers #34148
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 0a333cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 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 |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #34148 +/- ##
========================================
Coverage 75.83% 75.83%
========================================
Files 511 511
Lines 22172 22172
Branches 5397 5397
========================================
Hits 16814 16814
Misses 4710 4710
Partials 648 648
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Can you please add a changeset and describe what's being fixed in the PR title (instead of how)?
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.
is there any way to add, at least, units? 😬
if not, can you create a task for adding them later? (and to convert the file to TS, cause we have an eslint rule for ensuring we don't return inside of loops lol)
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.
I believe we should also fix onMessageDelete
and addChannel
methods
They also iterate on slackAdapters
and are currently using return
instead of continue
I agree, we should create tasks for migrating this service to TS. |
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.
pls create the tasks we mentioned to improve the logic on these adapters 🙏🏽
Proposed changes (including videos or screenshots)
This PR aims to fix an issue with the
onMessage()
function that exited before processing messages for all slack adapters, the cause was that while inside the loop, after processing the message on the first adapter the loop exited when accessing the any of the if statements present in the function.By replacing the
return
statements forcontinue
, the loop now continues iterating through the slack adapters as expected.Issue(s)
SUP-700
Steps to test or reproduce
Further comments