make workflow.json output action ordering more deterministic #956
thinkOfaNumber
started this conversation in
Feature Ideas/Requests
Replies: 1 comment
-
I completely agree with this suggestion. The ordering should be deterministic to make it easier to compare versions and review PRs. I remember that the portal based workflow designer and the local designer in VS Code used to order actions differently which was a real pain when reviewing, I'm not sure if this is still an issue though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed somewhere around version v2.86.5 of Azure Logic Apps (Standard), the ordering of properties for an action has become alphabetical. This has only been a slight problem when multiple developers have different versions, but since it's more deterministic, it's better for code analysis (github, pull requests, blame, comparing revisions across branches, etc).
Similarly, I think the entire workflow.json output ordering should be more deterministic. At the moment, it seems actions are placed in the order that they are created, so if I create a workflow with action dependencies like this:
trigger > action 1 > action 2 > action 3
the workflow.json has them in that order. Then, if I add an action between 1 and 2:
trigger > action 1 > action 1b > action 2 > action 3
the workflow.json shows them in this order:
trigger, action 1, action 2, action 3, action 1b
and uses the
runAfter
property to display them in the correct order.The problems with this are not limited to:
I would like to see the workflow.json reordered on every save to be deterministic, perhaps relevant to the runAfter exectution order.
Beta Was this translation helpful? Give feedback.
All reactions