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: match PathStep and SuggestedOP with pathStepId #10006

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

Conversation

emersion
Copy link
Member

Last episode: #9967

@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 10, 2024
@emersion emersion self-assigned this Dec 10, 2024
@emersion emersion force-pushed the emr/match-by-path-step-id branch 2 times, most recently from b7e3110 to 88ef272 Compare December 17, 2024 13:06
@emersion emersion force-pushed the emr/match-by-path-step-id branch 5 times, most recently from 1db468f to 3a4141b Compare January 8, 2025 16:21
Various spots need to check whether a SuggestedOP has a matching
PathStep. Ensure the pathStepId field is always set when
appropriate.

Signed-off-by: Simon Ser <contact@emersion.fr>
Matching via uic/trigram/ch/etc is unreliable because:

- Two OPs can have the same trigram/ch.
- The same OP could appear multiple times at different spots in a
  path.

Moreover, we had multiple variants of the matching with slight
differences. Some of the matching logic got adjusted to account
for specific bugs, while others were left alone.

Each path step can be identified with a unique ID stored in
PathStep.id. Use that instead.

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion force-pushed the emr/match-by-path-step-id branch from 3a4141b to a0d75cf Compare January 10, 2025 09:06
@SharglutDev
Copy link
Contributor

Fyi : #10334 (comment)

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.

2 participants