OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
GNU Lesser General Public License v3.0
437 stars 40 forks source link

Simulation summary endpoint is called unnecessarily #7989

Closed flomonster closed 1 month ago

flomonster commented 2 months ago

What happened?

When a scenario is already open, if the user changes the project of the space-time chart the front re-calls the simulation_summary endpoint.

What did you expect to happen?

The simulation_summary endpoint should be called only when the timetable is loaded.

How can we reproduce it (as minimally and precisely as possible)?

  1. Go to a scenario with multiple trains
  2. Open the browser debugger (network tab)
  3. Change the train schedule used for the projection

What operating system, browser and environment are you using?

OSRD version (top right corner Account button > Informations)

3a4069c

clarani commented 1 month ago

Validated ✅