Skip to content

Lineage: fix temp table node label (empty breadcrumb, squashed padding) on 2.0 - #36239

Merged
chirag-madlani merged 2 commits into
2.0from
chirag-madlani/2.0-temp-lineage-node-breadcrumb
Oct 26, 2026
Merged

chirag-madlani merged 2 commits into
2.0from
chirag-madlani/2.0-temp-lineage-node-breadcrumb

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

On 2.0, temp-table lineage nodes (e.g. tmp_order_staging from tempLineageTables) render an empty breadcrumb — just › › separators under the name — because temp tables have no service / database / schema.

LineageNodeLabelV1 now:

  • skips breadcrumbs for isTempTable nodes,
  • drops empty breadcrumb segments,
  • renders <Breadcrumbs> only when there is at least one item,
  • centres the name on temp nodes (tw:flex tw:items-center tw:py-3!): the leaf layout's padding is top-only (8px 16px 0) and relies on the breadcrumb + footer for bottom spacing, which temp nodes don't have, so the name sat against the bottom edge.

Same guard as main (landed there inside #34551), ported on its own since that PR carries much more.

Testing

  • LineageNodeLabelV1.test.tsx: 37/37 pass; the 2 new tests (temp node shows name only; all-empty segments render no breadcrumb) fail without the fix.
  • ESLint + Prettier clean on both files.
  • Manually verified on a local 2.0 build against a 2.0.0-SNAPSHOT backend, with an edge carrying tempLineageTables: temp nodes show only their name with even 12px top/bottom padding; regular nodes keep their breadcrumbs and layout.

Type of change:

  • Bug fix

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests around the new logic.
image

Temp tables have no service, database or schema, so the node rendered a
breadcrumb of empty separators. Skip breadcrumbs for temp tables, drop
empty segments, and render the breadcrumb only when it has items.
@chirag-madlani
chirag-madlani requested a review from a team as a code owner October 26, 2026 10:55
@chirag-madlani
chirag-madlani requested review from sweta1308 and removed request for a team October 26, 2026 10:55
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 26, 2026
Temp nodes have no breadcrumb or footer, so the leaf layout's
top-only padding left the name sitting against the bottom edge.
@gitar-bot

gitar-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Suppressing empty breadcrumbs and centering temporary-table labels changes lineage presentation; misclassified nodes could lose useful location context.

Hides the empty breadcrumb on temp-table lineage nodes in LineageNodeLabelV1, so nodes like tmp_order_staging show only their name, and drops empty breadcrumb segments so <Breadcrumbs> renders only when it has items. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@chirag-madlani chirag-madlani changed the title Lineage: hide empty breadcrumb on temp table nodes (2.0) Lineage: fix temp table node label (empty breadcrumb, squashed padding) on 2.0 Oct 26, 2026
@chirag-madlani
chirag-madlani enabled auto-merge (squash) October 26, 2026 11:15
@chirag-madlani
chirag-madlani merged commit ea270de into 2.0 Oct 26, 2026
53 of 59 checks passed
@chirag-madlani
chirag-madlani deleted the chirag-madlani/2.0-temp-lineage-node-breadcrumb branch October 26, 2026 11:20
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.33% (83017/121483) 53.23% (51424/96592) 53.98% (15300/28340)

@sonarqubecloud

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants