2.3 KiB
TASK.md — Post-deploy fixes (v0.12.7a)
Prompt (copy-paste this into Claude Code)
Read TASK.md for context. The code changes are already applied. Build, deploy, and verify.
Context
v0.12.7 was deployed with two issues discovered during testing:
Fix A: Restore showed "Nincs elérhető mentés" for Immich
Root cause: filterSnapshotsByPaths in router.go filtered snapshots by HDD mount
paths. Older snapshots (taken before v0.12.7 made HDD backup mandatory) don't contain
HDD paths, so they got filtered out — leaving zero snapshots for Immich.
Fix applied: Removed the path filtering entirely (router.go line 460-469). All
snapshots contain config + DB dumps, so they're useful for any app. The RestoreApp
function extracts whatever paths are available from the snapshot.
Note: filterSnapshotsByPaths and pathCovers functions are now unused but kept for
potential future use. They won't cause compile errors (Go only errors on unused
variables/imports, not functions).
Fix B: "Nincs beállítva" warning was misleading
Root cause: With mandatory nightly restic backup, user data IS backed up to the local drive. The missing piece is only the second copy (cross-drive). The old messages implied no backup at all.
Changes applied:
handlers.goline 601-604: Status changed from"red"→"yellow", StatusText from"Felhasználói adatokról nincs mentés"→"Nincs második másolat (csak helyi mentés)"backups.htmlline 315: Added✓ Helyi mentés autobadge before⚠ Nincs 2. másolatstyle.css: Added.layer-auto-okclass (green text for the auto badge)
Steps
- Run
go build ./...andgo vet ./...from the controller/ directory — fix any errors - Update CHANGELOG.md: add v0.12.7a entry (session 44):
- Fix: restore dropdown now shows snapshots for all apps (removed HDD path filtering)
- Fix: user data warning clarified — shows "Helyi mentés auto / Nincs 2. másolat" instead of the misleading "Nincs beállítva"
- Commit, build, and deploy following the workflow in CLAUDE.md
- Verify:
- Immich now shows restore snapshots (should list all available snapshots)
- Paperless-ngx and RomM show yellow dot (not red) with "✓ Helyi mentés auto · ⚠ Nincs 2. másolat"
- Mealie/Gokapi (no HDD) still show correctly with config+DB restore