Repository navigation
feat(sigma): set the Sigma workbook latestVersion as a dashboard custom property #37300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7a7d259
fix(sigma): make optional response fields optional in models
akashverma0786 1c9d0b5
test(sigma): add a faked Sigma HTTP fixture to the connector tests
akashverma0786 0b8bec4
feat(sigma): set the workbook latestVersion as a dashboard property
akashverma0786 e560f4a
docs(decisions): record the Sigma latestVersion custom property
akashverma0786 83e269a
Merge branch 'main' into feat/sigma-latest-version
akashverma0786 452c8af
fix(sigma): write latestVersion only when nothing changed since the read
akashverma0786 a77f09c
Revert "fix(sigma): write latestVersion only when nothing changed sin…
akashverma0786 2442db5
Merge branch 'main' into feat/sigma-latest-version
akashverma0786 936f5ca
Merge branch 'main' into feat/sigma-latest-version
akashverma0786 4d7b23c
Merge branch 'main' into feat/sigma-latest-version
akashverma0786 59062f3
ci: retrigger checks skipped by the pull_request_target brownout
akashverma0786 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...isions/2026-11-07-sigma-latest-version-is-a-number-dashboard-custom-property.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # A Sigma workbook's latest version is a number dashboard custom property | ||
|
|
||
| - **Status:** Accepted | ||
| - **Revisions:** v1 2026-11-07 (initial) | ||
| - **Deciders:** Sigma connector maintainers (PR #37300) | ||
| - **Guard:** `ingestion/tests/unit/topology/dashboard/test_sigma.py` | ||
| (`test_the_workbook_version_is_patched_onto_its_dashboard`, | ||
| `test_a_latest_version_property_of_another_type_is_left_alone`, | ||
| `test_no_workbook_version_is_set_without_custom_properties`, | ||
| `test_a_failed_registration_sets_no_version_and_is_not_retried`, `test_a_registered_latest_version_property_is_reused`) | ||
| - **Related:** ADR:2026-11-02-run-changing-dashboard-custom-properties-are-patched-after-the-dashboard, PR #37300 | ||
|
|
||
| ## Context | ||
|
|
||
| A Sigma workbook's `latestVersion` is its most recently published version, and it changes each time the workbook is | ||
| republished. The spec types it as `number` (`double`). A value that changes between runs is patched after the | ||
| dashboard, behind `includeCustomProperties` | ||
| (ADR:2026-11-02-run-changing-dashboard-custom-properties-are-patched-after-the-dashboard). A custom property definition | ||
| applies to every dashboard in the instance, whatever its service, so its name and type are shared with every | ||
| connector. | ||
|
|
||
| ## Decision | ||
|
|
||
| - Sigma registers one dashboard custom property, `latestVersion`, of type `number`, because the spec types the value | ||
| as a double. Once per run, when the first workbook with a version is patched, Sigma looks the property up and | ||
| registers it if it is missing. | ||
| - An existing `latestVersion` property of type `number` is reused. One of another type is left alone: Sigma sets no | ||
| value, and the run logs a warning. | ||
| - A failed registration sets no value for the rest of the run and is not retried in that run. | ||
|
|
||
| ## Consequences | ||
|
|
||
| - The name and the type are a contract. Renaming or retyping the property orphans the values stored under the old | ||
| definition. | ||
| - The name is generic. A `latestVersion` property that another connector or a user registered with another type turns | ||
| Sigma's value off until it is removed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.