Stop reading whole saved projects into the WebView
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend-api-design
Línea de trabajo
Start by reading the InterlinearizerLoader path for fetchSummary, then trace openProject and readOpenableProject in ProjectModals, along with the import view's importLoad and the discard handler. Map the host commands and tests for New, Open, report Open, and Discard; check the flag-on paths against the done criteria. Done means those paths avoid whole-project reads across PAPI and the tests cover all four cases.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Part of Phase 4 (#427). Needs 4a (#453). Blocks 4c (#455).
Background
- A saved or imported project is stored as one blob (
project:{id}). interlinearizer.getProjectreturns all of it as one JSON string.- Past 100 MiB, that reply is over core's WebSocket message cap (
MAX_WEBSOCKET_PAYLOAD_BYTES). Main closes the extension host's socket, and every extension reloads.
A PT9 import hits this. A 59-book project is stored at 141.6 MB. The import succeeds, and then Open on the import report crashes the extension host.
Who reads the whole project
| Caller | What it needs | Flag on |
|---|---|---|
fetchSummary in InterlinearizerLoader (the report's Open, sync on open) |
Summary only | Same |
The import view's load effect (importLoad) |
Flag off: seeds the read-only store | Unused, except to gate the toolbar's switches (isImportLoading) |
openProject in ProjectModals, via readOpenableProject |
The whole project, to seed the draft | Sent back to the host through whole-draft saveDraft (startOver) |
handleDiscardChangesConfirm, via readOpenableProject |
Saved content for the discard | Unused: discardBook/discardAll ignore saved, and the host reads it itself (savedContentOf) |
Scope
- Add a summary command, and have
fetchSummaryuse it. - Host New and Open:
- Add a command that starts the session's draft over: from a stored project by id (Open), or empty (New).
- It clears the session's history (#453's "New and Open").
startOverstops sending the draft throughsaveDraft, which 4c deletes.
- With the flag on, skip the import view's fetch and the discard's read.
- Once only the flag-off path uses
getProjectandreadOpenableProject, 4c deletes them.
Not in scope
getFullAnalysisstill sends the whole analysis at session open and after each change. Until 5d (#459) removes it, an import this size can't open on the host path.- The
project:{id}blob itself. Reads inside the host don't cross the bus.
Done when
- With the flag on, no WebView code calls
getProject. - With the flag on, Open sends a project id and no whole project or draft crosses PAPI.
- Tests cover New, Open, the report's Open, and Discard on the flag-on path.
Relation to #573
#573 has host New and Open discard unreadable books "in whatever path 4a gives New and Open." This issue builds that path. #573 can land as part of it or after it.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 85
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 sillsdev/interlinearizer-extension
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
sillsdev/interlinearizer-extension#552 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sillsdev/interlinearizer-extension#548 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
sillsdev/interlinearizer-extension#543 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
sillsdev/interlinearizer-extension#537 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
sillsdev/interlinearizer-extension#515 ·
Los mantenedores suelen responder en 1 día
Todos los issues de sillsdev/interlinearizer-extension
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Invalid-link error for static location apps shows HTML-escaped sample URL (`/`)Posiblemente ocupada @cgmuniz la tomó hoy. Abierto🐛 bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
apps/stage-web bug env/os-linux pending triage scope/audio-output
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día