refactor(statistics): consolidate duplicate is_closed and closed fields in hourly response #223
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#223
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?
P3 follow-up from PR #178 review pass 3 (r32 item b).
Finding
PresenterHourlyResponseemits bothis_closedand the newclosed(app/schemas/statistics.py:100, 168), andday_view.js:703reads both.DailyStatistics.is_closedalready existed in the domain model. Having duplicate boolean fields for the same semantic property causes ambiguity in serialization and client rendering.Acceptance Criteria
is_closedandclosedinPresenterHourlyResponseinto a single field (is_closed).day_view.jsand any other frontend consumers to read onlyis_closed.Refs #178, #161.