tanishqgandhi1908 opened a new issue, #9354:
URL: https://github.com/apache/texera/issues/9354

   ### What happened?
   
   If you preview an old version of workflow A and then leave the page without 
pressing the preview’s back arrow, the preview state goes with you. That covers 
browser Back, which is the only way out, because the preview hides the 
dashboard button.
   
   The next workflow you open, B, is stuck in preview mode:
   
   - the toolbar shows “Restore this version”, “Clone this version” and A’s 
“Current Version”;
   - there’s no workflow name;
   - autosave is off, so edits you make to B are silently not saved.
   
   Pressing the back arrow to leave that preview loads A’s graph into the page. 
The URL still says B, but the title and canvas are A’s. A’s graph also ends up 
in B’s shared-editing document. The next time anyone opens B, in a new tab, 
after a reload or as a collaborator, they see A’s graph under B’s name, and 
it’s autosaved into B. B’s own content then survives only in its version 
history.
   
   Screenshots
   In these screenshots, workflow A is called “Report pipeline” (its operators 
are labelled “A op 1/2/3”), and workflow B is called “Cleaning pipeline” (one 
operator, “B op 1”).
   
   Previewing version 2 of A. 
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/7f67ce64-f32a-44b9-a17d-336f77495b11";
 />
   
   Browser Back, then B opened from the list. B is in preview mode, showing A’s 
“Current Version: 2”, with no name and no Run. 
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/606bd474-a633-4629-b654-ebcda3e4f209";
 />
   
   Pressing the back arrow on B. The page at /user/workflow/22 now shows 
“Report pipeline” #21 with A’s operators. 
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/1a710d26-26be-4d89-913e-457ce5608658";
 />
   
   A new session opens B at /user/workflow/22. It shows “Cleaning pipeline” 
with A’s three operators, and the database now has them too. 
   
   <img width="1440" height="900" alt="Image" 
src="https://github.com/user-attachments/assets/c00f5a53-4760-4437-bd16-d430ba5934e4";
 />
   
   What the database showed for B during the run:
   
   ```after editing B while it was stuck in preview:   B op 1             (the 
edit was never saved)
   after the back arrow:                            B op 1
   after a new session opened B:                    A op 1, A op 2, A op 3
   ```
   
   ### How to reproduce?
   
   1. Create two workflows A and B, and give A at least two versions (edit it 
twice).
   2. Open A, open the Versions panel, and click an older version.
   3. Press the browser Back button to return to the workflow list, then open B.
   4. B is in preview mode. Move an operator, then reload: the move was not 
saved.
   5. Open B again, preview A’s old version again the same way, then press the 
← arrow next to the version date in B’s toolbar. A’s graph and name appear at 
B’s URL.
   6. Open B in a new tab. It shows A’s operators, and B’s saved content in the 
database is now A’s graph.
   
   ### Version/Branch
   
   1.4.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   _No response_
   
   ### What browsers are you seeing the problem on?
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to