Skip to content

Expose CI variable limits through GraphQL

What does this MR do and why?

This MR exposes the new limits on project and group CI variables through ProjectVariableConnectionType and GroupVariableConnectionType.

This is the final MR for #362228 (closed)

Screenshots or screen recordings

GraphQL query:

Screenshot_2022-09-12_at_19.44.57

Result:

Screenshot_2022-09-12_at_19.45.03

How to set up and validate locally

  1. Make the following query in /-/graphql-explorer

    query {
      project(fullPath: "root/projecty") {
        ciVariables {
          limit
        }
      }
      group(fullPath: "gitlab-org") {
        ciVariables {
          limit
        }
      }
    }
  2. See that the result for both project and group limit is 200. This is the default limit for all groups and projects

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading