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

front: add ManageTrainSchedule context and remove Pathfinding's reducer #9924

Merged
merged 6 commits into from
Dec 16, 2024

Conversation

clarani
Copy link
Contributor

@clarani clarani commented Dec 3, 2024

closes #9915
closes #9902 (because the power restrictions were reset by the call to usePathfinding in the RollingStockSelector)
will also close #6719
and fix #10038

@clarani clarani requested a review from a team as a code owner December 3, 2024 10:42
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 3, 2024
@clarani clarani marked this pull request as draft December 3, 2024 10:42
@clarani
Copy link
Contributor Author

clarani commented Dec 3, 2024

Need to wait for #9901 first

@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2024

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

Codecov Report

Attention: Patch coverage is 50.00000% with 149 lines in your changes missing coverage. Please review.

Project coverage is 79.79%. Comparing base (a64f77b) to head (6d107d8).
Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
...nt/src/modules/pathfinding/hooks/usePathfinding.ts 7.37% 113 Missing ⚠️
...nalStudies/hooks/useManageTrainScheduleContext.tsx 10.25% 35 Missing ⚠️
...alStudies/hooks/useSetupItineraryForTrainUpdate.ts 50.00% 1 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9924      +/-   ##
==========================================
- Coverage   79.90%   79.79%   -0.11%     
==========================================
  Files        1052     1052              
  Lines      105602   105434     -168     
  Branches      759      727      -32     
==========================================
- Hits        84378    84133     -245     
- Misses      21182    21259      +77     
  Partials       42       42              
Flag Coverage Δ
editoast 73.70% <ø> (-0.05%) ⬇️
front 89.12% <50.00%> (-0.13%) ⬇️
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.

@clarani clarani force-pushed the cni/9915-add-manage-train-schedule-context branch from 8560c51 to 03e7f27 Compare December 3, 2024 16:41
@clarani clarani marked this pull request as ready for review December 3, 2024 16:43
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

Excellent work! Thanks so much for splitting into separate commits. Here are a few comments :)

@clarani clarani force-pushed the cni/9915-add-manage-train-schedule-context branch 4 times, most recently from fa2f93b to 67efa17 Compare December 5, 2024 16:46
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.

Great refacto, thanks for that !

@clarani clarani force-pushed the cni/9915-add-manage-train-schedule-context branch from a041419 to 369bfdc Compare December 13, 2024 15:43
@clarani clarani enabled auto-merge December 13, 2024 15:44
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 and tested, great job !

Copy link
Contributor

@anisometropie anisometropie left a comment

Choose a reason for hiding this comment

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

thanks, good reworking

@clarani clarani force-pushed the cni/9915-add-manage-train-schedule-context branch 2 times, most recently from 3fb9389 to 6a8f196 Compare December 16, 2024 08:43
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 and tested again :)

Signed-off-by: Clara Ni <clara.ni@outlook.fr>
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
@clarani clarani force-pushed the cni/9915-add-manage-train-schedule-context branch from bf2453f to 6d107d8 Compare December 16, 2024 13:52
@clarani clarani added this pull request to the merge queue Dec 16, 2024
Merged via the queue into dev with commit 575dbe6 Dec 16, 2024
27 checks passed
@clarani clarani deleted the cni/9915-add-manage-train-schedule-context branch December 16, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
5 participants