follow-up(telemetry): P3 cleanups from #94 review (door transition broadcast) #102
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#102
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-ups from the pass-2 review of #94 (comment on #94). All P3; no P1/P2 remained.
Standards
_transition_events(door_service.py) falls back todoor_repo.get_by_code_sync()for doors missing fromself.doors. No current path reaches it (every path starts from a known door), it's untested, and on the async poll or reconciliation path it would be blocking SQLite I/O on the event loop. Delete it, or make it async and test it. Both review axes flagged this.str()/int()coercions. Use a typed input record.exclusionSource/exclusion_source; pick one canonical key.telemetry_engine.js_ingestDoorTransitionshas a third inline state→flags mapping and now a state→label mapping.⚫ Sin conexiónfor offline, and🟡 Abierta/🟢 Aseguradafor REMAIN_OPEN/REMAIN_CLOSED; the server'sDoorState.labelgives⚪ Fuera de Línea,Permanecer Abierta,🔒 Permanecer Cerrada.Spec
🤖 Generated with Claude Code
gabogg referenced this issue2026-09-25 18:14:27 +00:00
PR #112 second-pass review follow-ups (minor; keep this issue open after merge):
app/static/js/src/telemetry/telemetry_engine.js,_ingestDoors()consults the newdoorStatePresentation()but its final assignment still forces every non-open overview state toCLOSED. Reproduction: adoors_updatewithdoorState: 4andis_offline: trueyields a snapshot withdoorState: 1,stateKey: "closed",is_closed: true, andis_offline: true.REMAIN_CLOSEDis also collapsed. Have overview ingestion and snapshot flags use the shared presentation map, then test OFFLINE and commanded states across transition followed by overview.tests/test_door_transition_broadcast.py:153,160,189,296adds unannotated signatures, contrary todocs/standards/code-standards.md§2.2. Add explicit parameter and return annotations to the touched tests/helpers.The prior review's duplicated polling transition construction and cancellation finding are fixed in PR #112.