-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 serialisation compatibility of TimeSpan and DateTime #16205
Conversation
Adding test recipes causes database concurrency conflicts, remove test recipes |
@coderabbitai review |
WalkthroughThe changes introduce a new Changes
Sequence Diagram(s) (Beta)No sequence diagrams are included because the changes are straightforward and primarily involve adding a new converter and a test method. Assessment against linked issues
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 (
|
Hi @Piedone , this PR is ready for review :) |
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.
Actionable comments posted: 2
src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/TimeSpanConverter.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DateTimeJsonConverter.cs
Outdated
Show resolved
Hide resolved
I also added serialisation compatibility for Because some of the calls are extension methods, we may need to tweak some existing code if we use dynamic specification. Lines 16 to 22 in 8ef3a02
/cc @MikeAlhayek @Piedone |
Don't the fields already store the date/timestamps in a culture-agnostic way? They really should. Maybe then it needs to check for |
Yes. Now it looks like there's a problem with how to apply the region option, and it's the fact that the region option is specified here that's causing the rest of the unit test to crash! |
@hyzx86 please second time resolve the conversation by clicking the button, so this will indicate that you reacted to the changes, is there anything remaining in this PR? |
src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DateTimeJsonConverter.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DateTimeJsonConverter.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Hisham Bin Ateya <[email protected]>
@hyzx86 please address my last comment then I can merge |
src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DateTimeJsonConverter.cs
Outdated
Show resolved
Hide resolved
src/OrchardCore/OrchardCore.Abstractions/Json/Serialization/DateTimeJsonConverter.cs
Outdated
Show resolved
Hide resolved
…teTimeJsonConverter.cs Co-authored-by: Hisham Bin Ateya <[email protected]>
Thanks again @hyzx86 |
oh ... It's not finished yet, I realised we didn't do error handling, I added them. |
…hardCMS#16205)" This reverts commit 3d3f172.
I've resubmitted a patch here to ensure that the wrong time format is recognised #16288 |
…16205) Co-authored-by: Mike Alhayek <[email protected]> Co-authored-by: Hisham Bin Ateya <[email protected]>
#16274) * Saving workflow fails * Fix solution build file references (#16269) * Remove Gitter references (#16270) * Add serialisation compatibility of TimeSpan and DateTime (#16205) Co-authored-by: Mike Alhayek <[email protected]> Co-authored-by: Hisham Bin Ateya <[email protected]> * Update Azure.Identity 1.11.4 (#16286) * Add rounding. --------- Co-authored-by: Zoltán Lehóczky <[email protected]> Co-authored-by: Tony Han <[email protected]> Co-authored-by: Mike Alhayek <[email protected]> Co-authored-by: Hisham Bin Ateya <[email protected]>
fixes #16203