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

Unexpected steps execution order in mutations #2281

Open
hos opened this issue Dec 13, 2024 · 0 comments
Open

Unexpected steps execution order in mutations #2281

hos opened this issue Dec 13, 2024 · 0 comments
Labels

Comments

@hos
Copy link
Contributor

hos commented Dec 13, 2024

Summary

When running a step inside a mutation, before the mutation plan itself, the expected behavior is that all other steps
should be executed before the mutation step as discussed here. But the actual behavior
is that mutation is executed before the other steps if they are not marked as hasSideEffect=true.

Steps to reproduce

Attached in the above message.

Expected results

The valueBefore plan to have result of the value before, without adding hasSideEffect = true on the $valueBefore step.

Actual results

The valueBefore contains the value of the resource after execution of the mutation step.

Additional context

Possible Solution

Set hasSideEffect=true on the $valueBefore step.

@hos hos added the 🐛 bug label Dec 13, 2024
@github-project-automation github-project-automation bot moved this to 🌳 Triage in V5.0.0 Dec 13, 2024
@benjie benjie moved this from 🌳 Triage to 🦟 Mayfly in V5.0.0 Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🦟 Mayfly
Development

No branches or pull requests

1 participant