Skip to content

feat(java-sdk)!: support server-side batch check endpoint - #475

Merged
jimmyjames merged 3 commits into
openfga:mainfrom
piotrooo:feature/java-batch-check
Feb 5, 2025
Merged

feat(java-sdk)!: support server-side batch check endpoint#475
jimmyjames merged 3 commits into
openfga:mainfrom
piotrooo:feature/java-batch-check

Conversation

@piotrooo

Copy link
Copy Markdown
Contributor

Description

Caution

Breaking Change! This change renames the existing batchCheck method (which calls the /check API in parallel) to clientBatchCheck.
If you would like to continue to use the client-side batch check, replace your calls to batchCheck with clientBatchCheck, and reference the results using the result property (formerly was responses).

Implemented a server-side batch check API, as @jimmyjames mentioned here.

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • 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]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

@piotrooo
piotrooo requested a review from a team as a code owner January 25, 2025 07:46

@jimmyjames jimmyjames left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@piotrooo this is awesome!!! Thanks so much for your contribution 🙇

Just a couple fairly minor requests and a question about the new exception type.

Comment thread config/clients/java/template/config-ClientBatchCheckRequestOptions.java.mustache Outdated
@piotrooo
piotrooo requested a review from jimmyjames February 5, 2025 06:43

@jimmyjames jimmyjames left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fantastic! 🚀 🙇

@jimmyjames
jimmyjames added this pull request to the merge queue Feb 5, 2025
Merged via the queue into openfga:main with commit aace657 Feb 5, 2025
@piotrooo
piotrooo deleted the feature/java-batch-check branch February 5, 2025 18:37
@jimmyjames jimmyjames mentioned this pull request Feb 5, 2025
4 tasks
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.

2 participants