Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front: editing a train with power restrictions resets its power restrictions #9902

Closed
clarani opened this issue Nov 29, 2024 · 1 comment · Fixed by #9924 or #10134
Closed

front: editing a train with power restrictions resets its power restrictions #9902

clarani opened this issue Nov 29, 2024 · 1 comment · Fixed by #9924 or #10134
Assignees
Labels
area:front Work on Standard OSRD Interface modules kind:bug Something isn't working severity:critical Critical severity bug

Comments

@clarani
Copy link
Contributor

clarani commented Nov 29, 2024

What happened?

When clicking on 'edit' for a train which has power restrictions, the power restrictions are automatically reset.

What did you expect to happen?

The power restrictions should not be reset when clicking on editing

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

  1. Open a scenario
  2. Add a train with power restrictions (you can use a TGV)
  3. See the results
  4. Click on edit the train
  5. See the warning displayed

On which environments the bug occurs?

Recette (SNCF)

On which browser the bug occurs?

Firefox

OSRD version (top right corner Account button > Informations)

.

@axrolld
Copy link
Contributor

axrolld commented Dec 19, 2024

Still present on staging 6580cfe with this schedule:
bug_power_restrictions.json

Pathfinding seems launched twice, or at least i get two warning messages saying the power restrictions have been reset when editing the train.

Also the weird thing is after saving it i can't see the power restrictions in my space speed chart:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules kind:bug Something isn't working severity:critical Critical severity bug
Projects
None yet
2 participants