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: move allWaypoints to ManageTrainScheduleContextType #10169

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

emersion
Copy link
Member

This value should be updated every time pathSteps or suggestedOperationalPoints change. Instead of manually updating it when touching these two values, memoize it.

@emersion emersion requested review from clarani and theocrsb December 23, 2024 15:33
@emersion emersion requested a review from a team as a code owner December 23, 2024 15:33
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 23, 2024
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 ✅

This value should be updated every time pathSteps or
suggestedOperationalPoints change. Instead of manually updating it
when touching these two values, memoize it.

Signed-off-by: Simon Ser <contact@emersion.fr>
This list doesn't only contain waypoints, it also contains all
suggested OPs.

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion emersion force-pushed the emr/usememo-all-waypoints branch from 3505153 to 6cdf1ab Compare January 3, 2025 08:46
@emersion emersion requested a review from clarani January 3, 2025 08:47
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 Jan 3, 2025
Merged via the queue into dev with commit 53ed0cf Jan 3, 2025
27 checks passed
@emersion emersion deleted the emr/usememo-all-waypoints branch January 3, 2025 09:44
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