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

Add logic to allow ISO 8601 duration strings #2975

Merged
merged 10 commits into from
Jan 7, 2025

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Dec 24, 2024

Closes #2965

This eliminates the need for some util to provide devs to make it easier to schedule an event. The ISO 8601 standard already provides us with Durations. Luxon provides a class to parse them and as such we can accept duration strings as well to make it simpler to schedule an event.

@hmalik88 hmalik88 marked this pull request as ready for review December 24, 2024 22:41
@hmalik88 hmalik88 requested a review from a team as a code owner December 24, 2024 22:41
Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.72%. Comparing base (308f571) to head (28b5e8a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2975   +/-   ##
=======================================
  Coverage   94.71%   94.72%           
=======================================
  Files         497      497           
  Lines       10802    10818   +16     
  Branches     1649     1652    +3     
=======================================
+ Hits        10231    10247   +16     
  Misses        571      571           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

FrederikBolding
FrederikBolding previously approved these changes Jan 7, 2025
@hmalik88 hmalik88 merged commit 7e3ef0b into main Jan 7, 2025
166 checks passed
@hmalik88 hmalik88 deleted the hm/add-duration-background-events branch January 7, 2025 19:34
Mrtenz pushed a commit that referenced this pull request Jan 8, 2025
Closes #2965  

This eliminates the need for some util to provide devs to make it easier
to schedule an event. The ISO 8601 standard already provides us with
[Durations](https://en.wikipedia.org/wiki/ISO_8601#Durations). Luxon
provides a class to parse them and as such we can accept duration
strings as well to make it simpler to schedule an event.
PatrykLucka pushed a commit that referenced this pull request Jan 13, 2025
Closes #2965  

This eliminates the need for some util to provide devs to make it easier
to schedule an event. The ISO 8601 standard already provides us with
[Durations](https://en.wikipedia.org/wiki/ISO_8601#Durations). Luxon
provides a class to parse them and as such we can accept duration
strings as well to make it simpler to schedule an event.
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.

Support durations in snap_scheduleBackgroundEvent
3 participants