st2flow icon indicating copy to clipboard operation
st2flow copied to clipboard

Unable to execute from st2flow without clicking on save first

Open m4dcoder opened this issue 6 years ago • 3 comments

When I open an existing workflow in st2flow and then click on the execute workflow button, nothing happens. The button will become grayed out. I have to reopen the workflow, click on the save button to save the workflow, before I can execute the workflow.

m4dcoder avatar Apr 19 '19 21:04 m4dcoder

I can confirm this issue here while testing the packages. It shows "Cannot run workflow with unsaved changes" for workflow which are directly opened from st2web.

Kami avatar Apr 20 '19 17:04 Kami

I also noticed that after you click "save", run button only works once. After you click save and then run, run turns grey again.

Likely something with how we set dirty bit for works which are loaded / opened directly from st2web.

Kami avatar Apr 21 '19 20:04 Kami

@Kamiit turns grey again because it will only let you execute one at a time. This is a feature not a bug. :joy:

The reason the workflow needs to be saved is because we annotate workflow with coordinates. So in reality the workflow has changed when you load one that hasn't been annotated. We could auto-save this, but I am not inclined to do that right now since it might have unexpected results.

bigmstone avatar Apr 23 '19 21:04 bigmstone