chore(schedule): third-pass P3 follow-ups from PR #222 #274
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#274
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?
Third-pass P3 findings from PR #222 (review on #222, spec #184 + #258). None blocks merge.
HolidayItem.normalize_stored_name(app/schemas/occupancy_models.py:493-496),app/services/occupancy_service.py:1254and:1283all strip a name and map blank toNone;:1283also relies onA or B if C else Dprecedence. Extract one helper (e.g.stored_exception_name(value) -> str | None) and call it from all three.tests/test_occupancy.py:177-178rebuilds the expected label with the production fallback. Pin the literal day name.test_unnamed_exception_stamped_and_live_remain_null(tests/test_next_day_settings_activation.py:1555) never checks live info. Assert/api/occupancy/liveholiday_name is Nonefor a current-day unnamed exception, or rename the test.2026-01-15; derive the past date relative to now.app/static/js/i18n.js:78(timespanWorkingHours) uses it for opening hours;:230(operationalCycleDesc) uses it for the business cycle. Reword:230to "...Mantiene unida la jornada nocturna".app.js:2383prefillsexception_namewith''; submitting withis_exceptionreturns 422 because corrections require a name (intended, documented in CONTEXT.md:131). Add a client-side hint before submit.