Repository navigation
fix(ui): refresh data-quality visual baseline after #33912 and fix core NativeSelect size type error - #33998
fix(ui): refresh data-quality visual baseline after #33912 and fix core NativeSelect size type error#33998ShaileshParmar11 wants to merge 2 commits into
Conversation
The form-field `size` ('sm' | 'md') is a style variant, but spreading it
onto <select> made it the HTML `size` attribute (a visible row count),
which is typed number. Fixes TS2322 in render-field-element.tsx:418
present on main since #33575.
#33912 moved the Data Quality page tabs from antd to core Tabs (wider tab padding, lighter inactive tabs, filter bar 4px higher) without updating the baseline, so data-quality fails on main and in every UI merge-queue entry. New baseline is the render from a workflow_dispatch run on main (36096474667); identical across attempts and to the #33916 queue render.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ Approved🟡 Medium risk · Native select fields stop receiving style size as an HTML row-count attribute. Refreshes stale OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
✅ SSO Login Nightly — PASSED View workflow run · Commit
Totals: 31 passed · 0 failed · 0 flaky · 0 skipped · duration 3m 44s |
Cherry-pick of the .tsx fix from #33998 (ShaileshParmar11). The main merge into this branch pulled in a TS build regression where the form-field 'size' style variant ('sm'|'md') was being spread onto the native <select>, whose HTML size attribute is number-only. That broke core-components' vite build → broke ui-checkstyle here. #33998 is the same fix at source; landing that will supersede this. Applying it here so #33881 isn't blocked in the interim. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ Playwright Results — workflow succeededValidated commit ✅ 4583 passed · ❌ 0 failed · 🟡 3 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky 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 40s ⏱️ Max setup 4m 11s · max shard execution 23m 44s · max shard-job elapsed before upload 27m 18s · reporting 14s 🌐 128.35 requests/attempt · 2.24 app boots/UI scenario · 48.03% common-shard skew Optimization targets still in progress:
🟡 3 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…en-metadata#33881) * test(playwright): bulk-refresh utils + support helpers from open-metadata#33088 Two-part batch (44 files): 1) 13 pure-add helper files (new capability): - support/fixtures/{taskActivity,taskPermissions}.ts — task fixture helpers - utils/{autopilot,contract,csv,http,ingestion,testSuitePipeline}Execution*.ts — new async-flow helpers plus their unit tests - utils/polling.test.ts, apiResponse.test.ts — RuleTester-style helper tests 2) 31 safe-modified helper files where the harshach branch has fixes but main has not touched the file since the branch's merge-base. Files copied wholesale from harshach; no conflict-resolution ambiguity: - support/access-control/{Policies,Roles}Class.ts - support/bot/BotClass.ts - support/domain/{Domain,DataProduct,SubDomain}.ts - support/entity/*.ts (~20 entity fixture classes) - constant/{common,customProperty,ssoConfiguration}.ts Files where main and harshach both diverged from merge-base are deliberately NOT in this PR — they need per-file conflict resolution and will land in a follow-up. Includes: utils/{common,lineage,glossary,importUtils,entity,tag,…}.ts and the frequently-edited support classes (UserClass, TeamClass, etc.). Cherry-picked from open-metadata#33088. All original content authored by @harshach. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * WIP: apiResponse merge + drop broken fixtures * fix(playwright): restore withNotFoundRetry patch guard + deploy readiness delay Bulk copy from harshach's branch dropped `withNotFoundRetry` around the `.patch()` call in 21 support classes. Main has been wrapping this call since the merge-base — the retry exists because create-then-patch flows observe 404 responses against IDs the server just returned from create. Without it fixture setup fails intermittently. Restored across all 21 classes with the same signature main uses: const response = await withNotFoundRetry(() => apiContext.patch(url, { data, headers }) ); Also: - BundleTestSuiteClass.runIngestionPipeline: restore the 5s deploy readiness delay + bounded trigger retry loop that main had inline; triggerIngestionPipeline is intentionally single-shot (its unit test asserts requests==1 on 4xx) so the retry belongs at the caller. - Consolidate the duplicate `deleteFixtureEntity` import that the wholesale copy had appended at the bottom of each file into the top import. Bot findings on files not in this PR (taskActivity, taskPermissions, customProperty constants) are stale — those files still live on harshach's branch and were never brought over here. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): restore withNotFoundRetry in Domain.ts and SubDomain.ts Two support/domain classes were missed in 58e5e49 — my per-file list only covered support/entity/ and support/bot/. Same regression pattern: wholesale copy from harshach's branch unwrapped the apiContext.patch call and dropped the withNotFoundRetry import, dup-appended deleteFixtureEntity at the bottom of the file. Restored to match main and every other patched support class. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(playwright): seed timing baseline for MetricGovernance + MetricHierarchy The Metrics feature was reapplied on main via open-metadata#32335 without a full-mode merge-queue run seeding the timing baseline. As a result plan-playwright's stale-baseline gate now rejects every PR that touches files impact-mapped to MetricGovernance.spec.ts or MetricHierarchy.spec.ts (chirag-madlani/playwright-utils-and-support-bulk hits this via MetricClass.ts and PoliciesClass.ts, and open-metadata#33830-style flakiness fixes would too). Seeded 17 entries — 5 MetricGovernance + 12 MetricHierarchy — pulled from the passing merge-queue run 35977111550 (pr-33699 gate) with the durations Playwright observed on the Basic project shard. All marked outcome=expected following open-metadata#33863's pattern. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): move deleteFixtureEntity import to top in Domain + Entity Two more support classes had the wholesale-copy's bottom-of-file apiResponse import that my earlier sweep missed — DataProduct.ts and EntityClass.ts. Neither had a pre-existing top-level apiResponse import, so my count-based check (looking for files with >1 import from the same module) didn't catch them. Moved the import to the top in ESLint import-order position, no behavior change. Verified TS parse-clean and prettier-formatted. Addresses reviewer feedback on open-metadata#33881 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * revert(playwright): keep ApiCollectionClass.verifyOwnerPropagation as .isVisible() Wholesale copy tightened `.isVisible()` (no-op read) to `expect(...).toBeVisible()` (15s wait + assert). That surfaced a real timing/product issue where the owner link doesn't render on the endpoint's collection page within 15s, breaking ApiCollection.spec.ts across shards. Reverting to main's behaviour for this PR — the assertion improvement can land in a targeted PR after somebody fixes the underlying propagation lag. Also drop the now-unused expect import. The other failing specs (AIMode/*, SSOConfiguration, DataProductAndSubdomains) are NOT in this PR — pre-existing flakes on main. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): tolerate 401 in deleteFixtureEntity cleanup CI surfaced HTTP 401 "Token not present" on afterAll teardown across 4 shards. The JWT expires mid-test on long specs; on main the bare apiContext.delete silently swallowed the response, so cleanup "passed" even though the fixture leaked. My stricter deleteFixtureEntity turned those silent leaks into hard test failures. Match main's tolerance for the auth-expiry case (401) while keeping 403 hard-fail — a valid token with insufficient perms is a real test setup bug, not a token lifetime issue. Also extends the unit test loop to cover 401. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): actually warn when deleteFixtureEntity tolerates 401 Prior commit tolerated 401 with a comment claiming "warning and moving on" but never logged. Add the console.warn the comment promised, so leaked fixtures show up in test output instead of hiding in green runs. Addresses open-metadata#33881 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(core): strip size from NativeSelect rest to unblock ui-checkstyle Cherry-pick of the .tsx fix from open-metadata#33998 (ShaileshParmar11). The main merge into this branch pulled in a TS build regression where the form-field 'size' style variant ('sm'|'md') was being spread onto the native <select>, whose HTML size attribute is number-only. That broke core-components' vite build → broke ui-checkstyle here. open-metadata#33998 is the same fix at source; landing that will supersede this. Applying it here so open-metadata#33881 isn't blocked in the interim. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(playwright): drop unused eslint-disable in apiResponse.ts playwright/ ESLint config doesn't enable no-console, so my eslint-disable-next-line was reported as unused (--report-unused-disable-directives) and failed ui-checkstyle. console.warn passes lint on its own. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wholesale copy from harshach's branch included 4 baseline PNG updates: - interactiveStates: delete-modal.png - staticPages: data-quality.png, explore.png, glossary.png Playwright visual regression fails against them (baselines don't match current main render). #33998 (ShaileshParmar) is the right place to refresh visual baselines; taking those snapshots out of this PR so it doesn't block on unrelated baseline drift. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ed, 61 files) (open-metadata#33933) * chore: UI runtime + docs bulk (from open-metadata#33088, safe-modified batch) Bulk pickup of safe-modified UI runtime code, hooks, utils, tests, plus playwright config + docs additions from harshach's branch. All files below are ones main hasn't touched since the merge-base, so the wholesale copies are conflict-free. Scope (61 files): - ui/src/components/** — Reactions/Alerts/AsyncSelectList/etc small fixes - ui/src/hooks/** — canvas edge renderer + grid editor - ui/src/utils/** — Export styles split, Global settings, Router paths - ui/src/pages/** — Glossary + TableConstraints modal - ui/src/rest/searchAPI — earlier corrected - ui-core-components/** — avatar-group + owner/select tests - ui/scripts/** — tw-deprecation-guard, playwright indexeddb patch - ui/playwright.sso.config.ts + helper-tests.config.ts - docs/merge-queue-* (5 new) Excluded (need discussion): .github/**, files depending on excluded helpers. Split from open-metadata#33088. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(glossary): bring GlossaryPureUtils.ts in line with GlossaryPage's usage UI build failed in ui-checkstyle: [MISSING_EXPORT] Error: "getGlossaryCatalogState" is not exported by "src/utils/GlossaryPureUtils.ts" GlossaryPage.component.tsx (in this PR) imports getGlossaryCatalogState and GlossaryPureUtils.test.ts (in this PR) imports findTreeNode / injectMissingInitialOptions / TreeNodeLike — all added on harshach's branch but the underlying utils file itself wasn't in the safe-modified copy set. Wholesale-copy the file from harshach/debug-merge-queue so every consumer imported here has its symbol. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(ui): drop getEncodedFqn from ServiceDetailsPage's searchQuery call rest/searchAPI.ts::rawSearchQuery now wraps its q param in encodeURIComponent, so a caller that pre-encodes via getEncodedFqn double-encodes. A search for 'my pipeline' was going out as 'my%2520pipeline' and returning zero hits. Fix at this call site only — other pre-encoding sites route through domainAPI.searchDomains or miscAPI.searchData, which build the URL literal without their own encodeURIComponent, so their callers still need the pre-encode. Addresses open-metadata#33933 (comment) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * revert(playwright): drop visual regression snapshot updates Wholesale copy from harshach's branch included 4 baseline PNG updates: - interactiveStates: delete-modal.png - staticPages: data-quality.png, explore.png, glossary.png Playwright visual regression fails against them (baselines don't match current main render). open-metadata#33998 (ShaileshParmar) is the right place to refresh visual baselines; taking those snapshots out of this PR so it doesn't block on unrelated baseline drift. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(playwright): auto-refresh impact-map.generated.json * address reviewer feedback: drop CSVs + revert stale wholesale-copy of ServiceDetailsPage - Drop docs/merge-queue-*.csv (3 files, ~510 KB). Point-in-time audit snapshots — stale the moment they land, no tooling keeps them updated, not proper documentation. Shailesh flagged this. - Take main's ServiceDetailsPage.tsx and re-apply the getEncodedFqn strip. The wholesale copy from harshach's branch was reverting main's Box + ui-core-components Tabs migration back to antd Row/Col/Tabs — a real regression that added ~14 ESLint warnings and rolled back design-system work. Now it's just the 4-line getEncodedFqn fix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * style(ui): collapse single-import block in ServiceDetailsPage Prior commit removed `getEncodedFqn` from the import but left the `{ escapeESReservedCharacters }` split across three lines; prettier wants it on one. Auto-fix applied. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * revert(playwright): keep retries: process.env.CI ? 1 : 0 in playwright.sso.config Same reasoning as the earlier revert on the nightly workflows: dropping CI retries needs more testing before removal. Take main's behavior (1 retry on CI, 0 locally); keep the globalSetup addition from harshach. helper-tests.config.ts's retries=0 is fine to keep — it's a new file for unit tests that shouldn't retry. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(ui): drop search-encoding and glossary-empty-state changes; remove dead helpers - rawSearchQuery: encoding the whole q changed every search call's URL (e.g. PW%dataProduct -> PW%25dataProduct) and broke the DQ data-product filter wait; back to main. - GlossaryPage: isCatalogEmpty dropped main's !isLoading guard, so /glossary rendered the empty placeholder while loading; back to main. - Remove getGlossaryCatalogState, findTreeNode, findItemByFqn, filterTreeNodeOptions, injectMissingInitialOptions and useKnowledgePageListing: nothing imports them, and the Glossary helpers added pure-utils boundary lint warnings. Fixes open-metadata#33087 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(ui): restore search-term encoding dropped alongside the searchAPI change TagClassBase, ServiceDetailsPage, TableConstraintsModal and useIncidentFilterOptions stopped encoding the search term because rawSearchQuery was going to encode it instead. That searchAPI change was reverted, so tag search went out unencoded and broke every Tag Add/Update/Remove Playwright flow, and useIncidentFilterOptions.test failed. Back to main. Fixes open-metadata#33087 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(playwright): drop globalSetup reference to a file that does not exist playwright/globalSetup.ts was never ported from the source branch, so the SSO config would fail to load. Back to main's config. Fixes open-metadata#33087 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>



Summary
Two fixes for main.
1.
data-quality.pngbaseline is stale on main. #33912 moved the Data Quality page tabs from antd to coreTabsand didn't update the baseline. Every UI merge-queue entry now failsdata-quality(e.g. 36092350727 for #33916).#33912's own visual runs failed
data-quality(35951718595, 35960003318, 35963944868, 35976530892, 35982793140). Its final merge-queue run (36084714675) died on anapt.postgresql.orgtimeout before taking screenshots, and it was merged anyway.2. Core type error on main since #33575.
render-field-element.tsx:418:Evidence
workflow_dispatchon main, 36096474667: 18 passed, 1 failed (data-quality.png, 20461 px). The diff is only the tab row and filter bar.After: the new baseline is that run's render. It's identical (0 px) across both attempts and to the refactor(ui): migrate glossary, classification and tag details pages to core components #33916 merge-queue render. The visual job runs on this PR.
tsc --noEmit:TS2322 ... Type '"sm" | "md"' is not assignable to type 'number'→ clean. Form-field tests: 3 passed.Merge Danger
Door: two-way
A baseline PNG plus a 4-line prop fix. Revert is one commit.
Blast Radius: tiny
data-qualityonly.SELECT_NATIVEform fields stop receiving a bogussizeattribute. No visual change, since browsers ignore a non-numericsize.🤖 Generated with Claude Code