docs: close BUG-20 (trip IDs renumbered 1..10, sequence clamped)

This commit is contained in:
Mathieu Moran
2026-08-14 22:05:09 -04:00
parent 01c7fdf0c4
commit 9af71e2395
2 changed files with 14 additions and 18 deletions
+3 -4
View File
@@ -2279,10 +2279,9 @@ logged as `BUG-XX` entries in [BUGS.md](./BUGS.md) (BUG-16 onward) and fixed + v
`SET TIME!`). SIM868 CR1220 installed + its RTC set via `AT+CCLK` (was 2004 default); hold
across power-off to confirm on next cycle. Optional follow-up: `AT+CCLK` boot-time clock
fallback in `app_gps.py`.
- **BUG-20 (server trip IDs inflate) — 🚧 IN PROGRESS**: `trips.id BIGSERIAL` burns sequence
values on every upsert (recompute runs after each upload batch), so IDs run far past the real
trip count (~10 trips, ids 27000+). Fix: clamp the sequence after each recompute + one-time
renumber migration.
- **BUG-20 (server trip IDs inflate) — ✅ FIXED**: `trips.id BIGSERIAL` burned sequence values
on every upsert (recompute after each upload batch). Fixed: sequence clamped to `MAX(id)`
after each recompute + one-time renumber migration — trips now 1..10, sequence at 10.
Open items from the drive — fill in as reported:
- (none clock-related — BUG-17/BUG-18 closed 2026-08-14).