-
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 [Feature] attribute to the permission providers that are associated with a feature in a module #15787
Conversation
This pull request has merge conflicts. Please resolve those before requesting a review. |
Would you like to check this, @gvkries? |
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.
LGTM 👍
We may still have a problem with types that are used by more than one feature, e.g. |
Let's wait with #15793 for this, because if we have that then no attributes are necessary. |
WalkthroughThe recent updates across various OrchardCore modules primarily involve the addition of feature attributes to specific classes, enhancing modularity and feature management. Minor adjustments include syntax changes in service registration and the removal of redundant lines. Notably, the ReCaptcha module saw the removal of feature attributes from two classes, signaling a change in how features are managed within that module. 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 (
|
I'll try to wrap my head around #15793 and get back here. |
#15793 is almost ready and should be merged soon. So I'll close this PR |
Based on the findings in #15782 the
ShellContainerFactory
associate types based on theFeature
attribute.OrchardCore/src/OrchardCore/OrchardCore/Shell/Builders/ShellContainerFactory.cs
Lines 150 to 158 in dc6729b
Applying
[Feature]
attribute to the permissions that are registered with a feature is important sinceRoleUpdater
service usedITypeFeatureProvider
to check if the permission provider is associated with a given feature ID.OrchardCore/src/OrchardCore.Modules/OrchardCore.Roles/Services/RoleUpdater.cs
Line 57 in 9688beb
Summary by CodeRabbit