Discard unreadable books when the host starts a draft over
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend
Direzione di ricerca
Start by reading the host New and Open paths introduced by prerequisite issue #453, then inspect DraftRepository and its tests. Confirm that New and Open clear unreadableShards before writing, while opening a session remains load-only; add flag-on tests showing that no book remains unreadable and edits to it apply.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of Phase 4 (#427). Needs 4a (#453). Blocks 4b (#454).
Background
A draft book whose stored analysis can't be read (a torn write, or outside damage) is kept as stored and never written over (#475).
On the WebView write path:
- An edit that reaches the book stays on screen, but writes leave that book out.
- Save to an existing project is refused. Save As leaves the book out.
- New and Open discard the book. This is how the user recovers.
That discard lives in whole-draft saveDraft, through replaceAll's discardUnreadable option. 4c deletes both.
On the host path:
applyrefuses any edit that reaches such a book (#486).- A discard keeps the book's stored analysis and shows the book empty (#524).
- Opening a session only loads; it never discards. This matches main, which discards only on saves that start the draft over.
- 4a brings New and Open to the host, but doesn't cover this case.
So on the host path nothing gets the user out yet.
Scope
- Host New and Open discard each unreadable book, so later writes treat it like any other book.
- In
DraftRepositorytoday, this is clearingunreadableShardsbefore the write.
- In
- Do it in whatever path 4a gives New and Open, not through
replaceAll. - Opening a session stays load-only.
Why it blocks 4b
4b ships the host path by default. Without this issue, a user with an unreadable book has no way out on the default path, short of the rollback release.
Done when
- With the flag on, New or Open on a draft with an unreadable book leaves no book unreadable, and edits that reach the book apply.
- Tests cover this on the flag-on path.
Then
- Remove "Books whose stored analysis can't be read" from 4c's body.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 0
- Merge medio
- 1g 10h
- PR unite (30g)
- 74
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sillsdev/interlinearizer-extension
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sillsdev/interlinearizer-extension#552 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sillsdev/interlinearizer-extension#548 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sillsdev/interlinearizer-extension#543 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
sillsdev/interlinearizer-extension#537 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
sillsdev/interlinearizer-extension#515 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sillsdev/interlinearizer-extension
Issue simili
-
🐛 bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
LibreChat-AI/LibreChat#17733 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
TypeStrong/typedoc#3150 ·
-
accessibility bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Normalize image-source MIME types before SVG dispatchForse già presa @HarsH-1877 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
tscircuit/image-utils#58 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
I maintainer di solito rispondono entro 2 giorni