Show custom role name for usage quotas seats memberships list
What does this MR do and why?
We have the ability to create custom roles, which can be assigned to users of a group. On the usage quotas page, a list of users are shown with their roles for each group. This list was incorrectly showing the base role when a custom role is assigned to a user. This MR fixes it by showing the custom role instead.
Before | After |
---|---|
This MR also makes the following changes:
- The role badge has been changed to just text.
- A
Custom role
badge is shown underneath the role name if it's a custom role. - The alignment of the table cells has been changed from middle to top.
How to set up and validate locally
- Go to any top-level group. Go to
Settings
->Roles and Permissions
in the sidebar. - Click on
Add role
. Use the form to create a new custom role. - Go to
Manage
->Members
in the sidebar. - Click on
Invite members
. Invite any member, and in the role dropdown, scroll to the bottom and select the role you created. - Go to
Settings
->Usage quotas
in the sidebar. - In the
Seats
tab, expand the dropdown arrow to the left of the user to see the direct memberships list. - Verify that the user's role is the custom role, and that the
Custom role
badge is shown.
Related to #434909 (closed)