Skip to content

Refactor member roles front-end to use GraphQL instead of REST API

What does this MR do and why?

Refactors the custom-roles frontend to use GraphQL queries to fetch, create & delete custom roles instead of REST API. We will clean-up the REST API endpoints in a follow-up MR.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

There aren't any changes visually

custom-roles

How to set up and validate locally

  1. Turn on SaaS Mode and make sure you have an Ultimate license
% export GITLAB_SIMULATE_SAAS=1
% gdk restart
  1. Log-in as admin, navigate to any group that you are an Owner of, and go to Settings > Roles and Permissions.
  2. Add/view/delete a custom role.
  3. You can also navigate to the Roles and Permissions in the Admin Area (/admin/application_settings/roles_and_permissions) and manage custom roles all groups.

Related to #429690 (closed)

Edited by Hinam Mehra

Merge request reports