-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: federated users overwriting local display name with their username #35716
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 ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: d8e57d3 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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #35716 +/- ##
========================================
Coverage 59.62% 59.62%
========================================
Files 2832 2832
Lines 68356 68362 +6
Branches 15141 15150 +9
========================================
+ Hits 40754 40758 +4
- Misses 24995 24996 +1
- Partials 2607 2608 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
debdutdeb
left a comment
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.
ok to approve, just one question mostly but don't think that'll be a big deal.
Co-authored-by: Debdut Chakraborty <[email protected]>
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Proposed changes (including videos or screenshots)
Issue(s)
When we invite an user from a federated workspace, we only have their username available, not the display name. In this situation, synaptic tries to get the user's profile from the remote synaptic, who will not have the data ready if that user had never federated before. In this case synaptic falls back to using the username as display name and passes that information to us as if it were the target user's real display name.
When we pre-create the federated users on all sides, we'll already have their display name properly assigned, but this username coming from synaptic ends up overwriting it.
Steps to test or reproduce
Further comments
CORE-1071
This pull request addresses an issue in the Rocket.Chat repository where federated users' display names were being overwritten by their usernames. The changes include a more detailed implementation of the
shouldUpdateDisplayNamemethod in theFederatedUserclass, which now includes specific conditions to determine when a user's display name should be updated. This fix ensures that the display names of federated users are preserved appropriately. The changes are proposed from thefix/federation-overwrite-display-namebranch to thedevelopbranch.