Skip to content

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

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

AsakusaRinne
Copy link
Contributor

@AsakusaRinne AsakusaRinne commented Jun 12, 2022

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.

@casbin-bot
Copy link
Member

@sagilio @xcaptain @huazhikui please review

@casbin-bot
Copy link
Member

@sagilio @xcaptain @huazhikui please review

@AsakusaRinne
Copy link
Contributor Author

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.

@AsakusaRinne AsakusaRinne force-pushed the preview branch 2 times, most recently from b3f3f04 to 2bb1d98 Compare June 12, 2022 09:06
@AsakusaRinne AsakusaRinne marked this pull request as ready for review June 25, 2022 10:28
Copy link
Member

@sagilio sagilio left a 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


private string GetNameWithDomain(string domain, string name)
{
return domain + "::" + name;
Copy link
Member

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 ::?

Copy link
Contributor Author

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?

Copy link
Member

@sagilio sagilio left a 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.

@sagilio sagilio self-assigned this Jul 13, 2022
@sagilio sagilio added the new feature New feature will be provided or request label Jul 13, 2022
Copy link
Member

@sagilio sagilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sagilio sagilio merged commit de63fba into casbin:preview Jul 13, 2022
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

🎉 This PR is included in version 2.0.0-preview.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@sagilio sagilio linked an issue Jun 2, 2023 that may be closed by this pull request
@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature will be provided or request released on @preview released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: subjectPriority
3 participants