follow-up(telemetry): P3 cleanups from #91 review (throttle and Direction type) #98
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#98
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 #91 (comment on #91). All P3; the one P2 (stale PR description) was fixed before merge.
Standards
lastRunAtwrite.fire()inapp/static/js/src/utils.jssetslastRunAt, thenrefreshOccupancyData()callsmarkRan()again. Drop one or document that re-marking is expected.PassengerFlowEventuses@field_validator(..., mode="before")for upper-casing while the module otherwise usesAnnotated[..., BeforeValidator(_upper_direction)].tests/test_direction_type.pyparametrises over two models with different contracts and then branches onmodel is ...; split into two tests with honest names.occupancy_controller.pycallspayload.direction.upper()twice; bind a local.Spec
markRan()wiring untested (from pass 1). The throttle tests callschedule.markRan()by hand; nothing fails ifrefreshOccupancyData()stops calling it.utils.jssays "the next push retries when it ends"; nothing retries on its own. Suggested: "a push arriving during the window is held until it ends; nothing retries on its own."record_counting_event_asyncacceptsDirectionbut returnsPassengerFlowEventwithdirection: str.directionstring on write (occupancy_repository.py); a DBCHECKor validated write model would stop non-IN/OUT rows at the source.🤖 Generated with Claude Code