Skip to content
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

fix: avoid raising exception in remove_grouping_policy #257

Merged
merged 3 commits into from
May 13, 2022

Conversation

cs1137195420
Copy link
Contributor

@cs1137195420 cs1137195420 commented May 11, 2022

Fix: #250

@CLAassistant
Copy link

CLAassistant commented May 11, 2022

CLA assistant check
All committers have signed the CLA.

@casbin-bot
Copy link
Member

@ffyuanda @Zxilly @elfisworking please review

@hsluoyz
Copy link
Member

hsluoyz commented May 12, 2022

@leeqvip @tangyang9464 @abichinger @Abingcbc plz review

@abichinger
Copy link
Member

@cs1137195420 Did you mean to link to #258?

@cs1137195420
Copy link
Contributor Author

@cs1137195420 Did you mean to link to #258?

No, this branch is created for #250.

@abichinger
Copy link
Member

@cs1137195420 Whoops, my bad

remove_grouping_policies still raises the same error if a non-existent link is removed.
In my opinion, we souldn't raise an exception in delete_link

@cs1137195420
Copy link
Contributor Author

@cs1137195420 Whoops, my bad

remove_grouping_policies still raises the same error if a non-existent link is removed. In my opinion, we souldn't raise an exception in delete_link

I agree with you. Maybe we could replace raise statement with return statement in delete_link.

@abichinger
Copy link
Member

LGTM! 👍

@hsluoyz
Copy link
Member

hsluoyz commented May 12, 2022

@leeqvip @tangyang9464 plz review

@tangyang9464
Copy link
Member

@cs1137195420 plz modify your PR title and commit message to make them semantic instead of fix issue, confusing.

@cs1137195420 cs1137195420 changed the title fix issue #250 fix: avoid raising exception in remove_grouping_policy May 13, 2022
@cs1137195420
Copy link
Contributor Author

@cs1137195420 plz modify your PR title and commit message to make them semantic instead of fix issue, confusing.

Thanks for the reminder, I have revised the PR title. Does the current PR title fix: avoid raising exception in remove_grouping_policy meet your requirements?

@tangyang9464
Copy link
Member

@cs1137195420 plz modify your PR title and commit message to make them semantic instead of fix issue, confusing.

Thanks for the reminder, I have revised the PR title. Does the current PR title fix: avoid raising exception in remove_grouping_policy meet your requirements?

@cs1137195420 It's ok.

Copy link
Member

@tangyang9464 tangyang9464 left a comment

Choose a reason for hiding this comment

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

lgtm

@hsluoyz hsluoyz merged commit 39e17b4 into casbin:master May 13, 2022
github-actions bot pushed a commit that referenced this pull request May 13, 2022
## [1.16.4](v1.16.3...v1.16.4) (2022-05-13)

### Bug Fixes

* avoid raising exception in remove_grouping_policy ([#257](#257)) ([39e17b4](39e17b4)), closes [#250](#250) [#250](#250)
@github-actions
Copy link

🎉 This PR is included in version 1.16.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@cs1137195420 cs1137195420 deleted the fix/link-btw-strs-notexist branch May 13, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove_grouping_policy: link between string and string does not exist
6 participants