Skip to content

Draft: Resolve "GraphQL API: Add `associatedProjects` field to CiRunner"

What does this MR do and why?

References

Screenshots or screen recordings

Before After
N/A. No such field. New field CiRunner.associatedProjects available image

How to set up and validate locally

  1. Create a Project CI Runner and assign it to at least 2 projects. The first project will be its "owner project". image
  2. Run below query with your CI Runner ID image
  3. Confirm ownerProject field and associatedProjects includes the correct project, respectively.
{
  runner(id: "gid://gitlab/Ci::Runner/105") { # Change the CI Runner ID!
    ownerProject {
      name
    }
    associatedProjects(first: 100) { # NEW!
      nodes {
        name
      }
    }
    projects(first: 100) {
      nodes {
        name
      }
    }
  }
}

MR acceptance checklist

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

Related to #378732

Edited by Chou Yu Ta

Merge request reports

Loading