-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(settings): Display group displayName consistently when editing a user #56524
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
base: master
Are you sure you want to change the base?
Conversation
…user Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com>
susnux
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.
this is quite clean :)
|
For the lazy loaded groups it seems like there is a reactivity issue in the store - not caused by this PR but its visible now. |
|
I made my own attempt to fix the group display name issue in the admin page a few weeks ago (#55871), but it seems this PR is considered a cleaner solution (#56509 (comment)). That's great, I don't mind closing my PR. This PR could reference issue #55785, which reported the discrepancy in displayed group names. In my PR, I attempted to adapt one of the existing cypress test to create a regression test for the display name issue. Feel free to include that in your PR. But your call, of course. https://github.com/nextcloud/server/pull/56509/files#diff-434017d314dcaf501e8d0651a9ebd294c1d1c51864047867a3ef9abf06be6ffd |
|
If this is preferred over the other PR, could we also consider this for backporting to 32? |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
|
Happy new year everyone! Could we please get this PR approved / merged and backported? 🙏 |
|
/backport to stable32 |


Description
Fixes an issue where group IDs were displayed instead of display names when editing a user.
Problem
When a group is renamed (so
idanddisplayNameare different), the NcSelect component in edit mode shows the group ID instead of the display name. This happens becauseuserGroupsanduserSubAdminGroupsare initialised withname: idin theUserRowMixin.jsSolution
Convert
userGroupsanduserSubAdminGroupsto computed properties that look up the current groups from the store, ensuring they always have up-to-date display names.Also removed
selectedGroupsandselectedSubAdminGroupsas they were not used.