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

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

Merged
merged 3 commits into from
Feb 5, 2025

Conversation

piotrooo
Copy link
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
Copy link
Contributor

@jimmyjames jimmyjames left a comment

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.

@piotrooo piotrooo requested a review from jimmyjames February 5, 2025 06:43
Copy link
Contributor

@jimmyjames jimmyjames left a comment

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
11 checks passed
@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