Skip to content

Commit

Permalink
remove query_duration_ms from batch check
Browse files Browse the repository at this point in the history
  • Loading branch information
justincoh committed Nov 1, 2024
1 parent 4c056e8 commit 56fb4a7
Show file tree
Hide file tree
Showing 4 changed files with 1,260 additions and 1,316 deletions.
7 changes: 1 addition & 6 deletions docs/openapiv2/apidocs.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,10 @@ service OpenFGAService {
" \"01JA8PMM6A90NV5ET0F28CYSZQ\": {\n"
" \"allowed\": false, \n"
" \"error\": {\"message\": \"\"}, \n"
" \"query_duration_ms\": 5\n"
" },\n"
" \"01JA8PM3QM7VBPGB8KMPK8SBD5\": {\n"
" \"allowed\": true, \n"
" \"error\": {\"message\": \"\"}, \n"
" \"query_duration_ms\": 3\n"
" }\n"
"}\n"
"```\n"
Expand Down Expand Up @@ -1286,7 +1284,7 @@ message BatchCheckItem {

message BatchCheckResponse {
map<string, BatchCheckSingleResult> result = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: '{"1cd93d8c-8e45-43c6-9a15-cbb3c7f394bc": {"allowed": true, "query_duration_ms": 3, "error": {"message": ""}}}'
example: '{"1cd93d8c-8e45-43c6-9a15-cbb3c7f394bc": {"allowed": true, "error": {"message": ""}}}'
description: "map keys are the correlation_id values from the BatchCheckItems in the request"
}];
}
Expand All @@ -1296,7 +1294,6 @@ message BatchCheckSingleResult {
bool allowed = 1;
CheckError error = 2;
}
google.protobuf.Int32Value query_duration_ms = 3 [json_name = "query_duration_ms"];
}

message CheckError {
Expand Down
Loading

0 comments on commit 56fb4a7

Please sign in to comment.