Skip to content

Expose permissions in the group/project members page

Jarka Košanová requested to merge 393239-custom-roles-group-ui into master

What does this MR do and why?

It exposes a list of the custom role abilities (permission) that can be used by frontend.

Screenshots or screen recordings

Root group

The data appears as a data-members-data for the element <div class="js-group-members-list-app" ...> on the group and project member pages, for example: https://gdk.test:3443/groups/flightjs/-/group_members

How to set up and validate locally

  1. Make the Flight group Ultimate tier, /admin/groups/flightjs/edit image
  2. Create a custom role using the UI: https://gdk.test:3443/groups/flightjs/-/settings/roles_and_permissions
  3. Assign to the custom role to a group member using the REST API
  4. Enable feature flag: echo 'Feature.enable(:custom_roles_in_members_page)' | rails c
  5. Check the data-members-data attribute in the group member page

MR acceptance checklist

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

Related to #393239 (closed)

Edited by Eduardo Sanz García

Merge request reports