Repository navigation
Fixes #30362: Allow custom dimension for test cases - #32071
Conversation
Test cases could only be categorized through the dimension of their test definition, which is a closed enum — so dimensions outside the ones shipped with OpenMetadata (Timeliness, Traceability, Availability... as used for BCBS 239) could not be expressed, and every test case built from the same definition was stuck with the same dimension. A test case now carries its own `dataQualityDimension`, a free-form string: - it defaults to the dimension of its test definition when not provided (cleared values reset to that default); - any custom dimension can be set on creation or later through a patch; - the search index prefers the test case dimension and falls back to the test definition one, so existing test cases and the dimension filters and dashboard aggregations keep working unchanged. In the test case form, the dimension is a creatable combobox prefilled from the selected test type, listing the built-in dimensions as suggestions while letting users type in their own.
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
✅ Playwright Results — workflow succeededValidated commit ✅ 4501 passed · ❌ 0 failed · 🟡 8 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) 1h 8m 25s ⏱️ Max setup 4m 30s · max shard execution 22m 50s · max shard-job elapsed before upload 25m 56s · reporting 20s 🌐 220.97 requests/attempt · 2.23 app boots/UI scenario · 44.45% common-shard skew Optimization targets still in progress:
🟡 8 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 |
The 2.1.0 backfill that gives pre-existing test cases the dimension of their test definition never inserted anything. It joined against data_quality_dimension from postDataMigrationSQLScript.sql, but the dimension entities are seeded from JSON resources during server startup, while the SQL migrations run to completion in a separate step before the server boots. The join matched an empty table, and because migration statements are checksummed as applied it never got a second chance -- every upgraded deployment was left with no dimension on any pre-upgrade test case, permanently. Observed on a real upgrade: migrations finished at 21:58:36, the dimensions were seeded at 21:58:44, and all three pre-existing test cases came out with no dimension -- reported as none by the API, bucketed under "No Dimension" on the dashboards, and immovable by reclassification since repointInheritedVia only updates rows that already exist. Moved to DataQualityDimensionMigration in migration/utils/v210, which seeds the system dimensions from the same JSON resources the server uses before running the backfill, so both sides of the join exist. The startup seeding then finds them by name and skips. Same anti-join as before, so it stays idempotent and leaves an explicitly-chosen dimension alone. Covered by DataQualityDimensionMigrationIT, which removes the dimension entity as well as the relationship to reproduce the pre-upgrade shape -- deleting only the relationship passes with or without the fix and would not have caught this. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01JWyP9RA8MNYr9nFd73x1mA
Both sides append to the 2.1.0 postDataMigration scripts; kept both the dimension-backfill note and upstream's failure-threshold parameter backfill. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01UEC11Bo5CyMjfD9saWA7tn
ShaileshParmar11
left a comment
There was a problem hiding this comment.
Reviewed the UI half of this PR against .claude/rules/ (i18n, styling, a11y, component-library, react) and the merge base, so everything flagged is new code in this PR rather than pre-existing practice.
The design holds up. The settings page really is on the go-forward stack — no antd imports, no any, no hex in JSX, real react-hook-form + Controller, admin-gated route (AdminProtectedRoute + isProtected: isAdminUser), i18n keys throughout. resolvePatchedDimension extends the resolvePatched* pattern already in DataQualityPureUtils rather than inventing a parallel one, and the "untouched inherited prefill" handling is subtle and correct.
One thing I'd call blocking: the 15 new locale keys are English in all 19 non-English files. Everything else below is a should-fix or a nit.
Worth knowing what CI isn't catching here, since it's green: token-audit is not a ui-checkstyle step; tw-deprecation-guard reports new .less files without failing (only new antd imports block — so the PR description's "the guard fails the build on Less" isn't quite right); and check-i18n-all verifies key sync, never translation.
One open question, not a defect: once a test case has an explicit dimension there's no way back to inheriting. Re-picking the definition's current default writes a fresh non-inherited row, and clearing the field emits a remove that the backend reads as no dimension — while the field's own help text says it "defaults to the dimension of the test type". Intended for this iteration, or worth a "reset to inherited" affordance?
ShaileshParmar11
left a comment
There was a problem hiding this comment.
Follow-up on the dimension options fetch — one more inline comment.
ShaileshParmar11
left a comment
There was a problem hiding this comment.
Second pass, this time purely on simplification and reuse — no rules, no bugs. One finding with real leverage and a handful of small ones.
The dimension picker is built four times
getDataQualityDimensions({ limit: 1000 }) appears in four files, and three of them wrap it in near-identical useState + useEffect + .then/.catch + option-shaping:
| File | Option shape | Error degrades to |
|---|---|---|
TestCaseFormBody.tsx:696 |
Map<string, FormSelectItem> |
[] |
TestDefinitionFormBody.tsx:107 |
Map<string, FormSelectItem> |
[] |
useTestCaseFilterOptions.tsx:80 |
{ label, name, value } |
TEST_CASE_DIMENSIONS_OPTION |
DataQualitySettingsPage.tsx:111 |
raw entities | {} |
The two form builders are the same ~15 lines twice. A single useDataQualityDimensions() hook collapses all four, and takes these with it rather than needing four separate fixes:
- the magic
1000in four places —AGGREGATE_PAGE_SIZE_LARGEalready exists inconstants/constants.ts:61 - no loading state in either form picker, while the table
ASYNC_SELECTnext door passesisLoading - a refetch on every form mount with no cache, where
fetchTablesin the same file keeps a bounded LRU - three different degradations for one failure mode
- one place to move to
ASYNC_SELECT+ server-side search later, instead of three
That last point also closes the separate FieldTypes.SELECT thread — SELECT never refreshes its collection when options land late, which is exactly what a mount-time fetch produces.
Also worth a look
Inline threads cover: the filter().map() / no-op String() / double getEntityName() / mismatched catch shape in fetchDimensionOptions; displayName ?? name hand-rolled in both form bodies where getEntityName() is used elsewhere (and behaves differently on an empty displayName); and three small ones grouped onto the settings page.
Not flagged — these got simpler, and I checked
TestDefinitionTable.component.tsx reordering the tooltip if/else to check permission first removes a redundant branch. TestCaseResultTab.utils.ts swapping a four-term || chain for [...].some(Boolean) is the right direction. transformTestDefinitionFormData's patch.filter(op => op.path === DIMENSION_PATH) exact-match is correct now that dataQualityDimension is a flat string.
- share the dimension fetch/picker via useDataQualityDimensions() and getDimensionSelectOptions(), labelling with getEntityName() - make the test case dimension field an AUTOCOMPLETE with a loading state - report an unknown reference count as unknown, not as zero, when deleting - model the settings drawer as a discriminated union and seed the form once - reuse the shared DeleteModal so Esc/backdrop/Cancel lock while deleting - make the colour palette a radiogroup with readable names and key nav - token-ise the settings page styles and draw the swatch ring with outline - import ProviderType from the test definition schema - close the JDBI handle in DataQualityDimensionMigrationIT - cover create/patch/delete/validation/impact counts with unit tests and assert a read-only field in the system test definition Playwright specs - translate the new locale keys in all 19 non-English catalogs
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
|
| Count | Rule |
|---|---|
| 71 | no-restricted-imports |
| 14 | openmetadata-imports/no-lower-layer-page-imports |
| 11 | openmetadata-imports/no-circular-imports |
| 6 | openmetadata-imports/no-impure-pure-utils |
| 5 | react-hooks/exhaustive-deps |
| 3 | openmetadata-imports/no-internal-barrel-imports |
| 1 | openmetadata-imports/review-sequential-api-calls |
| 1 | openmetadata-imports/no-rest-ui-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/TestCaseFormBody.test.tsx:28: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/DataQuality/AddDataQualityTest/components/TestCaseFormBody.tsx:59: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/DataQuality/AddDataQualityTest/components/TestCaseFormDrawer.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. |
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/TestCaseFormDrawer.tsx:233:9 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
| 🟡 | src/components/DataQuality/AddDataQualityTest/components/transformTestCaseFormData.ts:32: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/DataQuality/ChartWidgets/StatusByDimensionCardWidget/StatusByDimensionCardWidget.component.tsx:19: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/DataQuality/ChartWidgets/StatusByDimensionCardWidget/StatusByDimensionCardWidget.component.tsx:20:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataQuality/ChartWidgets/StatusByDimensionCardWidget/StatusByDimensionCardWidget.component.tsx:24:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataQuality/ChartWidgets/StatusByDimensionCardWidget/StatusByDimensionCardWidget.component.tsx:30:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataQuality/ChartWidgets/StatusByDimensionCardWidget/StatusByDimensionCardWidget.test.tsx:16: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/DataQuality/IncidentManager/TestCaseResultTab/TestCaseResultTab.component.tsx:21: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/DataQuality/TestCases/TestCases.component.tsx:27: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/DataQuality/TestCases/TestCases.component.tsx:28: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/DataQuality/TestCases/TestCases.component.tsx:40:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseFilterOptions.tsx:247:34 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseFilterOptions.tsx:251:35 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseFilterOptions.tsx:255:39 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseFilterOptions.tsx:259:43 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseFilters.ts:224:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'getInitialOptions', 'handleSearchParam', and 'onSearchByKey'. Either include them or remove the dependency array. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseListPage.tsx:20:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataQuality/TestCases/useTestCaseListPage.tsx:20: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/DataQuality/TestCases/useTestCaseListPage.tsx:21: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/DataQuality/TestCases/useTestCaseListPage.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/constants/DataQuality.constants.ts:13:1 |
no-restricted-imports |
'../assets/svg/ic-aborted.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstra |
| 🟡 | src/constants/DataQuality.constants.ts:14:1 |
no-restricted-imports |
'../assets/svg/ic-fail.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstracti |
| 🟡 | src/constants/DataQuality.constants.ts:15:1 |
no-restricted-imports |
'../assets/svg/ic-successful.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abs |
| 🟡 | src/constants/profiler.constant.ts:16:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/pages/DataQualitySettingsPage/DataQualitySettingsPage.tsx:26:1 |
openmetadata-imports/no-internal-barrel-imports |
Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph. |
| 🟡 | src/rest/dataQualityDimensionAPI.ts:19:1 |
openmetadata-imports/no-internal-barrel-imports |
Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph. |
| 🟡 | src/rest/testAPI.ts:47:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/rest/testAPI.ts:47: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/rest/testAPI.ts:47:1 |
openmetadata-imports/no-rest-ui-imports |
REST clients must not import UI or state-layer modules. Move shared request/response types to the interface layer. |
| 🟡 | src/rest/testAPI.ts:49:1 |
openmetadata-imports/no-internal-barrel-imports |
Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:27:1 |
no-restricted-imports |
'../../assets/svg/ic-accuracy.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated ab |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:28:1 |
no-restricted-imports |
'../../assets/svg/ic-completeness.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designate |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:29:1 |
no-restricted-imports |
'../../assets/svg/ic-consistency.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:30:1 |
no-restricted-imports |
'../../assets/svg/ic-integrity.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated a |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:31:1 |
no-restricted-imports |
'../../assets/svg/ic-sql.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated abstrac |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:32:1 |
no-restricted-imports |
'../../assets/svg/ic-uniqueness.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:33:1 |
no-restricted-imports |
'../../assets/svg/ic-validity.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designated ab |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:34:1 |
no-restricted-imports |
'../../assets/svg/no-dimension-icon.svg' import is restricted from being used by a pattern. Do not import SVG icons directly from assets/ paths; use the designa |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:35:1 |
openmetadata-imports/no-impure-pure-utils |
Pure utilities must not depend on React, UI, state, hooks, pages, or REST clients. Move orchestration/rendering out or move shared types to a lower layer. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:36:1 |
openmetadata-imports/no-impure-pure-utils |
Pure utilities must not depend on React, UI, state, hooks, pages, or REST clients. Move orchestration/rendering out or move shared types to a lower layer. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:37:1 |
openmetadata-imports/no-impure-pure-utils |
Pure utilities must not depend on React, UI, state, hooks, pages, or REST clients. Move orchestration/rendering out or move shared types to a lower layer. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:38:1 |
openmetadata-imports/no-impure-pure-utils |
Pure utilities must not depend on React, UI, state, hooks, pages, or REST clients. Move orchestration/rendering out or move shared types to a lower layer. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:40:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:57:1 |
openmetadata-imports/no-impure-pure-utils |
Pure utilities must not depend on React, UI, state, hooks, pages, or REST clients. Move orchestration/rendering out or move shared types to a lower layer. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:57: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/utils/DataQuality/DataQualityPureUtils.ts:61:1 |
openmetadata-imports/no-impure-pure-utils |
Pure utilities must not depend on React, UI, state, hooks, pages, or REST clients. Move orchestration/rendering out or move shared types to a lower layer. |
| 🟡 | src/utils/DataQuality/DataQualityPureUtils.ts:66:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
… and 62 more. Run make ui-checkstyle-changed locally for the full list.
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
✅ Generated Sources Auto-UpdatedThe generated TypeScript types ( |
Code Review ✅ Approved 6 closed / 6 findingsEnables custom data quality dimensions as first-class entities while materializing dimension relationships onto test cases to avoid per-read resolution costs. Dimension term filter escaping, deletion blocking unrelated edits, reindex timing, and redundant lookups have all been addressed. ✅ 6 closed✅ Security: Dimension term filter escaping ignores backslashes
✅ Edge Case: Deleted custom dimension blocks unrelated test-definition edits
✅ Bug: Reindex scheduled before update transaction commits
✅ Quality: Redundant dimension lookups before no-op equality check
Closed: Bug: Parameter-only edit pins inherited dimension as override
...and 1 more closed from earlier reviews 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 |
|
|



Describe your changes:
Fixes #30362
A data quality dimension was a fixed enum of eight values baked into the test definition schema. This makes it a first-class entity, so teams can register their own — a BCBS 239, a Timeliness — classify test definitions and individual test cases under them, and have those dimensions drive the Data Quality dashboards and filters like the shipped ones do.
Type of change:
High-level design:
A dimension is an entity. New
dataQualityDimensionentity +/v1/dataQuality/dimensionsresource, with the eight shipped dimensions seeded asprovider: system(immutable, undeletable). Users create their own in Settings → Preferences → Data Quality.A test case stores its dimension as a relationship, not a lookup. This is the central design decision. Dimensions are read far more often than written — every list, every dashboard aggregation, every search document — so the value is materialised onto the test case as a
relatedTorelationship rather than resolved from the test definition on each read. Reads stay one batched query; nothing walks through to the definition.That choice has a consequence: a change to a test definition has to be pushed down, it can't be picked up later. So a relationship written from the test definition carries an
{"inherited": true}marker on theentity_relationship.jsoncolumn, andTestDefinitionRepositoryhandles all three transitions when a definition is reclassified:A → BA → nullnull → BEach is a single join-scoped SQL statement — scoped through the
testDefinition → testCaseedge rather than anIN (…)list — so a definition backing a hundred thousand test cases costs one statement and no heap. A dimension set on the test case itself carries no marker and is never touched, which is what makes a per-test-case override survive its definition being reclassified.Deleting a dimension is repaired the same way, asynchronously (
AsyncService): the test definitions naming it are cleared, and the affected test cases are re-indexed a page at a time.Alternatives rejected. Resolving the dimension at read time (no materialisation) was tried and reverted — it made reads pay per entity and left
TestCaseIndex,useTestCaseResultTaband the settings counts each carrying their own fallback. Counting inherited test cases on the fly instead of materialising them was rejected for the same reason.Migration.
TestDefinition.dataQualityDimensionchanges from theDataQualityDimensionsenum to anentityNamestring — the enum is kept in the schema for backwards compatibility but nothing$refs it, so it is no longer generated. The 2.1.0 post-migration script backfills a relationship for every pre-existing test case from its definition's dimension; it is idempotent and marks every row inherited. Without it the API returns no dimension for legacy test cases and the settings page counts them as zero.Downstream: the generated enum disappearing breaks Collate's
SlackEntityDataResolver.value()call — fixed in openmetadata-collate#6633, which can only go green once this merges.Tests:
Use cases covered
Unit tests
TestCaseRepositoryTest,TestCaseIndexTest,SearchListFilterTest,DataQualityDimensionSqlMigrationParityTest,EntityLinkGrammarTestDataQualitySettingsPage.test.tsx(new — the page had none),useTestCaseFilterOptions.test.tsx,DataQualityUtils.test.ts,TestCaseResultTab.test.tsx,TestDefinitionList.test.tsxDataQuality/TestLibraryUI suitesBackend integration tests
openmetadata-integration-tests/.../DataQualityDimensionPropagationIT.java— 13 tests, the full transition matrix plus the non-happy paths: unknown dimension rejected, system dimensions immutable and undeletable, duplicate names409, deletion isolated to the affected definition, no duplicate relationships across repeated reclassification, and a regression test forPUT /v1/dataQuality/testDefinitionsreturning404.Ingestion integration tests
create_or_updateon a test definition returned404.EntityMapper.copyassigns a fresh UUID before the repository decides create-vs-update, so looking the existing entity up by id alone threw; it now falls back to a name lookup.Playwright (UI) tests
Manual testing performed
Full manual pass by @TeddyCr on both engines:
psqlsessionAlso verified during development, against the running stacks:
5000then0)UPDATE … JOINvsUPDATE … FROM,DELETE … JOINvsDELETE … USING)UI screen recording / screenshots:
Screen.Recording.2026-09-11.at.10.50.45.AM.mov
Screen.Recording.2026-09-11.at.11.01.48.AM.mov
Notes for reviewers
The settings page is built on
@openmetadata/ui-core-components, not Ant Design. It was originally written with antd, whichCLAUDE.mdrules out for new work and which the Antd + Less deprecation guard fails the build on. Nothing needed antd — the two things the page reuses (the sharedTable, the form drawer atom) aren't antd-coupled — so the page, its form and its delete modal were rebuilt on core-components, with the form moving from antd'sFormto react-hook-form.Known limitation, deliberate:
test_case_resultdocuments already indexed keep the dimension they were recorded under. Changing a test case's dimension does not rewrite history.One fix is reasoned, not test-proven. The drawer's
onClosefires twice — once fromcloseDrawer, once when the overlay finishes its exit transition — and the late call was wiping a form the open path had just seeded. The reset is removed, but jsdom doesn't run exit transitions so the added tests pass with and without it; that one wants a browser.