Skip to content

VSN-1969/ Fix color inconsistency in TripPlanning DTO and add endpoint to sync colors from TripCircuit

ilyas makhloul a demandé de fusionner feature/vsn-1969 vers develop

Fix color inconsistency in TripPlanning DTO and add endpoint to sync colors from TripCircuit

This merge request fixes the issue where the TripPlanningDto was assigning random colors instead of using the color stored in the TripPlanning entity. Updates include:

  • Updated the DTO mapping logic to use the color stored in the database (TripPlanning.colorCode).
  • Applied the same fix for unassigned trips by using the color stored in the related TripCircuit.
  • Added a new endpoint to populate and synchronize all TripPlanning records with their corresponding TripCircuit colors, ensuring consistent data between both entities.

This change ensures that all colors displayed in the frontend are consistent with the backend data and accurately reflect the corresponding circuits.

Rapports de requête de fusion