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

chore(guardian): add pagination for appeal and grants #46

Merged
merged 2 commits into from
Aug 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions gotocompany/guardian/v1beta1/guardian.proto
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,14 @@ message ListUserAppealsRequest {
repeated string resource_types = 5;
repeated string resource_urns = 6;
repeated string order_by = 7;
uint32 size = 8 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
uint32 offset = 9 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
}

message ListUserAppealsResponse {
Expand All @@ -455,6 +463,14 @@ message ListAppealsRequest {
repeated string resource_urns = 7;
repeated string order_by = 8;
string created_by = 9;
uint32 size = 10 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
uint32 offset = 11 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
}

message ListAppealsResponse {
Expand Down Expand Up @@ -616,6 +632,14 @@ message ListGrantsRequest {
string created_by = 10;
repeated string order_by = 11;
string owner = 12;
uint32 size = 13 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
uint32 offset = 14 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
}

message ListGrantsResponse {
Expand All @@ -633,6 +657,14 @@ message ListUserGrantsRequest {
repeated string resource_urns = 8;
repeated string roles = 9;
repeated string order_by = 10;
uint32 size = 11 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
uint32 offset = 12 [(validate.rules).uint32 = {
gte: 0,
ignore_empty: true
}];
}

message ListUserGrantsResponse {
Expand Down
Loading