-
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
fix: use setImmediate to handle username update #30500
Conversation
🦋 Changeset detectedLatest commit: 12314bc The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 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 Report
@@ Coverage Diff @@
## develop #30500 +/- ##
===========================================
- Coverage 51.28% 51.21% -0.08%
===========================================
Files 811 803 -8
Lines 15078 15092 +14
Branches 2754 2765 +11
===========================================
- Hits 7733 7729 -4
- Misses 6935 6939 +4
- Partials 410 424 +14
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.
there are more operations on line 71 that should also go to the new function updateUsernameReferences
- https://github.com/RocketChat/Rocket.Chat/pull/30500/files?diff=split&w=0#diff-3665ef25f844f29569d95ff6d3acd1574e5e3d37707020c980073f08069306f9R71
…/mentionBot * 'develop' of github.com:RocketChat/Rocket.Chat: feat: add tooltip to badge mentions (#30590) chore: improve `Tag` a11y link (#30636) refactor: Replace `useForm` in favor of RHF on `AppInstallPage` (#30634) fix: Improve FileProxy Handling, set Content-Type (#30427) refactor: `EditRoomInfo` to typescript (#28318) fix: mobile ringing notification missing call id (#30614) fix: Some HTTP requests sent by apps don't have their data parsed into JSON (#30560) test: More tests for groups kick (#30536) fix: Threads breaking after sending messages too fast (#30622) chore: Remove text decoration from room tag (#30606) i18n: Language update from LingoHub 🤖 on 2023-10-10Z (#30613) fix: File attachments have no content when exporting room messages as file (#30596) fix: use setImmediate to handle username update (#30500) chore: `AnalyticsReports` visual adequacy (#30617)
Proposed changes (including videos or screenshots)
When updating a username with many messages and mentions, the request can result in a TimeOut error since the request can take a long time to be finished.
To prevent this, we're executing the username update inside a
setImmediate
to avoid blocking the process, doing the username update in the background.Issue(s)
Steps to test or reproduce
Further comments
SUP-248
ADR-60