-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
server: fix parsing iso8601 durations with decimals in the seconds place #1230
Conversation
WalkthroughThe update enhances the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- server/services/parsing/iso8601.ts (2 hunks)
- server/tests/unit/services/parsing/iso8601.spec.ts (1 hunks)
Additional comments: 4
server/tests/unit/services/parsing/iso8601.spec.ts (1)
- 6-7: The new test cases for
parseIso8601Duration
function correctly check for the parsing of ISO8601 durations with fractional seconds. This is a good addition to ensure that the updated parsing logic is being tested for the new functionality.server/services/parsing/iso8601.ts (3)
- 6-6: The updated regex pattern now correctly includes the possibility of decimal fractions in the seconds component, which aligns with the objective of parsing ISO 8601 duration strings with fractional seconds.
- 11-11: The replacement logic within the map function is now correctly stripping non-numeric characters, which would include the period for decimal fractions. This is necessary for the subsequent parsing of the string into a floating-point number.
- 22-22: The seconds are now being parsed as a floating-point number instead of an integer, which is crucial for handling fractional seconds. This change is correct and necessary for the feature implementation.
2 failed tests on run #830 ↗︎
Details:
Chat.cy.ts • 1 failed test • Component - electron
ShareInvite.cy.ts • 1 failed test • Component - electron
Review all test suite changes for PR #1230 ↗︎ |
No description provided.