Skip to content

feat(gooddata-sdk): [AUTO] add CatalogAutomationAlert with interval and trigger fields#1460

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

feat(gooddata-sdk): [AUTO] add CatalogAutomationAlert with interval and trigger fields#1460
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P010-add-automation-alert-interval

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

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

Add CatalogAutomationAlert wrapper class to the gooddata-sdk with support for the new ONCE_PER_INTERVAL trigger and IntervalGranularity (DAY/WEEK/MONTH/QUARTER/YEAR) fields.

Problem: P010 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23235917307

Caution

Test fixtures need recording. The following fixture files are referenced by tests but do not exist yet.
They must be recorded against a live GoodData server before merging:

  • packages/gooddata-sdk/tests/catalog/expected/declarative_workspaces.json
  • packages/gooddata-sdk/tests/catalog/expected/declarative_workspaces_snake_case.json
  • packages/gooddata-sdk/tests/catalog/fixtures/workspaces/layout_automations.yaml

What changed in gdc-nas

  • Added ONCE_PER_INTERVAL trigger option to AutomationAlert model with new IntervalGranularity enum (DAY, WEEK, MONTH, QUARTER, YEAR). Changes span the Kotlin model, both OpenAPI specs, database schema (new nullable interval column via Liquibase), and gRPC proto.

What was implemented in SDK

  • Added CatalogAutomationAlert wrapper class with AlertTrigger (ALWAYS, ONCE, ONCE_PER_INTERVAL) and IntervalGranularity (DAY, WEEK, MONTH, QUARTER, YEAR) typed Literal aliases
  • Added alert: CatalogAutomationAlert | None = None field to CatalogDeclarativeAutomation with bidirectional from_api_model / as_api_model conversion
  • Exported CatalogAutomationAlert from gooddata_sdk.__init__.py

Files modified

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

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

…nd trigger fields

Adds CatalogAutomationAlert wrapper class with AlertTrigger (ALWAYS, ONCE,
ONCE_PER_INTERVAL) and IntervalGranularity (DAY, WEEK, MONTH, QUARTER, YEAR)
typed fields, plus alert field to CatalogDeclarativeAutomation. Exports new
class from the public API surface.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 77.29%. Comparing base (b65ee3f) to head (c9585c1).

Files with missing lines Patch % Lines
...orkspace/declarative_model/workspace/automation.py 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1460      +/-   ##
==========================================
+ Coverage   77.27%   77.29%   +0.01%     
==========================================
  Files         227      227              
  Lines       14687    14704      +17     
==========================================
+ Hits        11350    11366      +16     
- Misses       3337     3338       +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.

@hkad98 hkad98 closed this Mar 18, 2026
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