fix(schedule): cancel a pending change and write its audit row in one transaction #257
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#257
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 (standards axis).
Finding
cancel_pending_change_async(app/services/occupancy_service.py~665-678) supersedes the pending change and then inserts theCANCELLATIONaudit row, using two repository calls that each open their own connection. If the second call fails, the change is cancelled with no audit row. Pass 3 (P2-5) already moved a similar pair onto connection-taking repository methods.Acceptance Criteria