Skip to content

Commit

Permalink
feat(frontier): allow listing group members in same call (#317)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored Nov 6, 2023
1 parent a643dfe commit eb24a09
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1783,6 +1783,9 @@ message ListOrganizationGroupsRequest {
min_len: 3
}];
string state = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The state of the group to filter by. It can be enabled or disabled."}];

repeated string group_ids = 4;
bool with_members = 5;
}

message ListOrganizationGroupsResponse {
Expand Down Expand Up @@ -2210,10 +2213,17 @@ message ListProjectServiceUsersResponse {

message ListProjectGroupsRequest {
string id = 1 [(validate.rules).string.min_len = 3];
bool with_roles = 2;
}

message ListProjectGroupsResponse {
repeated Group groups = 1;

message RolePair {
string group_id = 1;
repeated Role roles = 2;
}
repeated RolePair role_pairs = 2;
}

message EnableProjectRequest {
Expand Down Expand Up @@ -2373,6 +2383,7 @@ message CreateGroupRequest {
message GetGroupRequest {
string id = 1;
string org_id = 2;
bool with_members = 3;
}

message CreateGroupResponse {
Expand Down
4 changes: 4 additions & 0 deletions raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ message Group {
description: "The time the group was last updated.",
example: "\"2023-06-07T05:39:56.961Z\""
}];

repeated User users = 10 [
(google.api.field_behavior) = OUTPUT_ONLY
];
}

message Role {
Expand Down

0 comments on commit eb24a09

Please sign in to comment.