You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "yangzhang75 (via GitHub)" <gi...@apache.org> on 2026/09/13 23:42:55 UTC

[I] fix(workflow): a save's response must not overwrite a newer local edit (WorkflowPersistService) [texera]

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

   ### What happened?
   
   Every save applies its response as the workflow's metadata: the workspace autosave (`workspace.component.ts`), the menu's own save (`MenuComponent.persistWorkflow`: rename, description, revert) and the Canvas -> Form View switch's save. Saves are sent one at a time since #8456, so a response can land after a newer local edit and overwrite it:
   
   - Rename the workflow while an autosave is in flight: the autosave's response puts the old name back (until the rename's own save answers).
   - Click Form View, then rename while the switch's save is out: the rename's save is queued behind the switch's, the switch navigates when its own save completes, and the full-page load aborts the rename's save (metadata edits do not emit `workflowChanged()`, so the hand-over does not wait for them).
   
   Deferred from #8456 on review (threads on `menu.component.ts:692` and `:231`): the rule belongs in `WorkflowPersistService`, the one place every save goes through, not in one caller.
   
   ### How to reproduce?
   
   1. Open a workflow on the operator canvas and make a graph edit (an autosave starts).
   2. Before it answers, rename the workflow in the title bar.
   3. The title flips back to the old name when the autosave's response is applied.
   
   Or: click Form View and rename during the hand-over's save; the rename is lost.
   
   ### Proposed fix
   
   In `WorkflowPersistService`: do not apply (or hand back for applying) a response a newer local edit has overtaken, for every caller alike -- e.g. a revision per save, or apply from the response only the fields that still match what was sent; and let the Form View hand-over wait for the save queue to drain rather than for its own save only.
   
   ### Version/Branch
   
   main, after #8456.
   
   ### Commit Hash
   
   main
   
   ### Browsers
   
   All
   
   ### Relevant log output
   
   n/a
   


-- 
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: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(workflow): a save's response must not overwrite a newer local edit (WorkflowPersistService) [texera]

Posted by "mengw15 (via GitHub)" <gi...@apache.org>.
mengw15 closed issue #8536: fix(workflow): a save's response must not overwrite a newer local edit (WorkflowPersistService)
URL: https://github.com/apache/texera/issues/8536


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(workflow): a save's response must not overwrite a newer local edit (WorkflowPersistService) [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8536:
URL: https://github.com/apache/texera/issues/8536#issuecomment-5657114821

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @yangzhang75!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(workflow): a save's response must not overwrite a newer local edit (WorkflowPersistService) [texera]

Posted by "yangzhang75 (via GitHub)" <gi...@apache.org>.
yangzhang75 commented on issue #8536:
URL: https://github.com/apache/texera/issues/8536#issuecomment-5657321765

   /take


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org