refactor(occupancy): pass-2 P3 follow-ups from PR #170 (historical flow curation) #273
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#273
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 review pass 2 of PR #170. These are polish and test gaps and none blocks the M1 delivery, so this issue stays outside the milestone.
Code:
_make_hour_coverage(flow_history_service) is a Middle Man that only forwards 15 kwargs.SPECIAL_EVENTbranch (svc ~1015) can't be reached;ALTER TABLE ... ADD COLUMN revisionmigration targets a table that never shipped;CurationAuditActionis unused.?reason=and uses the deprecatedHTTP_422_UNPROCESSABLE_ENTITY;dict[str, Any]passes between layers (code-standards §2.3). SQL column names are built fromupdates.keys(); whitelist them.actionis a plainstr.BEGIN IMMEDIATEpaths have no explicitrollback(), unlike the module pattern.VALIDATION_ERROR, though it is a state conflict (409); tests accept either code._CLOCK_PATTERNis imported across modules though it is private, andvalidate_hoursimportsreinside the function.th,ar,dr,sr,zr.open_timelater thanclose_time, and an event ending before it starts.schedule_confirmed, even a status-only review; the spec only asks to reset it on context edits.get_month_summary_async's "latest settled attempt per (day, camera)".stallanomalies (globalgroup_code='*', and per-group "counter advanced without events") and uses today's camera groups (plausible).Tests and docs:
8c78911).min_length, not the evidence gate.docs/api/README.mdlabels ("Confirm Zero Flow", "Update Curation Weekly Schedule") don't match the route names.Acceptance criteria