Skip to content

fix: ISO8601 duration wouldn't parse for valid fractional values #199

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

Merged
merged 3 commits into from
May 22, 2024
Merged

fix: ISO8601 duration wouldn't parse for valid fractional values #199

merged 3 commits into from
May 22, 2024

Conversation

Kshitiz1403
Copy link
Contributor

@Kshitiz1403 Kshitiz1403 commented Apr 22, 2024

Previously, the library utilized a parsing library for ISO8601 durations that parsed durations into integers only. This caused issues with durations containing fractional values, such as "PT0.5S", which are valid ISO8601 strings but failed to parse due to the limitation of the previous library.

In this commit, I've replaced the outdated parsing library with a more robust alternative.

The new library properly handles fractional values, ensuring accurate parsing of ISO8601 duration strings, including cases like "PT0.5S". This update enhances the functionality and reliability of the library by accommodating a broader range of ISO8601 duration formats. Additionally, it ensures compatibility with modern standards and improves the overall usability of the library.

@Kshitiz1403 Kshitiz1403 changed the title fix: ISO8601 duration won't parse for valid fractional values fix: ISO8601 duration wouldn't parse for valid fractional values Apr 22, 2024
@ricardozanini ricardozanini requested a review from spolti April 25, 2024 14:18
@spolti
Copy link
Member

spolti commented Apr 25, 2024

The ci issue should be addressed after we merge this #200

@Kshitiz1403
Copy link
Contributor Author

@spolti Any ETA by which this can be merged?

@ricardozanini
Copy link
Member

@Kshitiz1403 can you please rebase?

@Kshitiz1403
Copy link
Contributor Author

Rebased

@Kshitiz1403
Copy link
Contributor Author

Fixed failing test cases

@ricardozanini
Copy link
Member

@Kshitiz1403 can you please sign your commits? Just squash and sign and we can move on.

Previously, the library utilized a parsing library for ISO8601 durations that parsed durations into integers only. This caused issues with durations containing fractional values, such as "P0.5S", which are valid ISO8601 strings but failed to parse due to the limitation of the previous library.
In this commit, I've replaced the outdated parsing library with a more robust alternative. The new library properly handles fractional values, ensuring accurate parsing of ISO8601 duration strings, including cases like "P0.5S".
This update enhances the functionality and reliability of the library by accommodating a broader range of ISO8601 duration formats. Additionally, it ensures compatibility with modern standards and improves the overall usability of the library.

Signed-off-by: Kshitiz Agrawal <kshitizagrawal@outlook.com>
Signed-off-by: Kshitiz Agrawal <kshitizagrawal@outlook.com>
Signed-off-by: Kshitiz Agrawal <kshitizagrawal@outlook.com>
@Kshitiz1403
Copy link
Contributor Author

@ricardozanini Can we proceed to the merge?

@ricardozanini
Copy link
Member

@Kshitiz1403 sorry I missed this one. Sure thing! Many thanks!

@ricardozanini
Copy link
Member

Next time, you can ping me earlier, no problem!!

@ricardozanini ricardozanini merged commit 7219d5c into serverlessworkflow:main May 22, 2024
@Kshitiz1403
Copy link
Contributor Author

@ricardozanini Can we also create a release?

@Kshitiz1403
Copy link
Contributor Author

@ricardozanini Just a side note, do you know of any serverless workflow adaption for temporal workflows?

@ricardozanini
Copy link
Member

@Kshitiz1403 no, I'm not familiar with this technology.

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy