Repository navigation
Count acknowledged and assigned incidents in the Open card and label the incident cards as daily - #37830
Conversation
The Open Incidents card only counted New events, and neither card said its headline is the latest day's count, so it was read as a total (UnionBank: 15 vs ~1,200 open). Open now counts New, Ack and Assigned events, both cards describe what they count, and the DQ dashboard link no longer filters the list to New only.
…emantics Define the New/Ack/Assigned list once in TestSuite.constant and derive the data-quality indicator's filter from it. Add the decision record for what the incident cards count.
🔴 Playwright Results — workflow failedValidated commit ✅ 2266 passed · ❌ 45 failed · 🟡 1 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky ❌ Action needed: test(s) failed on every attempt against this PR’s validated commit — see Genuine Failures below. These are test failures, not CI budget or infrastructure issues. PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 56m 30s ⏱️ Max setup 12m 37s · max shard execution 20m 42s · max shard-job elapsed before upload 32m 43s · reporting 15s 🌐 2.76 requests/attempt · 1.31 app boots/UI scenario · 0.00% common-shard skew
Optimization targets still in progress:
Genuine Failures (failed on all attempts)❌
|
From the first attempt of visual run 43797171166 on this branch.
Keeps the counts on the same line across all four incident cards.
Adds descriptions to the two time cards, matching the incident count cards, and widens the gap between each chart and its description.
Typography renders inside its own prose wrapper, which reset the margin, so the gap moves to a layout wrapper.
From the first attempt of visual run 43817809237 on this branch.
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsExpanding the Open incidents query to include acknowledged and assigned events could inflate displayed daily counts or create mismatches with incident-list results. Counts New, Acknowledged and Assigned incidents in the Open card and labels both incident cards as covering the latest day with activity, with translations added across locales. The Collate merge-order rule was moved out of the PR body and is no longer duplicated in the ADR. No open issues found. ✅ 1 closed✅ Quality: Collate merge-order rule is only in the PR body, not in the ADR
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 |
…label the incident cards as daily (backport 2.1 #37830) (#37840) * fix(incidents): count Ack/Assigned in Open card and label cards as daily The Open Incidents card only counted New events, and neither card said its headline is the latest day's count, so it was read as a total (UnionBank: 15 vs ~1,200 open). Open now counts New, Ack and Assigned events, both cards describe what they count, and the DQ dashboard link no longer filters the list to New only. (cherry picked from commit c212f34) * refactor(incidents): share the open-status list and record the card semantics Define the New/Ack/Assigned list once in TestSuite.constant and derive the data-quality indicator's filter from it. Add the decision record for what the incident cards count. (cherry picked from commit 38f6bf7) * chore(incidents): record the Collate merge order and apply prettier (cherry picked from commit 2ccd176) * docs(incidents): keep the merge order out of the decision record (cherry picked from commit f1ff150) * fix(incidents): show the card description below the chart Keeps the counts on the same line across all four incident cards. (cherry picked from commit 6e5f238) * feat(incidents): describe the response and resolution time cards Adds descriptions to the two time cards, matching the incident count cards, and widens the gap between each chart and its description. (cherry picked from commit dd9cfdc) * fix(incidents): apply the gap between each chart and its description Typography renders inside its own prose wrapper, which reset the margin, so the gap moves to a layout wrapper. (cherry picked from commit ae45ea7) * test(visual): refresh 2.1 incident baselines for the card descriptions From the first attempt of visual run 43817926277 on this branch.
|
🤖 Backport to |
|
🤖 Backport to |
…ncident cards as daily activity (backport 2.0 #37830, #37916) (#38222) Backport of #37830 and #37916 to 2.0. - Open Incidents card counts New, Acknowledged and Assigned events. - All four incident cards show a description below the chart saying the numbers are daily activity, not totals. - The DQ dashboard Open link no longer filters the list to New only. Adapted for 2.0: visual-regression baselines, DataQualityIndicator, IncidentManagerPageWidgets and it-it.json do not exist on 2.0 and are dropped; CustomAreaChart has no ariaLabel prop on 2.0; locale keys are added with their final #37916 wording. (cherry picked from commit 6cfd3ec) (cherry picked from commit 4bcd875)
Describe your changes:
Fixes open-metadata/openmetadata-collate#8576
The Open Incidents and Resolved Incidents cards (Incident Manager and the Data Quality dashboard) show the latest day's count of status events, but nothing on the card said so, and the Open card only counted
New. A customer read Open = 15 as the number of open incidents (~1,200 in the list) and filed it as a bug.The cards keep their daily-trend meaning (agreed with the observability owner). This PR:
New+Ack+Assignedevents.fetchCountOfIncidentStatusTypeByDaystakes a list of statuses and usestermsinstead ofterm. The cardinality onstateIdstill counts an incident once per day.testCaseResolutionStatusType=New. The list filters one status, so the link would show fewer incidents than the card. The status param also wasn't reflected in the AI-mode status dropdown.OPEN_INCIDENT_STATUS_TYPESinconstants/TestSuite.constant.ts); the data-quality indicator's existingOPEN_INCIDENT_STATUSESstring now derives from it.ADR:2026-11-16-incident-cards-show-the-latest-day-and-open-counts-new-ack-assigned.The widget's test id stays
incident-New-type-area-chart-widget-container, so existing Playwright specs and visual fixtures keep matching.Important
Merge order: merge the Collate companion first: open-metadata/openmetadata-collate#8577. Collate's classic Incident Manager had its own copy of
IncidentManagerPageWidgetspassing the oldincidentStatusTypeprop; #8577 switches it to this OSS component, so Collate compiles before and after this PR and picks up the fix.Type of change:
High-level design:
N/A — small UI fix (32 files, of which 20 are locale files): one query change, one widget prop change, two call sites.
Tests:
Use cases covered
Resolved.Unit tests
IncidentTypeAreaChartWidget.test.tsx: renders the description, keeps theincident-New-…test id, passes the status list to the API.dataQualityDashboardAPI.test.ts: query usestermswith the status list (including New + Ack + Assigned).DataQualityDashboard.test.tsx: Open widget gets the three statuses and description, and its link has notestCaseResolutionStatusType.npx jest IncidentTypeAreaChartWidget dataQualityDashboardAPI DataQualityDashboard DataQualityIndicator TableDetailsPageV1 IncidentManagerPage→ 15 suites, 196 tests passed.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
AIMode/ObservabilityClickPaths.spec.tsclicks the Open card link and asserts only the pathname. Not run locally (OSS).Visual regression baselines
incidentStates.spec.ts-snapshots/(filter, group-by, group details, selected group, bulk status/severity; light + dark) from the first attempt of visual run https://github.com/open-metadata/OpenMetadata/actions/runs/43817809237, on the final card layout. Each diff is the card descriptions under the charts.ontology-*,page-ontology,glossaryTerm-tab-*,tab-table-schema-definitionandglossary-late-activity-countalso fail in that run. Their diffs are the Governance sidebar losing "Ontology Studio" (Move the Ontology Studio UI to Collate #37823 onmain) or unrelated to this change, so they are stale onmain, not here.Manual testing performed
main: Open = 6 (only today's New events). This branch: Open = 11, with the description shown. Resolved = 1 in both.main→…?testCaseResolutionStatusType=New&startTs=…&endTs=…; this branch →…?startTs=…&endTs=….UI screen recording:
Not applicable — bug fix (copy + count), not a feature. Before/after screenshots above, both themes.
Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>— title carries no ticket id; the issue is linked above.My PR is linked to a GitHub issue via
Fixes …above.I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: not applicable.
For a UI feature or feature task: not applicable (bug fix).
I have added tests (unit / integration / Playwright as applicable) and listed them above.
Self-review: I reviewed the final diff against
REVIEW.mdand fixed every 🔴 finding, or answered it on the line below.38f6bf7b6a6. 🔴 Collate's copy ofIncidentManagerPageWidgetsuses the old prop → companion Collate PR required before merge → companion Collate PR open-metadata/openmetadata-collate#8577 (see Merge order). Fixed in-PR: reused the existing open-status list instead of a second copy.Decision check: adds
docs/decisions/2026-11-16-incident-cards-show-the-latest-day-and-open-counts-new-ack-assigned.md.I have added a test that covers the exact scenario we are fixing.
🤖 Generated with Claude Code
Summary by Gitar
descriptionto the response and resolution time cards inDqDashboardSectionContentandIncidentManagerPageWidgets, with translations in all localesThis will update automatically on new commits.


Confidence Score: 5/5
No blocking findings were identified; follow the documented companion-first merge order.Summary
The PR expands the Open card to count
New,Ack, andAssignedevents and adds translated descriptions below all four incident charts.Reviews (9) · Last reviewed commit: "test(visual): refresh incident baselines..." · Reviewed by Greptile