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: get correct coordinates of uic pathsteps #10515

Merged

Conversation

clarani
Copy link
Contributor

@clarani clarani commented Jan 23, 2025

closes #8901

See commits

The markers were not correctly placed because the calculations were wrong: we could not use a simple rule of three to find the correct point in the path geometry.

@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 23, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

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

Codecov Report

Attention: Patch coverage is 79.32961% with 37 lines in your changes missing coverage. Please review.

Project coverage is 81.89%. Comparing base (586b13c) to head (0a33b13).
Report is 11 commits behind head on dev.

Files with missing lines Patch % Lines
...s/pathfinding/helpers/getPointOnPathCoordinates.ts 38.88% 11 Missing ⚠️
...alStudies/hooks/useSetupItineraryForTrainUpdate.ts 23.07% 10 Missing ⚠️
...nt/src/modules/pathfinding/hooks/usePathfinding.ts 16.66% 10 Missing ⚠️
front/src/utils/geometry.ts 37.50% 5 Missing ⚠️
front/src/modules/pathfinding/utils.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   #10515      +/-   ##
==========================================
+ Coverage   81.83%   81.89%   +0.05%     
==========================================
  Files        1073     1076       +3     
  Lines      107058   107182     +124     
  Branches      728      729       +1     
==========================================
+ Hits        87613    87776     +163     
+ Misses      19406    19367      -39     
  Partials       39       39              
Flag Coverage Δ
editoast 74.23% <ø> (-0.02%) ⬇️
front 89.45% <79.32%> (+0.08%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 88.14% <ø> (ø)

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/8901-uic-waypoint-not-correctly-displayed-on-the-map branch 2 times, most recently from 848a054 to 3d2b43f Compare January 24, 2025 10:43
@clarani clarani changed the title front: correctly displayed uic waypoints front: get correct coordinates of uic pathsteps Jan 24, 2025
@clarani clarani requested review from Synar and SharglutDev January 24, 2025 10:45
@clarani clarani force-pushed the cni/8901-uic-waypoint-not-correctly-displayed-on-the-map branch from 3d2b43f to a4e7d41 Compare January 24, 2025 14:01
@clarani clarani marked this pull request as ready for review January 27, 2025 08:18
@clarani clarani requested a review from a team as a code owner January 27, 2025 08:18
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.

Work perfectly ! Just some small comments

@clarani clarani requested a review from SharglutDev January 31, 2025 09:32
@SharglutDev
Copy link
Contributor

Lgtm and tested ! You can fix the remaining comments and conflicts and I'll give it another testing before approve when you're done :)

@clarani clarani force-pushed the cni/8901-uic-waypoint-not-correctly-displayed-on-the-map branch from 0ffdeaa to f15d5b6 Compare February 3, 2025 11:05
@clarani clarani force-pushed the cni/8901-uic-waypoint-not-correctly-displayed-on-the-map branch from f15d5b6 to 7bdd97e Compare February 3, 2025 11:06
@clarani clarani enabled auto-merge February 3, 2025 11:07
Copy link
Contributor

@Synar Synar left a comment

Choose a reason for hiding this comment

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

Left a minor nitpick comment, but nice changes, LGTM!

@Synar Synar disabled auto-merge February 3, 2025 12:32
@clarani clarani force-pushed the cni/8901-uic-waypoint-not-correctly-displayed-on-the-map branch from 7bdd97e to 0a33b13 Compare February 3, 2025 12:41
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 !

@clarani clarani added this pull request to the merge queue Feb 3, 2025
Merged via the queue into dev with commit 18b29a6 Feb 3, 2025
27 checks passed
@clarani clarani deleted the cni/8901-uic-waypoint-not-correctly-displayed-on-the-map branch February 3, 2025 14:21
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.

Waypoint added is not displayed correctly on the map
4 participants