Fixes <2370>: made required changes to accommodate tempLineageTable in the Lineage grapgh Tab#27709
Conversation
❌ UI Checkstyle Failed❌ ESLint + Prettier + Organise Imports (src)One or more source files have linting or formatting issues. Affected files
Fix locally (fast — only checks files changed in this branch): make ui-checkstyle-changed |
| const sourceHeight = getNodeHeight(sourceNode, isColumnLineage, 0); | ||
| const targetHeight = getNodeHeight(targetNode, isColumnLineage, 0); | ||
| const sourceHeight = | ||
| sourceNode.height ?? getNodeHeight(sourceNode, isColumnLineage, 0); |
There was a problem hiding this comment.
Can we keep the height logic in the getNodeHeight method only?
| .map((n) => [n.fullyQualifiedName!, n]) | ||
| ); | ||
|
|
||
| const getOrCreateNode = (nameOrFqn: string): LineageNodeType => { |
There was a problem hiding this comment.
Can we have it as seprate util function instead a nested?
| ) as LineageNodeType; | ||
|
|
||
| const baseEdges = tempEdges.length | ||
| ? finalEdges.filter((e) => !e.tempLineageTables?.length) |
There was a problem hiding this comment.
What we are filtering here?
🟡 Playwright Results — all passed (17 flaky)✅ 3956 passed · ❌ 0 failed · 🟡 17 flaky · ⏭️ 86 skipped
🟡 17 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Code Review ✅ Approved 3 resolved / 3 findingsIntegrates tempLineageTable into the Lineage graph tab by ensuring original edges are retained, replacing unsafe type casts, and adding necessary unit tests for the extraction logic. ✅ 3 resolved✅ Bug: Original edge retained alongside expanded temp-lineage edges
✅ Quality: Unsafe
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Gitar
|



Describe your changes:
This PR is regarding the UI changes to accommodate the tempLineageTables in the Lineage tab.
Fixes 2370
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
extractTempLineageNodesto dynamically process and injecttempLineageTablesinto the lineage graph.isTempTableflag toLineageNodeTypeand excluded temp tables from service icon rendering inLineageNodeLabelV1.LineageProviderto prevent interactions (like selection) on temporary lineage nodes.getEntityLineageCoordinatesto prioritizenode.heightover computed heights to correctly position edges for variable-sized nodes.CanvasUtils.test.tsto include test coverage for edge positioning on temporary nodes.This will update automatically on new commits.