Skip to content

[2.0] Fixes #37668: show real metric status in the metrics list - #38009

Merged
chirag-madlani merged 3 commits into
open-metadata:2.0from
a-kash-singh:fix-37668-metric-status-badge-2.0
Nov 18, 2026
Merged

chirag-madlani merged 3 commits into
open-metadata:2.0from
a-kash-singh:fix-37668-metric-status-badge-2.0

Conversation

@a-kash-singh

@a-kash-singh a-kash-singh commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #37668

On the 2.0 branch, getMetricStatus in MetricListPage.tsx only 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:

  • Every EntityStatus maps to its own label and icon (METRIC_STATUS_CONFIG).
  • The status filter lists every status (Object.values(EntityStatus)), as on main.
  • Rejected gets a red badge style; Deprecated, Archived and Unprocessed use the neutral style, matching MetricStatusPill on main.
  • Adds the missing label.deprecated key to all locales, using the translations already on main.

Type of change:

  • Bug fix

High-level design:

N/A, small change.

Tests:

Use cases covered

  • A metric with status Rejected, Unprocessed, Deprecated or Archived shows its real status in the metrics list.
  • The status filter offers all seven statuses.

Unit tests

  • Added a test in MetricListPage.test.tsx that 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

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not added; the unit test covers the mapping.

Manual testing performed

  • Ran jest, eslint and prettier on the changed files.

RetriggerView in GreptileConfidence 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 metrics list shows and filters every metric status.

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

… 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.
@a-kash-singh
a-kash-singh requested a review from a team as a code owner November 17, 2026 21:46
@a-kash-singh
a-kash-singh requested review from ShaileshParmar11 and removed request for a team November 17, 2026 21:46
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@a-kash-singh

Copy link
Copy Markdown
Contributor Author

This is a 2.0 backport, so GitHub does not register Fixes #37668 as a linked issue (closing keywords only link PRs that target the default branch), and I do not have write access to link it from the Development sidebar. Could a maintainer either link #37668 or add skip-pr-checks, as was done for #36665? The fix itself is already on main.

@gitar-bot

gitar-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Mapping 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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@chirag-madlani
chirag-madlani merged commit 3b8e54f into open-metadata:2.0 Nov 18, 2026
56 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants