Skip to content

Count acknowledged and assigned incidents in the Open card and label the incident cards as daily - #37830

Merged
shah-harshit merged 9 commits into
mainfrom
shah-harshit/unionbank-cards-count-mismatch
Nov 16, 2026
Merged

shah-harshit merged 9 commits into
mainfrom
shah-harshit/unionbank-cards-count-mismatch

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Open card counts New + Ack + Assigned events. fetchCountOfIncidentStatusTypeByDays takes a list of statuses and uses terms instead of term. The cardinality on stateId still counts an incident once per day.
  • Both cards describe what they count (shown under the chart, so the counts stay aligned across all four cards): "New, Acknowledged and Assigned incidents on the latest day with activity" / "Incidents resolved on the latest day with activity". Translated into all 20 non-English locales.
  • Response Time and Resolution Time cards get descriptions too: "Average response/resolution time across days with activity in the period" (the headline is the mean of the daily values that have data). All four descriptions sit under the chart with a 16px gap.
  • DQ dashboard Open card link drops 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.
  • The open-status list is defined once (OPEN_INCIDENT_STATUS_TYPES in constants/TestSuite.constant.ts); the data-quality indicator's existing OPEN_INCIDENT_STATUSES string now derives from it.
  • Decision record: 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 IncidentManagerPageWidgets passing the old incidentStatusType prop; #8577 switches it to this OSS component, so Collate compiles before and after this PR and picks up the fix.

Type of change:

  • Bug fix

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

  • Open card counts incidents that were acknowledged or assigned on the latest day, not only newly opened ones.
  • Both cards show a description saying the number is the latest day with activity.
  • DQ dashboard Open card links to the incident list without a status filter; Resolved still filters to Resolved.

Unit tests

  • Updated:
    • IncidentTypeAreaChartWidget.test.tsx: renders the description, keeps the incident-New-… test id, passes the status list to the API.
    • dataQualityDashboardAPI.test.ts: query uses terms with the status list (including New + Ack + Assigned).
    • DataQualityDashboard.test.tsx: Open widget gets the three statuses and description, and its link has no testCaseResolutionStatusType.
  • Ran: npx jest IncidentTypeAreaChartWidget dataQualityDashboardAPI DataQualityDashboard DataQualityIndicator TableDetailsPageV1 IncidentManagerPage → 15 suites, 196 tests passed.

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • No spec changes needed: AIMode/ObservabilityClickPaths.spec.ts clicks the Open card link and asserts only the pathname. Not run locally (OSS).

Visual regression baselines

Manual testing performed

  1. Local stack (server 2.0.5 image + this branch's Vite dev server), AI mode, signed in as admin.
  2. Seeded 11 incidents: 6 opened today; 5 opened 3 days ago and acknowledged (2) or assigned (3) today; 1 of today's resolved.
  3. main: Open = 6 (only today's New events). This branch: Open = 11, with the description shown. Resolved = 1 in both.
  4. DQ dashboard Open card link: main → …?testCaseResolutionStatusType=New&startTs=…&endTs=…; this branch → …?startTs=…&endTs=….
  5. Checked light and dark.
image

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.md and fixed every 🔴 finding, or answered it on the line below.

    • Reviewed 38f6bf7b6a6. 🔴 Collate's copy of IncidentManagerPageWidgets uses 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

  • Time card descriptions:
    • Added description to the response and resolution time cards in DqDashboardSectionContent and IncidentManagerPageWidgets, with translations in all locales

This will update automatically on new commits.

RetriggerView in GreptileConfidence 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, and Assigned events and adds translated descriptions below all four incident charts.

  • Open incident cards count New, Acknowledged, and Assigned events each day.
  • All four incident cards explain the days behind their values.

Reviews (9) · Last reviewed commit: "test(visual): refresh incident baselines..." · Reviewed by Greptile

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.
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 16, 2026
@shah-harshit shah-harshit self-assigned this Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit ae45ea7c1dea458fae49c17690ff6f90aec21b93 in Playwright run 43817809237, attempt 1.

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

Performance

Blocking 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

⚠️ CI time-budget signals — pipeline capacity telemetry, not test failures, and not caused by this PR:

  • Budget target `Environment setup` breached (target ≤ 480 s) — exceeded on 7 shard(s): visual-05 757 s, rdf-01 745 s, visual-02 680 s, visual-04 668 s, visual-01 644 s (+2 more).
  • Budget target `Maximum shard-job elapsed before upload` breached (target ≤ 1800 s) — exceeded on 1 shard(s): visual-02 1963 s.

Optimization targets still in progress:

  • Application boot ratio was 1.31 per UI scenario (55 boots / 42 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 42 0 0 0 0 0
✅ Shard rdf-01 13 0 0 0 0 0
🔴 Shard visual-01 331 10 0 0 0 0
🔴 Shard visual-02 309 23 0 0 0 0
🔴 Shard visual-03 340 11 1 0 0 0
✅ Shard visual-04 431 0 0 0 0 0
✅ Shard visual-05 441 0 0 0 0 0
🔴 Shard visual-06 359 1 0 0 0 0

Genuine Failures (failed on all attempts)

❌ ../utils/visualScenarios.ts › page-ontology (shard visual-01)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › incident-filter-test-case (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    14587 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-filter-test-case-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-filter-test-case-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 14588 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 14587 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-filter-status (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    14876 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-filter-status-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-filter-status-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 14877 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 14876 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-filter-severity (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15365 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-filter-severity-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-filter-severity-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15366 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15365 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-group-by-options (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    14696 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-group-by-options-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-group-by-options-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 14697 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 14696 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-group-by-owner (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    14905 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-group-by-owner-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-group-by-owner-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 14906 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 14905 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-group-details (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15274 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-group-details-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-group-details-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15278 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15274 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-selected-group (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    19225 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-selected-group-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-selected-group-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 19226 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 19225 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-bulk-status-options (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    19428 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-bulk-status-options-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-bulk-status-options-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 19428 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 19428 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › incident-bulk-severity-options (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    19692 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: incident-bulk-severity-options-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-bulk-severity-options-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 19693 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 19692 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › glossaryTerm-tab-custom-properties (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    13440 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: glossaryTerm-tab-custom-properties-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(glossaryTerm-tab-custom-properties-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 13440 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 13440 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › glossaryTerm-tab-data-observability (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    1248 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: glossaryTerm-tab-data-observability-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(glossaryTerm-tab-data-observability-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 1248 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 1248 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/glossaryInteractions.spec.ts › glossary-late-activity-count (shard visual-02)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    1248 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: glossary-late-activity-count-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(glossary-late-activity-count-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 1248 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 1248 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › ontology-scope-menu (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-new-form (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-new-validation (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-native-graph (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-tree (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-library (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-publish-changes (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-publish-releases (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-export-dialog (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-query (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-scope-menu (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-new-form (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-new-validation (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-native-graph (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-tree (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-library (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 
❌ ../utils/visualScenarios.ts › ontology-publish-changes (shard visual-02)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoBeVisible�[2m(�[22m�[2m)�[22m failed  Locator: getByTestId('app-shell') Expected: visible Timeout: 15000ms Error: element(s) not found  Call log: �[2m  - Expect "toBeVisible" with timeout 15000ms�[22m �[2m  - waiting for getByTestId('app-shell')�[22m 

... and 15 more failures

🟡 1 flaky test(s) (passed on retry)
  • ../utils/visualScenarios.ts › tab-table-schema-definition (shard visual-03, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

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.
@gitar-bot

gitar-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Expanding 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

📄 docs/decisions/2026-11-16-incident-cards-show-the-latest-day-and-open-counts-new-ack-assigned.md:7 📄 docs/decisions/2026-11-16-incident-cards-show-the-latest-day-and-open-counts-new-ack-assigned.md:19-30 📄 openmetadata-ui/src/main/resources/ui/src/components/DataQuality/DataQuality.interface.ts:55-56
The PR changes the shared IncidentTypeAreaChartWidgetProps contract: incidentStatusType becomes incidentStatusTypes[], and a new required description prop is added. The description says this "breaks Collate's classic Incident Manager build until a companion Collate PR merges, so this PR must not merge first." That is a merge-ordering rule across repositories, and no single file shows it. The new ADR only lists openmetadata-collate#8576 under Related and never states an order. The repo squash-merges, so this sentence will not reach git log.

The stated order also looks backwards next to the existing records for paired OSS/Collate contract changes. ADR:2026-10-10-alert-widgets-use-values-and-oss-merges-before-collate, ADR:2026-10-14-needs-you-now-is-a-class-base-home-slot-and-oss-merges-first and ADR:2026-11-02-ssis-package-storage-accepts-adls-and-oss-merges-before-collate all merge OSS first. Collate builds against its OpenMetadata submodule, so a Collate change that passes incidentStatusTypes/description cannot compile before this interface lands on OSS main.

Add the rule to the ADR's Decision section, for example: "Merge OSS #37830 first, then openmetadata-collate#8576 immediately afterward, moving Collate's OpenMetadata submodule onto the merged commit; until then Collate's classic Incident Manager build fails on the removed incidentStatusType prop." If Collate really must merge first, the record should explain how it builds against the old interface (for example, a compatibility phase that accepts both props).

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

@shah-harshit
shah-harshit merged commit 6cfd3ec into main Nov 16, 2026
58 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/unionbank-cards-count-mismatch branch November 16, 2026 09:27
shah-harshit added a commit that referenced this pull request Nov 16, 2026
…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.
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.0 failed. The conflict could not be resolved, so this change is not on that branch. Resolver run.

shah-harshit added a commit that referenced this pull request Nov 19, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants