Repository navigation
[2.0] Backport Sigma element lineage walk, org-wide listing and formula lineage - #37766
Conversation
…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)
…nd column formulas (#37712)
828af3d to
13815bd
Compare
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ Approved 🔴 High riskEnabling listAllAssets sends Sigma’s permission-bypass flag, which could ingest otherwise inaccessible workbooks and data models into OpenMetadata. Backports three Sigma connector changes from 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 |
Describe your changes
Backport three Sigma PRs from
maininto2.0:listAllAssets) org-wide listing; lineage without DB Service Prefixes searches every database serviceThis is a consolidated backport of the merged PRs above; no separate implementation issue is linked.
Type of change
High-level design
main, except for adaptations2.0already carries from [2.0] Backport all nine Sigma connector improvements #37449. Those stay as they are:get_ometa_tag_and_classificationandget_tag_labels;__init__;sigmaConnection.jsonkeeps2.0's$schemadraft.connection.pykeeps2.0's typing style.sigmaConnection.jsongains the optionallistAllAssetsboolean (defaultfalse), as onmain. No migration is needed: stored connections without it read asfalse. The ingestion client and server must be on the same version, as for any new connection field.maintracks are not tracked on2.0, so they are not part of this branch.sigmaConnection.tsand the 11 aggregated types) come from feat(sigma): org-wide workbook listing and lineage without DB Service Prefixes #37676. Runningjson2ts-generate-all.sh -l trueon this branch changes nothing.docs/decisions/.Tests
Use cases covered
The source PRs' cases:
[Source/Column]traced through the element lineage graph.Unit tests
Python 3.11, with models and ANTLR parsers generated from the
2.0schemas and grammar: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 --checkandruff checkclean on the Sigma package and its tests.2.0baseline: 0 errors, baseline unchanged.Backend integration tests
Not run for this backport. The only backend-facing change is the optional
listAllAssetsfield insigmaConnection.json; no Java code changes. Onmain, #37676 ran the impacted ITs, and their one failure also failed on a cleanmain.Ingestion integration tests
No Sigma integration suite exists. Live Sigma API and server ingestion were not run for this backport. The real
metadata ingestruns described in each source PR were made onmain.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
Fixes <issue-number>: <short explanation>: consolidated backport, no issue.false).main, and the only differences are the2.0adaptations listed above.