-
Notifications
You must be signed in to change notification settings - Fork 45
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: cancel fetch request when user cancels simulation in lmr #9948
Conversation
c66967c
to
28e6202
Compare
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 #9948 +/- ##
=======================================
Coverage 79.82% 79.82%
=======================================
Files 1054 1054
Lines 105530 105541 +11
Branches 726 726
=======================================
+ Hits 84242 84251 +9
- Misses 21246 21248 +2
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
28e6202
to
2573fbe
Compare
When canceling a simulation, the button to start another one isn't displayed anymore, unless we change the value of one of the inputs. I understand that we might not want to launch a simulation again with the same inputs if we decided to cancel it (@SharglutDev), but it does feel weird. |
If the user cancels the simulation in progress, it's probably because he forgot one parameter in the form or the simulation was taking too long because some inputs weren't good enough. So in any case, I don't think he will want to launch the same simulation again. It's the same thing if the simulation succeeds, does he might want to relaunch the same simulation ? We decided he can't at the moment. |
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!
8d1b655
to
518b23c
Compare
Sorry for being so late to answer, my bad 😬.
In situation 1, the button presence will be guaranteed by the form update. In the nominal use case, the button isn't displayed because it is replaced by the confirmation message. Since we changed the "ongoing compute" message, we could also alter how the compute result is shown, and show the button in all cases, with a confirmation message if we detect the user is about to use the same configuration as a previous one. But it's too much work for now, so let's just display the button when the user cancels the simulation computation. |
cad1e5c
to
178731d
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 !
Signed-off-by: romainvalls <romain.valls95@gmail.com>
178731d
to
c7e7614
Compare
close #9779
Also, had a minor bug where the button to launch the simulation disappeared after canceling a request, added a fix.