mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-04-27 03:25:12 +00:00
7155b5b017
## Summary - fix observer upsert write path in `cmd/ingestor` to persist identity fields - map status payload fields into observer metadata: `model`, `firmware`/`firmware_version`, `client_version`/`clientVersion`, `radio` - keep NULL-safe behavior when identity fields are missing - add regression tests for identity persistence and missing-field handling ## Root cause The ingestor only wrote telemetry (`battery_mv`, `uptime_secs`, `noise_floor`) and never included observer identity columns in the upsert statement, leaving `model`, `firmware`, `client_version`, and `radio` NULL on fresh DBs. ## Testing - `cd cmd/ingestor && go test ./...` - `cd cmd/server && go test ./...` Fixes #295 --------- Co-authored-by: Kpa-clawbot <259247574+Kpa-clawbot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>