Skip to content

Conversation

jharley
Copy link
Collaborator

@jharley jharley commented Jun 27, 2025

Updating an env-wide trigger was not handling the dataset attribute correctly resulting in an apply-time error.

Also noticed that Trigger's didn't get the same update as SLOs to support importing environment-wide triggers by 'bare ID' (e.g. no need to use __all__), so fixed that here and updated the test.

@jharley jharley added the bug label Jun 27, 2025
state.ID = types.StringValue(trigger.ID)
state.Dataset = plan.Dataset
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the bugfix

@jharley jharley marked this pull request as ready for review June 27, 2025 20:37
@jharley jharley requested a review from a team as a code owner June 27, 2025 20:37
@jharley jharley merged commit 9e03699 into main Jun 27, 2025
7 checks passed
@jharley jharley deleted the jharley.fix-envwide-trigger-update branch June 27, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

r/trigger: Environment-wide trigger apply time error
2 participants