Repository navigation
Fixes 37678: Hierarchical lineage fixes from 2.1 release testing - #37685
Conversation
Scene API: - Service Level View keeps a service whose tables only send lineage, and its edge - A pipeline or stored procedure focus is part of its own scene; pipeline tasks are fields - A query_filter that fails to parse, or that the search engine rejects on a root scene, returns 400 instead of 500 - Domain and data product roots leave out assets with no domain or data product - A combined edge's weight is the number of asset edges it stands for, and it carries no single edge's SQL or source - Domain and data product cards carry no service type Lineage map: - Picking a domain or data product in search opens its own lens - Zooming out at the minimum zoom (button, or wheel over the canvas) goes up a level; ADR 2026-10-27 semantic zoom amended (v3) - A focus taller than the canvas lands below the breadcrumb - Edge drawer lists column mappings and a combined edge's count - Hovering a node highlights only its upstream and downstream path - Empty scenes show "No lineage data available" and still open the introduction - A failed load after a scene is shown offers a reload; "not found" only on 404 - A Lineage-tab quick filter no longer reaches the map's requests - Keyboard focus ring, visual tab order, and all cards focusable up to 200 - Onboarding footer no longer clipped in longer locales - AI mode lineage settings show an error with reload when they fail to load - Leaving a lineage view resets depth to the saved settings - Copy and i18n fixes: count pill, header search name, export file name, settings buttons, singular child counts, translated Base badge and search placeholder
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
Local Java test run: PASSED — details
Tests run locally
Broader coverage not executed by this focused run
Impacted, not run locally (2)
Commandsmvn -B package -pl openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=LineageSceneLoaderTest,LineageSceneQueryTest,LineageSceneResolverTest -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=parallel -Dit.test=LineageResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false |
… platform - A domain or data product page opens on its own lens at the Layer band, with the entity as the base card among its peers, as in 2.0, for search picks and deep links alike; the root breadcrumb still leaves it - A lone service, domain or data product card is not an empty scene - The platform search no longer keeps a chip that hid its input; its placeholder names the focus, and a clear button returns to the whole platform in the current lens - Fitting a scene honours its 100% zoom cap; React Flow fitBounds ignored it, so a lone card opened at 250%
… card - At the Service, Domain or Data Product level the search looks for services, domains or data products, and its placeholder says so; deeper levels keep the data asset search - A base service, domain or data product card squares its top-left corner under the Base tab, as asset cards do
…e-2.1-release-bugs
…h impact map - ADR 2026-11-13 lineage scene edges weigh the asset edges they stand for: edge weight and combined-edge fields, domain/data product roots, query_filter 400 scope, and the 200-node virtualisation threshold - ADR 2026-11-13 Lineage page opens containers as their own card: domain and data product landing, Layer-level search scope, and clearing the search - Regenerate the Playwright impact map
…g the app store reset() read useApplicationStore.getState(), which broke every test that mocks the app store as a plain hook (PipelineDetails lineage tab). The lineage store now keeps the saved depths itself, set where the Lineage settings are applied, and reset() restores them.
…e-2.1-release-bugs
…et search at the Service level - Switching lens keeps an asset in focus but not a service, domain or data product, which exist only in their own lens; the new lens opens at its root instead of focusing on a container it cannot show - Only the Domain and Data Product levels narrow the search to what they list; the Service level searches data assets again, so a table can still be found from the Lineage page
| isColumnLineage: boolean, | ||
| t: TFunction | ||
| ): OverviewDataItem | undefined => { | ||
| const mappings = (columns ?? []) |
There was a problem hiding this comment.
can we use reduce here instead of filter and map
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findingsReworking lineage hydration, filtering, and edge aggregation could omit or misrepresent dependencies shown in API scenes and the map. Hierarchical lineage map fixes across the scene API, lineage map UI, and search/zoom behaviour, including domain and data product landing cards and a 400 response for rejected ✅ 2 closed✅ Quality: Scene contract rules changed with no decision record
✅ Quality: New LESS rule adds an --om-* radius reference, against an Accepted ADR
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🤖 Backport to |
|
🤖 Not backported to
|
) (#37779) * Fixes #37678: Hierarchical lineage fixes from 2.1 release testing Scene API: - Service Level View keeps a service whose tables only send lineage, and its edge - A pipeline or stored procedure focus is part of its own scene; pipeline tasks are fields - A query_filter that fails to parse, or that the search engine rejects on a root scene, returns 400 instead of 500 - Domain and data product roots leave out assets with no domain or data product - A combined edge's weight is the number of asset edges it stands for, and it carries no single edge's SQL or source - Domain and data product cards carry no service type Lineage map: - Picking a domain or data product in search opens its own lens - Zooming out at the minimum zoom (button, or wheel over the canvas) goes up a level; ADR 2026-10-27 semantic zoom amended (v3) - A focus taller than the canvas lands below the breadcrumb - Edge drawer lists column mappings and a combined edge's count - Hovering a node highlights only its upstream and downstream path - Empty scenes show "No lineage data available" and still open the introduction - A failed load after a scene is shown offers a reload; "not found" only on 404 - A Lineage-tab quick filter no longer reaches the map's requests - Keyboard focus ring, visual tab order, and all cards focusable up to 200 - Onboarding footer no longer clipped in longer locales - AI mode lineage settings show an error with reload when they fail to load - Leaving a lineage view resets depth to the saved settings - Copy and i18n fixes: count pill, header search name, export file name, settings buttons, singular child counts, translated Base badge and search placeholder * Lineage: open a domain as its own card; clearing the search shows the platform - A domain or data product page opens on its own lens at the Layer band, with the entity as the base card among its peers, as in 2.0, for search picks and deep links alike; the root breadcrumb still leaves it - A lone service, domain or data product card is not an empty scene - The platform search no longer keeps a chip that hid its input; its placeholder names the focus, and a clear button returns to the whole platform in the current lens - Fitting a scene honours its 100% zoom cap; React Flow fitBounds ignored it, so a lone card opened at 250% * Lineage: search what the Layer level lists; square the base container card - At the Service, Domain or Data Product level the search looks for services, domains or data products, and its placeholder says so; deeper levels keep the data asset search - A base service, domain or data product card squares its top-left corner under the Base tab, as asset cards do * Lineage: record the scene contract and Lineage page decisions; refresh impact map - ADR 2026-11-13 lineage scene edges weigh the asset edges they stand for: edge weight and combined-edge fields, domain/data product roots, query_filter 400 scope, and the 200-node virtualisation threshold - ADR 2026-11-13 Lineage page opens containers as their own card: domain and data product landing, Layer-level search scope, and clearing the search - Regenerate the Playwright impact map * Lineage: square the base container card without a legacy radius token * Lineage: keep the saved depths in the lineage store instead of reading the app store reset() read useApplicationStore.getState(), which broke every test that mocks the app store as a plain hook (PipelineDetails lineage tab). The lineage store now keeps the saved depths itself, set where the Lineage settings are applied, and reset() restores them. * Lineage: switching lens from a container opens the new lens root; asset search at the Service level - Switching lens keeps an asset in focus but not a service, domain or data product, which exist only in their own lens; the new lens opens at its root instead of focusing on a container it cannot show - Only the Domain and Data Product levels narrow the search to what they list; the Service level searches data assets again, so a table can still be found from the Lineage page * Lineage: build edge column mappings with reduce; fix import order
Describe your changes:
Fixes #37678
Fixes the remaining hierarchical lineage map issues found in 2.1 release testing (part of #32042). One PR so they can be verified and backported together.
Scene API (
GET /v1/lineage/scene)tasksare FIELD-band fields.query_filterthat fails to parse returns 400Invalid query_filterinstead of 500; on a root scene, so does one the search engine rejects. A focused scene applies node filters in memory through the shared lineage builder (also used by the asset Lineage tab), which ignores clauses it does not support. Changing that is out of scope here.Lineage map (UI)
/lineage/domain/<fqn>. The root breadcrumb still leaves it, and a lone service, domain or data product card is not treated as empty.fitBoundsignored it, so a lone card opened at 250%).Not in this PR: Field level showing every column (separate), Pipeline View Mode on the map (on hold), service logo contrast in dark mode (owned elsewhere).
Type of change:
High-level design:
No new architecture; each fix stays in the layer that owns the behaviour.
LineageSceneLoader(root participant query),LineageSceneGraph(focus node for asset-kind focuses, lens card service type),LineageSceneHierarchy(root layer ref),LineageSceneEdges(rollup weight fromassetEdges),LineageSceneMapper(tasksas fields; lens refs carry no service type),LineageSceneQuery+LineageSceneResolver(400 on a rejected filter: the cause chain is checked for an Elasticsearch / OpenSearch 400). No schema, migration or API-shape change.LineageMap.component.tsx(min-zoom gesture, empty/error view extracted toLineageMapEmptyView, stale-filter guard, virtualisation threshold, visual tab order), pure helpers inLineageMap.utils.ts(landing clamp, directional path index,isSceneEmpty,getSceneCountLabel),PlatformLineage.tsx,EdgeInfoDrawer,LineageSettings,useLineageStore. Two new i18n keys, translated in all locales.query_filter400 scope, 200-node virtualisation threshold) and ADR:2026-11-13-lineage-page-opens-containers-as-their-own-card (container landing, level-scoped search, clearing).Tests:
Use cases covered
query_filter→ 400.Unit tests
LineageSceneResolverTest(+4: rollup weight, domain root, pipeline focus, pipeline tasks as fields),LineageSceneQueryTest(+1 case and +1 test: engine-rejected filters).mvn -pl openmetadata-service test -Dtest='LineageScene*Test'→ 74 passed.LineageMap.utils.test.ts,EdgeInfoDrawer.test.tsx,LineageSettings.test.tsx(new),useLineageStore.test.ts,PlatformLineage.test.tsx(domain lens; 404 / 403 / other failures),LineageNodeLabelV1.test.tsx,EntityLineageUtils.test.tsx. Lineage area: 41 suites, 595 tests passed; finalLineageMap+PlatformLineagerun 139/139.Backend integration tests
LineageResourceIT: the Service Level View test now also covers a service reached only as an upstream end, asserting its own edge. Two newquery_filtercases: one the search engine rejects (root scene), and a malformed filter on a focused scene. Both filter ITs ran locally: 5/5.Local Java test run: PASSED
3ef3211bb9fb(baseorigin/main)--scope full).Impacted, not run locally: 2 classes (listed in the details)
Run on
3ef3211bb9f; the branch was then squashed to1a7459df9b3with an identical tree (git diffempty).Earlier, the full impacted set (
--scope full, 24 IT classes) ran on the pre-review code: 1335 tests, 0 failures,LineageResourceIT34/34 with the extended Service Level View test.Ingestion integration tests
Playwright (UI) tests
PlatformLineage.spec.ts: zoom-out at the minimum zoom with the button and with the wheel, on a scene too wide to leave any other way (both fail with the gesture disabled; checked against a build with it switched off); a failed load after a scene; onboarding on an empty scene; a Lineage-tab quick filter not reaching the map. The existing zoom-in test now focuses a table with one upstream edge.LineageRightPanel.spec.ts: its table gets an upstream edge from its own service.Pages/Lineage/*,Flow/LineageSettings,Features/DomainIsolation/DomainLineageIsolation,Features/LineagePipelineAnnotator,Features/ImpactAnalysis→ 211/212. The one failure (onboarding not shown on an empty scene) was fixed in this PR.PlatformLineage.spec.ts+LineageRightPanel.spec.ts→ 24/24.PlatformLineage.spec.ts+LineageRightPanel.spec.ts(with the new domain-and-clear test) → 25/25.yarn lint:playwrightclean.Manual testing performed
/lineage: Service Level View, drilled service → table → field, and zoomed back out at the minimum zoom with the wheel and with the button.UI screen recording:
Captured from this PR's UI build (
1a7459df9b3, served locally with/apiproxied to a local server running the 2.1 lineage backend), signed in with sample data. Two shots use a simulated scene or server error, and each says so.Zoom out at the minimum zoom goes up a level. A simulated service with 150 databases opens at 10%; zooming out there returns to All Services (real data).
lineage-zoom-out-at-minimum-zoom.mp4
At the Domain level the search looks for domains; picking one opens it as its own card (as in 2.0), and clear (×) returns to all domains (
TestDomain, real data; recorded on75aad7e787d).lineage-domain-search-opens-domain-card.mp4
dim_customer → fact_orders)raw_order;raw_customer's edges stay dimmed)Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Two fresh-context passes against
REVIEW.md. The final pass reviewed45d29823040, and its findings were fixed in3ef3211bb9f(squashed into1a7459df9b3). Fixed: an IT edge count that concurrent tests could change; the ADR amendment; scoping the min-zoom wheel to the canvas renderer; 404 / 403 / reload states; tests for the endpoint 400, pipeline tasks, a failed load after a scene, onboarding on an empty scene, and the Lineage-tab quick filter; zoom-out tests that fail without the fix (the stale-filter check was also reworked, because the first version never fired).Answered: engine-rejected
query_filteron a focused scene still returns 200. The shared lineage builder applies node filters in memory and ignores clauses it does not support, and changing that builder is out of scope here.Untested by choice: the
CustomNodeV1drill-button blur and theLineageConfigPagebutton layout (presentational).Known, pre-existing and unrelated: the
token-driftpre-commit hook reportstokens.cssstale onmain(an--om-z-1000token); this PR doesn't touch tokens.🤖 Generated with Claude Code