Skip to content

Adds "name" field to provide machine readable status

What does this MR do and why?

Adds "name" field to provide machine readable status

This change adds a new "name" field to the detaield status and deprecates other fields such as label to separate the business logic from the presentation.

Changelog: other

Why this change?

While working on #423029 (closed) I found we don't have a "machine" name for our detailed status, so we cobble up together solutions like:

Both could be consolidated by using a unique name + localized label. Based on this change, we could refactor usages for ci_badge_link and ci_icon to use a single primitive for status.

Screenshots or screen recordings

See the fields that changed in detailedStatus:

image

How to set up and validate locally

NA

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #423029 (closed)

Edited by Miguel Rincon

Merge request reports