Undo an interrupted theme update at startup instead of waiting for the next update
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- backend
Direzione di ricerca
Start with packages/builder-server/src/services/themeUpdateService.js and app/server-common.js; trace how interrupted theme updates are recovered and how startup processes projects. Check the existing update lock and recovery tests before deciding where startup recovery belongs. Done means a leftover interrupted update is undone at startup, with a test, or the issue is closed with reasoning that retrying the update already covers recovery.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
After a crash mid theme update the site looks broken until the update is pressed again.
Recovery (recoverInterruptedUpdate, themeUpdateService.js) runs only at the start of the next applyThemeUpdateToDir. Checked 2026-10-06 at 46119daa: after a crash mid-swap the update is still offered, because checkForUpdates compares the project row's themeVersion with the theme source, and the row is written only after applyThemeUpdateToDir returns. With notifications on (they must be, for the update to have been started), pressing "Apply update" again undoes the half-finished swap and applies the update cleanly. A crash after the plan file is removed but before the row write leaves new files under the old version; re-applying is harmless (noted in applyThemeUpdateExclusively). The remaining gap is the time until the user presses update again: folders such as assets/widgets sit inside .theme-update-backup, so pages render without them, a site export or backup made meanwhile omits them (dot-folders are excluded), and nothing tells the user the broken site and the update notice are connected. The same state follows an undo that itself failed ("The theme update could not be completed. Please try again."). Only a theme removed or downgraded meanwhile would leave nothing to trigger recovery.
Recommended: on server start, check each project for a leftover .theme-update-backup/ and run the recovery under the per-project update lock (a crash always means a restart), and export that as a function embedding apps can call per project. Optional: before a site export or backup, refuse with a clear message if an interrupted update could not be undone. Owner's alternative: close as covered by retrying the update.
Done when: A leftover interrupted update is undone at startup (or the task is closed with that reasoning), with a test.
Start: themeUpdateService.js, server-common.js. Source: 2026-10-05 code review of 48eef6f4..9e98dad7; narrowed 2026-10-06.
- Lingua principale
- JavaScript
- Stelle
- 162
- Fork
- 6
- Merge medio
- 12h 55m
- PR unite (30g)
- 2
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
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 tsiger/widgetizer
-
question
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
tsiger/widgetizer#194 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tsiger/widgetizer#181 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
tsiger/widgetizer#175 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tsiger/widgetizer#174 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tsiger/widgetizer#173 ·
Tutte le issue di tsiger/widgetizer
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
fossasia/scrum_helper#949 ·
I maintainer di solito rispondono entro 2 giorni
-
Learn Faust tutorial: Blocks step says Faust loads block CSS, but no WordPress styles are appliedAperta[Type] Bug Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
TheOdinProject/curriculum#31493 ·
I maintainer di solito rispondono entro 1 giorno
-
[Report] Some official plugins are marked as Stable, but their Readme says they are experimentalAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
TiddlyWiki/TiddlyWiki5#10061 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation ready
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno