Skip to content

feat(absence): align passenger absence with per-day trip logic

yassine sabir a demandé de fusionner feature/VSN-2339 vers develop

Extend PassengerAbsenceEvent to include dailyTrips (list of { date, trip: Outbound|Return }) alongside existing concernedTrip.

In this absence service, when sending the Kafka event:

  • If dailyTrips is non‑empty → use it as source of truth and derive concernedTrip as the union of all trips in dailyTrips.
  • If dailyTrips is empty/null → fall back to the old full‑period behavior based only on concernedTrip.

The circuit service consumer now:

  • Applies absences per day and per sens when dailyTrips is present (only those dates/trips are affected).
  • Keeps previous full‑period behavior when dailyTrips is absent.
Modification effectuée par yassine sabir

Rapports de requête de fusion