Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CNI - Allow usage of existing triggers w/ custom flow onInstanceDelete and onInstanceDeploy behavior #269

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

pattra
Copy link
Contributor

@pattra pattra commented Sep 16, 2024

Previously if a CNI set a flow's onTrigger to a component reference and also defined onInstanceDelete or onInstanceDeploy behavior, the flow's onInstance methods would be ignored.

This PR makes it such that if a flow defines both a component reference onTrigger (either explicitly or via default fallback) along with onInstance behavior, all defined onInstance behavior will execute.

In the case of both the component & the flow having defined onInstance behavior (e.g. they each have their own onInstanceDeploy definitions), the returned responses will be deep-merged with preference given to the flow's response if there's a conflict.

@pattra pattra requested a review from bkegley September 16, 2024 20:50
@pattra pattra merged commit 871d2d4 into main Oct 4, 2024
1 check passed
@pattra pattra deleted the pa/instance-deploy-delete branch October 4, 2024 18:34
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