bug(schedule): saving unchanged weekly schedule form stages empty pending change #249
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#249
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?
Follow-up for PR #177 (next-day settings activation, #114) addressing pass-4 review finding P3-2:
Scope
Saving the weekly schedule form when no fields have changed from active values and nothing is currently pending stages an empty
WEEKLY_SCHEDULEpending change (payload = {"items": []}) and returns a "Weekly schedule saved, takes effect tomorrow" notice instead of treating the form as clean/unchanged.Acceptance Criteria
Refs #177, #114.
Adding scope from PR #177 review pass 5 (standards P3-C), same code path. The P2-B fix copies the whole
WeeklyScheduleUpdateResult/DayScheduleItemcomprehension into both branches (occupancy_service.py~448 and ~481). The ACTIVE branch also computes aneffective_datefor a change that was never staged. Build the result once when fixing the empty-change case.