Skip to content

Fixes 37678: Hierarchical lineage fixes from 2.1 release testing - #37685

Merged
chirag-madlani merged 10 commits into
mainfrom
chirag-madlani/lineage-2.1-release-bugs
Nov 13, 2026
Merged

chirag-madlani merged 10 commits into
mainfrom
chirag-madlani/lineage-2.1-release-bugs

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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)

  • Service Level View keeps a service whose tables only send lineage, and its edge (the root query no longer drops edges whose upstream end is hydrated later; the resolver still prunes after hydration).
  • A pipeline or stored procedure opened on the map is part of its own scene; pipeline tasks are FIELD-band fields.
  • A query_filter that fails to parse returns 400 Invalid query_filter instead 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.
  • The domain / data product root leaves out assets with no domain / data product (a focused scene still shows them).
  • A combined edge's weight is the number of asset edges it stands for; a combined edge no longer carries one underlying edge's SQL or source.
  • Domain and data product cards no longer take an asset's service type.

Lineage map (UI)

  • A domain or data product opens as its own card among its peers on its own lens, as in 2.0: from the search or a link such as /lineage/domain/<fqn>. The root breadcrumb still leaves it, and a lone service, domain or data product card is not treated as empty.
  • The search follows the level: the Domain and Data Product levels search domains and data products (data products were not searchable before); the Service level and deeper levels search data assets. Switching lens keeps an asset in focus, but switching away from a service, domain or data product opens the new lens's root. A pick no longer leaves a chip that hid the input, the 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's fitBounds ignored it, so a lone card opened at 250%).
  • A base service, domain or data product card squares its corner under the Base tab, so the tab's border meets the card's.
  • Zooming out at the minimum zoom (a wheel step over the map canvas, or the zoom-out button) goes up one level; the semantic-zoom decision record is amended (v3).
  • A focus taller than the canvas lands below the breadcrumb.
  • The edge drawer lists column mappings, and shows the edge count of a combined edge.
  • Hovering a node highlights only its upstream and downstream path.
  • An entity without lineage shows "No lineage data available"; the onboarding dialog still opens there on a first visit.
  • A failed load after a scene is shown replaces it with a reload. For a missing entity the page shows "not found" on a 404, the no-access placeholder on a 403, and a reload otherwise.
  • A quick filter set on an asset's Lineage tab no longer carries into a map request.
  • Keyboard: focused cards show a focus ring, tab order follows the screen, and all cards are focusable up to 200.
  • The onboarding dialog footer is no longer clipped in longer locales.
  • AI mode › Settings › Lineage shows an error with reload, and no Edit, when the settings fail to load.
  • Leaving a lineage view resets depth to the saved settings, so the asset Lineage tab fetches once.
  • Small fixes: count pill wording and visibility, header search name, export file name, Settings › Preferences › Lineage buttons, "1 Field" / "1 Feature", translated "Base" badge and search placeholder.

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:

  • Bug fix

High-level design:

No new architecture; each fix stays in the layer that owns the behaviour.

  • Backend: LineageSceneLoader (root participant query), LineageSceneGraph (focus node for asset-kind focuses, lens card service type), LineageSceneHierarchy (root layer ref), LineageSceneEdges (rollup weight from assetEdges), LineageSceneMapper (tasks as 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.
  • UI: LineageMap.component.tsx (min-zoom gesture, empty/error view extracted to LineageMapEmptyView, stale-filter guard, virtualisation threshold, visual tab order), pure helpers in LineageMap.utils.ts (landing clamp, directional path index, isSceneEmpty, getSceneCountLabel), PlatformLineage.tsx, EdgeInfoDrawer, LineageSettings, useLineageStore. Two new i18n keys, translated in all locales.
  • Decision: ADR:2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling amended to v3 for the min-zoom gesture.
  • Decisions: 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, 200-node virtualisation threshold) and ADR:2026-11-13-lineage-page-opens-containers-as-their-own-card (container landing, level-scoped search, clearing).
  • Rollout: behaviour-only; backport to 2.1 follows.

Tests:

Use cases covered

  • A quick filter set on an asset's Lineage tab doesn't reach the map's requests.
  • Service Level View includes a service reached only as an upstream end, with its edge.
  • Pipeline-focused scene contains the pipeline; pipeline tasks listed at Field level.
  • Bad or engine-rejected query_filter → 400.
  • Domain root without domainless assets; domain cards without a service type; combined edge weight = asset edges.
  • Zoom out at minimum zoom goes to the parent level.
  • Failed scene load after a scene → reload; empty scene → placeholder plus onboarding; missing entity (404) vs failed fetch.
  • Drawer column mappings and edge count; directional hover; landing clamp; settings load error; depth reset.

Unit tests

  • Java: 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.
  • Jest: 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; final LineageMap + PlatformLineage run 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 new query_filter cases: 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

  • Commit: 3ef3211bb9fb (base origin/main)
  • Finished: 2026-11-12 13:07 UTC · 5.5 min
  • Scope: focused; merge readiness is not established. Broader steps deferred: 2 (run --scope full).
Step Scope Classes Tests Failed Skipped Min Result
unit openmetadata-service (3 classes) 3 58 0 0 1.7 passed
integration mysql-elasticsearch · parallel 1 68 0 3 3.8 passed
  • Impacted, not run locally: 2 classes (listed in the details)

  • Run on 3ef3211bb9f; the branch was then squashed to 1a7459df9b3 with an identical tree (git diff empty).

  • Earlier, the full impacted set (--scope full, 24 IT classes) ran on the pre-review code: 1335 tests, 0 failures, LineageResourceIT 34/34 with the extended Service Level View test.

Ingestion integration tests

  • Not applicable (no ingestion changes).

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.
  • Run locally against a production build of this branch, proxied to a 2.1 server:
    • 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.
    • Final code: PlatformLineage.spec.ts + LineageRightPanel.spec.ts → 24/24.
    • After the domain landing and fit-zoom changes: the same lineage suites → 216/216; PlatformLineage.spec.ts + LineageRightPanel.spec.ts (with the new domain-and-clear test) → 25/25.
  • yarn lint:playwright clean.

Manual testing performed

  1. Local server (2.1 lineage code) on :8585, branch UI build served on 127.0.0.1:3011, signed in.
  2. /lineage: Service Level View, drilled service → table → field, and zoomed back out at the minimum zoom with the wheel and with the button.
  3. Searched a domain and a data product, which opened on the domain / data product lens.
  4. Opened a table with no lineage, which showed "No lineage data available" and the onboarding dialog on a fresh session.
  5. Clicked a table → table edge, and the drawer listed its column mappings; a combined service edge showed its edge count.
  6. Switched to Japanese, where the onboarding footer and Explore button are fully visible and the "Base" badge is translated.

UI screen recording:

Captured from this PR's UI build (1a7459df9b3, served locally with /api proxied 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 on 75aad7e787d).

lineage-domain-search-opens-domain-card.mp4
Edge drawer lists column mappings (dim_customer → fact_orders) Hover highlights only the card's own path (raw_order; raw_customer's edges stay dimmed)
Edge drawer with column mappings Hover path highlight
Entity without lineage, first visit: the introduction opens …then "No lineage data available"
Onboarding on an empty scene Empty scene placeholder
Japanese: onboarding footer and Explore button fully visible Japanese: the Base badge is translated (ベース)
Onboarding in Japanese Base badge in Japanese
Keyboard focus ring on a card Failed load after a scene is shown offers Reload (simulated server error)
Keyboard focus ring Reload after a failed load

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: not applicable (no schema change).
  • For a UI feature or feature task: not applicable (bug fixes); screenshots and two short clips of the changed areas are included above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    Two fresh-context passes against REVIEW.md. The final pass reviewed 45d29823040, and its findings were fixed in 3ef3211bb9f (squashed into 1a7459df9b3). 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_filter on 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 CustomNodeV1 drill-button blur and the LineageConfigPage button layout (presentational).
  • Decision check: amends ADR:2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling (v3); adds ADR:2026-11-13-lineage-scene-edges-weigh-the-asset-edges-they-stand-for and ADR:2026-11-13-lineage-page-opens-containers-as-their-own-card.
  • I have added a test that covers the exact scenario we are fixing.

Known, pre-existing and unrelated: the token-drift pre-commit hook reports tokens.css stale on main (an --om-z-1000 token); this PR doesn't touch tokens.

🤖 Generated with Claude Code

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
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@chirag-madlani

Copy link
Copy Markdown
Collaborator Author

Local Java test run: PASSED — details

  • Commit: 3ef3211bb9fb (base origin/main)
  • The summary is in the PR description.

Tests run locally

  • unit · openmetadata-service (3 classes): LineageSceneLoaderTest (2 passed), LineageSceneQueryTest (14 passed), LineageSceneResolverTest (42 passed)
  • integration · mysql-elasticsearch · parallel: LineageResourceIT (65 passed, 3 skipped)

Broader coverage not executed by this focused run

  • mvn -B package -pl openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=LineageSceneCountsTest,LineageSceneLoaderTest,LineageSceneQueryTest,LineageSceneResolverTest,LineageSceneSearchTest -Dsurefire.failIfNoSpecifiedTests=false
  • mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=parallel -Dit.test=ColumnLineageReconciliationIT,ConfigResourceIT,DataQualityLineageIT,DatabaseSmokeIT,GlossaryTermResourceIT,LineageBidirectionalIT,LineageBrokenReferenceIT,LineageDeletedPipelineIT,LineageEdgePipelineAuthorizationIT,LineageEdgePlannerTest,LineageGraphLoaderTest,LineageHydrateIT,LineageImpactAnalysisIT,LineageManualEdgeIT,LineagePipelineAnnotatorIT,LineageResourceIT,OpenLineageLineageResolutionIT,OpenLineageResourceIT,SeedDataPresenceIT,SeededLineageGraphTest,ServiceLineagePipelineRoutingMigrationIT,ServiceLineageRefcountIT,TableResourceIT,UserResourceIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false
Impacted, not run locally (2)
  • LineagePayloadScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
  • LineageScenePerformanceScaleIT → nightly: openmetadata-nightly k8s-java-it (scale-it)
Commands
mvn -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

Copilot AI balanced review requested due to automatic review settings November 12, 2026 13: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.

… 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
…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
Copilot AI balanced review requested due to automatic review settings November 13, 2026 07:38

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.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 07:56

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.

…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.
Copilot AI balanced review requested due to automatic review settings November 13, 2026 08:48

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.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 10:10

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.

…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
Copilot AI balanced review requested due to automatic review settings November 13, 2026 11:50

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.

isColumnLineage: boolean,
t: TFunction
): OverviewDataItem | undefined => {
const mappings = (columns ?? [])

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.

can we use reduce here instead of filter and map

Copilot AI balanced review requested due to automatic review settings November 13, 2026 12:22

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 13, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findings

Reworking 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 query_filter values. Two earlier findings were resolved: the scene contract change now has a decision record, and the new LESS radius rule no longer conflicts with the accepted ADR. No open issues found.

✅ 2 closed
✅ Quality: Scene contract rules changed with no decision record

📄 openmetadata-service/src/main/java/org/openmetadata/service/lineage/LineageSceneEdges.java:407-411 📄 openmetadata-service/src/main/java/org/openmetadata/service/lineage/LineageSceneEdges.java:428-442 📄 openmetadata-service/src/main/java/org/openmetadata/service/lineage/LineageSceneHierarchy.java:72-75 📄 openmetadata-service/src/main/java/org/openmetadata/service/lineage/LineageSceneResolver.java:117-126 📄 openmetadata-ui/src/main/resources/ui/src/components/Lineage/LineageMap/LineageMap.component.tsx:180-182
This PR changes rules that the scene API's consumers rely on, and none of them is written down in docs/decisions/. The only ADR it touches is the semantic-zoom one, which covers zoom gestures and nothing else. Per the decision-records review rule (a new contract or a rule stated only in the description), these need a record. The squash-merged description is the only place they are stated today:

  1. Edge weight and rollup fields. LineageSceneEdges.RollupEdge now sets weight to the sum of each stored edge's assetEdges, falling back to 1. An edge whose weight is above 1 now has source, sqlQuery, description and pipeline all null, where before source and sqlQuery were always copied from the first underlying edge. The UI depends on this through EdgeInfoDrawer (the edge-count row) and isEditableSceneEdge. Suggested sentence: "A scene edge's weight is the number of asset edges it represents (the sum of assetEdges over its stored edges), and an edge with weight above 1 carries no source, SQL, description or pipeline." This comes from the description: "A combined edge's weight is the number of asset edges it represents, and it no longer carries one underlying edge's SQL or source."
  2. Domainless assets at the domain root. LineageSceneHierarchy.selectRef now returns null at the Layer band when there is no focus and the asset has no lens ref. Suggested sentence: "The Domain/Data Product root scene omits assets outside every domain or data product; a focused scene shows them as themselves."
  3. query_filter errors. LineageSceneResolver.loadScene maps a 400 from the search engine to 400 Invalid query_filter, but only root scenes reach that path. Focused scenes apply the filter in memory and return 200. Suggested sentence: "A query_filter the search engine rejects returns 400 on a root scene; a focused scene ignores clauses the in-memory builder does not support and returns 200."
  4. Virtualisation threshold. VIRTUALIZE_NODE_THRESHOLD = 200 in LineageMap.component.tsx is a judgment-call limit: below it, every card is mounted so it can take keyboard focus.

One record covering the scene contract (1–3), plus a line on the threshold, would cover all four.

✅ Quality: New LESS rule adds an --om-* radius reference, against an Accepted ADR

📄 openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityLineage/custom-node.less:80-84
The new .lineage-base-node rule in custom-node.less sets border-top-left-radius: var(--om-radius-none). ADR:2026-10-20-less-non-colour-values-read-tailwind-theme-vars is Accepted and says: "Do not add new --om-* non-colour tokens or references". It also says LESS radii read --tw-radius-*. This adds one more --om-* reference, and tokens.css keeps those definitions only until no component reads them. Use the Tailwind theme variable instead. Core globals.css defines --radius-none: 0px, and sibling LESS already reads var(--tw-radius-xl).

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

@chirag-madlani chirag-madlani added the To release Will cherry-pick this PR into the release branch label Nov 13, 2026
@chirag-madlani
chirag-madlani merged commit 029281b into main Nov 13, 2026
56 checks passed
@chirag-madlani
chirag-madlani deleted the chirag-madlani/lineage-2.1-release-bugs branch November 13, 2026 13:53
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Not backported to 2.0. Claude looked at the conflict and declined to resolve it:

Backport aborted: PR #37685 depends on a feature absent from 2.0

What this PR is

"Fixes #37678: Hierarchical lineage fixes from 2.1 release testing" (#37685)
is a large batch of bug fixes against a new hierarchical lineage "Scene"
architecture
— a backend Scene API (LineageSceneGraph,
LineageSceneHierarchy, LineageSceneLoader, LineageSceneMapper,
LineageSceneQuery, LineageSceneResolver, LineageSceneEdges) and a
corresponding frontend rewrite (components/Lineage/Lineage.tsx,
components/Lineage/LineageMap/*, hooks/useLineageStore.ts, new
PlatformLineage UI built on that store). The PR title itself says this is
testing fallout "from 2.1 release testing."

Why it can't be cherry-picked as-is

None of the Scene backend classes exist on 2.0:

openmetadata-service/.../lineage/LineageSceneEdges.java
openmetadata-service/.../lineage/LineageSceneGraph.java
openmetadata-service/.../lineage/LineageSceneHierarchy.java
openmetadata-service/.../lineage/LineageSceneLoader.java
openmetadata-service/.../lineage/LineageSceneMapper.java
openmetadata-service/.../lineage/LineageSceneQuery.java
openmetadata-service/.../lineage/LineageSceneResolver.java

git show HEAD:...LineageSceneGraph.java on 2.0 fails with "exists on
disk, but not in HEAD" — these files were deleted relative to the merge
commit's parent only because 2.0 never had them, not because of an
unrelated rename. LineageResource.java on 2.0 has no scene endpoint at
all.

On the frontend, 2.0 does have a pages/PlatformLineage/PlatformLineage.tsx
and a hooks/useLineageStore.ts, but they are a different, older
implementation
: 2.0's PlatformLineage.tsx renders the legacy
components/Lineage/Lineage.component.tsx, not the LineageMap/Lineage.tsx
scene-rendering stack this PR patches. The names coincide; the architecture
underneath does not.

This PR's fixes (edge weighting for combined scene edges, scene-level
query_filter error handling, domain/data-product scene roots, LineageMap
zoom/keyboard/search behavior, etc.) are all expressed in terms of APIs and
components that simply aren't present on 2.0. There is no coherent partial
resolution — applying the diff would mean inventing the entire Scene
architecture during a conflict resolution, which is a different, far larger
change than "port this bug-fix PR."

Recommendation

The underlying hierarchical-lineage Scene feature (presumably a prior 2.1-only
PR or series of PRs) would need to be backported to 2.0 first, as an
explicit, reviewed decision, before fixes on top of it make sense here. This
PR should not be force-fitted onto 2.0 in isolation.

State left behind

The repository is left mid-cherry-pick (git cherry-pick -x 029281bb57b5e83155d44db37dfcdfa1792588c7 still in progress, conflicts
unresolved) exactly as handed off, per the workflow instructions. No files
were staged, committed, or edited.

resolver run

chirag-madlani added a commit that referenced this pull request Nov 13, 2026
) (#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hierarchical lineage: remaining fixes from 2.1 release testing

5 participants