Repository navigation
Fixes #39529: Show nested column paths in lineage and draw in-model column edges on the right column rows - #39730
Conversation
…olumn edges on the right column rows - Edge drawer and node column list show a nested column's path inside its own entity (Orders.customer_id) instead of the ambiguous leaf name. - Deep paths truncate the parent path first; the column name stays visible and the full path is in the tooltip. - Edge drawer resolves source and target nodes separately, so an edge within one model shows its Target row. - A column edge inside one model loops on the node's right side between the two column rows instead of reusing the node-level arc behind the node. - Move the edge drawer's overview builders to EdgeInfoDrawer.utils.ts.
The parent path takes its muted colour from the color prop instead of a text-colour class, matching the plain-name branch.
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsThe lineage UI now qualifies nested columns and reroutes in-model edges; display and geometry changes could obscure or misidentify column lineage relationships. Nested column paths now show their parent table in lineage nodes and the Edge Information drawer, and in-model column edges are drawn from the source column's row to the target column's row on the right side. The styled raw spans for the nested column label were resolved in favor of core Typography. No issues found. ✅ 1 closed✅ Quality: Nested column label uses styled raw spans, not core Typography
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 |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
…odel column edges on the right column rows (#39757) * Fixes #39529: Show nested column paths in lineage and draw in-model column edges on the right column rows (#39730) * Fixes #39529: Show nested column paths in lineage and draw in-model column edges on the right column rows - Edge drawer and node column list show a nested column's path inside its own entity (Orders.customer_id) instead of the ambiguous leaf name. - Deep paths truncate the parent path first; the column name stays visible and the full path is in the tooltip. - Edge drawer resolves source and target nodes separately, so an edge within one model shows its Target row. - A column edge inside one model loops on the node's right side between the two column rows instead of reusing the node-level arc behind the node. - Move the edge drawer's overview builders to EdgeInfoDrawer.utils.ts. * Use Typography for the nested column label segments The parent path takes its muted colour from the color prop instead of a text-colour class, matching the plain-name branch. (cherry picked from commit ef53974) * Remove unused ColumnLineage import from EdgeInfoDrawer On 2.1 the only user of ColumnLineage in this file moved to EdgeInfoDrawer.utils.ts, so organize-imports removed it and failed UI checkstyle. --------- Co-authored-by: Chirag Madlani <[email protected]>
…odel column edges on the right column rows (#39730) (#39761) * [2.0] Fixes #39529: Show nested column paths in lineage and draw in-model column edges on the right column rows (#39730) Backport of #39730 to 2.0, adapted to the 2.0 lineage code: - Drawer and node column rows keep 2.0's Ant Design components; only the path labels, the self-edge node lookup and the in-model column loop are applied. - The column-mapping summary row, the drawer utils move and the core Typography/Tooltip label are main-only and not included. (cherry picked from commit ef53974) * Use core Tooltip for the nested column path on 2.0 Adding Tooltip to the antd import failed the Antd + Less deprecation guard. The core Tooltip continues press propagation so a click still selects the row.
Fixes #39529
Problem
When a data model has nested tables (for example a Power BI semantic model), lineage shows only the last part of each column's name. If two tables in the model share a column name, you can't tell the ends of an edge apart:
customer_idtwice, with no table name.customer_id → customer_id.Fix
getChildPathFromFQN(childFqn, entityFqn)inFqnUtils. It returns a column's path inside its entity, for exampleOrders.customer_id. For a normal top-level column it still returns just the column name.getColumnLineageCoordinatesandgetEdgePathData). Asset-level self-edges keep their arc.EdgeInfoDrawer.utils.ts, so the component file holds only the component.Reproduce (via API, matches the issue)
CustomDashboardservicezz_tmp_repro_dashboards.PowerBIDataModelsales_modelwith nestedTABLEcolumns:Orders(order_id, customer_id, amount)andCustomers(customer_id, name).PUT /api/v1/lineagefrom model to model withcolumnsLineage: Orders.customer_id → Customers.customer_id.Before / After
Deep nesting (6 levels, long names), cross-model edge
Captured with the same Playwright script on two production builds (this branch, and this branch with the change reverted) against one local server.
Tests
FqnUtils.test.ts: nested path, top-level column, quoted name, and the fallback when the entity is unknown or doesn't match.EdgeInfoDrawer.test.tsx: an edge within one model showsOrders.customer_id/Customers.customer_idand both endpoints. This test fails without the fix.VirtualColumnList.component.test.tsx: plain names while the tree is visible, parent paths when the list is filtered.CustomNode.utils.test.tsx: the parent path and the column name render as separate parts.FqnUtils.test.ts:getParentPathFromFQNfor deep, top-level and unrelated columns.CanvasUtils.test.ts: a column edge inside one node ends on the right side of its target column.EntityLineageEdgeUtils.test.ts: that edge is drawn as a loop on the right side, and an asset-level self-edge keeps its arc.yarn teston the affected suites: 343/343 pass.Not in scope
On the global Lineage page, the backend (
LineageSceneMapper.fields) sends only a node's top-level columns, so nested columns don't appear there at all. That needs a backend change and will be a separate fix.🤖 Generated with Claude Code