From ec99aad217bd2036189cdcee4b7c64ccffe9675b Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Mon, 16 Feb 2026 15:08:15 +0100 Subject: [PATCH] =?UTF-8?q?Update=20CONTEXT.md=20for=20session=2020=20?= =?UTF-8?q?=E2=80=94=20hub=20bugs=20+=20backup=20validation=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- CONTEXT.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/CONTEXT.md b/CONTEXT.md index 8c0c832..a2afdc9 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -7,7 +7,7 @@ > > Ask Claude Code: "Please update CONTEXT.md with what we did today" -Last updated: 2026-02-16 (session 19) +Last updated: 2026-02-16 (session 20) --- @@ -22,7 +22,7 @@ Last updated: 2026-02-16 (session 19) ## Current project state ### felhom-controller (this repo) -- **Version:** v0.6.1 +- **Version:** v0.6.2 - **Phase 1:** ✅ COMPLETE — Stack Manager + Deploy Flow - **Phase 2:** ✅ COMPLETE — Monitoring & Health (scheduler, CPU/temp, healthchecks.io pings) - **Phase 3:** ✅ COMPLETE — Backups (DB dumps, restic integration, manual trigger, **dedicated backup page**) @@ -31,7 +31,17 @@ Last updated: 2026-02-16 (session 19) - **Running on:** demo-felhom (N100 mini PC) at 192.168.0.162:8080 - **All Phase 1-4 features working:** deploy, start/stop/restart/update, logs, health-aware states, auth, monitoring, backups, backup detail page, system monitoring page -### What was just completed (2026-02-16 session 19) +### What was just completed (2026-02-16 session 20) +- **Hub Dashboard Bugs + Backup Validation Fix (3 bugs):** + - **Bug 1&2 (Hub repo, felhom-hub v0.1.2):** Hub timestamp parsing failure — `time.Parse` with single hardcoded format silently failed for formats returned by `modernc.org/sqlite`. Added `parseSQLiteTime()` that tries 6 common formats. Fixed: hub main page showing DOWN despite OK status, and report history timestamps showing 00:00:00. + - **Bug 3 (Controller repo, v0.6.2):** Backup page showing "Hiba" for all DB validations — zero-value `DumpValidation{}` (never assigned) hit the `{{else}}` branch in template. Three fixes: + - Template: 4-branch guard (Valid → OK / Error → Hiba / zero-value → "–" with tooltip) + - Debug logging: Added `[DEBUG]` and `[WARN]` log lines to all `ValidateDump()` code paths + - Re-validation: `RefreshCache()` now cross-checks `lastDBDump` results against fresh `ListDumpFiles()` validation, healing stale in-memory state + - **Deployed:** Hub v0.1.2 to k3s, Controller v0.6.2 to demo-felhom + - **Verified:** Controller logs show `ValidateDump OK` for all 3 databases (immich: 60 tables, paperless: 67 tables, romm: 14 tables) + +### What was previously completed (2026-02-16 session 19) - **v0.6.1 — Code Review Bugfixes (7 fixes):** - **Fix 1:** `http.NotFound(w, nil)` → pass actual `*http.Request` in `deployHandler` and `appDetailHandler` - **Fix 2:** Dashboard running/stopped counts now computed from the filtered `deployedStacks` set (was counting ALL stacks including non-deployed)