feat: add dbtcloud_job_completion_trigger resource (closes #663)#669
Open
trouze wants to merge 3 commits into
Open
feat: add dbtcloud_job_completion_trigger resource (closes #663)#669trouze wants to merge 3 commits into
trouze wants to merge 3 commits into
Conversation
New standalone resource for managing job-chaining triggers independently from dbtcloud_job. Solves circular dependency problems when chaining jobs. Attributes: job_id, trigger_job_id, project_id, statuses (success/error/canceled), resource_metadata. Reuses existing JobCompletionTriggerConditionsMappings and helper.StringSetToStringSlice from pkg/utils and pkg/helper. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…ot managed by this resource When a dbtcloud_job_completion_trigger resource owns the trigger, the job resource's Read was unconditionally syncing it from the API into state, causing the job resource to plan its removal on every refresh. Now we only update job_completion_trigger_condition from the API if the prior state already had it set (i.e., this resource is managing it). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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
dbtcloud_job_completion_triggerresource manages job-chaining triggers independently fromdbtcloud_jobjob_id,trigger_job_id,project_id,statuses(success/error/canceled),resource_metadatapkg/utilsand set helpers frompkg/helperCloses #663
🤖 Generated with Claude Code