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

Handle both invalid trigrams and uics as invalid op #10471

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

Conversation

achrafmohye
Copy link
Contributor

Closes #10116

@achrafmohye achrafmohye requested a review from a team as a code owner January 21, 2025 09:26
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Jan 21, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2025

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

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.50%. Comparing base (9ddc06c) to head (8c32833).
Report is 89 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   #10471       +/-   ##
===========================================
+ Coverage   81.61%   87.50%    +5.89%     
===========================================
  Files        1067       31     -1036     
  Lines      105535     1537   -103998     
  Branches      727        0      -727     
===========================================
- Hits        86128     1345    -84783     
+ Misses      19366      192    -19174     
+ Partials       41        0       -41     
Flag Coverage Δ
editoast ?
front ?
gateway ?
osrdyne ?
railjson_generator 87.50% <ø> (ø)
tests ?

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.

@achrafmohye achrafmohye changed the title front: handle both invalid trigrams and uics as invalid op Handle both invalid trigrams and uics as invalid op Jan 22, 2025
Copy link
Contributor

@Akctarus Akctarus left a comment

Choose a reason for hiding this comment

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

Tested, ty for this fix

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.

Placeholder comment, just so that GitHub gets this PR off my TODO list :P

See the discussion above.

@achrafmohye achrafmohye force-pushed the ame/fix/handle-unrecognized-uic branch from 21f9f27 to 37a6c2f Compare January 23, 2025 13:41
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.

The new logic looks good!

It seems like the usePathfinding() hook has a similar bug: handleInvalidPathItems() there checks trigrams only. There is a TODO:

// TODO: we currently only handle invalid pathSteps with trigram. We will have to do it for trackOffset, opId and uic too.

Are you feeling up for adding a new commit to fix that bug and do something similar to the logic in this PR, or do you prefer to leave that for later?

…ll invalid path step types

Signed-off-by: Achraf Mohyeddine <[email protected]>
@achrafmohye achrafmohye enabled auto-merge January 24, 2025 10:27
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.

UIC are not handled when not recognized in the infrastructure
4 participants