add_function can support both async and sync; add await enforce.enfor…#381
Closed
Chimou0 wants to merge 349 commits intoapache:masterfrom
Closed
add_function can support both async and sync; add await enforce.enfor…#381Chimou0 wants to merge 349 commits intoapache:masterfrom
Chimou0 wants to merge 349 commits intoapache:masterfrom
Conversation
|
|
Signed-off-by: Carme, Pamy <pamy.carme@sciencelogic.com>
Signed-off-by: Jon Lee <techlee@qq.com>
Signed-off-by: Andreas Bichinger <andreas.bichinger@gmail.com>
## [0.16.1](apache/casbin-pycasbin@v0.16.0...v0.16.1) (2021-01-29) ### Bug Fixes * role manager with matching_func ([8079cda](apache@8079cda))
* perf: remove duplicated check Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> * perf: remove duplicated check Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
## [0.16.2](apache/casbin-pycasbin@v0.16.1...v0.16.2) (2021-02-03) ### Performance Improvements * remove duplicated check ([apache#117](apache#117)) ([6aebadf](apache@6aebadf))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> feat: further development on update_policy() Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> refactor: adjust to Python-style variable naming Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> feat: add update_policies() Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> feat: add unittest for update_policies() Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> refactor: remove adapter check Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> refactor: remove duplicated check Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
# [0.17.0](apache/casbin-pycasbin@v0.16.2...v0.17.0) (2021-02-19) ### Features * add update_policy() ([7f7d26f](apache@7f7d26f))
…rcer (apache#122) * feat: add AddNamedDomainMatchingFunc and AddNamedMatchingFunc to enforcer Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> * refactor: remove log output Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> * refactor: rename rm to rmMap Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> * style: format Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> * refactor: rename to python-style variable Signed-off-by: Zxilly <zhouxinyu1001@gmail.com> * refactor: remove unnecessary statements Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
# [0.18.0](apache/casbin-pycasbin@v0.17.0...v0.18.0) (2021-02-23) ### Features * add AddNamedDomainMatchingFunc and AddNamedMatchingFunc to enforcer ([apache#122](apache#122)) ([e01f393](apache@e01f393))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
## [0.18.1](apache/casbin-pycasbin@v0.18.0...v0.18.1) (2021-02-25) ### Performance Improvements * reposition build_role_links() ([396ef7a](apache@396ef7a))
## [0.18.2](apache/casbin-pycasbin@v0.18.1...v0.18.2) (2021-03-02) ### Bug Fixes * typo ([32a572f](apache@32a572f))
Signed-off-by: Romain Arnal <romain.arnal@sewan.fr>
## [0.18.3](apache/casbin-pycasbin@v0.18.2...v0.18.3) (2021-03-12) ### Performance Improvements * refacto & improve performance ([ff7f288](apache@ff7f288))
Signed-off-by: divyagar <divyagarg2601@gmail.com>
## [0.18.4](apache/casbin-pycasbin@v0.18.3...v0.18.4) (2021-03-17) ### Performance Improvements * Added code to convert config value to different types ([c87fdfa](apache@c87fdfa))
Signed-off-by: divyagar <divyagarg2601@gmail.com>
# [0.19.0](apache/casbin-pycasbin@v0.18.4...v0.19.0) (2021-03-18) ### Features * Added dispatcher class ([5c4a992](apache@5c4a992))
Signed-off-by: Zxilly <zhouxinyu1001@gmail.com>
## [0.19.1](apache/casbin-pycasbin@v0.19.0...v0.19.1) (2021-03-18) ### Bug Fixes * relocate unittest and fix file path ([5ed07b2](apache@5ed07b2))
Signed-off-by: divyagar <divyagarg2601@gmail.com>
# [1.35.0](apache/casbin-pycasbin@v1.34.0...v1.35.0) (2024-01-11) ### Features * support up to Python 3.12 ([6dea204](apache@6dea204))
# [1.36.0](apache/casbin-pycasbin@v1.35.0...v1.36.0) (2024-02-09) ### Features * Added support for async watcher callbacks [apache#340](apache#340) ([apache#341](apache#341)) ([c04d832](apache@c04d832))
Co-authored-by: mbierma <3448579-mbierma@users.noreply.gitlab.com>
## [1.36.1](apache/casbin-pycasbin@v1.36.0...v1.36.1) (2024-05-21) ### Bug Fixes * FastEnforcer not fast ([apache#344](apache#344)) ([8aef43b](apache@8aef43b))
…pache#346) * fix: field_index is incorrect in RBAC with domains mode (apache#345) * chore: replace field name with constant in ManagementEnforcer
## [1.36.2](apache/casbin-pycasbin@v1.36.1...v1.36.2) (2024-06-11) ### Bug Fixes * field_index is incorrect in RBAC with domains mode ([apache#345](apache#345)) ([apache#346](apache#346)) ([9f6a379](apache@9f6a379))
## [1.36.3](apache/casbin-pycasbin@v1.36.2...v1.36.3) (2024-06-24) ### Bug Fixes * KeyError: 'g' when build_role_links ([bf9cb44](apache@bf9cb44))
…licies and roles (apache#360) * feat: optimize filtered file adapter policy loading * style: standardize whitespace and formatting in filtered_file_adapter.py * feat: add test * test: improve test_load_filtered_policy_with_comments in test_filter.py * test: update test description for mixed filter
# [1.37.0](apache/casbin-pycasbin@v1.36.3...v1.37.0) (2024-11-25) ### Features * enhance FilteredFileAdapter to handle flexible filtering for policies and roles ([apache#360](apache#360)) ([936d5f6](apache@936d5f6))
# [1.38.0](apache/casbin-pycasbin@v1.37.0...v1.38.0) (2025-01-12) ### Features * add StringAdapter's statement in init.py ([apache#367](apache#367)) ([bf84eed](apache@bf84eed))
# [1.39.0](apache/casbin-pycasbin@v1.38.0...v1.39.0) (2025-03-11) ### Features * Port get_allowed_object_conditions() from Golang to Python ([apache#373](apache#373)) ([c433a59](apache@c433a59))
# [1.40.0](apache/casbin-pycasbin@v1.39.0...v1.40.0) (2025-03-13) ### Features * fix bug that "!=" in policies is replaced with "not=" ([apache#375](apache#375)) ([54208b6](apache@54208b6))
# [1.41.0](apache/casbin-pycasbin@v1.40.0...v1.41.0) (2025-03-15) ### Features * add "logging_config" for PyCasbin logging ([apache#376](apache#376)) ([f39ace2](apache@f39ace2))
…internal_enforcer.py (apache#378)
# [1.42.0](apache/casbin-pycasbin@v1.41.0...v1.42.0) (2025-04-21) ### Features * fix missing await in load_increment_filtered_policy() in async_internal_enforcer.py ([apache#378](apache#378)) ([ca26402](apache@ca26402))
# [1.43.0](apache/casbin-pycasbin@v1.42.0...v1.43.0) (2025-05-10) ### Features * fix CI error ([20719ab](apache@20719ab))
# [1.44.0](apache/casbin-pycasbin@v1.43.0...v1.44.0) (2025-06-07) ### Features * update info ([ed77f0e](apache@ed77f0e))
# [1.45.0](apache/casbin-pycasbin@v1.44.0...v1.45.0) (2025-06-07) ### Features * Optimize `load_policy_line` to avoid quadratic individual-character loop ([apache#355](apache#355)) ([d3149e8](apache@d3149e8))
647834e to
28219c6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add_function can support both async and sync; add await enforce.enforce() #342