Workflow hashes are not consistent when blocks are the same but mixed #121
Labels
Priority: Medium
Issue has a good dev/value ratio
Status: Stand by
Issue or PR is not evolving
Type: Bug
Something isn't working
Milestone
**Note: for support questions, please use https://nextcloud.dessia.tech/call/hr9z9bif
I'm submitting a ...
What is the current behavior?
Workflow hash computes differently when its blocks sequence is "shuffled"
Build twice the exact same workflow by only changing order of blocks. Compute hash, results are different.
Steps to reproduce :
Result :
Such workflows should be considered equal
Frontend's workflow builder will really be subject to it, as someone would add blocks not in any particular order.
Possible fixes
This looks like it comes from the ouput hash. We sum its variable_indices elements which are bound to block index.
Should we add a hash computation for Variables ?
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: