55 lines
2.3 KiB
Markdown
55 lines
2.3 KiB
Markdown
# 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:**
|
|
1. `handlers.go` line 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)"`
|
|
2. `backups.html` line 315: Added `✓ Helyi mentés auto` badge before `⚠ Nincs 2. másolat`
|
|
3. `style.css`: Added `.layer-auto-ok` class (green text for the auto badge)
|
|
|
|
---
|
|
|
|
## Steps
|
|
|
|
1. Run `go build ./...` and `go vet ./...` from the controller/ directory — fix any errors
|
|
2. 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"
|
|
3. Commit, build, and deploy following the workflow in CLAUDE.md
|
|
4. 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
|