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: stdcm: make max_run_time optional, computed if missing #7751

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Jun 17, 2024

Fix #7695

For more context: the reason we want to do this in editoast and not in core is because it will let us pre-filter resource uses, the ones in the actual stdcm request from editoast to core

API change summary:

  • max_run_time is optional
  • editoast stdcm endpoint may return simulation or pathfinding errors, if the preprocessing failed

@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 18.48%. Comparing base (66b26ab) to head (123b40d).
Report is 6 commits behind head on dev.

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

Additional details and impacted files
@@              Coverage Diff              @@
##                dev    #7751       +/-   ##
=============================================
- Coverage     28.54%   18.48%   -10.07%     
  Complexity     2038     2038               
=============================================
  Files          1243      970      -273     
  Lines        153525   124630    -28895     
  Branches       3008     3012        +4     
=============================================
- Hits          43825    23035    -20790     
+ Misses       107909    99804     -8105     
  Partials       1791     1791               
Flag Coverage Δ
core 75.05% <ø> (+0.01%) ⬆️
editoast ?
front 9.90% <ø> (+0.07%) ⬆️
gateway 2.41% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 72.93% <ø> (ø)

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.

@eckter eckter force-pushed the ech/compute-max-running-time branch from 123b40d to 3fdd61a Compare June 18, 2024 09:13
@eckter eckter marked this pull request as ready for review June 18, 2024 10:26
@eckter eckter requested a review from a team as a code owner June 18, 2024 10:26
Copy link
Contributor

@woshilapin woshilapin left a comment

Choose a reason for hiding this comment

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

Looks good, just a few rust tips and suggestions.

editoast/src/views/v2/timetable/stdcm.rs Outdated Show resolved Hide resolved
editoast/src/views/v2/timetable/stdcm.rs Show resolved Hide resolved
editoast/src/views/v2/timetable/stdcm.rs Outdated Show resolved Hide resolved
editoast/src/views/v2/timetable/stdcm.rs Show resolved Hide resolved
editoast/src/views/v2/timetable/stdcm.rs Outdated Show resolved Hide resolved
@eckter eckter force-pushed the ech/compute-max-running-time branch from 5439cd3 to 098ecce Compare June 18, 2024 14:48
@eckter eckter requested a review from a team as a code owner June 18, 2024 14:48
@eckter eckter requested a review from multun June 18, 2024 14:48
@eckter eckter force-pushed the ech/compute-max-running-time branch from 098ecce to a13017f Compare June 18, 2024 14:56
@eckter eckter force-pushed the ech/compute-max-running-time branch from a13017f to b642a73 Compare June 19, 2024 12:06
@eckter eckter requested a review from woshilapin June 19, 2024 14:22
@eckter eckter force-pushed the ech/compute-max-running-time branch from b642a73 to fdf3527 Compare June 20, 2024 09:03
Update editoast/src/views/v2/timetable/stdcm.rs

Co-authored-by: Jean SIMARD <woshilapin@tuziwo.info>
@eckter eckter force-pushed the ech/compute-max-running-time branch from fdf3527 to 0388387 Compare June 20, 2024 09:31
@eckter eckter requested a review from a team as a code owner June 20, 2024 09:31
@eckter eckter requested a review from clarani June 20, 2024 13:07
Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm

@eckter eckter added this pull request to the merge queue Jun 21, 2024
Merged via the queue into dev with commit 468372c Jun 21, 2024
17 checks passed
@eckter eckter deleted the ech/compute-max-running-time branch June 21, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

editoast: stdcm: compute max running time when not specified
5 participants