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

editoast: endpoints to retrieve stdcm payloads #10212

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

hamz2a
Copy link
Contributor

@hamz2a hamz2a commented Dec 31, 2024

Part of #9724

Warning

We need to wait for this PR to be merged before merging that one.

@hamz2a hamz2a requested a review from a team as a code owner December 31, 2024 15:13
@github-actions github-actions bot added area:front Work on Standard OSRD Interface modules area:editoast Work on Editoast Service labels Dec 31, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 31, 2024

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

Codecov Report

Attention: Patch coverage is 96.80851% with 6 lines in your changes missing coverage. Please review.

Project coverage is 81.52%. Comparing base (8ac5276) to head (a539bb6).
Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
editoast/src/views/stdcm_logs.rs 93.87% 6 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10212      +/-   ##
==========================================
+ Coverage   81.46%   81.52%   +0.05%     
==========================================
  Files        1058     1058              
  Lines      104318   104380      +62     
  Branches      724      720       -4     
==========================================
+ Hits        84981    85094     +113     
+ Misses      19295    19244      -51     
  Partials       42       42              
Flag Coverage Δ
editoast 73.93% <96.62%> (+0.29%) ⬆️
front 89.18% <100.00%> (-0.02%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.00% <ø> (ø)

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.

@hamz2a hamz2a force-pushed the hai/editoast-endpoint-to-retrieve-stdcm-payloads branch from d728975 to a539bb6 Compare December 31, 2024 15:58
@hamz2a hamz2a requested a review from a team as a code owner December 31, 2024 15:58
arrival_time_tolerance_after: number;
/** The train may arrive up to this duration before the expected arrival time */
arrival_time_tolerance_before: number;
export type Response =
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the same type as PostTimetableByIdStdcmApiResponse, do we need another one ? Or we could reuse this in it with : export type PostTimetableByIdStdcmApiResponse = Response.

Also Request and Response are too vague imo, we could do StdcmRequest and StdcmResponse ?

train_ids: number[];
/** List of work schedule ids involved in the conflict */
work_schedule_ids: number[];
export type Request = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Same type as PostTimetableByIdStdcmApiArg['body'], we could reuse it inside ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:editoast Work on Editoast Service area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants