Skip to content

feat(gooddata-sdk): [AUTO] Add DashboardArbitraryAttributeFilter and DashboardMatchAttributeFilter#1540

Open
yenkins-admin wants to merge 1 commit intomasterfrom
auto/openapi-sync-C006-20260413-r12445
Open

feat(gooddata-sdk): [AUTO] Add DashboardArbitraryAttributeFilter and DashboardMatchAttributeFilter#1540
yenkins-admin wants to merge 1 commit intomasterfrom
auto/openapi-sync-C006-20260413-r12445

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

Summary

Added uses_arbitrary_values optional parameter to AttributeFilter, PositiveAttributeFilter, and NegativeAttributeFilter in compute/model/filter.py. The field is passed through to the generated API client models when set. Also added unit tests verifying the field is correctly serialized and omitted when not set. The new DashboardArbitraryAttributeFilter and DashboardMatchAttributeFilter schemas only affect the auto-generated client (DashboardFilter oneOf); the SDK has no existing wrappers for dashboard filter types and no SDK changes are needed for them.

Impact: new_feature | Services: gooddata-automation-client, gooddata-export-client, gooddata-metadata-client, gooddata-afm-client
Tickets: CQ-2114

Files changed

  • gooddata-sdk/packages/gooddata-sdk/src/gooddata_sdk/compute/model/filter.py
  • gooddata-sdk/packages/gooddata-sdk/tests/compute_model/test_attribute_filters.py

Source commits (gdc-nas)

  • af3e42d Merge pull request #21504 from gooddata/dho/cq-2114-automation-filters
  • 0468f7f Merge pull request #21536 from gooddata/dho/cq-2114-prop
  • c9c966b Merge pull request #21589 from gooddata/dho/cq-2114-flag
OpenAPI diff
+      "DashboardArbitraryAttributeFilter": {
+        "properties": { "arbitraryAttributeFilter": {
+            "properties": { "displayForm": {...}, "values": {...}, "negativeSelection": {...}, "validateElementsBy": {...} },
+            "required": ["displayForm", "negativeSelection", "values"]
+        } },
+        "required": ["arbitraryAttributeFilter"]
+      },
+      "DashboardMatchAttributeFilter": {
+        "properties": { "matchAttributeFilter": {
+            "properties": { "caseSensitive": {...}, "displayForm": {...}, "literal": {...}, "operator": { "enum": ["contains","startsWith","endsWith"] } },
+            "required": ["caseSensitive","displayForm","literal","negativeSelection","operator"]
+        } },
+        "required": ["matchAttributeFilter"]
+      },
       (DashboardFilter oneOf)
+          { "$ref": "#/components/schemas/DashboardArbitraryAttributeFilter" },
+          { "$ref": "#/components/schemas/DashboardMatchAttributeFilter" },
       (NegativeAttributeFilter / PositiveAttributeFilter)
+              "usesArbitraryValues": { "description": "If true, values were filled free-form.", "type": "boolean" }

Workflow run


Generated by SDK OpenAPI Sync workflow

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.66%. Comparing base (d7f50b7) to head (4259fef).

Files with missing lines Patch % Lines
...ddata-sdk/src/gooddata_sdk/compute/model/filter.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1540   +/-   ##
=======================================
  Coverage   78.66%   78.66%           
=======================================
  Files         230      230           
  Lines       15400    15410   +10     
=======================================
+ Hits        12114    12123    +9     
- Misses       3286     3287    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant