refactor(occupancy): consolidate duplicated original-schedule holiday flag override #226

Open
opened 2026-10-03 06:55:32 +00:00 by gabogg · 0 comments
Owner

P3 follow-up from PR #178 review pass 3 (r32 item a).

Finding

The original-schedule holiday flag is overridden in two distinct locations:

  1. occupancy_repository.py (~:1544-1556) in get_original_business_day_schedule_async.
  2. occupancy_service.py (~:596-603) in get_original_business_day_schedule_async.
    Duplicating this resolution logic risks drift between repository-level and service-level retrieval.

Acceptance Criteria

  • Consolidate the original-schedule holiday resolution into a single canonical helper or method.
  • Ensure both repository and service rely on the single canonical implementation without duplicating override logic.
  • Verify consistency with ADR 0008 and CONTEXT.md.
  • All tests pass cleanly.

Refs #178, #161.

P3 follow-up from PR #178 review pass 3 (r32 item a). ### Finding The original-schedule holiday flag is overridden in two distinct locations: 1. `occupancy_repository.py` (~:1544-1556) in `get_original_business_day_schedule_async`. 2. `occupancy_service.py` (~:596-603) in `get_original_business_day_schedule_async`. Duplicating this resolution logic risks drift between repository-level and service-level retrieval. ### Acceptance Criteria - Consolidate the original-schedule holiday resolution into a single canonical helper or method. - Ensure both repository and service rely on the single canonical implementation without duplicating override logic. - Verify consistency with ADR 0008 and CONTEXT.md. - All tests pass cleanly. Refs #178, #161.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gabogg/hikcentral#226
No description provided.