The directory re-read every raw observation of the hours not yet
rolled up: on prod about 293k rows for the open hour, a heap page each
(new rows land wherever cleanup freed space), 7 of the 8 s an
all-regions request took. The ingesting process now also counts each
stored observation per minute, observer and IATA, and the directory
adds those up for hours wholly counted, reading raw rows only for the
last partial minute. Partial or cleanup-thinned hours and processes
that don't ingest read raw rows as before; results are identical (an
integration test compares both paths).
Release the changes on `dev` as v2.0.2: authenticated MeshMapper imports and the traffic-sorted observer directory, including rolling seven-day counts from available history. Bump the API version and regenerate Swagger.
MeshMapper integration requires an API key. Regional admins’ existing per-region or grouped-region coverage keys also work for these APIs. Deployments should set `MESHMAPPER_API_KEY` and restart Beacon.
Validation: `go build ./...`, `gofmt -l .` (empty), `go vet ./...`, `go test ./...`, `govulncheck ./...`, and race tests for MeshMapper and scopestore passed in a clean checkout. PostgreSQL integration tests require CI because Docker is unavailable locally.