-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: executeSaveUserProfile does not trigger username stream
#36385
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
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: f0b1bbb The changes in this PR will be included in the next version bump. This PR includes changesets to release 36 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 #36385 +/- ##
===========================================
+ Coverage 64.74% 64.76% +0.01%
===========================================
Files 3156 3156
Lines 104916 104909 -7
Branches 19960 19963 +3
===========================================
+ Hits 67929 67940 +11
+ Misses 34298 34283 -15
+ Partials 2689 2686 -3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
ee409b7 to
7547ece
Compare
|
/patch |
Co-authored-by: Pierre Lehnen <55164754+pierre-lehnen-rc@users.noreply.github.com>
|
Pull request #36430 added to Project: "Patch 7.8.1" |
https://rocketchat.atlassian.net/browse/ARCH-1701
if backporting: algo pick #36389
While replacing methods to use endpoints (#36146) , I noticed that some rest apis use slightly different methods, which end up not informing the UI
This pull request includes changes to improve user management functionality by refining the
setUsernameandsaveUserProfilemethods. The changes focus on removing unused imports, simplifying code, and adding a notification mechanism for user updates.Changes to
setUsernamefunctionality:RateLimiterwrapper and associated permissions check from thesetUsernamefunction to simplify its implementation. (apps/meteor/app/lib/server/functions/setUsername.ts, apps/meteor/app/lib/server/functions/setUsername.tsL154-L160)RateLimiterandhasPermissionAsyncand movingsettingsto a more relevant location. (apps/meteor/app/lib/server/functions/setUsername.ts, [1] [2]Changes to
saveUserProfilefunctionality:notifyOnUserChangeto trigger notifications when a user's profile is updated, improving real-time synchronization of user changes. (apps/meteor/server/methods/saveUserProfile.ts, apps/meteor/server/methods/saveUserProfile.tsR162-R164)notifyOnUserChangeimport to support the new notification mechanism. (apps/meteor/server/methods/saveUserProfile.ts, apps/meteor/server/methods/saveUserProfile.tsR13)Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments