Restore a full backup from Settings
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 30s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 30s
Settings → Data → Import gets "Restore a full backup" in place of the V1 import row. The zip from "Download backup" is uploaded and replaces the database, every setting and the uploaded files on the running server: - the staged database is upgraded to this schema (newer backups are refused), saved keys are re-encrypted for this server's key, interrupted jobs are marked, and the restoring session is carried over; - a pre-restore snapshot is written, running generations stop, and the file is swapped under the open DB handle (DB.replaceWith); uploads and media are copied into place and background work restarts. The /api/import/v1 endpoint stays for the V1 cutover (docs/MIGRATION.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e0bc7b580e
commit
7125dec3e0
13 changed files with 521 additions and 72 deletions
|
|
@ -204,6 +204,12 @@ sheet on phones. The drawer is resizable for both (drag the edge, 340-760 px, do
|
|||
reset, remembered per browser). Checked in the browser at 1440, 1100 and 375 px wide, with a live
|
||||
answer streamed on a share link.
|
||||
|
||||
Settings → Data → Import now restores a full backup zip in place of the V1 import row (the
|
||||
`/api/import/v1` endpoint stays for the V1 cutover; see docs/MIGRATION.md). The restore replaces
|
||||
the database, settings and files without a restart, re-encrypts saved keys for this server, keeps
|
||||
a `pre-restore-*` snapshot and keeps the person signed in. Tests: `tests/restore.test.ts`;
|
||||
round trip on the rev1 copy: 1 MB backup restored in 75 ms, same library, still signed in.
|
||||
|
||||
Tests: `tests/revision5.test.ts`. Live check on the rev1 copy with DeepSeek flash: a visitor's
|
||||
10-card set was written, named ("Heparin, Furosemide, and Dosage Calculations"), saved and
|
||||
listed once with the New tag; cards were single facts with no hints. The rev1 copy's 401 was its
|
||||
|
|
@ -212,7 +218,7 @@ stored DeepSeek connection still holding the old key; it was updated from `.env`
|
|||
## Verification status
|
||||
|
||||
Baseline: 162 tests passed, TypeScript passed and production web/server builds passed.
|
||||
Added six regression tests. Full `npm run check` passes: **289 tests** (rationale layout, 2026-11-16; 285 after varied openers; 281 after generation steps; 280 after the check loop and second review; 274 after the fifth revision; 261 after share-link generation, 2026-11-15; 257 after the fourth revision; 247 after the third, 208 after the second, 181 on 2026-11-12), TypeScript
|
||||
Added six regression tests. Full `npm run check` passes: **291 tests** (full-backup restore, 2026-11-16; 289 after rationale layout; 285 after varied openers; 281 after generation steps; 280 after the check loop and second review; 274 after the fifth revision; 261 after share-link generation, 2026-11-15; 257 after the fourth revision; 247 after the third, 208 after the second, 181 on 2026-11-12), TypeScript
|
||||
and both production builds. The Docker `test` stage runs the same 181 tests on Node 24. Tests were run with loopback access for the mock provider.
|
||||
|
||||
The earlier agent manually exercised quiz completion/results, flashcards, streak effects,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue