No description
Implement hourly occupancy history endpoint that returns zone_history records from the database. The endpoint returns hourly snapshots with count and people list, supporting period query parameter (24h, 7d, 30d). Changes: - Modified GetZoneHistory to query zone_history table instead of computing from crossing_events - Added encoding/json import to parse people JSON field - Split database schema creation into manager_migrate.go for editability - Split zone history snapshot logic into manager_history.go - Updated tests to insert zone_history data instead of crossing_events The zone_history table stores pre-aggregated hourly snapshots written by RecordZoneHistorySnapshot, which should be called periodically. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .beads | ||
| .github/workflows | ||
| .marathon | ||
| dashboard | ||
| docs | ||
| firmware | ||
| mothership | ||
| test/acceptance | ||
| tests/e2e | ||
| .dockerignore | ||
| .gitignore | ||
| .golangci.yml | ||
| .needle-predispatch-sha | ||
| .needle.yaml | ||
| API_IMPLEMENTATION_STATUS.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| fix_ble_handlers.py | ||
| go.work | ||
| PROGRESS.md | ||
| VERSION | ||