Remove the V1 database importer
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
The /api/import/v1 endpoint, server/services/v1import.ts and its test are
gone; Settings already restores full V2 backups in that place. MIGRATION.md
now covers V1 JSON exports and running the old importer from history
(7125dec), plus moving data between V2 installs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7125dec3e0
commit
5fef59b07b
6 changed files with 29 additions and 359 deletions
|
|
@ -204,8 +204,9 @@ 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
|
||||
Settings → Data → Import now restores a full backup zip in place of the V1 import row. The V1
|
||||
database importer was then removed entirely (route, service and its test; it remains in git
|
||||
history at `7125dec`, 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.
|
||||
|
|
@ -218,7 +219,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: **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
|
||||
Added six regression tests. Full `npm run check` passes: **290 tests** (V1 importer removed, 2026-11-16; 291 after full-backup restore; 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