chore(statistics): PR #168 third-pass P3 follow-ups (camera group leftovers, busiest day wording, omitted-field schema) #220
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#220
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?
Deferred P3 findings from the third review pass on #168 (period and Closed Day follow-ups, plus #200
camera_groupand #201busiest_day). None of them blocked the merge. Under the repo rule, a follow-up PR's third-pass P3s become one linked issue.Camera Group (#200 leftovers)
occupancy.zoneLabelis still defined in EN and ES but unused. The #200 brief said "Rename the key".tr('occupancy.noCameraGroup', 'General'), so a missing key shows "General" again.'General'intozone_name, where the brief said "stops writing zone_name". The column default already covers it.zone_name(and #209 later drops the column).SELECT c.*, g.resource_group_name AS camera_group … LEFT JOIN counting_camera_groupstext appears 3 times in the repository.tests/test_occupancy.pywritescounting_camera_groupswith inline SQL, althoughregister_camera_groups_asyncexists.docs/api/README.mdsays "counting camera group"; the glossary term is Camera Group.is_excludedandresource_group_code; before, they served the defaults. It's harmless, but not described.Busiest Day (#201 leftovers)
best_dayin the summary service, and "best day" indocs/architecture/rfc-statistics-deck-display-model.md._Avoid_: best dayrule.Comparisons and the PR record
exclude_if=lambda v: v is Noneis repeated 14 times inapp/schemas/statistics.py. The OpenAPI schema also still marks those fields nullable, although the wire omits them.Annotatedalias, e.g.OmittedIfNone, plus one line indocs/api/README.mdsaying such fields are omitted rather than null.Refs #168, #99, #111, #120, #200, #201, #209.
🤖 Generated with Claude Code
Item 3 (the camera INSERTs writing
'General'intozone_name) is superseded by #209, which is now unblocked and removes the column and every reference to it. Skip item 3 here to avoid conflicting edits.