Skip to content

Fixes #38477: Apply Sigma workspace filters to standalone data models - #38616

Merged
akashverma0786 merged 3 commits into
open-metadata:mainfrom
iamkiayun:feat/38477-sigma-workspaces
Nov 27, 2026
Merged

akashverma0786 merged 3 commits into
open-metadata:mainfrom
iamkiayun:feat/38477-sigma-workspaces

Conversation

@iamkiayun

Copy link
Copy Markdown
Contributor

Describe your changes

Fixes #38477

Sigma workbooks already support workspace filtering in OpenMetadata 2.0.8. Standalone data models bypassed that filter, so selecting Accounting could still ingest models from other workspaces. This change applies the existing Project Filter Pattern to the workspace in each model’s listing path, before reading its elements, columns, or lineage. The Sigma connector guide includes an Accounting example.

Type of change

Bug fix

Tests

All 238 Sigma connector tests passed locally. The regression covers both listing modes, pagination, includes, excludes, missing paths, and an unset filter. Six cases failed before the fix. Ruff lint and formatting passed. Tests used simulated Sigma HTTP responses. No live Sigma tenant was exercised.

@iamkiayun
iamkiayun requested a review from a team as a code owner November 24, 2026 16:47
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This 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 skip-pr-checks label.

@github-actions

Copy link
Copy Markdown
Contributor

UI browser tests

Ran: all test files (no impact map from main yet)

Result: ✅ 1070 passed · 154 skipped

@iamkiayun

Copy link
Copy Markdown
Contributor Author

All 238 Sigma tests passed locally on 35a01de5c. The previous Collate build and tests passed, and the only change since then was the requested Markdown decision record. Could a maintainer rerun the compatibility check? If it fails again, the first error from the downstream build would help me investigate.

@IceS2
IceS2 requested review from akashverma0786 and removed request for mohittilala November 27, 2026 07:09

@akashverma0786 akashverma0786 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved , Thanks

@gitar-bot

gitar-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Applying workspace filters before reading standalone Sigma models changes ingestion scope; a path-derived workspace mismatch could omit intended models or ingest unwanted ones.

Applies the existing Sigma Project Filter Pattern to standalone data models so they are filtered by workspace before their elements, columns, or lineage are read, fixing models from other workspaces leaking into ingestion. The previously open finding that the data-model workspace filter rule was not recorded in any decision record has been resolved.

✅ 1 closed
✅ Quality: Data-model workspace filter rule isn't recorded in any decision record

📄 ingestion/src/metadata/ingestion/source/dashboard/sigma/metadata.py:1011-1013 📄 ingestion/src/metadata/ingestion/source/dashboard/sigma/models.py:149 📄 openmetadata-ui/src/main/resources/ui/public/locales/en-US/Dashboard/Sigma.md:65
The PR adds a rule that projectFilterPattern also selects standalone Sigma data models by workspace. The workspace is the first / segment of the path returned by GET /v2/dataModels, and when a pattern is active, a data model with no path is dropped. The only record on this topic, docs/decisions/2026-11-07-a-sigma-dashboard-project-is-the-workbook-workspace.md (cited at line 279), covers dashboards and workbooks only. Its Consequences section says saved ingestion configs depend on what the pattern matches. This change alters what those saved patterns do: a config that includes one workspace used to ingest every data model, and now it drops the ones outside that workspace and the ones without a path. The PR description states the rule ("applies the existing Project Filter Pattern to the workspace in each model's listing path, before reading its elements, columns, or lineage"), but the repo squash-merges, so that text won't be kept in history. The PR should record (as a new record or a revision of the 2026-11-07 one) this sentence: "A standalone Sigma data model's project is the first /-separated segment of the path in its /v2/dataModels listing, in both listing modes; projectFilterPattern filters it before its elements, columns or lineage are read, and a data model without a path is dropped whenever the pattern has includes or excludes." The record should also list test_workspace_filter_on_standalone_data_models as its guard.

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 added the To release Will cherry-pick this PR into the release branch label Nov 27, 2026
@akashverma0786
akashverma0786 merged commit 7928460 into open-metadata:main Nov 27, 2026
37 of 38 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.1 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.0 opened as #38947 (clean cherry-pick). It merges itself once the checks pass.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.1 opened as #38948 (clean cherry-pick). It merges itself once the checks pass.

akashverma0786 added a commit that referenced this pull request Nov 27, 2026
…#38616) (#38948)

* Fixes #38477: Apply Sigma workspace filters to standalone data models

* Document workspace filtering for standalone Sigma data models

---------


(cherry picked from commit 7928460)

Co-authored-by: Kia Yun <[email protected]>
Co-authored-by: Akash Verma <[email protected]>
akashverma0786 added a commit that referenced this pull request Nov 27, 2026
…#38616) (#38947)

* Fixes #38477: Apply Sigma workspace filters to standalone data models

* Document workspace filtering for standalone Sigma data models

---------


(cherry picked from commit 7928460)

Co-authored-by: Kia Yun <[email protected]>
Co-authored-by: Akash Verma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to filter workspaces in Sigma

3 participants