Repository navigation
[2.0] Fixes #37668: show real metric status in the metrics list - #38009
chirag-madlani merged 3 commits into
Conversation
… 2.0 The metrics list mapped every status other than Approved and In Review to the Draft badge, and the status filter only offered those three values. Map all EntityStatus values to their own label and icon (as on main), list every status in the filter, add a Rejected badge style and the missing label.deprecated key.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
This is a 2.0 backport, so GitHub does not register |
Code Review ✅ Approved 🟡 Medium riskMapping all metric statuses and expanding the filter changes list behavior; incorrect mappings could mislead users about metric lifecycle state. Maps every metric status to its own label and icon in the metrics list and status filter, fixing Rejected, Unprocessed, Deprecated and Archived metrics that previously showed the Draft badge. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes #37668
On the
2.0branch,getMetricStatusinMetricListPage.tsxonly handled Approved and In Review, so Rejected, Unprocessed, Deprecated and Archived metrics all showed the Draft badge. The status filter also offered only Approved, In Review and Draft.This backports the status mapping from
main:EntityStatusmaps to its own label and icon (METRIC_STATUS_CONFIG).Object.values(EntityStatus)), as onmain.MetricStatusPillonmain.label.deprecatedkey to all locales, using the translations already onmain.Type of change:
High-level design:
N/A, small change.
Tests:
Use cases covered
Unit tests
MetricListPage.test.tsxthat checks every status is offered in the filter with its own label. It fails without the fix and passes with it (9/9 in the suite).Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed


Confidence Score: 5/5
The PR appears safe to merge.Summary
The metrics list now shows all seven statuses with their own labels and icons, and offers each status in the filter.
The previous light-mode styling finding is fixed. No new issues found.
Reviews (3) · Last reviewed commit: "Use the tw-prefixed error tokens for the..." · Reviewed by Greptile