Skip to content

feat(gooddata-sdk): [AUTO] expose AutomationAlert with ONCE_PER_INTERVAL trigger in SDK wrapper#1463

Closed
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P008-automation-alert-interval
Closed

feat(gooddata-sdk): [AUTO] expose AutomationAlert with ONCE_PER_INTERVAL trigger in SDK wrapper#1463
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P008-automation-alert-interval

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

@yenkins-admin yenkins-admin commented Mar 18, 2026

Expose the new AutomationAlert model in the Python SDK wrapper, adding CatalogAutomationAlert with trigger (including new ONCE_PER_INTERVAL value) and interval (IntervalGranularity: DAY/WEEK/MONTH/QUARTER/YEAR) fields.

P008 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23236985423

What changed in gdc-nas

  • Added ONCE_PER_INTERVAL value to AlertTrigger enum in AutomationAlert.kt
  • Added new interval field (IntervalGranularity enum: DAY/WEEK/MONTH/QUARTER/YEAR) to AutomationAlert data class
  • Updated automation and metadata-api OpenAPI specs, extended metadata_sync.proto, added DB migration for new column
  • Merge commit: 5699a34 (PR #20116)
  • JIRA: GDAI-1303

What was implemented in SDK

  • Added CatalogAutomationAlert class (trigger: str | None, interval: str | None) following the @define(kw_only=True) + client_class() pattern used by existing automation wrapper classes
  • Wired alert: CatalogAutomationAlert | None as an optional field on CatalogDeclarativeAutomation with as_api_model() / from_api_model() converters in both directions
  • Exported CatalogAutomationAlert from gooddata_sdk.__init__
  • Added unit tests covering round-trip serialization and default values for CatalogAutomationAlert

Files modified

  • packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/declarative_model/workspace/automation.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/catalog/test_catalog_workspace.py

JIRA: PENDING (Jira ticket will be created after review)
Risk: Low

…VAL trigger in SDK wrapper

Adds CatalogAutomationAlert class with trigger and interval fields to the
SDK wrapper layer, wires it into CatalogDeclarativeAutomation.alert, exports
the new class from gooddata_sdk.__init__, and adds unit tests for round-trip
serialization.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants