fix: settings disappear on UI navigation back and forth#32713
Merged
kodiakhq[bot] merged 4 commits intodevelopfrom Jul 17, 2024
Merged
fix: settings disappear on UI navigation back and forth#32713kodiakhq[bot] merged 4 commits intodevelopfrom
kodiakhq[bot] merged 4 commits intodevelopfrom
Conversation
Contributor
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 14e96c6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 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 |
96bb00f to
20c5ef7
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #32713 +/- ##
===========================================
- Coverage 55.54% 54.43% -1.12%
===========================================
Files 2634 2554 -80
Lines 57215 56026 -1189
Branches 11849 11622 -227
===========================================
- Hits 31781 30495 -1286
- Misses 22742 22924 +182
+ Partials 2692 2607 -85
Flags with carried forward coverage won't be shown. Click here to find out more. |
ae796b2 to
488d5cb
Compare
MarcosSpessatto
suggested changes
Jul 12, 2024
Contributor
MarcosSpessatto
left a comment
There was a problem hiding this comment.
Can we add a changeset?
084b5f2 to
7013616
Compare
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
Signed-off-by: Abhinav Kumar <abhinav@avitechlab.com>
7013616 to
1f5fb95
Compare
MarcosSpessatto
approved these changes
Jul 16, 2024
yash-rajpal
approved these changes
Jul 17, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes (including videos or screenshots)
This PR addresses an issue where the "Hide System Messages" setting disappears after navigating back and forth in the Rocket.Chat UI. The problem was observed under network latency conditions when the realtime update of the setting is received much before the resolution of the saveSettings method call.
The upsert function under the
PrivateSettingsCachedCollectionreplaced the original doc with the received fields, instead of merging with the original doc. This made the setting doc lose its shape and hence failed theisSettingtest in the UI components.
Before
before-hide-system-messages.mp4
After
after-hide-system-messages.mp4
Issue(s)
Steps to test or reproduce
https://your-rocketchat-domain/admin/settings/Message.Networktab. SelectSlow 3Gfrom the throttling options.Hide System Messagessetting. Click on the input field and enterUser joined, then pressEnter.Save changesbutton.Backbutton before the "Settings saved" popup appears or wait for the "Settings saved" popup to appear, then navigate back.Messageagain to navigate back to the message settings page.Hide System Messagesoption appears on the screen.Further comments
SUP-571