Skip to content

Show group display name when the group object is not loaded yet#56533

Open
kesselb wants to merge 5 commits into
masterfrom
bug/56532/display-in-users-list
Open

Show group display name when the group object is not loaded yet#56533
kesselb wants to merge 5 commits into
masterfrom
bug/56532/display-in-users-list

Conversation

@kesselb
Copy link
Copy Markdown
Contributor

@kesselb kesselb commented Nov 19, 2025

Summary

We are fetching the first 25 groups when opening the users list. If a user in that list has a group assigned that was not part of the first 25 groups, then we don't have the displayname.

Until:

  • The user opens the edit mode (then all groups are lazy loaded)
  • The user scrolls in the group view to load the next batch of groups

STR

Preparation:

  • Have more than 25 groups.
  • Assign group number 26, 27, etc to a user.
Helper script
for i in {1..30}; do
  occ group:add --display-name "Test Group $i" group$i
done

for i in {31..35}; do
  occ group:add --display-name "Test Group $i" group$i
  occ group:adduser group$i alice
  occ group:adduser group$i bob
  occ group:adduser group$i fry
  occ group:adduser group$i hermes
  occ group:adduser group$i bender
  occ group:adduser group$i professor
done

Case 1:

  • Open the user management
  • Reload to ensure the local state is clear
  • See that some of the groups are not using the display name, but the group id.
  • Scroll the list of groups on the left => the group id is replaced by the display name
  • This PR: List of groups is using the displayname

Case 2:

  • Open the user management
  • Reload to ensure the local state is clear
  • Open the edit view for a user where the disply name is missing
  • See that the list of groups is incomplete
  • This PR: List of groups is complete

Checklist

@kesselb kesselb self-assigned this Nov 19, 2025
@kesselb kesselb added bug 3. to review Waiting for reviews labels Nov 19, 2025
@kesselb kesselb added this to the Nextcloud 33 milestone Nov 19, 2025
@kesselb kesselb added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Nov 19, 2025
@kesselb
Copy link
Copy Markdown
Contributor Author

kesselb commented Nov 19, 2025

cc @artonge @come-nc @susnux @benjaminfrueh for early feedback as you were involved in the other pr's.

@blizzz blizzz modified the milestones: Nextcloud 33, Nextcloud 34 Feb 16, 2026
kesselb added 2 commits May 27, 2026 18:35
By default only 25 group objects are loaded. If a user is assigend to a
group, that isn't loaded yet, we only show the gid instead of the
displayname.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb force-pushed the bug/56532/display-in-users-list branch from 3d8a69b to ace2275 Compare May 27, 2026 16:35
@kesselb kesselb requested a review from Copilot May 27, 2026 16:36
@kesselb kesselb changed the title Also show group display name when the group object is not loaded yet Show group display name when the group object is not loaded yet May 27, 2026
@kesselb kesselb marked this pull request as ready for review May 27, 2026 16:49
@kesselb kesselb requested review from a team as code owners May 27, 2026 16:49
@kesselb kesselb requested review from CarlSchwan, nfebe, pringelmann, provokateurin, sorbaugh and susnux and removed request for a team May 27, 2026 16:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

Labels

2. developing Work in progress bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Display name of group not shown until group object is lazy loaded in user management

3 participants