Skip to content

Add GraphQL query for deployment details

Shinya Maeda requested to merge graphql-query-for-deployment-details into master

NOTE: This MR is built on top of !95255 (merged)

What does this MR do and why?

This MR adds GraphQL query for fetching deployment information. As described in the issue, this query can be extended for many purposes, such as

Query example

Get details of the deployment

{
  project(fullPath: "root/pipeline-playground") {
    deployment(iid: 10) {
      tag_names_contains_sha # To be supported in https://gitlab.com/gitlab-org/gitlab/-/issues/15419
    }
  }
}

Screenshots or screen recordings

2022-08-19_17-34

How to set up and validate locally

Access to GraphiQL and try execute the above queries.

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 Shinya Maeda

Merge request reports