Skip to content

Use GraphQL to delete custom role on Roles and Permissions page

What does this MR do and why?

For the Roles and Permissions page in a group's settings or the admin area, there's a table that shows created custom roles:

Group Roles and Permissions page Admin Area Roles and Permissions page
ksnip_20231207-023221 ksnip_20231207-023824

This MR switches the deletion of a custom role from REST to GraphQL.

How to set up and validate locally

  1. Go to a top-level group's page, then click on Settings -> Roles and Permissions.
  2. Create some custom roles using the Add new role button.
  3. Delete a custom role and verify that it was deleted using a GraphQL mutation.

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 #434431 (closed)

Edited by Daniel Tian

Merge request reports