Skip to content

[2.0] Backport Sigma element lineage walk, org-wide listing and formula lineage - #37766

Merged
akashverma0786 merged 3 commits into
2.0from
backport/sigma-lineage-formulas-listing-2.0
Nov 13, 2026
Merged

akashverma0786 merged 3 commits into
2.0from
backport/sigma-lineage-formulas-listing-2.0

Conversation

@akashverma0786

@akashverma0786 akashverma0786 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes

Backport three Sigma PRs from main into 2.0:

Source PR Change
#37718 Link only the tables a workbook element reaches in its element lineage graph
#37676 Optional List All Assets (listAllAssets) org-wide listing; lineage without DB Service Prefixes searches every database service
#37712 Sigma Data Model upstream lineage, connection path table lookup, column formulas in descriptions and formula-based column lineage

This is a consolidated backport of the merged PRs above; no separate implementation issue is linked.

Type of change

  • Improvement

High-level design

Tests

Use cases covered

The source PRs' cases:

  • element lineage walk (unrelated branches dropped, edge-only tables, cycles, fallbacks);
  • org-wide listing on and off, on every page;
  • no-prefix lineage with a unique table or an ambiguous one;
  • Sigma Data Model upstream lineage;
  • connection path lookup;
  • formula descriptions;
  • formula-based column lineage, including [Source/Column] traced through the element lineage graph.

Unit tests

Python 3.11, with models and ANTLR parsers generated from the 2.0 schemas and grammar:

  • 265 passed: ingestion/tests/unit/topology/dashboard/test_sigma.py, test_sigma_client.py, test_sigma_owners.py; ingestion/tests/unit/source/dashboard/sigma/; ingestion/tests/unit/metadata/ingestion/connections/test_source_api_client.py.
  • ruff format --check and ruff check clean on the Sigma package and its tests.
  • basedpyright on the Sigma package with the 2.0 baseline: 0 errors, baseline unchanged.

Backend integration tests

Not run for this backport. The only backend-facing change is the optional listAllAssets field in sigmaConnection.json; no Java code changes. On main, #37676 ran the impacted ITs, and their one failure also failed on a clean main.

Ingestion integration tests

No Sigma integration suite exists. Live Sigma API and server ingestion were not run for this backport. The real metadata ingest runs described in each source PR were made on main.

Playwright (UI) tests and UI recording

Not applicable: no UI code change. The Sigma connection form gains the schema-driven List All Assets toggle, and the connector help (Sigma.md) documents it.

Checklist

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>: consolidated backport, no issue.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: no migration needed (optional field, default false).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: the code is the reviewed code of the three source PRs. The Sigma files were compared line by line with main, and the only differences are the 2.0 adaptations listed above.
  • Decision check: carries the decision records of the source PRs.

…neage (#37718)

* fix(sigma): link only the tables a workbook element reaches in its lineage

Without SQL, an element's tables come from its element lineage response, which
was read as "every table in the response". Walk the edges back from the
element's own sheet node instead and keep the tables it reaches, passing
through other sheets and joins. When the response has no sheet node for the
element, or the walk reaches no table, every table is kept as before.

* test(sigma): walk edge-only tables and Sigma's documented example; reword the fallback comment

* test(sigma): give the documented example an unrelated branch so it tests the walk

(cherry picked from commit d2f05f6)
… Prefixes (#37676)

* feat(sigma): list the organization's workbooks when Skip Permission Check is on

Sigma's listing returns only the documents the credentials' owner can
access, so a workbook nobody shared with that user was never ingested.
Sigma's answer is the admin-only `skipPermissionCheck` listing parameter.
A new optional connection field, `skipPermissionCheck` (default false),
sends it on the workbook and data model listings, always paired with
`excludeExplorations` so custom views, the private per-user views of a
workbook, are never listed. Off, every request is unchanged; the
connection test uses the same listing call.

Verified against Sigma's OpenAPI spec (downloaded 2026-11-12), Sigma docs
and DataHub 1329d8f73c; not live-verified (no Sigma instance).

* feat(sigma): search every database service when no prefixes are set

With dbServicePrefixes empty the Sigma connector linked no warehouse
table, unlike the other dashboard connectors, which search every service
when the field is left empty. The lineage stage now resolves a table
reference across all database services on the no-prefix call and links
it only when exactly one table matches in the whole catalog, as Hex does;
neither every match nor the first hit is linked. With prefixes set
nothing changes.

Verified against Sigma's OpenAPI spec (downloaded 2026-11-12), Sigma docs
and DataHub 1329d8f73c; not live-verified (no Sigma instance).

* feat(sigma): rename Skip Permission Check to List All Assets and describe what it sends

* feat(sigma): regenerate the aggregated UI types for listAllAssets; test the data model listing's second page

(cherry picked from commit 9351181)
@akashverma0786 akashverma0786 added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 13, 2026
@akashverma0786
akashverma0786 force-pushed the backport/sigma-lineage-formulas-listing-2.0 branch from 828af3d to 13815bd Compare November 13, 2026 11:38
@akashverma0786
akashverma0786 marked this pull request as ready for review November 13, 2026 11:38
@akashverma0786
akashverma0786 requested review from a team as code owners November 13, 2026 11:38
@akashverma0786
akashverma0786 requested review from ShaileshParmar11 and harshsoni2024 and removed request for a team November 13, 2026 11:38
@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.

@gitar-bot

gitar-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

Enabling listAllAssets sends Sigma’s permission-bypass flag, which could ingest otherwise inaccessible workbooks and data models into OpenMetadata.

Backports three Sigma connector changes from main into 2.0: element-level lineage walk that links only reachable tables, optional listAllAssets org-wide listing with no-prefix lineage search, and Sigma Data Model lineage with connection path lookup and column formulas. 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

@akashverma0786
akashverma0786 merged commit c2fb84d into 2.0 Nov 13, 2026
116 of 131 checks passed
@akashverma0786
akashverma0786 deleted the backport/sigma-lineage-formulas-listing-2.0 branch November 13, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion 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