Should be able to fetch pipeline by global ID using graphql
RFE
Expand the possible Project.pipeline
lookup arguments to include a global ID option.
Why
The graphql Project.pipeline
field takes either a pipeline IID or sha as an argument.
https://docs.gitlab.com/ee/api/graphql/reference/#projectpipeline
That's fine, but Gitlab almost universally refers to pipelines by their global IDs.
- the UI shows the global ID for pipelines and uses them in generated URLs
- webhook event payloads which include any pipeline details provide the pipeline's global ID
It is therefore cumbersome to use the graphql Project.pipeline
field because while a user will likely have been given the pipeline global ID in a webhook payload etc, they would almost never know a pipeline's local ID and have to look it up first.
other
For a time it looked like this was going to be taken care of in #347221 (closed)