Skip to content

Conversation

@ggazzo
Copy link
Member

@ggazzo ggazzo commented Jul 9, 2025

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 setUsername and saveUserProfile methods. The changes focus on removing unused imports, simplifying code, and adding a notification mechanism for user updates.

Changes to setUsername functionality:

  • Removed the RateLimiter wrapper and associated permissions check from the setUsername function to simplify its implementation. (apps/meteor/app/lib/server/functions/setUsername.ts, apps/meteor/app/lib/server/functions/setUsername.tsL154-L160)
  • Consolidated and reorganized imports by removing unused dependencies like RateLimiter and hasPermissionAsync and moving settings to a more relevant location. (apps/meteor/app/lib/server/functions/setUsername.ts, [1] [2]

Changes to saveUserProfile functionality:

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Jul 9, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.9.0, but it targets 7.8.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Jul 9, 2025

🦋 Changeset detected

Latest commit: f0b1bbb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/http-router Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/instance-status Patch

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

@ggazzo ggazzo added this to the 7.9.0 milestone Jul 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-36385/

Built to branch gh-pages at 2025-07-09 15:53 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.76%. Comparing base (4a19aaa) to head (f0b1bbb).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
unit 69.47% <100.00%> (+0.01%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ggazzo ggazzo marked this pull request as ready for review July 9, 2025 12:33
@ggazzo ggazzo requested a review from a team as a code owner July 9, 2025 12:33
@ggazzo ggazzo force-pushed the fix/set-username-react branch from ee409b7 to 7547ece Compare July 9, 2025 12:43
@ggazzo ggazzo added the stat: QA assured Means it has been tested and approved by a company insider label Jul 9, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jul 9, 2025
@ggazzo ggazzo merged commit 3836d6a into develop Jul 9, 2025
11 of 12 checks passed
@ggazzo ggazzo deleted the fix/set-username-react branch July 9, 2025 15:51
@ggazzo
Copy link
Member Author

ggazzo commented Jul 15, 2025

/patch

dionisio-bot bot pushed a commit that referenced this pull request Jul 15, 2025
Co-authored-by: Pierre Lehnen <55164754+pierre-lehnen-rc@users.noreply.github.com>
@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Jul 15, 2025

Pull request #36430 added to Project: "Patch 7.8.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants