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
415 stars 40 forks source link

`Electric traction` weird behavior in speed time chart #6540

Open bloussou opened 5 months ago

bloussou commented 5 months ago

On a combustion engine path currently it is not possible to select or deselect the Electric traction display. If you first select electric traction in a train with electric traction and then switch to a combustion engine train : you cannot remove the electric traction info:

https://github.com/osrd-project/osrd/assets/32448554/e389862c-af31-4939-a2f8-308ce5d6a070

Solution:

Version staging e220992

RomainValls commented 4 months ago

In the case where we always allow Electric traction to be selected :

SharglutDev commented 4 months ago

Can't reproduce the bug. Is there a specific pattern @bloussou ?

https://github.com/osrd-project/osrd/assets/113104137/2b79898f-fa8a-4499-8bc0-2cf73b6c1762

bloussou commented 4 months ago

There is no need to deactivate the electric traction for thermal RS. It is too much logic and makes it painfull for the user: You miss click on a thermal rolling stock in the list while checking electricity then the button is deactivated. so when you are back on an electric RS you have to click again on the button. IMO the user must be the only one to choose whether electric traction is displayed or not, no logic must to be done in the front

thibautsailly commented 4 months ago

The electric traction checkbox could be moved to the end of the list, displayed when a train using an electric engine is selected from the list, hidden when a train without an electric engine is selected. Ideally, checkbox checked status should be saved for a given user.

RomainValls commented 3 months ago

@thibautsailly In case the checkbox status is saved : If the user wants to uncheck electric traction on a thermic train and it's hidden, he has to go back to an electrical train to uncheck it. Should we just let the checkbox visible at anytime ?