MosswartOverlord/go-services/inventory-go
Erik 5ade47dc64 feat: Go backend production cutover — website layer, ingest forwarding, alerts, live fixes
Completes the Go backend so it can fully replace Python in production:

tracker-go website layer (serves the unchanged frontend):
- static file serving + SPA fallback + /icons (website.go)
- login/logout with itsdangerous cookie ISSUING (bcrypt, Python-interop) and the
  /me handler (auth.go issueSessionCookie + website.go)
- admin user CRUD (website_admin.go) and the issue-board write side (website_issues.go)
- request-scoped user context + requireAdmin (auth.go)

cutover ingest (gated off during the parallel run, required for a clean cutover):
- inventory forwarding: full_inventory -> /process-inventory, inventory_delta ->
  item POST/DELETE, per-character serialized, fire-and-forget (inventory_forward.go)
- death/idle Discord alerts via DISCORD_ACLOG_WEBHOOK (aclog.go)
- SKIP_SCHEMA_INIT so write mode against the prod DBs runs no DDL (tracker-go + inventory-go)

two bugs found live and fixed:
- coerceNum: the plugin sends kills_per_hour/deaths/total_deaths/prismatic_taper_count
  as STRINGS; pydantic coerced them, Go's number helpers wrote null/0 (reads.go/ingest.go)
- telemetry is broadcast TYPELESS so the browser ignores it and uses the /live poll;
  broadcasting it typed flapped the per-player counters 0<->value (ingest.go stripType)

docker-compose.cutover.yml: reversible override flipping the Go services to write
mode against the production DBs and repointing the Discord bot at the Go /ws/live.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 19:46:40 +02:00
..
Dockerfile feat(go-services): inventory-go Phase A — read-side scaffold + simple endpoints 2026-06-24 11:33:55 +02:00
go.mod feat(go-services): inventory-go Phase A — read-side scaffold + simple endpoints 2026-06-24 11:33:55 +02:00
ingest.go feat(go-services): inventory-go Phase C — ingestion (validated, isolated DB) 2026-06-24 12:42:26 +02:00
main.go feat: Go backend production cutover — website layer, ingest forwarding, alerts, live fixes 2026-06-24 19:46:40 +02:00
process.go feat(go-services): inventory-go Phase C — ingestion (validated, isolated DB) 2026-06-24 12:42:26 +02:00
schema.go feat(go-services): inventory-go Phase C — ingestion (validated, isolated DB) 2026-06-24 12:42:26 +02:00
search.go feat(inventory-go): port the suitbuilder solver (/suitbuilder/search) — validated 2026-06-24 14:03:59 +02:00
slotname.go feat(inventory-go): port the suitbuilder solver (/suitbuilder/search) — validated 2026-06-24 14:03:59 +02:00
store.go feat(go-services): inventory-go Phase A — read-side scaffold + simple endpoints 2026-06-24 11:33:55 +02:00
suit_http.go feat(inventory-go): port the suitbuilder solver (/suitbuilder/search) — validated 2026-06-24 14:03:59 +02:00
suit_model.go feat(inventory-go): port the suitbuilder solver (/suitbuilder/search) — validated 2026-06-24 14:03:59 +02:00
suit_solver.go feat(inventory-go): port the suitbuilder solver (/suitbuilder/search) — validated 2026-06-24 14:03:59 +02:00