Repository navigation
[2.1] Fixes #39766: Show the Admin role in user tables, as the Access tab does - #39802
Merged
Merged
Conversation
…oes (#39767) * Fixes #39766: Show the Admin role in user tables, as the Access tab does Admin is the isAdmin flag, not a role entity. The Access tab added it as a synthetic chip, but the user tables only read user.roles, so admins showed no role. One helper, getUserRoleRefs, now builds the list for the Access tab and every user table, with Admin first and rendered as text, not a link. * Show Admin in the user hover card and the CSV bulk-edit user picker The hover card hid its Roles section when an admin had no role entities, and the bulk-edit user picker described admins by their first role or team. Both now read the role list from getUserRoleRefs, and formatUsersResponse keeps isAdmin from the search document. * Move getUserRoleRefs into its own module to keep routes under budget UsersPureUtils imports moment and the API helpers, so importing the role helper from it put them on every route that renders the user hover card, taking ServiceDetailsPage over its bundle budget. UserRoleUtils imports only TERM_ADMIN and types. (cherry picked from commit 377ba23)
gh-bot-collate
Bot
requested review from
harsh-vador
and removed request for
a team
December 4, 2026 10:47
Author
|
🤖 This backport will not merge itself: |
6 tasks done
Rohit0301
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #39767 to
2.1.377ba23fd78055ce4940244473e56c108e9bca36main.Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #39767 is asked to look.
resolver run