Skip to content

Conversation

@divy9881
Copy link
Contributor

@divy9881 divy9881 commented May 7, 2020

fix: #21

@coveralls
Copy link

coveralls commented May 7, 2020

Pull Request Test Coverage Report for Build 49

  • 29 of 35 (82.86%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+3.9%) to 65.318%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/adapter.ts 29 35 82.86%
Totals Coverage Status
Change from base Build 37: 3.9%
Covered Lines: 102
Relevant Lines: 128

💛 - Coveralls

@nodece
Copy link
Contributor

nodece commented May 7, 2020

Could you add transaction in addPolicies, removePolicies and savePolicy?

When happens error, rollback and throw error.

@nodece
Copy link
Contributor

nodece commented May 7, 2020

Before PR, make commits is clean via squash and rebase.

@hsluoyz
Copy link
Member

hsluoyz commented May 8, 2020

@nodece

@divy9881 divy9881 force-pushed the batch_operations branch 3 times, most recently from 7f25929 to bfa4667 Compare May 8, 2020 07:02
fix: Make operations transactional.

fix: Replace manager with connection.

fix: Rollback to getRepo.

fix: test.

fix: Made removePolicies transactional.

fix: savePolicy().

fix: Added commit transactions.

fix: throw err.

fix: Commit transaction.
@divy9881 divy9881 force-pushed the batch_operations branch from 7bc4063 to 611ee3d Compare May 8, 2020 15:42
@divy9881
Copy link
Contributor Author

divy9881 commented May 8, 2020

Thanks for pointing out, @nodece, so silly of me.

@nodece
Copy link
Contributor

nodece commented May 8, 2020

lgtm

@nodece nodece merged commit 7030b25 into node-casbin:master May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

batch operation support

4 participants