Currently the OpenFgaClient reverses the behavior of write transactions based on the disableTransactions flag. This PR fixes that, only sending batched write requests if disableTransactions == true.
This is a functional breaking change, since the value of disableTransactions was being used incorrectly, so now disableTransactions == true will actually batch requests, and disableTransactions == false will send one (transactional) request.
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected
Description
⚠️ This is a behavioral breaking change!
Currently the
OpenFgaClient
reverses the behavior of write transactions based on thedisableTransactions
flag. This PR fixes that, only sending batched write requests ifdisableTransactions == true
.This is a functional breaking change, since the value of
disableTransactions
was being used incorrectly, so nowdisableTransactions == true
will actually batch requests, anddisableTransactions == false
will send one (transactional) request.disabledTransactions
valuedisabledTransactions
valueReferences
https://github.com/openfga/java-sdk/issues/59
Review Checklist
main