Switching between a workflow's canvas and Form View reloads the page and reconnects everything
Los mantenedores suelen responder en 1 día
@yangzhang75 ya está trabajando en esto.
Desde el 19/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Task Summary
Switching between a workflow's two views -- the operator canvas (/user/workflow/:id) and the Form View (/user/workflow/:id/form) -- is a full browser page load in both directions (window.location.href in MenuComponent.openFormViewPage and WorkflowFormComponent.openCanvasPage). The two views are views of one open workflow, so everything that makes the workflow live is thrown away on the way out and rebuilt on the other side:
- both
ngOnDestroys callclearWorkflow()(which destroys the Yjs shared document and leaves its co-editing room),computingUnitStatusService.disconnect(),resetExecutionAndWorkers(), and clear the console and results; - the arriving view then re-bootstraps Angular (
APP_INITIALIZERblocks on/api/config), re-parses the whole bundle, re-fetches operator metadata that aprovidedIn: "root"singleton had already cached for the page, fetches the workflow, opens a new shared document and room, reconnects the computing unit, and waits for the backend to report the execution state again.
The visible cost is seconds of blank page on every switch, and a run that was already going takes that long to say so again. Nothing about it is necessary: WorkflowWebsocketService, ComputingUnitStatusService, WorkflowActionService and the joint graph it owns are all root-provided and survive a route change.
Routing between the two was tried during the Form View work and reverted; the code comments record three symptoms, two of which have identified causes:
- A ghost coeditor of yourself. The arriving view built a second shared document for the same workflow, so the page joined the room it was already in and saw its own other client.
- Undraggable operators. A JointJS paper binds to the joint graph, which is root-provided and outlives the component that created it, and no paper is ever disposed -- neither
WorkflowEditorComponent's norMiniMapComponent's. Every mount left another paper listening to that graph from a detached DOM node, and whichever paper answered a pointer event decided whether an operator could be dragged. Harmless while every mount followed a page load. - Broken runs. No independent cause found; likely a consequence of the first two, but this is the part that most needs checking in a browser.
Proposed: route in both directions, have the departing view hand the session to the arriving one instead of tearing it down, have the arriving view attach to what it was given instead of rebuilding it, and dispose both papers on destroy. Leaving the workspace altogether keeps today's teardown, including on unload.
Follow-up to the Form View feature (parent issue #8011); the switch itself landed in #8456.
Task Type
- Performance
- Refactor / Cleanup
- Lenguaje dominante
- Scala
- Estrellas
- 322
- Forks
- 195
- Merge medio
- 2 d 19 h
- PR fusionados (30 d)
- 146
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/texera
-
Search bar autocomplete stops working after a model appears in the suggestionsPosiblemente ocupada @aglinxinyuan la tomó hace 20 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/texera#8700 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
apache/texera#8682 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
JSONL File Scan reads a JSON null as the text "null"Posiblemente ocupada @CaroFernando la tomó hace 18 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
apache/texera#8674 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
LARGE_BINARY test leaves a real S3 object behind on every S3-reachable runPosiblemente ocupada @ShawnGarello la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Missing workflow returns 500 from workflow type endpointQuizá libre de nuevo @VuMartin la tomó hace 43 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
apache/texera#8300 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/texera
Issues similares
-
Bound wrong-magic P2P diagnostics to parsed header bytesPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ergoplatform/ergo#2736 ·
Los mantenedores suelen responder en 1 día
-
area:shuffle enhancement good first issue performance requires-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/datafusion-comet#7072 ·
Los mantenedores suelen responder en 1 día
-
bug 🐞 CI/CD ⚒️
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
valkey-io/valkey-glide#7370 ·
Los mantenedores suelen responder en 1 día
-
Improve UI text on confirmation page (at registration)Posiblemente ocupada @Arghyann la tomó hoy. Abiertogood first issue improvement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
lichess-org/lila#22126 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[VL] Remove the unused ShuffleSchema.hPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días