Skip to content

Add SaaS check when fetching instance member roles

What does this MR do and why?

  • Instance-level custom roles should not be fetched in the frontend if SaaS mode is on.
  • This MR adds a check to the frontend, so the GraphQL query to fetch instance-level custom roles is skipped

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

No visual changes

How to set up and validate locally

  1. Turn on SaaS mode with
export GITLAB_SIMULATE_SAAS=1
  1. Navigate to any Group > Manage > Members. Then click on Invite Members.
  2. You should not see an exception in the console tab.

Related to #441445 (closed)

Edited by Hinam Mehra

Merge request reports