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

bug: Draft got lost, when having deployed and draft version in edit view in parallel #3646

Open
wasnertobias opened this issue Apr 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@wasnertobias
Copy link

Describe the bug

Had the deployed version in edit mode (as the non-edit mode shows too less detail) and a draft version concurrently in another browser Tab.

After I made changes to a subflow of the draft (Input Data changed) I had to relead the draft version, otherwise Windmill does not recognize the change Input Data for the subflow. So before I did reload the draft version I clicked on "Save Draft". It told me that there are no current changes, it offered me to "save anyway", which I did not find a reason to click on. So I reloaded.

Badumm, the draft is gone, very nice. It just loads the deployed version without the usual pop-up in the upper right corner to load the deployed version.

Screenshot 2024-04-30 at 15 43 01

To reproduce

Described above

Expected behavior

Draft is not deleted for no aparent reason.

Screenshots

No response

Browser information

Chromium Version 124.0.6367.92

Application version

EE v1.320.3-4-g39e1ea3d5

Additional Context

No response

@wasnertobias wasnertobias added the bug Something isn't working label Apr 30, 2024
@rubenfiszel
Copy link
Contributor

yes the issue is because we use localStorage which is across tabs. We need to migrate to use anchor to persist local changes or use other means to work well with multiple tabs on the same flow

@wasnertobias
Copy link
Author

It is not even separated between workspaces, as I just found out. I edited something on PROD due to the following:

Then I noticed and switched to STAGING workspace: Now it asks via toast whether I want to keep my changes, although I never made any in STAGING.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants