chore: clean up backend code and build shared deps in CI
Lint / Lint (push) Successful in 1m5s
Tests / Go backend (push) Failing after 1m17s
Docker / Docker Build & Push (push) Failing after 4m28s
Tests / Dashboard checks (push) Successful in 1m6s

This commit is contained in:
Gabriel20xx committed 2026-10-20 19:31:16 +00:00
1 parent 97c237be80
commit 94d52c7622
10 files changed
+17 -150

No files matched your search

+1
View File
@@ -76,6 +76,7 @@ The backend is small and readable, but its transactional and delete logic is dup
- **Description:** Dead helpers and an unused client remain in place. The retired tables are still managed by startup code even though nothing reads them.
- **Impact:** Noise for maintainers, and a secret held in memory for no purpose.
- **Recommendation:** Remove `isNoRows`. Construct the CarrierNode client only when a feature uses it. Drop the session-pruning goroutine, or document why it stays.
- **Status:** Partly fixed 2026-10-20 — removed `isNoRows` and the unused CarrierNode client construction/field. Retired auth tables and their pruning remain in place to avoid changing stored-data retention in this cleanup. Files: `backend/notifications.go`, `backend/server.go`.
### Q-009 · Several failures are discarded without a comment on the risk · **Low**
- **Location:** `backend/data.go:424` and `:587` (`_ = decodeJSON(...)` on DELETE and PUT with an optional body); `backend/data.go:620` (`_, _ =` on the item value delete); `backend/data.go:618-619` (a failed item re-read silently skips the notification); `backend/sync.go:211` (raw database error text is logged, which can include values).