Open patrickduffy95 opened 2 months ago
@alnr would you be able to let me know if this PR is on the right track?
Hello, sorry for kot responding here. I think this feature is grand! @zepatrik and @hperl are finishing up some work on our end and can probably check out this PR in a week or two.
Thanks for implementing this. We've hit a roadblock and without this feature we have to write a bunch of custom code in our server which is getting cumbersome to maintain. Really looking forward to trying this.
Hello, sorry for kot responding here. I think this feature is grand! @zepatrik and @hperl are finishing up some work on our end and can probably check out this PR in a week or two.
Thanks @aeneasr! Do you have a better idea now of when they might be able to take a look at it?
Thanks a lot for the review @hperl. I will let you know once this PR is updated.
@hperl I have update the PR based on your feedback and it is now ready for review.
Related issue(s)
https://github.com/ory/keto/issues/812
Checklist
Further Comments
This change adds REST and gRPC endpoints for batch checking relations. The endpoint accepts a list of relation tuples to check, iterates through them (with concurrency), and returns a list of allowed responses.
REST API New endpoint:
POST /relation-tuples/batch/check?max-depth=<depth>¶llelization-factor=<max-concurrent-requests>
Request body:Response:
gRPC New RPC:
CheckService/BatchCheck
Request:Response
Notes: