fix(schedule): activating a pending schedule exception skips the holiday audit trail #255
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#255
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 #177 review pass 5 (spec axis). Confirmed by a probe.
Finding
apply_pending_change_transaction_async(theSCHEDULE_EXCEPTIONandSCHEDULE_EXCEPTION_DELETEbranches inapp/db/occupancy_repository.py) writesoccupancy_holidayswith raw INSERT and DELETE statements. It bypassesadd_holiday_asyncanddelete_holiday_async, so activation writes nooccupancy_holiday_auditrow (CREATE, UPDATE or DELETE).get_holiday_audit_async(holiday_date="2026-06-16")returns[]after a pending holiday exception activates.OPERATIONAL_ACTIVATION, so the change is traceable. But the two audit trails (#114 and #161) disagree._sync_record_holiday_asyncat activation is correct, because syncing would re-cut a frozen day.Acceptance Criteria
Set to
low-priority(maintainer, 2026-10-03). This is only a gap in the admin audit trail: activation already recordsOPERATIONAL_ACTIVATIONin the settings audit, and holiday behavior is correct.