-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: softdelete rule model #72
Conversation
- load rules from db before making changes - improved comments
@trbtm Hi,
|
@leeqvip Hi, I added an example demonstrating my approach. To your points:
Best |
self, | ||
engine, | ||
db_class=None, | ||
db_class_softdelete_attribute=None, |
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.
Here you can judge according to the is_deleted
attribute of db_class
, the default value is None
CasbinSoftDeleteRule.is_deleted, | ||
) | ||
# Create the Enforcer, etc. | ||
e = casbin.Enforcer("path/to/model.conf", adapter) |
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.
Please write it directly in the readme, in a separate section
# [1.4.0](v1.3.0...v1.4.0) (2024-07-08) ### Features * support for soft deletion of casbin rules ([#72](#72)) ([8911c16](8911c16))
🎉 This issue has been resolved in version 1.4.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
I would like to have the option for having soft delete rules in the database to be able to possibly track fields like
etc.