Skip to content

Commit

Permalink
Store changes filter by start time (#204)
Browse files Browse the repository at this point in the history
* Store changes filter by start time

* Description for start_time attribute improved

* Updated start_time description: If a continuation_token is provided along side start_time, the continuation_token will take precedence over start_time.
  • Loading branch information
cikasfm authored Oct 28, 2024
1 parent 3047760 commit 7c098f1
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 101 deletions.
11 changes: 10 additions & 1 deletion docs/openapiv2/apidocs.swagger.json

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

1 change: 1 addition & 0 deletions openfga/v1/errors_ignore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ enum ErrorCode {
invalid_authorization_model = 2056;
unsupported_schema_version = 2057;
cancelled = 2058;
invalid_start_time = 2059;
}

enum UnprocessableContentErrorCode {
Expand Down
12 changes: 12 additions & 0 deletions openfga/v1/openfga_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,18 @@ message ReadChangesRequest {
(validate.rules).string.max_bytes = 5120,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {example: "\"eyJwayI6IkxBVEVTVF9OU0NPTkZJR19hdXRoMHN0b3JlIiwic2siOiIxem1qbXF3MWZLZExTcUoyN01MdTdqTjh0cWgifQ==\""}
];

google.protobuf.Timestamp start_time = 5 [
json_name = "start_time",
(validate.rules).timestamp.lt_now = true,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description:
"Start date and time of changes to read.\n"
"Format: ISO 8601 timestamp (e.g., 2022-01-01T00:00:00Z)\n"
"If a continuation_token is provided along side start_time, the continuation_token will take precedence over start_time."
example: "2021-01-01T00:00:00.000Z"
}
];
}

message ReadChangesResponse {
Expand Down
85 changes: 45 additions & 40 deletions proto/openfga/v1/errors_ignore.pb.go

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

Loading

0 comments on commit 7c098f1

Please sign in to comment.