Skip to content

Return runner editUrl via GraphQL API

Miguel Rincon requested to merge 336405-add-runner-edit-url into master

What does this MR do and why?

This change adds the edit web url of a runner to the GraphQL API. The URL will vary according to usage of the API in a Group or Project.

See usage at: !80924 (merged)

query getGroupRunners($groupFullPath: ID!) {
  group(fullPath: $groupFullPath) {
    id
    runners {
      edges {
        editUrl # new field!
        webUrl
        node {
          __typename
          id
        }
      }
    }
  }
}

Screenshots or screen recordings

Screen_Shot_2022-02-17_at_4.20.59_PM

How to set up and validate locally

  1. Having a group with runners
  2. Use query above at http://gdk.test:3000/-/graphql-explorer

MR acceptance checklist

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

Related to #336405 (closed)

Edited by Miguel Rincon

Merge request reports