fix(occupancy): stamp past holiday days atomically with the exception write #245
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#245
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 4 (both axes).
Finding
add_schedule_exception_async(app/services/occupancy_service.py~239-249) commits the exception, then stamps the past day in a second transaction. If the stamp raises (for example in a reset race), the exception is saved but the day has no business-day record. That reopens the "readers split" defect from r32 P2-3 for that day.classify_holiday_async(~288-299), and only the condition differs.Acceptance Criteria
_ensure_completed_day_stamped(day, actor, reason)) is used by both call sites.