Add safe guard for pipeline without stage name
What does this MR do and why?
Adds safeguard for an issue where a pipeline was returned without a stage name. This caused the tab vue app to blow up since the name
property was non-existent. We believe root cause is on the BE but we can add a safeguard for now if users end up in this situation.
Example pipeline reported: https://gitlab.com/gitlab-org/gitlab/-/pipelines/644740078/builds
Screenshots or screen recordings
How to set up and validate locally
- Visit example pipeline in MR.
- Change job locally to
job = { stage: { id: '' } }
instageName
method. Test with optional chaining and without new changes.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Payton Burdette