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: stop putting path step IDs in SuggestedOP.opId #9967

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

emersion
Copy link
Member

@emersion emersion commented Dec 5, 2024

The opId field was (ab)used for track offset waypoints: we were putting path step IDs in there. Instead, make opId optional and add a new field for the path step ID.

This paves the way for simplifying SuggestedOP/PathStep matching: we'll be able to use pathStepId instead of trying to match with a random subset of uic/trigram/secondary_code/kp/positionOnPath and friends.

The opId field was (ab)used for track offset waypoints: we were
putting path step IDs in there. Instead, make opId optional and
add a new field for the path step ID.

This paves the way for simplifying SuggestedOP/PathStep matching:
we'll be able to use pathStepId instead of trying to match with a
random subset of uic/trigram/secondary_code/kp/positionOnPath and
friends.

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion self-assigned this Dec 5, 2024
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 5, 2024
@emersion emersion marked this pull request as ready for review December 5, 2024 15:13
@emersion emersion requested a review from a team as a code owner December 5, 2024 15:14
Copy link
Contributor

@Uriel-Sautron Uriel-Sautron left a comment

Choose a reason for hiding this comment

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

Tested

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 ✅

@emersion emersion added this pull request to the merge queue Dec 9, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 9, 2024
@emersion emersion added this pull request to the merge queue Dec 9, 2024
Merged via the queue into dev with commit 8f6131e Dec 9, 2024
27 checks passed
@emersion emersion deleted the emr/sug-op-id branch December 9, 2024 11:17
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.

3 participants