Repository navigation
Fixes #38916: lineage canvas as browser tests - #38917
Merged
Merged
Conversation
Add a shared lineage MSW fixture (fixtures/lineage.ts). It serves the root
table, the scene, the filter facets, getLineageByEntityCount and
getLineage/{direction}, and applies query_filter/column_filter to the nodes
the way the server does. Move ImpactAnalysisPagination onto it. Cover the
filter panel toggle, the service, service type, domain, owner, tag and tier
filters, the search box, the per-direction depth counts and the Column
Level column_filter in LineageTable.browser.test.tsx. Tag the replaced
LineageFilters Playwright tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mode panel toggle The Playwright filter-panel toggle runs on the lineage canvas; the browser test covers impact-analysis mode, so it stays untagged until the canvas PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…filters # Conflicts: # .github/playwright/impact-map.generated.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EntityLineageCanvas.browser.test.tsx covers the Lineage tab canvas: nodes and the node drawer for all 15 lineage entity types, the column layer, column tracing, temp tables (and the remembered hide choice), the lineage config, the lineage search, the filter panel, the canvas quick filters (service, service type, domains, owners, tag, tier, database, schema, column), adding an edge from the node menu, editing an edge's pipeline, CSV export, deleting an edge, and column lineage to a table, a dashboard chart and a metric. fixtures/lineage.ts gains the canvas getLineage (only nodes reachable from the root; with a filter, the matches plus their path to the root), PUT and DELETE /lineage, getLineageEdge, exportAsync and the node drawer's calls. The replaced Playwright tests are tagged migratedTo.browser/split. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rowser # Conflicts: # .github/playwright/impact-map.generated.json # openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Lineage/LineageFilters.spec.ts # openmetadata-ui/src/main/resources/ui/src/test/browser/fixtures/lineage.ts
chirag-madlani
marked this pull request as ready for review
November 27, 2026 04:56
chirag-madlani
requested review from
anuj-kumary
and
a balanced review from Copilot
November 27, 2026 04:56
chirag-madlani
enabled auto-merge (squash)
November 27, 2026 09:32
harsh-vador
reviewed
Nov 27, 2026
…nvas; fixture review fixes
- getTableFlattenChildren was the only children resolver without `?? []`,
so a table or dashboard data model node with no `columns` threw inside
the layout and blanked the canvas. Unit-tested for both types.
- serveLineage: `root` now drives every lineage handler (entity count,
directional, columnEdge), not just the canvas ones.
- getLineage/{direction} returns only its own side: upstream edges reach
the root, downstream edges leave it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Code Review ✅ Approved 🟡 Medium riskDefaulting missing table columns to an empty list changes lineage rendering for incomplete records, preventing canvas blanking; impact is localized to UI. Adds the lineage canvas as Vitest browser tests covering entity rendering, column tracing, canvas filters, edge operations, and settings validation, with network mocked via a stateful lineage fixture. No issues found. 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 |
harsh-vador
approved these changes
Nov 27, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #38916
Describe your changes:
Wave 2, PR 3 of the lineage migration (open-metadata/openmetadata-collate#8315): the lineage canvas as Vitest browser tests. The real page runs and only the network is mocked. It builds on the shared lineage fixture from #38789, now on main.
EntityLineageCanvas.browser.test.tsx(37 runtime tests):query_filtersent and the nodes drawn. Database, schema and column are tested only on the first hop, so the tests don't encode Lineage: Database, Schema and Column filters stop at the first non-matching node #38783;An edge is selected by focusing its marker button and pressing Enter, the keyboard path, instead of clicking canvas coordinates.
fixtures/lineage.ts: the canvasgetLineagereturns the nodes reachable from the root, or the matches plus their path when filtered. Edges are stateful: PUT upserts, DELETE removes.Tags on 33 runtime tests in
DataAssetLineage.spec.ts,LineageFilters.spec.tsandLineageTempTables.spec.ts, pointing at ITs in Fixes #38784: lineage filter, count and metric column ITs; make BaseEntityIT lineage test assert #38785; all the method names exist there. The Domains, Owners, Tag and Tier canvas-filter tests stay untagged until a Java IT pins the canvas metadata filters. Most of the spec diff is Prettier re-indenting.Found while writing these: a table lineage node without a
columnsarray blanks the canvas, becausegetTableFlattenChildrencallsflatMapon undefined. Real search docs always carrycolumns, so the fixture defaults it.Type of change:
🤖 Generated with Claude Code