-
-
Notifications
You must be signed in to change notification settings - Fork 114
feat: Add priority sort with subject hierarchy. #259
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
Conversation
@sagilio @xcaptain @huazhikui please review |
@sagilio @xcaptain @huazhikui please review |
It's a draft PR and has not been well implemented yet. Though it could pass the existing test cases, the way to implement it needs to be optimized. Of course, thank you for any advice if you'd like to review it now. |
b3f3f04
to
2bb1d98
Compare
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.
We need a little enhance
Casbin/Model/DefaultModel.cs
Outdated
|
||
private string GetNameWithDomain(string domain, string name) | ||
{ | ||
return domain + "::" + name; |
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.
Is there any way to avoid using a default Separator ::
?
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.
Maybe we could create a new class for it to describe the NameWithDomain
?
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.
Some conversations need to be resolved.
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
🎉 This PR is included in version 2.0.0-preview.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fix: #238
What does it solve
It sync the feature of golang version which is described here.
What does it change
It add a new EffectType named "PriorityAllOverride" and some new methods. The way of implementation needs to be optimized.