-
Notifications
You must be signed in to change notification settings - Fork 44
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
editoast: return conflicts list when STDCM request fails #9327
editoast: return conflicts list when STDCM request fails #9327
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #9327 +/- ##
============================================
+ Coverage 39.07% 39.52% +0.45%
Complexity 2270 2270
============================================
Files 1308 1308
Lines 99317 99588 +271
Branches 3316 3316
============================================
+ Hits 38805 39363 +558
+ Misses 58547 58260 -287
Partials 1965 1965
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
bb12f6c
to
eca6a69
Compare
6933fe5
to
b62d9b5
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.
Again some more debuggability information send back to the front, I love it 😍
In this PR, there is some renaming interlaced with changes of functionality. It would have been nice to first do the renaming in an independent commit to ease the review of the important part (note that the renaming is nice, just not a change that need attentive reviewing).
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.
Thanks for this PR! Left a few comments.
On a more general note, the /stdcm
endpoint is starting to do a whole lot of things and this process isn't documented anywhere. The endpoint documentation is just
/// Compute a STDCM and return the simulation result
which isn't exact anymore following your changes.
I'd suggest:
- documenting the whole process in the handler's documentation with the "happy path" and what we're doing if the simulation fails, making sure to separate both
- continue the series of scoping comments
// n. Nth step
in your additions, as it's really helpful to figure out where we're at in the global process - split the individual steps into documented functions (you don't have to do that for existing steps, but it would be a nice thing to do for your changes so that we can start enforcing a better modularity from now on)
Wdyt?
13be772
to
97bb368
Compare
0339850
to
6dfbf6d
Compare
6dfbf6d
to
dbe3e20
Compare
b97ff1d
to
b780426
Compare
b780426
to
70e91cc
Compare
70e91cc
to
569d51c
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 for tests/
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.
Sorry for this second pass of review, but I feel we lack some improvements of code architecture. Let's see together if we can make the code more simple and maintainable.
3012e7b
to
4ecb4de
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, the remaining comments will be addressed in a separate PR with a refactoring of the endpoint and its utilities.
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.
Let's merge this one and address all the unaddressed comments in the follow-up PR.
Signed-off-by: hamz2a <atrari.hamza@gmail.com>
4ecb4de
to
a19b328
Compare
closes #8639