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

change trainid format #10679

Merged
merged 3 commits into from
Feb 13, 2025
Merged

change trainid format #10679

merged 3 commits into from
Feb 13, 2025

Conversation

SharglutDev
Copy link
Contributor

close #10601

@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from 2b70e01 to 9ed6b7f Compare February 4, 2025 19:07
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 4, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

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

Codecov Report

Attention: Patch coverage is 99.35380% with 4 lines in your changes missing coverage. Please review.

Project coverage is 81.93%. Comparing base (397e4db) to head (d11307f).
Report is 6 commits behind head on dev.

Files with missing lines Patch % Lines
...alStudies/hooks/useSetupItineraryForTrainUpdate.ts 33.33% 4 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #10679      +/-   ##
==========================================
+ Coverage   81.86%   81.93%   +0.06%     
==========================================
  Files        1082     1083       +1     
  Lines      107123   107551     +428     
  Branches      721      741      +20     
==========================================
+ Hits        87698    88121     +423     
- Misses      19384    19389       +5     
  Partials       41       41              
Flag Coverage Δ
editoast 74.32% <ø> (-0.01%) ⬇️
front 89.46% <99.35%> (+0.06%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.87% <ø> (ø)

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.

@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch 13 times, most recently from fb3d65b to 797955e Compare February 7, 2025 16:15
@SharglutDev SharglutDev marked this pull request as ready for review February 10, 2025 08:44
@SharglutDev SharglutDev requested a review from a team as a code owner February 10, 2025 08:44
@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from 797955e to 72f2c2b Compare February 10, 2025 14:02
@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from 70c8a62 to eb84e9f Compare February 11, 2025 14:02
Copy link
Contributor

@theocrsb theocrsb left a comment

Choose a reason for hiding this comment

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

lgtm, I didn't see any problem after testing

@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from c9b3dc2 to 3a5861b Compare February 12, 2025 09:00
@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from 965425a to a558811 Compare February 13, 2025 10:49
Instead of using the mapped nge train ids / osrd train ids when creating
a train on nge side, share it on both side.
This will later help to deal with paced trains.

Signed-off-by: SharglutDev <[email protected]>
@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from 5ceff1f to c47c05e Compare February 13, 2025 15:00
This will help differentiate paced train ids (and their occurrences) and train schedule ids.

Signed-off-by: SharglutDev <[email protected]>
Train id with type number will be used as "editoastTrainId".
Train id with type TrainScheduleID will be used as "formattedTrainId".

Signed-off-by: SharglutDev <[email protected]>
@SharglutDev SharglutDev force-pushed the pfn/front/change-trainid-format branch from c47c05e to d11307f Compare February 13, 2025 15:05
Copy link
Contributor

@clarani clarani left a comment

Choose a reason for hiding this comment

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

LGTM, tested ✅

@SharglutDev SharglutDev added this pull request to the merge queue Feb 13, 2025
Merged via the queue into dev with commit 80a92a4 Feb 13, 2025
27 checks passed
@SharglutDev SharglutDev deleted the pfn/front/change-trainid-format branch February 13, 2025 17:11
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
Development

Successfully merging this pull request may close these issues.

Change how trainschedule id is stored in the front part
5 participants