Expose permissions in the group/project members page
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
- Make the
Flight
groupUltimate
tier,/admin/groups/flightjs/edit
- Create a custom role using the UI: https://gdk.test:3443/groups/flightjs/-/settings/roles_and_permissions
- Assign to the custom role to a group member using the REST API
- Enable feature flag:
echo 'Feature.enable(:custom_roles_in_members_page)' | rails c
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #393239 (closed)
Edited by Eduardo Sanz García