Skip to content

Fix standard role details path throwing error in SaaS mode

What does this MR do and why?

This MR fixes a bug where trying to get the detailsPath for a standardRole in GraphQL will throw an error in SaaS mode:

Before After
ksnip_20240917-000348 ksnip_20240917-000324

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.

How to set up and validate locally

  1. Run these shell commands to set your local instance to SaaS mode:
export export GITLAB_SIMULATE_SAAS=1
gdk restart
  1. Follow this video guide with audio commentary to set up a group with an Ultimate plan:

2024-09-17_00-07-33

  1. Run this GraphQL query and verify that the detailsPath is returned successfully without errors:
query groupRoles {
  group(fullPath: "twitter2") {
    standardRoles {
      nodes {
        name
        detailsPath
      }
    }
  }
}

Related to #468353

Merge request reports