Skip to content

GraphQL fetch stage by id

Max Orefice requested to merge morefice/fix-graphql-stage-lookup into master

Ref: gitlab-com/gl-infra/production#7774 (closed)

What does this MR do and why?

This MR allows to fetch stage by id using ci_stage record instead of reading from ci_builds.stage which will get deprecated.

Why are we doing this?

Following up !97660 (merged) where we made sure ci_stage record for pages deployments was set up correctly we forgot to update ci_builds.stage leading to an inconsistency.

The frontend was unable to retrieve stages on job page as you can see on this example.

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 Max Orefice

Merge request reports