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

Fix incorrect input saving when switching simulations during a running calculation #10497

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

kmer2016
Copy link
Contributor

@kmer2016 kmer2016 commented Jan 23, 2025

closes #10480
When a different simulation is selected while a calculation is still running, the new simulation’s inputs overwrite the inputs of the ongoing calculation. This causes a mismatch between the inputs used for the calculation and the results.

@kmer2016 kmer2016 requested a review from a team as a code owner January 23, 2025 10:05
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 23, 2025
@kmer2016 kmer2016 requested review from theocrsb, SharglutDev and RomainValls and removed request for theocrsb January 23, 2025 10:05
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.87%. Comparing base (80a92a4) to head (a2b621a).
Report is 28 commits behind head on dev.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10497      +/-   ##
==========================================
- Coverage   81.93%   81.87%   -0.07%     
==========================================
  Files        1083     1083              
  Lines      107554   107249     -305     
  Branches      741      738       -3     
==========================================
- Hits        88124    87805     -319     
- Misses      19389    19403      +14     
  Partials       41       41              
Flag Coverage Δ
editoast 74.38% <ø> (+0.06%) ⬆️
front 89.38% <100.00%> (-0.09%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.58% <ø> (+0.07%) ⬆️
tests 87.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch from cf10bc1 to d4cca27 Compare January 23, 2025 10:08
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix, it works great !

But now that it works, it reveals some strange behaviors that we should correct I think.

@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch from d4cca27 to 8016bc4 Compare January 23, 2025 17:02
Copy link
Contributor

@RomainValls RomainValls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, tested and it works well. ✅

@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch 3 times, most recently from aeaf7ba to 495a832 Compare February 5, 2025 14:45
@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch 3 times, most recently from fba5713 to 3b7c890 Compare February 10, 2025 17:25
@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch from 3b7c890 to 321ed89 Compare February 12, 2025 08:01
@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch from 321ed89 to 8fec411 Compare February 14, 2025 10:22
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm and tested, great job !

… running calculation

When a different simulation is selected while a calculation is still running,
the new simulation’s inputs overwrite the inputs of the ongoing calculation.
This causes a mismatch between the inputs used for the calculation and the results.

To maintain a good UX, the following improvements have been made:
- prevent display pathfinding status message when change the current simulation
- prevent visual jump on current simulation change
- prevent animation after switching simulation and clearing a via input

Signed-off-by: nncluzu <[email protected]>
@kmer2016 kmer2016 force-pushed the cnh/front/fix-wrong-inputs-saved branch from 8078da8 to a2b621a Compare February 14, 2025 14:37
@kmer2016 kmer2016 enabled auto-merge February 14, 2025 14:38
@kmer2016 kmer2016 added this pull request to the merge queue Feb 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@SharglutDev SharglutDev added this pull request to the merge queue Feb 14, 2025
Merged via the queue into dev with commit 00113d9 Feb 14, 2025
27 checks passed
@SharglutDev SharglutDev deleted the cnh/front/fix-wrong-inputs-saved branch February 14, 2025 15:21
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong inputs saved for the simulation
4 participants