-
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
Fixed an issue where feature profile expressions could not be serialized. #15976
Fixed an issue where feature profile expressions could not be serialized. #15976
Conversation
Thank you for submitting your first pull request, awesome! 🚀 If you haven't already, please take a moment to review our contribution guide. This guide provides helpful information to ensure your contribution aligns with our standards. A core team member will review your pull request. |
@dotnet-policy-service agree |
Hi @TonyWoo , Can you fix the other two together? Thanks! |
@coderabbitai , review |
@sarahelsaig and @hyzx86, I fixed the following two issues as well. Thanks. |
@hyzx86, I have reviewed the changes and the related classes as per your request. Here are my findings and recommendations: Review of
|
WalkthroughThe recent updates across various modules in OrchardCore involve changing certain fields to properties with getters and setters, all initialized to empty collections. This modification enhances encapsulation and provides a more standardized way to interact with these data structures across different parts of the framework. Changes
Assessment against linked issues
The updates primarily focus on code quality improvements by enhancing the way data structures are defined and accessed, rather than addressing specific functional bugs or feature requests. It appears that the issue with feature profiles not being respected might still persist as the underlying logic for rule enforcement does not seem to have been addressed in this set of changes. 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 @MikeAlhayek ,Anything to add? Or let's merge it. |
src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs
Show resolved
Hide resolved
Congratulations on your first PR merge! 🎉 Thank you for your contribution! We're looking forward to welcome other contributions of yours in the future. @all-contributors please add @TonyWoo for code. |
@github-actions[bot] I couldn't determine any contributions to add, did you specify any contributions? I've put up a pull request to add @TonyWoo! 🎉 |
The FeatureRules is declared as a field, please see below code. But System.Text.Json don't serialize the field by default. I changed it to a property for now.
OrchardCore/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs
Line 12 in dcf83bc
Fixes #15975.
Please review and let me know if there are any questions.
Summary by CodeRabbit