Skip to content

[2.1] Fixes #39529: Show nested column paths in lineage and draw in-model column edges on the right column rows - #39757

Merged
chirag-madlani merged 2 commits into
2.1from
backport/2.1/pr-39730
Dec 4, 2026
Merged

chirag-madlani merged 2 commits into
2.1from
backport/2.1/pr-39730

Conversation

@gh-bot-collate

@gh-bot-collate gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

Automated backport of #39730 to 2.1.

Source PR #39730
Author @chirag-madlani
Merge commit ef53974a9b553464bdfa3b7c9b4e40301cf00552
Method Conflicts resolved by Claude — worth a read of the diff.

Resolution notes

Backport notes — PR #39730 → 2.1

Source: ef53974a9b553464bdfa3b7c9b4e40301cf00552 — "Fixes #39529: Show nested column paths in
lineage and draw in-model column edges on the right column rows".

git cherry-pick -x conflicted in two files; both are resolved below. Everything else in the
commit (EdgeInfoDrawer.test.tsx, the new EdgeInfoDrawer.utils.ts, CustomNode.utils.tsx,
NodeChildren.component.tsx, VirtualColumnList.component.tsx, CanvasUtils.ts, FqnUtils.ts
and their tests) applied cleanly, unchanged from main.

Why the conflicts happened

2.1 does not have PR #39213 ("Keep OpenLineage column mappings intact when editing column
lineage in the UI"), which is main-only. That PR added updateColumnLineageFunction to
EntityLineageEdgeUtils.ts and reworked getUpdatedColumnsFromEdge to understand OpenLineage
function labels, and both files this PR touches sit right next to that code, so the cherry-pick's
context lines didn't match.

EdgeInfoDrawer.component.tsx

Only the import block conflicted. Resolved to:

  • Drop getRelativeTime, EntityReference as LineagePipelineReference, LineageDetails,
    getEntityName, entityUtilClassBase, getNameFromFQN — these were this PR's own overview
    builder helpers, now moved into the new EdgeInfoDrawer.utils.ts (added cleanly).
  • Keep ColumnLineage, Source from generated/type/entityLineage and
    getLineageDetailsObject from EntityLineageEdgeUtils — both still used elsewhere in the file.
  • Dropped updateColumnLineageFunction from the EntityLineageEdgeUtils import. It isn't
    part of this PR's diff (confirmed via git log -S — it was introduced by Fixes #39212: Keep OpenLineage column mappings intact when editing column lineage in the UI #39213) and doesn't
    exist in 2.1's EntityLineageEdgeUtils.ts. 2.1's onFunctionUpdate keeps its existing
    inline findIndex logic unchanged.
  • Kept the new buildEdgeOverviewData import and the self-edge-aware getEdgeInfo body
    (nodes.find for source/target instead of the single forEach loop) — that's the actual
    intent of this PR.

EntityLineageEdgeUtils.test.ts

The conflict had two parts:

  1. Import list — resolved to add Position (from reactflow) and getEdgePathData (this
    PR's new export, already present in 2.1's EntityLineageEdgeUtils.ts), while dropping
    Connection, EdgeDetails, getUpdatedColumnsFromEdge, updateColumnLineageFunction — none
    of those are used by anything this PR added.
  2. Trailing test blocks — main's side of the conflict bundled three describe blocks:
    getUpdatedColumnsFromEdge and updateColumnLineageFunction (both from the unrelated,
    un-backported Fixes #39212: Keep OpenLineage column mappings intact when editing column lineage in the UI #39213 — the latter function doesn't even exist in 2.1) and getEdgePathData
    (this PR's actual new test, exercising the self-edge "side loop" path added to
    getEdgePathData in EntityLineageEdgeUtils.ts, which merged with no conflict). Kept only the
    getEdgePathData block.

What a reviewer should check by hand

  • Confirm getEdgePathData, SIDE_LOOP_WIDTH, and isSelfConnectingEdge landed in
    EntityLineageEdgeUtils.ts as expected (merged without conflict) and that the kept test block
    matches that implementation.
  • Confirm EdgeInfoDrawer.component.tsx has no leftover references to the removed
    helpers/imports (getRelativeTime, getEntityName, entityUtilClassBase, getNameFromFQN,
    updateColumnLineageFunction) — verified by grep, none remain.
  • No conflict markers remain in either file (verified by grep across the UI src/ tree).
  • This resolution intentionally does not bring in any OpenLineage column-function-label
    behavior (Fixes #39212: Keep OpenLineage column mappings intact when editing column lineage in the UI #39213) — that PR is separate and out of scope for this backport.

Cherry-pick is left in progress (not staged/committed), per the workflow.


Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #39730 is asked to look.

resolver run

…olumn 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)
@gh-bot-collate
gh-bot-collate Bot requested a review from a team as a code owner December 4, 2026 06:51
@gh-bot-collate
gh-bot-collate Bot requested review from karthicksharan and removed request for a team December 4, 2026 06:51
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Dec 4, 2026
@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.1 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

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.
@chirag-madlani
chirag-madlani merged commit 30f8285 into 2.1 Dec 4, 2026
43 of 44 checks passed
@chirag-madlani
chirag-madlani deleted the backport/2.1/pr-39730 branch December 4, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants