Repository navigation
Fixes #38788: lineage impact-analysis filters and counts as browser tests - #38789
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>
UI browser testsRan: 3 of 136 test files execute the changed code Result: ✅ 14 passed · 0 skipped |
…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>
Code Review ✅ Approved 🟢 Low risk 1 closed / 1 findingsThe PR adds browser tests and shared mocked lineage fixtures while changing test migration metadata; application runtime behavior and interfaces remain unchanged. Adds Vitest browser tests for the impact-analysis filters and counts in ✅ 1 closed✅ Quality: Canvas filter-toggle test tagged as migrated to an impact-analysis test
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 |
Fixes #38788
Describe your changes:
Wave 2, PR 1 of the lineage migration (open-metadata/openmetadata-collate#8315): the impact-analysis half of
LineageFilters.spec.tsas Vitest browser tests. The real page runs and only the network is mocked. The API half is in #38785. No canvas tests yet; those are PR 3.src/test/browser/fixtures/lineage.ts(new, shared):serveLineage({ upstream, downstream, columnEdges, facets })serves the root entity,lineage/scene,search/aggregate,getLineageByEntityCountandgetLineage/{direction}, and records each request. It filters nodes by thequery_filter/column_filterthe page actually sends, so rows depend on the request rather than echoing the mock. Per-depth counts followAbstractLineageGraphBuilder#buildPaginationInfo.LineageTable.browser.test.tsx(new, 10 tests):query_filter, badge count, and Clear All refetching with no filter;ImpactAnalysisPagination.browser.test.tsx: its inline handlers are replaced by the shared fixture.LineageFilters.spec.ts: tags only. The service, service type and upstream/downstream count tests aremigratedTo.splitwith theLineageFilterITmethods from Fixes #38784: lineage filter, count and metric column ITs; make BaseEntityIT lineage test assert #38785. Most of the diff is Prettier re-indenting; ignoring whitespace it's +68/−19, and the test bodies are unchanged. The filter-panel toggle and the Domains, Owners, Tag and Tier tests run on the canvas, so they stay untagged until PR 3.Column filter, for reviewers: the canvas (
Lineage.tsx) sends aquery_filteroncolumns.name.keyword. Impact analysis at Column Level (LineageTable.tsx) sendscolumn_filter=columnName:<name>and leaves it out ofquery_filter. This PR asserts the impact-analysis behaviour.Type of change:
Tests
src/components/LineageTableandsrc/test/browser: 110 files, 1,008 passed, 154 skipped.tscshows no errors in the changed files, and the Playwright tsconfig check is clean.🤖 Generated with Claude Code