Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Unable to execute from st2flow without clicking on save first #343

Open
m4dcoder opened this issue Apr 19, 2019 · 3 comments
Open

Unable to execute from st2flow without clicking on save first #343

m4dcoder opened this issue Apr 19, 2019 · 3 comments

Comments

@m4dcoder
Copy link
Contributor

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 m4dcoder changed the title Unable execute from st2flow without clicking on save first Unable to execute from st2flow without clicking on save first Apr 19, 2019
@Kami
Copy link
Member

Kami commented Apr 20, 2019

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.

@arm4b arm4b added the bug label Apr 20, 2019
@Kami
Copy link
Member

Kami commented Apr 21, 2019

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.

@blag blag added high-impact bug This bug has an outsized impact on the usability of the system (crash state, data loss, big & ugly) and removed Needs Triage high-impact bug This bug has an outsized impact on the usability of the system (crash state, data loss, big & ugly) labels Apr 23, 2019
@bigmstone
Copy link
Contributor

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

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants