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: drop addDurationToDate() and subtractDurationFromDate() from utils/date #10812

Merged
merged 5 commits into from
Feb 18, 2025

Conversation

emersion
Copy link
Member

@emersion emersion commented Feb 14, 2025

Replace them with Duration.

See individual commits.

@emersion emersion requested a review from a team as a code owner February 14, 2025 11:30
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Feb 14, 2025
@emersion emersion self-assigned this Feb 14, 2025
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 ! Thank you for the refacto.

Copy link
Contributor

@anisometropie anisometropie left a comment

Choose a reason for hiding this comment

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

Behavior is looking good on the few functions impacted by the change

@emersion emersion added this pull request to the merge queue Feb 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2025
The store is cleared when a new version is released now, so this
is unnecessary.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion force-pushed the emr/duration-constructor-options branch from 2edc537 to 906893d Compare February 18, 2025 16:02
This makes it more obvious what unit is used by the value passed
in, and allows us to add more values in different units (much like
the Temporal API).

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion force-pushed the emr/duration-constructor-options branch from 906893d to 09207de Compare February 18, 2025 16:02
@emersion emersion enabled auto-merge February 18, 2025 16:03
@emersion emersion added this pull request to the merge queue Feb 18, 2025
Merged via the queue into dev with commit 3b60ff3 Feb 18, 2025
27 checks passed
@emersion emersion deleted the emr/duration-constructor-options branch February 18, 2025 16:40
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