Skip to content

Commit eb24a09

Browse files
authored
feat(frontier): allow listing group members in same call (#317)
Signed-off-by: Kush Sharma <[email protected]>
1 parent a643dfe commit eb24a09

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

raystack/frontier/v1beta1/frontier.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,9 @@ message ListOrganizationGroupsRequest {
17831783
min_len: 3
17841784
}];
17851785
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."}];
1786+
1787+
repeated string group_ids = 4;
1788+
bool with_members = 5;
17861789
}
17871790

17881791
message ListOrganizationGroupsResponse {
@@ -2210,10 +2213,17 @@ message ListProjectServiceUsersResponse {
22102213

22112214
message ListProjectGroupsRequest {
22122215
string id = 1 [(validate.rules).string.min_len = 3];
2216+
bool with_roles = 2;
22132217
}
22142218

22152219
message ListProjectGroupsResponse {
22162220
repeated Group groups = 1;
2221+
2222+
message RolePair {
2223+
string group_id = 1;
2224+
repeated Role roles = 2;
2225+
}
2226+
repeated RolePair role_pairs = 2;
22172227
}
22182228

22192229
message EnableProjectRequest {
@@ -2373,6 +2383,7 @@ message CreateGroupRequest {
23732383
message GetGroupRequest {
23742384
string id = 1;
23752385
string org_id = 2;
2386+
bool with_members = 3;
23762387
}
23772388

23782389
message CreateGroupResponse {

raystack/frontier/v1beta1/models.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ message Group {
8888
description: "The time the group was last updated.",
8989
example: "\"2023-06-07T05:39:56.961Z\""
9090
}];
91+
92+
repeated User users = 10 [
93+
(google.api.field_behavior) = OUTPUT_ONLY
94+
];
9195
}
9296

9397
message Role {

0 commit comments

Comments
 (0)