Skip to content

Draft: GraphQL: Add runnerDeleteMany mutation

This MR is based on the pedropombeiro/339525/1-add-bulk-runner-delete-worker branch, please change to master before merging

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR implements the bulkRunnerDelete mutation, which allows deleting runners in bulk either by ID, or through a filter. It extracts the runner filter used in the RunnersResolver class into a concern, so that it can be used in BulkDelete through RunnersFilterInputType.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Mutation:

mutation bulkRunnerDelete($input: BulkRunnerDeleteInput!) {
  bulkRunnerDelete(input: $input) {
    errors
    count
  }
}

Arguments:

{
  "input": {
    "ids": [
      "gid://gitlab/Ci::Runner/1200",
      "gid://gitlab/Ci::Runner/1201"
    ]
  }
}

MR acceptance checklist

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

Edited by Pedro Pombeiro

Merge request reports