Count public holidays connected to a weekend #68

Closed
opened 2026-10-07 00:24:22 +02:00 by nessar · 4 comments
nessar commented 2026-10-07 00:24:22 +02:00 (Migrated from 172.24.0.1:8928)

Blocked by: #65, #62

Parent

What to build

The statistics popup counts weekday public holidays joined to a weekend by the calculated plan's time-off periods, including connections through leave and adjacent holidays beyond the horizon.

Source: the agreed Plan Statistics Popup spec for #3 and #29, including #9. Follow the domain glossary and ADRs 0004, 0006, and 0007.

Acceptance criteria

  • Show the number of distinct Monday-to-Friday French public-holiday dates in planned time-off periods containing at least one Saturday or Sunday. Each qualifying period contains at least one leave placement or declared non-working day.
  • Count direct Monday/Friday connections and connections through leave, such as a Tuesday holiday joined to a weekend by Monday off. Declared non-working days can provide the same connection without consuming a balance.
  • Exclude Saturday and Sunday public holidays, naturally long weekends without placed or declared leave, and weekday-only time-off periods that do not reach a weekend. A declaration never becomes a public holiday.
  • Include a qualifying holiday immediately outside the submitted horizon when it belongs to the period's full contiguous span. Friday leave followed by a weekend and a Monday holiday outside the horizon includes that Monday holiday.
  • Each holiday date contributes once. This is a date count, independent of the weighted public-holiday week value used in optimization; a qualifying Wednesday holiday contributes 1, not 3.
  • A valid plan with no qualifying dates displays 0. Complete and retained partial plans use their own producing outcomes and calendar facts, independently of trace delivery or pending input edits.
  • Behavior tests verify direct and bridged connections, declaration-only connections, weekend-holiday exclusion, natural long weekends, breaks reaching no weekend, adjacent out-of-horizon holidays, and duplicate dates. Assert the visible count, direct/worker consistency, and retained-plan behavior; run the repository's existing tests, lint, formatting, type checks, and production build.

This slice uses the canonical periods supplied by #62 and can proceed independently of #66's descriptive length statistics. It does not change optimization weights or placement decisions.

Blocked by

Blocked by: #65, #62 ## Parent - [#3](https://gitea.nessar.fr/nessar/vac-optimizer/issues/3) - [#29](https://gitea.nessar.fr/nessar/vac-optimizer/issues/29) ## What to build The statistics popup counts weekday public holidays joined to a weekend by the calculated plan's time-off periods, including connections through leave and adjacent holidays beyond the horizon. Source: the agreed Plan Statistics Popup spec for [#3](https://gitea.nessar.fr/nessar/vac-optimizer/issues/3) and [#29](https://gitea.nessar.fr/nessar/vac-optimizer/issues/29), including [#9](https://gitea.nessar.fr/nessar/vac-optimizer/issues/9). Follow the domain glossary and ADRs 0004, 0006, and 0007. ## Acceptance criteria - [ ] Show the number of distinct Monday-to-Friday French public-holiday dates in planned time-off periods containing at least one Saturday or Sunday. Each qualifying period contains at least one leave placement or declared non-working day. - [ ] Count direct Monday/Friday connections and connections through leave, such as a Tuesday holiday joined to a weekend by Monday off. Declared non-working days can provide the same connection without consuming a balance. - [ ] Exclude Saturday and Sunday public holidays, naturally long weekends without placed or declared leave, and weekday-only time-off periods that do not reach a weekend. A declaration never becomes a public holiday. - [ ] Include a qualifying holiday immediately outside the submitted horizon when it belongs to the period's full contiguous span. Friday leave followed by a weekend and a Monday holiday outside the horizon includes that Monday holiday. - [ ] Each holiday date contributes once. This is a date count, independent of the weighted public-holiday week value used in optimization; a qualifying Wednesday holiday contributes 1, not 3. - [ ] A valid plan with no qualifying dates displays 0. Complete and retained partial plans use their own producing outcomes and calendar facts, independently of trace delivery or pending input edits. - [ ] Behavior tests verify direct and bridged connections, declaration-only connections, weekend-holiday exclusion, natural long weekends, breaks reaching no weekend, adjacent out-of-horizon holidays, and duplicate dates. Assert the visible count, direct/worker consistency, and retained-plan behavior; run the repository's existing tests, lint, formatting, type checks, and production build. This slice uses the canonical periods supplied by #62 and can proceed independently of #66's descriptive length statistics. It does not change optimization weights or placement decisions. ## Blocked by - [#65 — Open plan statistics for calculated leave usage](https://gitlab.nessar.fr/nessar/vac-optimizer/-/work_items/65). - [#62 — Optimiser les périodes de repos autour des jours déclarés](https://gitea.nessar.fr/nessar/vac-optimizer/issues/62), which provides shared time-off periods including declared non-working days and adjacent context dates.
nessar commented 2026-10-07 00:25:42 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #9

mentioned in issue #9
nessar commented 2026-10-07 00:25:44 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #29

mentioned in issue #29
admin-backup commented 2026-10-07 23:16:33 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in commit 06adeb12d6

mentioned in commit 06adeb12d6abbb14f6584a4cb9c3b8250e677ca2
nessar (Migrated from 172.24.0.1:8928) closed this issue 2026-10-08 21:09:29 +02:00

Preserved GitLab #68 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 3.

gitlab-35-issue-68.md (SHA-256 f5abeb6ac894da956c53e2cc53763e260a9f98acee90c110163c3b6e0b675f43)

gitlab-35-issue-68.json (SHA-256 ebcf4807a9c19f07c00f1d4b3704c77d77217afd08c1b565d5ee2be1bdbe44d4)

Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.

<!-- gitlab-to-gitea-history:35:Issue:68 --> Preserved GitLab #68 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 0; visible source notes: 3. [gitlab-35-issue-68.md](https://gitea.nessar.fr/attachments/3268f443-60e3-4b9d-b60d-d87ce6209817) (SHA-256 `f5abeb6ac894da956c53e2cc53763e260a9f98acee90c110163c3b6e0b675f43`) [gitlab-35-issue-68.json](https://gitea.nessar.fr/attachments/7f209a91-8451-4d56-b738-08d8459e22b8) (SHA-256 `ebcf4807a9c19f07c00f1d4b3704c77d77217afd08c1b565d5ee2be1bdbe44d4`) Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.
gitea-emergency added this to the Development project 2026-10-11 22:14:31 +02:00
gitea-emergency moved this to Closed in Development on 2026-10-11 22:14:31 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nessar/vac-optimizer#68