Skip to content

Fixes #34679: test case details page fixes from post-merge validation - #34655

Merged
ShaileshParmar11 merged 11 commits into
mainfrom
fix/tcd-v01-banner-result-expected
Oct 5, 2026
Merged

ShaileshParmar11 merged 11 commits into
mainfrom
fix/tcd-v01-banner-result-expected

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #34679

Part of open-metadata/openmetadata-collate#6074, from the post-merge validation of the test case details page (V-01 to V-07 in open-metadata/openmetadata-collate#7096).

The epic says Part of, not Fixes, on purpose: a closing keyword would close it when this merges.

Fixes from the post-merge validation of the test case details page, added one point at a time.

1. Last-run banner: RESULT / EXPECTED never showed for real runs

The last-run banner's RESULT / EXPECTED block (TCD-5) never appeared for real test runs. It paired the run's result with the test parameter of the same name, but ingestion never names them alike: tableRowCountToEqual reports rowCount against the parameter value, so the lookup always missed. The unit and e2e fixtures used shapes ingestion never produces (a parameter named rowCount, or a predictedValue), which hid it.

The banner now reads both values through the run details card's helpers, so the banner and the card always agree:

Test Before After
tableRowCountToEqual (value 10,000, found 110) no block 110 / 10,000
tableRowCountToBeBetween (12–34, found 5) no block 5 / 12 – 34
columnValuesToBeNotNull (found 5) no block 5 / 0

The block still hides when the test states no expectation, or when a run measured more than one value (for example columnValuesToBeBetween's min and max). A predictedValue, when ingestion reports one, still takes precedence.

A range with large numbers (1,500,000 / 1,000,000 – 2,000,000) is wider than the banner's 320 px right side, and the comparison does not wrap, so it overlapped the run's reason. The right side is now at least 320 px (tw:lg:min-w-80) instead of exactly 320 px: it widens, and the reason truncates before it. Normal values keep the 320 px right side aligned with the rail.

compare

2. Result history chart: expectation line missing when every run is far from it

ECharts draws no reference line outside the y axis range, and the axis covered only the runs. A failing run far from its expectation therefore lost the expectation line and its label: the mock's own failing case, 110 rows against an expected 10,000, drew an axis of 110–120 and no line. The y axis extent now takes in the expectation before it is padded.

Test Before After
tableRowCountToEqual, value 10,000, runs at 110 / 120 / 115 axis 110–120, no line axis 0–10K, Expected 10,000 line
tableRowCountToEqual, value 100, runs at 500 / 600 / 550 axis 500–600, no line axis 100–600, Expected 100 line
V-02-expectation-line

3. Result history chart: the allowed-range band was read by position

The band took the first two parameters as min and max, only when a test had exactly two, and parsed them with parseInt. It now reads min and max through getParameterBounds, by name and as numbers, like the expectation line and the caption.

Test Before After
columnValueMeanToBeBetween, 0.5–1.5 band 0–1 (decimals truncated), every passing run above it band 0.5–1.5
tableRowCountToBeBetween, 12–34 plus threshold no band (three parameters) band 12–34
tableRowCountToEqual, value 10,000 plus threshold 5 a band from 5 to 10,000 no band; the Expected 10,000 line only
V-03-V-04-allowed-band

4. Result history chart: aborted and queued runs pulled the line

An aborted or queued run has no value. The chart placed one for it on the series itself, at the lowest plotted value or on the expectation line, so the line ran through it: an aborted run read as a measured drop, and a queued run pulled the line to the expectation. The TCD-7 acceptance criteria and the mock keep both off the line. The line now joins measured runs only and bridges over the others; their markers stay where they were (the ring at the bottom, the queued dot on the expectation line), selectable as before.

Runs Before After
10,000 / 9,000 / 10,050 / aborted the line drops to the aborted ring the line ends at 10,050; the ring stands alone
10,000 / aborted / 9,950 / 10,020 the line dips to the ring and back the line bridges 10,000 to 9,950
10,000 / 9,900 / 10,020 / queued the line is pulled to the expectation the line ends at 10,020
two series (min, max) with an aborted run both lines dip to the rings both lines bridge; same colours, one legend entry each
V-05-placed-runs-off-line V-05-all-aborted

5. Result history: a slow response for a replaced range overwrote the newer one

The fetch wrote whatever response arrived. Picking Today, then Last month while Today was still loading, left the picker on Sep 1 – Sep 30 while the chart, tiles and run card showed Today's runs. The effect now marks its fetch stale when a newer range, dimension or run replaces it; a stale fetch sets no results, shows no error, and leaves the loaders to the fetch that replaced it.

Steps Before After
Today (response delayed 5 s), then Last month picker Sep 1 – Sep 30; tiles go from 30 runs to Today's 3 when the slow response lands stays on Last month's 30 runs
V-06-stale-range-response

6. Version page: parameter changes were cut off and hard to read

The version page drew its parameter diff in an older layout, with a fixed 200 px column for every name, inside a card about 236 px wide at 1440 px. The values fell off the card's edge. Where they fitted, a character diff glued the old and new numbers together. The diff now comes as the card's own parameter rows, so values wrap like on the normal page, and each change reads whole, with the old value struck through and the new one in the success colour. The assertion SQL keeps its diff block, now below the rows.

Change Before After
value 10,000 → 12,000, at 1440 px value: and a cut-off sliver value 10000 → 12000
value 10,000 → 12,000, at 1920 px 1000012000 10000 → 12000
range 12–34 → 10–40 1210 and 3440 (cut off at 1440 px) 12 → 10 and 34 → 40
V-07-version-parameter-diff

Type of change:

  • Bug fix

High-level design:

 getMetricSummary(
-  parameterValues, testResultValue, status
+  testCase, testCaseResult, status
 )
-  expected = predictedValue ?? parameter whose name === result name
+  expected = predictedValue ?? formatExpectation(getRunExpectation(testCase, result))
-  result   = testResultValue[0]
+  result   = getFoundValue(result)   # only when the run measured one value
  • TestCaseLastRunBanner takes testCase instead of parameterValues at both call sites: AI mode (TestCaseDetail.tsx) and classic (IncidentManagerDetailPage.tsx). The expectation needs the test definition (not-null implies 0) and useDynamicAssertion, not just the parameters.
  • Both pages' memos now depend on testCase instead of three of its fields, since the banner reads the whole test case.
  • Expectation line (TestSummaryGraph.tsx): the y axis extent takes in the expectation before it is padded.
 yAxis
-  min: paddedYAxisMin(extent)
+  min: paddedYAxisMin(includeInExtent(extent, thresholdReference?.y))
-  max: paddedYAxisMax(extent)
+  max: paddedYAxisMax(includeInExtent(extent, thresholdReference?.y))
  • Band (prepareChartData in TestSummaryGraphUtils.ts): minBound ?? parameters[0] and maxBound ?? parameters[1], used only when there are exactly two parameters, become minBound ?? min and maxBound ?? max from getParameterBounds. The bounds helpers move above prepareChartData, unchanged, for no-use-before-define.
  • Placed runs (applyStatusPlacements): the placed value goes under placedSeriesKey(series) instead of the series' own key. TestSummaryGraph draws those keys as dot-only series after the lines (so no line's palette colour shifts), named like their line (ECharts lists a legend name once, and toggling it hides both). The lines set connectNulls. TestSummaryRunList, the screen-reader list, still lists placed runs; keyboard navigation and click selection reach them through the dot-only series.
  • Stale responses (TestSummary.tsx): the fetch effect gives fetchTestResults an isStale check and flips it in its cleanup. A fetch that a newer range, dimension or run replaced sets no results, shows no error toast, and leaves the loaders to the newer fetch.
  • Version page (EntityVersionUtils.tsx, TestCaseResultTab, TestCaseConfigurationCard): getParameterValueDiffDisplay, one pre-rendered block, becomes getParameterValueDiffRows, which returns { rows, sqlDiff }. The rows go through the card's own ParameterRows, whose values are now a ReactNode, so a change renders as old → new. Only the SQL diff stays a block, below the rows. The legacy .parameter-label / .parameter-value* styles are removed.

Tests:

Use cases covered

  • A failed row count test shows 110 / 10,000 in the banner.
  • A range test shows the found value against the range: 5 / 12 – 34.
  • A not-null test shows the zero its definition implies: 5 / 0.
  • No block when the test states no expectation (columnValuesToMatchRegex) or the run measured two values (columnValuesToBeBetween).
  • A large range comparison widens the banner's right side instead of overlapping the reason.
  • The chart's expectation line stays on the axis when every run is far above or below it.
  • The allowed-range band keeps decimal bounds, survives a third parameter, and is not drawn from an expected value and a threshold.
  • The line joins measured runs only: it bridges over aborted and queued runs, whose markers stay selectable.
  • A late response for a range that was replaced does not overwrite the newer range's results.
  • The version page's parameter changes fit the Configuration card at any width and read as whole values.

Unit tests

  • TestCaseLastRunBanner.test.tsx: the name-matching cases are replaced by the three real shapes above and the two hidden cases. The row count case fails before the fix (Unable to find an element by: [data-testid="test-case-result-expected"]).

  • TestCaseDetail.test.tsx: the banner now receives the test case.

  • TestSummaryGraph.test.tsx: should stretch the y axis to an expectation above/below every run. Before the fix they fail (Expected: > 10000, Received: 120.4 and Expected: < 100, Received: 496). The two padding tests now render without an expectation, so they still check padding alone.

  • TestSummaryGraphUtils.test.ts: should read the allowed band from decimal bounds / a range that also has a threshold / an expected value and a threshold. Before the fix they fail ([0, 1] for [0.5, 1.5], undefined for [12, 34], [10000, 5] for undefined).

  • EntityVersionUtils.test.tsx: getParameterValueDiffRows shows a changed parameter as its whole old and new value, keeps the assertion SQL out of the rows as its own diff, and shows an unchanged parameter as its plain value; before the fix they fail (getParameterValueDiffRows is not a function).

  • TestSummary.test.tsx: should keep the newest range when an older response arrives late; before the fix it fails (Runs 1 instead of 2 once the slow response lands).

  • applyStatusPlacements tests now expect the placed value under placedSeriesKey(...), not the series' key. TestSummaryGraph.test.tsx: should keep an aborted run off the line and bridge the line over it and should still list an aborted run kept off the line for screen readers; before the fix they fail (placedSeriesKey is not a function).

  • TestCaseResultTab.test.tsx: the version page builds the Configuration card's rows from the version diff (10000 → 12000). It fails if the rows fall back to the plain parameters.

  • EntityVersionUtils.test.tsx, also: an added parameter shows only its new value and a removed one only its old value, struck through. getSummary and getOwnerVersionLabel, which had no tests, are now covered too.

  • TestCaseLastRunBanner.test.tsx, also: no comparison until the test case loads.

  • 46 suites, 653 tests pass across DataQuality/IncidentManager, observability/TestCaseDetail, pages/IncidentManager, Profiler/TestSummary, TestSummaryGraphUtils.test.ts and EntityVersionUtils.test.tsx.

  • Coverage on the 11 changed source files, from the same suites: every changed line is covered. Line coverage per file:

    File Lines
    EntityVersionUtils.tsx 92.7% (was 53%)
    TestCaseDetail.tsx 95.9%
    IncidentManagerDetailPage.tsx 96.2%
    TestSummaryGraph.tsx 98.6%
    TestSummaryGraphUtils.ts 99.2%
    TestCaseLastRunBanner.component.tsx, TestCaseLastRunBanner.utils.ts, TestCaseResultTab.component.tsx, TestCaseConfigurationCard.tsx, TestSummary.tsx, TestSummaryRunList.tsx 100%

Backend integration tests

  • Not applicable (no backend changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated shows every section for a scheduled failed test case run in playwright/e2e/Features/DataQuality/DataQuality.spec.ts.
    • It seeded the result as { name: 'minValue', predictedValue: '1', value: '0' }, a shape ingestion never produces.
    • It now uses { name: 'rowCount', value: '0' } and expects 0 / 1 – 100. It fails without the fix (block not found) and passes with it.
  • TestCaseDetailsPage.spec.ts (AI mode): 13 passed, including the banner/grid alignment test.
  • Updated should show the test case version page in playwright/e2e/VersionPages/TestCaseVersionPage.spec.ts.
    • It selected the old diff's per-parameter test ids (minValue, maxValue). The card rows use configuration-parameter-<name>, so on this branch the old step fails (getByTestId('minValue'): element(s) not found).
    • It now selects the rows, and also checks that each change reads whole (12 → 20, 34 → 40). Passes locally.
  • yarn lint:playwright: 0 errors.

Manual testing performed

  1. Ran this branch's UI against the local stack on :8585.
  2. Seeded failed tableRowCountToEqual (value 10,000, rowCount 110) and tableRowCountToBeBetween (12–34, rowCount 5) runs and opened them at /observability/test-case/<fqn>.
  3. Before (current main): no RESULT / EXPECTED block. After: 110 / 10,000 and 5 / 12 – 34. Nothing else in the banner changes.
  4. A tableRowCountToBeBetween run at 1,500,000 against 1,000,000–2,000,000, with a long reason: the comparison sits beside the truncated reason, with no overlap.
  5. Charts for runs at 110–120 against an expected 10,000, and at 500–600 against an expected 100: before, axes of 110–120 and 500–600 with no line; after, the Expected 10,000 and Expected 100 lines and labels are drawn.
  6. Bands for the three tests in section 3, before and after, as in the table there.
  7. Placed runs for the four cases in section 4: the line ends or bridges at aborted and queued runs; axes, legend entries and series colours match main. Keyboard Home, ArrowRight, Enter on the aborted run between measured ones selects it, and the run details card shows it as Aborted.
  8. Today with a 5 s delayed response, then Last month: before, the tiles fall from 30 to 3 runs when the slow response lands; after, they stay at 30.
  9. Version page for value 10,000 → 12,000 and a range 12–34 → 10–40, at 1440 and 1920 px: before, cut off at 1440 px and glued digits at 1920 px; after, 10000 → 12000, 12 → 10, 34 → 40 at both widths, with no overflow.

UI screen recording / screenshots:

Attaching: before and after for both tests.

Merge Danger

Door: two-way. UI only; reverting restores the old lookup.

Blast Radius: banner and chart, on both the AI-mode and classic pages.

  • Banner: the block now shows on runs where it was always hidden. A long comparison widens the right side, which then no longer lines up with the rail.
  • Chart: when every run is far from the expectation, the axis now spans to it, so the runs sit flat near one edge (as in the mock's failing case).
  • Band: tests with bounds plus other parameters (a threshold, rangeType/rangeInterval) now draw their band. A dynamic assertion that still has static min/max parameters falls back to them for runs without learned bounds, as two-parameter tests already did; that also hides Collate's AI-learning alert for those runs.
  • Placed runs: each value series with an aborted or queued run gains a dot-only series. Hovering a line in a multi-series chart fades those dots with the other series.
  • Stale responses: only a fetch that a newer one replaced is ignored. The newest fetch behaves as before.
  • Version page: the parameter rows carry the card's test ids, configuration-parameter-<name>, instead of <name>. Tests elsewhere that select a version page parameter by its bare name need the same change as TestCaseVersionPage.spec.ts.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

The banner's RESULT / EXPECTED block paired the run's result with the
test parameter of the same name. Ingestion never names them alike: a
row count test reports `rowCount` against the parameter `value`, so the
block never showed for real runs. The unit and e2e fixtures used shapes
ingestion never produces, which hid it.

The banner now reads Found and Expected through the run details card's
helpers (getFoundValue, getRunExpectation, formatExpectation), so the
two always agree. It takes the test case instead of its parameters, and
both pages' memos depend on the test case.
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 5, 2026
…ison

A range test with large numbers (1,500,000 / 1,000,000 – 2,000,000) is
wider than the banner's 320 px right side, and the comparison, which
does not wrap, spilled over the run's reason. The right side is now at
least 320 px rather than exactly 320 px, so it widens and the reason
truncates before it. Normal values keep the 320 px right side aligned
with the rail.
ECharts draws no reference line outside the y axis range, and the axis
covered only the runs. A failing run far from its expectation, such as
110 rows against an expected 10,000, therefore lost the expectation
line and its label. The y axis extent now takes in the expectation
before it is padded.
@ShaileshParmar11 ShaileshParmar11 changed the title fix(dq): show the last-run banner's result against the test's expectation fix(dq): test case details page fixes from post-merge validation Oct 5, 2026
The allowed-range band took the first two parameters as min and max,
only when a test had exactly two, and parsed them with parseInt:

- decimal bounds were truncated, so 0.5-1.5 drew a 0-1 band with every
  passing run above it;
- a third parameter, such as a range's threshold, removed the band;
- two parameters that are not a range, such as an expected value and a
  threshold, drew a band between them (5 to 10,000).

The band now reads min and max through getParameterBounds, by name and
as numbers, like the expectation line and the caption. The bounds
helpers move above prepareChartData, unchanged.
An aborted or queued run has no value. The chart placed one for it (the
lowest plotted value, or the expectation line) on the series itself, so
the line ran through it: an aborted run read as a measured drop, and a
queued run pulled the line to the expectation. The TCD-7 acceptance
criteria and the mock keep both off the line.

Placed values now go under a key of their own, drawn as a dot-only
series after the lines, so no line's colour shifts, and named like its
line, so the legend lists it once. The line connects across the gaps
and joins measured runs only. The screen-reader run list still lists
placed runs, and keyboard and click selection still reach them.
The result history fetch wrote whatever response arrived, so a slow
response for an earlier range overwrote a newer one. Picking Today,
then Last month while Today was still loading, left the picker on
Sep 1 - Sep 30 while the chart, tiles and run card showed Today's runs.

The effect now marks its fetch stale when a newer range, dimension or
run replaces it, and a stale fetch sets no results, shows no error and
leaves the loaders to the fetch that replaced it.
…on card's rows

The version page drew its parameter diff in an older layout: a fixed
200 px column for every name, inside a card about 236 px wide at
1440 px, so the values fell off the card's edge. Where they fitted, a
character diff glued the old and new numbers together ("1000012000").

The diff now comes as the card's own parameter rows, so values wrap like
on the normal page, and each change reads whole, "10000 → 12000", with
the old value struck through and the new one in the success colour. The
assertion SQL keeps its diff block, now below the rows. The styles only
the old layout used are removed.
…ver them

- TestCaseVersionPage.spec.ts selected the old diff's per-parameter test ids
  (`minValue`, `maxValue`). The card rows that replaced it are
  `configuration-parameter-<name>`, so the step could not find them. It now
  selects the rows, and checks each change reads whole (`12 → 20`).
- TestCaseResultTab: the version page builds its rows from the version diff.
- getParameterValueDiffRows: an added parameter shows only its new value, and
  a removed one only its old value, struck through.
- TestSummary: fetchTestResults' options are required, since its one caller
  always passes both, and its imports are formatted.
… load

- getSummary: deleted or restored; the added, updated and deleted field
  names; a bulk import's result, as a JSON string or an object, falling back
  to the field name when it cannot be read.
- getOwnerVersionLabel: an added owner on the version page, the current owners
  elsewhere, and the placeholder only for a user who cannot add an owner.
- TestCaseLastRunBanner: no comparison until the test case loads.

EntityVersionUtils.tsx goes from 53% to 93% line coverage.
@ShaileshParmar11 ShaileshParmar11 changed the title fix(dq): test case details page fixes from post-merge validation Fixes #34679: test case details page fixes from post-merge validation Oct 5, 2026
@ShaileshParmar11
ShaileshParmar11 marked this pull request as ready for review October 5, 2026 14:45
Copilot AI balanced review requested due to automatic review settings October 5, 2026 14:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 839 → 836
- 0 added, 3 removed, 0 changed spec-list

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/DiffView/DiffView.tsx
  openmetadata-ui/src/main/resources/ui/src/pages/TasksPage/shared/TagsDiffView.tsx
  openmetadata-ui/src/main/resources/ui/src/utils/EntityDiffUtils.tsx

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

Copilot AI balanced review requested due to automatic review settings October 5, 2026 14:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 5 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 5 warning(s) across 2 changed file(s).

Count Rule
5 openmetadata-imports/no-lower-layer-page-imports
All findings
Location Rule Message
🟡 src/components/DataQuality/IncidentManager/TestCaseResultTab/TestCaseResultTab.component.tsx:22:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/observability/TestCaseDetail/TestCaseDetail.tsx:33:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/observability/TestCaseDetail/TestCaseDetail.tsx:34:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/observability/TestCaseDetail/TestCaseDetail.tsx:35:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.
🟡 src/components/observability/TestCaseDetail/TestCaseDetail.tsx:40:1 openmetadata-imports/no-lower-layer-page-imports Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 75%
75.6% (115252/152436) 61.39% (71052/115728) 62.7% (23648/37714)

…ne pass

Each filter-then-map chain the earlier fixes added is a single reduce:

- TestSummaryGraph: the dot-only placed series, with each series' placed key
  computed once instead of three times.
- TestSummaryRunList: a run's screen-reader entries.
- applyStatusPlacements: a run's placed keys, built directly instead of
  filtering the missing series and mapping them to keys.
- getParameterValueDiffRows: the version page's parameter rows.
@gitar-bot

gitar-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Updates test-result banners, chart rendering, fetch races, and version-page diffs.

Fixes six data quality test case details page issues from post-merge validation: last-run banner now shows result/expected for real runs by reading through run details helpers; result history chart's expectation line stays visible when all runs are far from it; allowed-range band reads bounds by name and handles decimal values and extra parameters; aborted and queued runs no longer pull the trend line; stale responses for replaced ranges don't overwrite newer results; and version page parameter changes now fit the card and read as whole values. All tests pass with comprehensive coverage of the fixed scenarios.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

Copilot AI balanced review requested due to automatic review settings October 5, 2026 15:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 6627dbe86659cdd8de4add7b80fb2bd67fcab45f in Playwright run 37330242411, attempt 1.

✅ 3427 passed · ❌ 0 failed · 🟡 2 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

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) 57m 1s

⏱️ Max setup 4m 44s · max shard execution 21m 2s · max shard-job elapsed before upload 24m 40s · reporting 12s

🌐 213.43 requests/attempt · 2.02 app boots/UI scenario · 43.03% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 43.03% (convergence target: at most 15%).
  • Browser traffic was 213.43 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.02 per UI scenario (7330 boots / 3631 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 65 0 0 0 0 0
✅ Shard advanced-search-02 65 0 0 0 0 0
✅ Shard chromium-01 150 0 0 0 0 0
✅ Shard chromium-02 171 0 0 0 0 0
✅ Shard chromium-03 164 0 0 0 0 0
✅ Shard chromium-04 184 0 0 0 0 0
✅ Shard chromium-05 211 0 0 0 0 0
✅ Shard chromium-06 201 0 0 0 0 0
✅ Shard chromium-07 170 0 0 0 0 0
✅ Shard chromium-08 178 0 0 0 0 0
🟡 Shard chromium-09 175 0 2 1 0 0
✅ Shard chromium-10 177 0 0 0 0 0
✅ Shard chromium-11 188 0 0 0 0 0
✅ Shard chromium-12 170 0 0 0 0 0
✅ Shard chromium-13 165 0 0 0 0 0
✅ Shard chromium-14 199 0 0 0 0 0
✅ Shard chromium-15 200 0 0 0 0 0
✅ Shard chromium-16 166 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard global-state-01 68 0 0 0 0 0
✅ Shard import-export-01 108 0 0 0 0 0
✅ Shard import-export-02 44 0 0 0 0 0
✅ Shard ingestion-01 26 0 0 0 0 0
✅ Shard ingestion-02 41 0 0 0 0 0
✅ Shard ingestion-03 26 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-rbac-01 9 0 0 0 0 0
🟡 2 flaky test(s) (passed on retry)
  • Features/Glossary/LargeGlossaryPerformance.spec.ts › should handle large number of glossary terms with pagination (shard chromium-09, 1 retry)
  • Pages/Users.spec.ts › Admin soft & hard delete and restore user (shard chromium-09, 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

This branch was previously deployed

1 inactive deployment
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test case details page shows wrong data in the last-run banner, result history chart and version page

3 participants