Skip to content

Fixes #37678: Hierarchical lineage fixes from 2.1 release testing (backport 2.1 #37685) - #37779

Merged
chirag-madlani merged 1 commit into
2.1from
chirag-madlani/lineage-2.1-release-bugs-2.1
Nov 13, 2026
Merged

chirag-madlani merged 1 commit into
2.1from
chirag-madlani/lineage-2.1-release-bugs-2.1

Conversation

@chirag-madlani

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

Copy link
Copy Markdown
Collaborator

Issue

Fixes #37678

Cherry-pick of #37685 to 2.1.

What it fixes

The remaining hierarchical lineage issues found in 2.1 release testing, on the scene API (GET /v1/lineage/scene) and the Lineage page map. Full description, decision records and screen recordings in #37685.

  • Scene API: a service reached only through upstream lineage now appears in Service Level View, a pipeline focus shows up in its own scene, a rejected query_filter returns 400, the domain and data product roots leave out assets outside them, and combined-edge weights count the asset edges they represent.
  • Map: a domain or data product opens as its own card (as in 2.0). The search follows the level and can be cleared back to the whole platform, and switching lens away from a container opens the new lens's root. Also fixed: zooming out at the minimum zoom, landing position and fit zoom, edge drawer column mappings, the directional hover path, empty, error and missing-entity states, keyboard focus and tab order, the onboarding dialog in longer locales, the lineage settings load error, depth reset, and small copy and i18n fixes.

The automatic backport went to 2.0 and was correctly declined: the scene API does not exist there.

Verification on 2.1

  • Cherry-pick applied cleanly onto origin/2.1 (60 files, no conflicts).
  • Jest, lineage area: 68 suites, 947 tests passed.
  • Java: openmetadata-service builds against 2.1's spec; LineageScene*Test 74 passed (mvn -pl openmetadata-service test -Dtest='LineageScene*Test').
  • i18n in sync; locale keys sorted.
  • Type check: no errors in backported files.

On main (#37685): Playwright lineage suites 217/217; impacted Java ITs passed; CI green.

🤖 Generated with Claude Code

)

* 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
@chirag-madlani
chirag-madlani requested review from a team as code owners November 13, 2026 14:04
@chirag-madlani chirag-madlani added UI UI specific issues backend skip-pr-checks Bypass PR metadata validation check labels Nov 13, 2026
@chirag-madlani
chirag-madlani requested review from karanh37 and manerow and removed request for a team November 13, 2026 14:04
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Changing lineage scene filtering, edge weights, and navigation across backend and UI could return or display incomplete or misleading lineage graphs.

Backports the hierarchical lineage fixes from #37685 to the 2.1 branch, covering scene API behavior, lineage map navigation, and related UI and i18n fixes. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@chirag-madlani
chirag-madlani merged commit e976bce into 2.1 Nov 13, 2026
56 of 62 checks passed
@chirag-madlani
chirag-madlani deleted the chirag-madlani/lineage-2.1-release-bugs-2.1 branch November 13, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant