feat(gooddata-sdk): [AUTO] Add DashboardMeasureValueFilter with comparison and range conditions#1603
Open
yenkins-admin wants to merge 2 commits into
Open
feat(gooddata-sdk): [AUTO] Add DashboardMeasureValueFilter with comparison and range conditions#1603yenkins-admin wants to merge 2 commits into
yenkins-admin wants to merge 2 commits into
Conversation
…rison and range conditions
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1603 +/- ##
==========================================
- Coverage 78.96% 78.95% -0.02%
==========================================
Files 231 232 +1
Lines 15578 15659 +81
==========================================
+ Hits 12301 12363 +62
- Misses 3277 3296 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Added SDK wrappers for DashboardMeasureValueFilter (cluster C003). Created
dashboard_filters.pywith five new classes: CatalogDashboardCompoundComparisonCondition, CatalogDashboardCompoundRangeCondition, CatalogDashboardCompoundConditionItem (Union alias), CatalogDashboardMeasureValueFilterBody, and CatalogDashboardMeasureValueFilter. All classes use explicit custom to_api()/from_api() overrides to handle thefromPython keyword issue (_from ↔ from_value). A cattrs structure hook discriminates the Union by presence of thevaluekey. All five names are re-exported from the package root init.py. An integration test test_dashboard_measure_value_filter was added to test_catalog_workspace_content.py with a VCR cassette stub.Impact: new_feature | Services:
gooddata-automation-client,gooddata-export-client,gooddata-metadata-clientFiles changed
packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/declarative_model/workspace/analytics_model/dashboard_filters.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/catalog/test_catalog_workspace_content.pyAgent decisions
Decisions (4)
from_value attribute name — Use from_value in the SDK wrapper and map to _from in to_api()
Override to_api/from_api vs default Base methods — Custom to_api() and from_api() on every new class
Union discriminator strategy — Discriminate CatalogDashboardCompoundConditionItem by presence of value key
New file location — dashboard_filters.py alongside analytics_model.py in the analytics_model package
Assumptions to verify (4)
Risks (4)
Layers touched (3)
packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/declarative_model/workspace/analytics_model/dashboard_filters.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/catalog/test_catalog_workspace_content.pySource commits (gdc-nas)
bb0eeadMerge pull request #22705 from gooddata/c.mze-cq-2280e2ab6f2Merge pull request #22850 from gooddata/c.mze-cq-2284OpenAPI diff
Workflow run
Generated by SDK OpenAPI Sync workflow