Skip to content

Fix ODCS SLA edit and GlobalSearch Explore sort Playwright failures - #39194

Open
ShaileshParmar11 wants to merge 2 commits into
mainfrom
claude/test-failure-rca-5ab513
Open

ShaileshParmar11 wants to merge 2 commits into
mainfrom
claude/test-failure-rca-5ab513

Conversation

@ShaileshParmar11

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the ODCSImportExport.spec.ts SLA-edit failure and the GlobalSearch.spec.ts "Explore opens with the query and sort picked in search" failure seen in the Playwright mysql run.

ODCSImportExport: "Edit SLA after import, export and verify" (broken by #38469)

  • Root cause: Fixes 30584: Add minute refresh SLAs #38469 added synchronizeRefreshFields to ContractSLAFormTab. When the refresh interval becomes '', it sets refresh_frequency_unit to null. The spec called .clear() before .fill('48'), so the unit was wiped. The interval then failed validation and Save stayed disabled. The test then timed out in page.waitForResponse: Target page, context or browser has been closed.
  • Fix: drop the .clear(). fill() replaces the value in one edit, so the interval is never empty and the unit stays set.

GlobalSearch: Explore sort (spec flake, added in #38564 and made worse by #38919)

  • Root cause: Explore's search is fuzzy, so pwgstable<uuid> also matched the many pw table <uuid> tables other specs create. Sorted by displayName.keyword ascending, pw table … (space, 0x20) comes before pwgstable…. On a busy shared DB this pushed the test table off page one, so the table-data-card_<fqn> assertion failed.
  • Fix: prefix the display name with a digit (0pwgstable<uuid>). It now sorts before every p… name, so it stays on page one whatever else matches.

Follow-up (not in this PR): the product UX issue is still there. Retyping the SLA interval (select-all + type, or backspace to empty) still clears the unit. A better fix would clear the unit only on blur or submit.

Type of change:

  • Bug fix

High-level design:

N/A: a small, test-only change (2 Playwright specs).

Tests:

Use cases covered

  • Editing the SLA refresh frequency of an imported ODCS contract saves, and the export shows the new value.
  • A table found in AI-mode global search and sorted by name ascending shows up on Explore page one with the same query and sort.

Unit tests

Not applicable: no product code changed.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

Files updated:

  • playwright/e2e/Pages/ODCSImportExport.spec.ts
  • playwright/e2e/Features/AIMode/GlobalSearch.spec.ts

Ran locally, and both specs pass:

  • Setup: UI on the Vite dev server (yarn start, :3000) built from this branch. Backend is a fresh docker/development compose stack (MySQL + Elasticsearch + server on :8585) with an empty DB. PLAYWRIGHT_IS_OSS=true, --retries=0.
  • npx playwright test playwright/e2e/Features/AIMode/GlobalSearch.spec.ts playwright/e2e/Pages/ODCSImportExport.spec.ts --repeat-each=3 --retries=0
    • 9 passed: setup, GlobalSearch ×3, ODCS ×3, teardown, all green with 0 retries.
  • Red check: the unfixed ODCSImportExport.spec.ts (from main) on the same stack gave 1 failed, 3 passed. The failure is the same page.waitForResponse: Target page, context or browser has been closed error as CI, which confirms the root cause and the fix.
  • eslint and prettier --check pass on both files.

Caveat: the local DB had few pw table rows, so a local GlobalSearch pass does not prove the crowded-index case. The fix for that case rests on the sort-order reasoning above. The full mysql Playwright run in the merge queue is the real check.

Manual testing performed

  1. Ran the two specs as above against a fresh backend and the Vite dev UI.
  2. Read ContractSLAFormTab.synchronizeRefreshFields to confirm that an empty interval sets the unit to null, which the red run above reproduces.

UI screen recording:

Not applicable: a test-only change, with no UI behavior changed.

Checklist:

  • I have read CONTRIBUTING.md (the pre-review gate) and the contributor docs.
  • My PR title is Fixes <issue-number>: <short explanation> (test fix, so no issue. Labelled skip-pr-checks.)
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above (test fix, so not applicable).
  • 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, test-only change.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md and found no 🔴 findings. Reviewed SHA: fa0258d42195667585e7dbd04a98f9314cacb795.
  • Decision check: no durable decision; test data and steps only.

🤖 Generated with Claude Code

ODCSImportExport: clearing the refresh interval before filling it lets the
SLA form reset the unit (since #38469), which disables Save. fill() replaces
the value in one edit.

GlobalSearch: Explore's search is fuzzy and matched other 'pw table <uuid>'
tables that sort ahead of 'pwgstable…' by name ascending, pushing the test
table off page one. A leading digit keeps it first.
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner November 28, 2026 06:11
@ShaileshParmar11 ShaileshParmar11 added the skip-pr-checks Bypass PR metadata validation check label Nov 28, 2026
@ShaileshParmar11
ShaileshParmar11 requested review from karthicksharan and a balanced review from Copilot November 28, 2026 06:11
@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.

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 insufficient remaining quota. Try requesting a review at a lower effort level.

Main's map predates ContractSLAFormTab.tsx (#38469) and the destination.ts
DataContracts.spec.ts mapping, so the impact-map drift check fails.
Copilot AI balanced review requested due to automatic review settings November 28, 2026 06:26

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 insufficient remaining quota. Try requesting a review at a lower effort level.

@gitar-bot

gitar-bot Bot commented Nov 28, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The Playwright-only edits change test input and editing steps without changing production code or weakening assertions, limiting impact to test behavior.

Fixes two flaky Playwright specs: drops the .clear() call before .fill('48') in ODCSImportExport.spec.ts so the SLA refresh unit is no longer wiped, and prefixes the GlobalSearch.spec.ts display name with a digit so it stays on Explore page one under a fuzzy sort. 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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-pr-checks Bypass PR metadata validation check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants