Incorrect stage being shown in side bar of job view
Summary
For example, the following pipeline belongs to the test
stage, but when you load it, the prepare
stage is loaded since it is the first one.
Steps to reproduce
Go on https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/107409609 and you will see the stage is prepare
not test
.
What is the current bug behavior?
The first stage is loaded
What is the expected correct behavior?
The correct stage the job belongs to.
Relevant logs and/or screenshots
Output of checks
Reproduced on GitLab.com
Possible fixes
https://gitlab.com/gitlab-org/gitlab-ce/issues/50461#note_95440451
Edited by Steve Xuereb