Skip to content

GraphQL: Add sharedRunnersSetting to Namespace

What does this MR do?

This MR adds the recently added sharedRunnersSetting field to the GraphQL NamespaceType.

Example query
query getGroups {
  group(fullPath: "top-level-group") {
    id
    fullName
    descendantGroups(includeParentDescendants:true) {
      nodes {
        fullName
        sharedRunnersSetting
      }
    }
  }
}
Example JSON result
{
  "data": {
    "group": {
      "id": "gid://gitlab/Group/110",
      "fullName": "top-level-group",
      "descendantGroups": {
        "nodes": [
          {
            "fullName": "top-level-group / sub-group",
            "sharedRunnersSetting": "DISABLED_AND_UNOVERRIDABLE"
          },
          {
            "fullName": "top-level-group / sub-group-2",
            "sharedRunnersSetting": "ENABLED"
          }
        ]
      }
    }
  }
}

Screenshots or Screencasts (strongly suggested)

CI/CD Runners page setting GraphQL result
image image
image image
image image

How to setup and validate locally (strongly suggested)

Conformity

Availability and Testing

-->

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Part of #336879 (closed)

Edited by Pedro Pombeiro

Merge request reports