-
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
editoast: PacedTrain: add simulation summary and simulation endpoints #11022
base: dev
Are you sure you want to change the base?
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 #11022 +/- ##
==========================================
+ Coverage 80.63% 80.67% +0.03%
==========================================
Files 1101 1101
Lines 112360 112485 +125
Branches 747 747
==========================================
+ Hits 90602 90744 +142
+ Misses 21715 21698 -17
Partials 43 43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1b17958
to
6d14fda
Compare
6d14fda
to
be809ed
Compare
03cc77d
to
422d56e
Compare
73ffba7
to
e44d339
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.
Thanks! Left a few comments, but nothing really blocking apart the ones about tests
7c1cb3f
to
e1d6882
Compare
e1d6882
to
13b13bc
Compare
13b13bc
to
956a5d7
Compare
161b369
to
014c70f
Compare
579cabf
to
cf54409
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.
Thanks for all the improvements. I left a bunch of nitpick comments.
cf54409
to
1b84707
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 front (not tested)
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 (not tested), a few last comments, thanks for the changes!
editoast/src/views/mod.rs
Outdated
@@ -201,6 +203,45 @@ enum SimulationSummaryResult { | |||
PathfindingInputError(PathfindingInputError), | |||
} | |||
|
|||
fn simulation_response(sim: SimulationResponse) -> SimulationSummaryResult { |
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.
impl From<core::simulation::SimulationResponse> for SimulationSummaryResult
?
@@ -315,19 +399,35 @@ async fn project_path( | |||
|
|||
#[cfg(test)] | |||
mod tests { | |||
use axum::http::StatusCode; | |||
use pretty_assertions::assert_eq; |
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.
:'(
It's useful for equality on deep structs like here
03d6c19
to
989fc4d
Compare
…rain Signed-off-by: Youness CHRIFI ALAOUI <[email protected]>
989fc4d
to
896daff
Compare
Add simulation summary and simulation endpoints for paced trains.
Part of https://github.com/osrd-project/osrd-confidential/issues/779