-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cf10bc1
to
d4cca27
Compare
There was a problem hiding this 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.
d4cca27
to
8016bc4
Compare
There was a problem hiding this 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. ✅
aeaf7ba
to
495a832
Compare
fba5713
to
3b7c890
Compare
3b7c890
to
321ed89
Compare
front/src/reducers/osrdconf/stdcmConf/stdcmConfReducers.spec.ts
Outdated
Show resolved
Hide resolved
front/src/applications/stdcm/components/StdcmForm/StdcmConfig.tsx
Outdated
Show resolved
Hide resolved
321ed89
to
8fec411
Compare
There was a problem hiding this 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]>
8078da8
to
a2b621a
Compare
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.