Remove the unused remaining-balance mirror #274

Closed
opened 2026-10-15 21:52:14 +02:00 by nessar · 0 comments
Owner

What to build

Keep the remaining-balance summary and details tied directly to the displayed plan, including a valid incomplete incumbent, while removing the unused second representation of remaining balances. This is the small prefactor before consolidating calculation ownership; it has no intended visible behavior change.

Acceptance criteria

  • Remove the writable remaining-balance mirror, the conversion that populates it, and the writes that clear or replace it. Confirm that every production consumer reads the displayed plan's remaining balances.
  • Preserve remaining quantities, expiry classifications, validity dates, earned-entitlement sources, non-placement reasons, and the wording used for incomplete calculations in the summary and details.
  • Verify completed plans, incomplete calculations with and without a valid incumbent, invalid input, and planning conflicts. The summary and details describe the same accepted outcome without leftover values from a preceding result.
  • Update tests that inspect the removed mirror to assert the supported summary, details, or displayed-plan behavior. Retain distinct checks for input immutability, replacement, and error handling rather than deleting their coverage with the obsolete field.
  • Update all affected callers and test fixtures in the same change. Preserve locally saved leave balances, declared non-working days, planning dates, and rule configurations.
  • Run the affected component and input-service tests and the required static checks. Record the result and any existing failures separately from regressions caused by this change.

Integration

Use the shared feature/planning-architecture integration branch, based on the latest origin/develop, for these four architecture tickets. Each replacement includes its affected callers and tests. The final integration gate is recorded in ticket #275; integrate through a PR to develop after that gate passes. Do not add transitional result models or compatibility adapters.

Blocked by

  • None — can start immediately.
## What to build Keep the remaining-balance summary and details tied directly to the displayed plan, including a valid incomplete incumbent, while removing the unused second representation of remaining balances. This is the small prefactor before consolidating calculation ownership; it has no intended visible behavior change. ## Acceptance criteria - [ ] Remove the writable remaining-balance mirror, the conversion that populates it, and the writes that clear or replace it. Confirm that every production consumer reads the displayed plan's remaining balances. - [ ] Preserve remaining quantities, expiry classifications, validity dates, earned-entitlement sources, non-placement reasons, and the wording used for incomplete calculations in the summary and details. - [ ] Verify completed plans, incomplete calculations with and without a valid incumbent, invalid input, and planning conflicts. The summary and details describe the same accepted outcome without leftover values from a preceding result. - [ ] Update tests that inspect the removed mirror to assert the supported summary, details, or displayed-plan behavior. Retain distinct checks for input immutability, replacement, and error handling rather than deleting their coverage with the obsolete field. - [ ] Update all affected callers and test fixtures in the same change. Preserve locally saved leave balances, declared non-working days, planning dates, and rule configurations. - [ ] Run the affected component and input-service tests and the required static checks. Record the result and any existing failures separately from regressions caused by this change. ## Integration Use the shared `feature/planning-architecture` integration branch, based on the latest `origin/develop`, for these four architecture tickets. Each replacement includes its affected callers and tests. The final integration gate is recorded in ticket [#275](https://gitea.nessar.fr/nessar/vac-optimizer/issues/275); integrate through a PR to `develop` after that gate passes. Do not add transitional result models or compatibility adapters. ## Blocked by - None — can start immediately.
nessar added the ready-for-agent label 2026-10-15 21:52:14 +02:00
nessar added a new dependency 2026-10-15 21:52:16 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: nessar/vac-optimizer#274