Skip to content

Add custom role dropdown in the member page

What does this MR do and why?

Both in group and project member pages, we add additional custom roles items in the dropdown.

EE: true

Screenshots or screen recordings

Before After
Screenshot_2023-10-17_at_19.29.15 Screenshot_2023-10-17_at_19.35.13

How to set up and validate locally

  1. Go to a group or project member page, for example /groups/flightjs/-/group_members, and play changing the role for members. Everything should work normally.
  2. Enable Ultimate tier for the group using: /admin/groups/flightjs/edit
  3. Create a custom role using: /groups/flightjs/-/settings/roles_and_permissions
  4. Enable this feature flag: echo 'Feature.enable(:custom_roles_in_members_page)' | rails c
  5. Try to assign the custom role from step #3 to a member. It should work.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eduardo Sanz García

Merge request reports