Skip to content

[2.1] Fixes #39766: Show the Admin role in user tables, as the Access tab does - #39802

Merged
Rohit0301 merged 1 commit into
2.1from
backport/2.1/pr-39767
Dec 4, 2026
Merged

Rohit0301 merged 1 commit into
2.1from
backport/2.1/pr-39767

Conversation

@gh-bot-collate

@gh-bot-collate gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

Automated backport of #39767 to 2.1.

Source PR #39767
Author @Rohit0301
Merge commit 377ba23fd78055ce4940244473e56c108e9bca36
Method Clean cherry-pick — identical to the commit on main.

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

…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
gh-bot-collate Bot requested a review from a team as a code owner December 4, 2026 10:47
@gh-bot-collate
gh-bot-collate Bot requested review from harsh-vador and removed request for a team December 4, 2026 10:47
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Dec 4, 2026
@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.1 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

@Rohit0301
Rohit0301 merged commit b721792 into 2.1 Dec 4, 2026
42 of 43 checks passed
@Rohit0301
Rohit0301 deleted the backport/2.1/pr-39767 branch December 4, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants