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: simplify OP matching in useOutputTableData() #8739

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

emersion
Copy link
Member

@emersion emersion commented Sep 4, 2024

We were using a map keyed by the name and ch of OPs. This is more complicated than it needs to be and isn't robust (there is no guarantee that names+ch are unique).

Instead, just use the OP ID.

Original discussion: https://github.com/OpenRailAssociation/osrd/pull/8555/files#r1735948569

We were using a map keyed by the name and ch of OPs. This is more
complicated than it needs to be and isn't robust (there is no
guarantee that names+ch are unique).

Instead, just use the OP ID.
@emersion emersion requested a review from a team as a code owner September 4, 2024 08:45
@emersion emersion self-assigned this Sep 4, 2024
@emersion emersion requested review from kmer2016 and removed request for SharglutDev September 4, 2024 08:50
Copy link
Contributor

@kmer2016 kmer2016 left a comment

Choose a reason for hiding this comment

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

LGTM

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, LGTM

@emersion emersion added this pull request to the merge queue Sep 4, 2024
Merged via the queue into dev with commit 2c3c48e Sep 4, 2024
22 checks passed
@emersion emersion deleted the emr/robust-op-match-times-stops branch September 4, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants