Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(personhog): list groups rpc (#57890)

Nick Best2b6c26885047
diff --git a/nodejs/src/generated/personhog/personhog/service/v1/service_pb.ts b/nodejs/src/generated/personhog/personhog/service/v1/service_pb.ts
index 9750e222dc1d..928ec12b1e0f 100644
--- a/nodejs/src/generated/personhog/personhog/service/v1/service_pb.ts
+++ b/nodejs/src/generated/personhog/personhog/service/v1/service_pb.ts
@@ -50,6 +50,8 @@ import type {
GroupTypeMappingsBatchResponseSchema,
GroupTypeMappingsResponseSchema,
GroupsResponseSchema,
+ ListGroupsRequestSchema,
+ ListGroupsResponseSchema,
UpdateGroupRequestSchema,
UpdateGroupResponseSchema,
UpdateGroupTypeMappingRequestSchema,
@@ -87,7 +89,7 @@ import { file_personhog_types_v1_person } from '../../types/v1/person_pb'
export const file_personhog_service_v1_service: GenFile =
/*@__PURE__*/
fileDesc(
- 'CiJwZXJzb25ob2cvc2VydmljZS92MS9zZXJ2aWNlLnByb3RvEhRwZXJzb25ob2cuc2VydmljZS52MTL9IQoQUGVyc29uSG9nU2VydmljZRJYCglHZXRQZXJzb24SJC5wZXJzb25ob2cudHlwZXMudjEuR2V0UGVyc29uUmVxdWVzdBolLnBlcnNvbmhvZy50eXBlcy52MS5HZXRQZXJzb25SZXNwb25zZRJYCgpHZXRQZXJzb25zEiUucGVyc29uaG9nLnR5cGVzLnYxLkdldFBlcnNvbnNSZXF1ZXN0GiMucGVyc29uaG9nLnR5cGVzLnYxLlBlcnNvbnNSZXNwb25zZRJkCg9HZXRQZXJzb25CeVV1aWQSKi5wZXJzb25ob2cudHlwZXMudjEuR2V0UGVyc29uQnlVdWlkUmVxdWVzdBolLnBlcnNvbmhvZy50eXBlcy52MS5HZXRQZXJzb25SZXNwb25zZRJmChFHZXRQZXJzb25zQnl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W0SPi5wZXJzb25ob2cudHlwZXMudjEuRGVsZXRlR3JvdXBUeXBlTWFwcGluZ3NCYXRjaEZvclRlYW1SZXF1ZXN0Gj8ucGVyc29uaG9nLnR5cGVzLnYxLkRlbGV0ZUdyb3VwVHlwZU1hcHBpbmdzQmF0Y2hGb3JUZWFtUmVzcG9uc2USfwoWVXBkYXRlUGVyc29uUHJvcGVydGllcxIxLnBlcnNvbmhvZy50eXBlcy52MS5VcGRhdGVQZXJzb25Qcm9wZXJ0aWVzUmVxdWVzdBoyLnBlcnNvbmhvZy50eXBlcy52MS5VcGRhdGVQZXJzb25Qcm9wZXJ0aWVzUmVzcG9uc2USZAoNRGVsZXRlUGVyc29ucxIoLnBlcnNvbmhvZy50eXBlcy52MS5EZWxldGVQZXJzb25zUmVxdWVzdBopLnBlcnNvbmhvZy50eXBlcy52MS5EZWxldGVQZXJzb25zUmVzcG9uc2USiAEKGURlbGV0ZVBlcnNvbnNCYXRjaEZvclRlYW0SNC5wZXJzb25ob2cudHlwZXMudjEuRGVsZXRlUGVyc29uc0JhdGNoRm9yVGVhbVJlcXVlc3QaNS5wZXJzb25ob2cudHlwZXMudjEuRGVsZXRlUGVyc29uc0JhdGNoRm9yVGVhbVJlc3BvbnNlYgZwcm90bzM',
[
file_personhog_types_v1_person,
file_personhog_types_v1_group,
@@ -283,6 +285,14 @@ export const PersonHogService: GenService<{
input: typeof GetGroupsBatchRequestSchema
output: typeof GetGroupsBatchResponseSchema
}
+ /**
+ * @generated from rpc personhog.service.v1.PersonHogService.ListGroups
+ */
+ listGroups: {
+ methodKind: 'unary'
+ input: typeof ListGroupsRequestSchema
+ output: typeof ListGroupsResponseSchema
+ }
/**
* Group type mappings
*
diff --git a/nodejs/src/generated/personhog/personhog/types/v1/group_pb.ts b/nodejs/src/generated/personhog/personhog/types/v1/group_pb.ts
index da6a6311a294..5cc884c2a8f3 100644
--- a/nodejs/src/generated/personhog/personhog/types/v1/group_pb.ts
+++ b/nodejs/src/generated/personhog/personhog/types/v1/group_pb.ts
@@ -13,7 +13,7 @@ import { file_personhog_types_v1_common } from './common_pb'
export const file_personhog_types_v1_group: GenFile =
/*@__PURE__*/
fileDesc(
- 'Ch5wZXJzb25ob2cvdHlwZXMvdjEvZ3JvdXAucHJvdG8SEnBlcnNvbmhvZy50eXBlcy52MSLXAQoFR3JvdXASCgoCaWQYASABKAMSDwoHdGVhbV9pZBgCIAEoAxIYChBncm91cF90eXBlX2luZGV4GAMgASgFEhEKCWdyb3VwX2tleRgEIAEoCRIYChBncm91cF9wcm9wZXJ0aWVzGAUgASgMEhIKCmNyZWF0ZWRfYXQYBiABKAMSIgoacHJvcGVydGllc19sYXN0X3VwZGF0ZWRfYXQYByABKAwSIQoZcHJvcGVydGllc19sYXN0X29wZXJhdGlvbhgIIAEoDBIPCgd2ZXJzaW9uGAkgASgDIt0CChBHcm91cFR5cGVNYXBwaW5nEgoKAmlkGAEgASgDEg8KB3RlYW1faWQYAiABKAMSEgoKcHJvamVjdF9pZBgDIAEoAxISCgpncm91cF90eXBlGAQgASgJEhgKEGdyb3VwX3R5cGVfaW5kZXgYBSABKAUSGgoNbmFtZV9zaW5ndWxhchgGIAEoCUgAiAEBEhgKC25hbWVfcGx1cmFsGAcgASgJSAGIAQESHAoPZGVmYXVsdF9jb2x1bW5zGAggASgMSAKIAQESIAoTZGV0YWlsX2Rhc2hib2FyZF9pZBgJIAEoA0gDiAEBEhcKCmNyZWF0ZWRfYXQYCiABKANIBIgBAUIQCg5fbmFtZV9zaW5ndWxhckIOCgxfbmFtZV9wbHVyYWxCEgoQX2RlZmF1bHRfY29sdW1uc0IWChRfZGV0YWlsX2Rhc2hib2FyZF9pZEINCgtfY3JlYXRlZF9hdCJyCgxHcm91cFdpdGhLZXkSKQoDa2V5GAEgASgLMhwucGVyc29uaG9nLnR5cGVzLnYxLkdyb3VwS2V5Ei0KBWdyb3VwGAIgASgLMhkucGVyc29uaG9nLnR5cGVzLnYxLkdyb3VwSACIAQFCCAoGX2dyb3V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Z3NCYXRjaEZvclRlYW1SZXNwb25zZRIVCg1kZWxldGVkX2NvdW50GAEgASgDYgZwcm90bzM',
[file_personhog_types_v1_common]
)
@@ -188,6 +188,95 @@ export const GroupTypeMappingsByKeySchema: GenMessage<GroupTypeMappingsByKey> =
/*@__PURE__*/
messageDesc(file_personhog_types_v1_group, 3)
+/**
+ * ListGroupsRequest returns groups for a team with filtering and keyset pagination.
+ * Used by the groups list API endpoint.
+ *
+ * @generated from message personhog.types.v1.ListGroupsRequest
+ */
+export type ListGroupsRequest = Message<'personhog.types.v1.ListGroupsRequest'> & {
+ /**
+ * @generated from field: int64 team_id = 1;
+ */
+ teamId: bigint
+
+ /**
+ * @generated from field: int32 group_type_index = 2;
+ */
+ groupTypeIndex: number
+
+ /**
+ * Substring match on group_key (case-insensitive). Empty means no filter.
+ *
+ * @generated from field: string group_key_contains = 3;
+ */
+ groupKeyContains: string
+
+ /**
+ * Substring search across group_properties JSON and exact match on group_key.
+ * Empty means no search filter.
+ *
+ * @generated from field: string search = 4;
+ */
+ search: string
+
+ /**
+ * Keyset pagination cursor: pass the created_at millis + id from the last
+ * result of the previous page. First page: cursor_created_at_ms = 0, cursor_id = 0.
+ *
+ * @generated from field: int64 cursor_created_at_ms = 5;
+ */
+ cursorCreatedAtMs: bigint
+
+ /**
+ * @generated from field: int64 cursor_id = 6;
+ */
+ cursorId: bigint
+
+ /**
+ * @generated from field: int32 limit = 7;
+ */
+ limit: number
+
+ /**
+ * @generated from field: personhog.types.v1.ReadOptions read_options = 8;
+ */
+ readOptions?: ReadOptions
+}
+
+/**
+ * Describes the message personhog.types.v1.ListGroupsRequest.
+ * Use `create(ListGroupsRequestSchema)` to create a new message.
+ */
+export const ListGroupsRequestSchema: GenMessage<ListGroupsRequest> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_group, 4)
+
+/**
+ * @generated from message personhog.types.v1.ListGroupsResponse
+ */
+export type ListGroupsResponse = Message<'personhog.types.v1.ListGroupsResponse'> & {
+ /**
+ * @generated from field: repeated personhog.types.v1.Group groups = 1;
+ */
+ groups: Group[]
+
+ /**
+ * True when more results exist beyond this page.
+ *
+ * @generated from field: bool has_more = 2;
+ */
+ hasMore: boolean
+}
+
+/**
+ * Describes the message personhog.types.v1.ListGroupsResponse.
+ * Use `create(ListGroupsResponseSchema)` to create a new message.
+ */
+export const ListGroupsResponseSchema: GenMessage<ListGroupsResponse> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_group, 5)
+
/**
* @generated from message personhog.types.v1.GetGroupRequest
*/
@@ -219,7 +308,7 @@ export type GetGroupRequest = Message<'personhog.types.v1.GetGroupRequest'> & {
*/
export const GetGroupRequestSchema: GenMessage<GetGroupRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 4)
+ messageDesc(file_personhog_types_v1_group, 6)
/**
* @generated from message personhog.types.v1.GetGroupResponse
@@ -237,7 +326,7 @@ export type GetGroupResponse = Message<'personhog.types.v1.GetGroupResponse'> &
*/
export const GetGroupResponseSchema: GenMessage<GetGroupResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 5)
+ messageDesc(file_personhog_types_v1_group, 7)
/**
* @generated from message personhog.types.v1.GetGroupsRequest
@@ -265,7 +354,7 @@ export type GetGroupsRequest = Message<'personhog.types.v1.GetGroupsRequest'> &
*/
export const GetGroupsRequestSchema: GenMessage<GetGroupsRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 6)
+ messageDesc(file_personhog_types_v1_group, 8)
/**
* @generated from message personhog.types.v1.GroupsResponse
@@ -288,7 +377,7 @@ export type GroupsResponse = Message<'personhog.types.v1.GroupsResponse'> & {
*/
export const GroupsResponseSchema: GenMessage<GroupsResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 7)
+ messageDesc(file_personhog_types_v1_group, 9)
/**
* @generated from message personhog.types.v1.GetGroupsBatchRequest
@@ -311,7 +400,7 @@ export type GetGroupsBatchRequest = Message<'personhog.types.v1.GetGroupsBatchRe
*/
export const GetGroupsBatchRequestSchema: GenMessage<GetGroupsBatchRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 8)
+ messageDesc(file_personhog_types_v1_group, 10)
/**
* @generated from message personhog.types.v1.GetGroupsBatchResponse
@@ -329,7 +418,7 @@ export type GetGroupsBatchResponse = Message<'personhog.types.v1.GetGroupsBatchR
*/
export const GetGroupsBatchResponseSchema: GenMessage<GetGroupsBatchResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 9)
+ messageDesc(file_personhog_types_v1_group, 11)
/**
* @generated from message personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest
@@ -352,7 +441,7 @@ export type GetGroupTypeMappingsByTeamIdRequest = Message<'personhog.types.v1.Ge
*/
export const GetGroupTypeMappingsByTeamIdRequestSchema: GenMessage<GetGroupTypeMappingsByTeamIdRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 10)
+ messageDesc(file_personhog_types_v1_group, 12)
/**
* @generated from message personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest
@@ -376,7 +465,7 @@ export type GetGroupTypeMappingsByTeamIdsRequest =
*/
export const GetGroupTypeMappingsByTeamIdsRequestSchema: GenMessage<GetGroupTypeMappingsByTeamIdsRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 11)
+ messageDesc(file_personhog_types_v1_group, 13)
/**
* @generated from message personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest
@@ -400,7 +489,7 @@ export type GetGroupTypeMappingsByProjectIdRequest =
*/
export const GetGroupTypeMappingsByProjectIdRequestSchema: GenMessage<GetGroupTypeMappingsByProjectIdRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 12)
+ messageDesc(file_personhog_types_v1_group, 14)
/**
* @generated from message personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest
@@ -424,7 +513,7 @@ export type GetGroupTypeMappingsByProjectIdsRequest =
*/
export const GetGroupTypeMappingsByProjectIdsRequestSchema: GenMessage<GetGroupTypeMappingsByProjectIdsRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 13)
+ messageDesc(file_personhog_types_v1_group, 15)
/**
* @generated from message personhog.types.v1.GroupTypeMappingsResponse
@@ -442,7 +531,7 @@ export type GroupTypeMappingsResponse = Message<'personhog.types.v1.GroupTypeMap
*/
export const GroupTypeMappingsResponseSchema: GenMessage<GroupTypeMappingsResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 14)
+ messageDesc(file_personhog_types_v1_group, 16)
/**
* @generated from message personhog.types.v1.GroupTypeMappingsBatchResponse
@@ -460,7 +549,7 @@ export type GroupTypeMappingsBatchResponse = Message<'personhog.types.v1.GroupTy
*/
export const GroupTypeMappingsBatchResponseSchema: GenMessage<GroupTypeMappingsBatchResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 15)
+ messageDesc(file_personhog_types_v1_group, 17)
/**
* @generated from message personhog.types.v1.CreateGroupRequest
@@ -498,7 +587,7 @@ export type CreateGroupRequest = Message<'personhog.types.v1.CreateGroupRequest'
*/
export const CreateGroupRequestSchema: GenMessage<CreateGroupRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 16)
+ messageDesc(file_personhog_types_v1_group, 18)
/**
* @generated from message personhog.types.v1.CreateGroupResponse
@@ -516,7 +605,7 @@ export type CreateGroupResponse = Message<'personhog.types.v1.CreateGroupRespons
*/
export const CreateGroupResponseSchema: GenMessage<CreateGroupResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 17)
+ messageDesc(file_personhog_types_v1_group, 19)
/**
* @generated from message personhog.types.v1.UpdateGroupRequest
@@ -573,7 +662,7 @@ export type UpdateGroupRequest = Message<'personhog.types.v1.UpdateGroupRequest'
*/
export const UpdateGroupRequestSchema: GenMessage<UpdateGroupRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 18)
+ messageDesc(file_personhog_types_v1_group, 20)
/**
* @generated from message personhog.types.v1.UpdateGroupResponse
@@ -596,7 +685,7 @@ export type UpdateGroupResponse = Message<'personhog.types.v1.UpdateGroupRespons
*/
export const UpdateGroupResponseSchema: GenMessage<UpdateGroupResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 19)
+ messageDesc(file_personhog_types_v1_group, 21)
/**
* @generated from message personhog.types.v1.DeleteGroupsBatchForTeamRequest
@@ -619,7 +708,7 @@ export type DeleteGroupsBatchForTeamRequest = Message<'personhog.types.v1.Delete
*/
export const DeleteGroupsBatchForTeamRequestSchema: GenMessage<DeleteGroupsBatchForTeamRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 20)
+ messageDesc(file_personhog_types_v1_group, 22)
/**
* @generated from message personhog.types.v1.DeleteGroupsBatchForTeamResponse
@@ -637,7 +726,7 @@ export type DeleteGroupsBatchForTeamResponse = Message<'personhog.types.v1.Delet
*/
export const DeleteGroupsBatchForTeamResponseSchema: GenMessage<DeleteGroupsBatchForTeamResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 21)
+ messageDesc(file_personhog_types_v1_group, 23)
/**
* @generated from message personhog.types.v1.UpdateGroupTypeMappingRequest
@@ -685,7 +774,7 @@ export type UpdateGroupTypeMappingRequest = Message<'personhog.types.v1.UpdateGr
*/
export const UpdateGroupTypeMappingRequestSchema: GenMessage<UpdateGroupTypeMappingRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 22)
+ messageDesc(file_personhog_types_v1_group, 24)
/**
* @generated from message personhog.types.v1.UpdateGroupTypeMappingResponse
@@ -703,7 +792,7 @@ export type UpdateGroupTypeMappingResponse = Message<'personhog.types.v1.UpdateG
*/
export const UpdateGroupTypeMappingResponseSchema: GenMessage<UpdateGroupTypeMappingResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 23)
+ messageDesc(file_personhog_types_v1_group, 25)
/**
* @generated from message personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest
@@ -732,7 +821,7 @@ export type GetGroupTypeMappingByDashboardIdRequest =
*/
export const GetGroupTypeMappingByDashboardIdRequestSchema: GenMessage<GetGroupTypeMappingByDashboardIdRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 24)
+ messageDesc(file_personhog_types_v1_group, 26)
/**
* @generated from message personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse
@@ -751,7 +840,7 @@ export type GetGroupTypeMappingByDashboardIdResponse =
*/
export const GetGroupTypeMappingByDashboardIdResponseSchema: GenMessage<GetGroupTypeMappingByDashboardIdResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 25)
+ messageDesc(file_personhog_types_v1_group, 27)
/**
* @generated from message personhog.types.v1.DeleteGroupTypeMappingRequest
@@ -774,7 +863,7 @@ export type DeleteGroupTypeMappingRequest = Message<'personhog.types.v1.DeleteGr
*/
export const DeleteGroupTypeMappingRequestSchema: GenMessage<DeleteGroupTypeMappingRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 26)
+ messageDesc(file_personhog_types_v1_group, 28)
/**
* @generated from message personhog.types.v1.DeleteGroupTypeMappingResponse
@@ -792,7 +881,7 @@ export type DeleteGroupTypeMappingResponse = Message<'personhog.types.v1.DeleteG
*/
export const DeleteGroupTypeMappingResponseSchema: GenMessage<DeleteGroupTypeMappingResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 27)
+ messageDesc(file_personhog_types_v1_group, 29)
/**
* @generated from message personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest
@@ -816,7 +905,7 @@ export type DeleteGroupTypeMappingsBatchForTeamRequest =
*/
export const DeleteGroupTypeMappingsBatchForTeamRequestSchema: GenMessage<DeleteGroupTypeMappingsBatchForTeamRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 28)
+ messageDesc(file_personhog_types_v1_group, 30)
/**
* @generated from message personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse
@@ -835,4 +924,4 @@ export type DeleteGroupTypeMappingsBatchForTeamResponse =
*/
export const DeleteGroupTypeMappingsBatchForTeamResponseSchema: GenMessage<DeleteGroupTypeMappingsBatchForTeamResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_group, 29)
+ messageDesc(file_personhog_types_v1_group, 31)
diff --git a/nodejs/src/ingestion/personhog/client.test.ts b/nodejs/src/ingestion/personhog/client.test.ts
index 17e6b6a3cc84..e29f398fe9e4 100644
--- a/nodejs/src/ingestion/personhog/client.test.ts
+++ b/nodejs/src/ingestion/personhog/client.test.ts
@@ -96,6 +96,7 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
getGroup: () => ({}),
getGroups: () => ({ groups: [], missingGroups: [] }),
getGroupsBatch: () => ({ results: [] }),
+ listGroups: () => ({ groups: [], hasMore: false }),
getGroupTypeMappingsByTeamId: () => ({ mappings: [] }),
getGroupTypeMappingsByTeamIds: () => ({ results: [] }),
getGroupTypeMappingsByProjectId: () => ({ mappings: [] }),
diff --git a/posthog/personhog_client/client.py b/posthog/personhog_client/client.py
index e74b0918909d..a734f05b1a5e 100644
--- a/posthog/personhog_client/client.py
+++ b/posthog/personhog_client/client.py
@@ -61,6 +61,8 @@ from posthog.personhog_client.proto import (
InsertCohortMembersResponse,
ListCohortMemberIdsRequest,
ListCohortMemberIdsResponse,
+ ListGroupsRequest,
+ ListGroupsResponse,
PersonHogServiceStub,
PersonsByDistinctIdsInTeamResponse,
PersonsResponse,
@@ -257,6 +259,9 @@ class PersonHogClient:
def get_groups_batch(self, request: GetGroupsBatchRequest) -> GetGroupsBatchResponse:
return self._stub.GetGroupsBatch(request, timeout=self._timeout)
+ def list_groups(self, request: ListGroupsRequest) -> ListGroupsResponse:
+ return self._stub.ListGroups(request, timeout=self._timeout)
+
def create_group(self, request: CreateGroupRequest) -> CreateGroupResponse:
return self._stub.CreateGroup(request, timeout=self._timeout)
diff --git a/posthog/personhog_client/fake_client.py b/posthog/personhog_client/fake_client.py
index b3d51e219a15..4a03c37c9166 100644
--- a/posthog/personhog_client/fake_client.py
+++ b/posthog/personhog_client/fake_client.py
@@ -339,6 +339,33 @@ class FakePersonHogClient:
missing.append(gi)
return group_pb2.GroupsResponse(groups=found, missing_groups=missing)
+ def list_groups(self, request: group_pb2.ListGroupsRequest) -> group_pb2.ListGroupsResponse:
+ self.calls.append(_Call("list_groups", request))
+ all_groups = [
+ g
+ for (team_id, gti, _key), g in self._groups.items()
+ if team_id == request.team_id and gti == request.group_type_index
+ ]
+ if request.group_key_contains:
+ pattern = request.group_key_contains.lower()
+ all_groups = [g for g in all_groups if pattern in g.group_key.lower()]
+ if request.search:
+ search_lower = request.search.lower()
+ all_groups = [
+ g
+ for g in all_groups
+ if search_lower in g.group_properties.decode().lower() or g.group_key == request.search
+ ]
+ all_groups.sort(key=lambda g: (-g.created_at, -g.id))
+ if request.cursor_created_at_ms > 0:
+ all_groups = [
+ g for g in all_groups if (g.created_at, g.id) < (request.cursor_created_at_ms, request.cursor_id)
+ ]
+ limit = request.limit if request.limit > 0 else 100
+ has_more = len(all_groups) > limit
+ page = all_groups[:limit]
+ return group_pb2.ListGroupsResponse(groups=page, has_more=has_more)
+
def get_groups_batch(self, request: group_pb2.GetGroupsBatchRequest) -> group_pb2.GetGroupsBatchResponse:
self.calls.append(_Call("get_groups_batch", request))
results = []
diff --git a/posthog/personhog_client/proto/__init__.py b/posthog/personhog_client/proto/__init__.py
index 01351d8cc85a..c190af12e665 100644
--- a/posthog/personhog_client/proto/__init__.py
+++ b/posthog/personhog_client/proto/__init__.py
@@ -39,6 +39,8 @@ from posthog.personhog_client.proto.generated.personhog.types.v1.group_pb2 impor
GetGroupsBatchRequest,
GetGroupsBatchResponse,
GetGroupsRequest,
+ ListGroupsRequest,
+ ListGroupsResponse,
GetGroupTypeMappingByDashboardIdRequest,
GetGroupTypeMappingByDashboardIdResponse,
GetGroupTypeMappingsByProjectIdRequest,
diff --git a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py
index 27ee765aab42..c8fc9fd36919 100644
--- a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py
+++ b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py
@@ -20,7 +20,7 @@ from ....personhog.types.v1 import (
)
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
- b"\n\"personhog/service/v1/service.proto\x12\x14personhog.service.v1\x1a\x1fpersonhog/types/v1/person.proto\x1a\x1epersonhog/types/v1/group.proto\x1a\x1fpersonhog/types/v1/cohort.proto\x1a%personhog/types/v1/feature_flag.proto2\xfd!\n\x10PersonHogService\x12X\n\tGetPerson\x12$.personhog.types.v1.GetPersonRequest\x1a%.personhog.types.v1.GetPersonResponse\x12X\n\nGetPersons\x12%.personhog.types.v1.GetPersonsRequest\x1a#.personhog.types.v1.PersonsResponse\x12d\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12f\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x120.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x128.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a6.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x122.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a0.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x122.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a3.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x123.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a4.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x124.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a5.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x121.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a2.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1dDeleteHashKeyOverridesByTeams\x128.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a9.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15CheckCohortMembership\x120.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12CountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12DeleteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17DeleteCohortMembersBulk\x122.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a3.personhog.types.v1.DeleteCohortMembersBulkResponse\x12v\n\x13InsertCohortMembers\x12..personhog.types.v1.InsertCohortMembersRequest\x1a/.personhog.types.v1.InsertCohortMembersResponse\x12v\n\x13ListCohortMemberIds\x12..personhog.types.v1.ListCohortMemberIdsRequest\x1a/.personhog.types.v1.ListCohortMemberIdsResponse\x12U\n\x08GetGroup\x12#.personhog.types.v1.GetGroupRequest\x1a$.personhog.types.v1.GetGroupResponse\x12U\n\tGetGroups\x12$.personhog.types.v1.GetGroupsRequest\x1a\".personhog.types.v1.GroupsResponse\x12g\n\x0eGetGroupsBatch\x12).personhog.types.v1.GetGroupsBatchRequest\x1a*.personhog.types.v1.GetGroupsBatchResponse\x12\x86\x01\n\x1cGetGroupTypeMappingsByTeamId\x127.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x128.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x8c\x01\n\x1fGetGroupTypeMappingsByProjectId\x12:.personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x93\x01\n GetGroupTypeMappingsByProjectIds\x12;.personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12^\n\x0bCreateGroup\x12&.personhog.types.v1.CreateGroupRequest\x1a'.personhog.types.v1.CreateGroupResponse\x12^\n\x0bUpdateGroup\x12&.personhog.types.v1.UpdateGroupRequest\x1a'.personhog.types.v1.UpdateGroupResponse\x12\x85\x01\n\x18DeleteGroupsBatchForTeam\x123.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a4.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x121.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a2.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16DeleteGroupTypeMapping\x121.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a2.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x121.personhog.types.v1.UpdatePersonPropertiesRequest\x1a2.personhog.types.v1.UpdatePersonPropertiesResponse\x12d\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19DeletePersonsBatchForTeam\x124.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a5.personhog.types.v1.DeletePersonsBatchForTeamResponseb\x06proto3"
+ b'\n"personhog/service/v1/service.proto\x12\x14personhog.service.v1\x1a\x1fpersonhog/types/v1/person.proto\x1a\x1epersonhog/types/v1/group.proto\x1a\x1fpersonhog/types/v1/cohort.proto\x1a%personhog/types/v1/feature_flag.proto2\xda"\n\x10PersonHogService\x12X\n\tGetPerson\x12$.personhog.types.v1.GetPersonRequest\x1a%.personhog.types.v1.GetPersonResponse\x12X\n\nGetPersons\x12%.personhog.types.v1.GetPersonsRequest\x1a#.personhog.types.v1.PersonsResponse\x12d\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12f\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x120.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x128.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a6.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x122.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a0.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x122.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a3.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x123.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a4.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x124.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a5.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x121.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a2.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1dDeleteHashKeyOverridesByTeams\x128.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a9.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15CheckCohortMembership\x120.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12CountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12DeleteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17DeleteCohortMembersBulk\x122.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a3.personhog.types.v1.DeleteCohortMembersBulkResponse\x12v\n\x13InsertCohortMembers\x12..personhog.types.v1.InsertCohortMembersRequest\x1a/.personhog.types.v1.InsertCohortMembersResponse\x12v\n\x13ListCohortMemberIds\x12..personhog.types.v1.ListCohortMemberIdsRequest\x1a/.personhog.types.v1.ListCohortMemberIdsResponse\x12U\n\x08GetGroup\x12#.personhog.types.v1.GetGroupRequest\x1a$.personhog.types.v1.GetGroupResponse\x12U\n\tGetGroups\x12$.personhog.types.v1.GetGroupsRequest\x1a".personhog.types.v1.GroupsResponse\x12g\n\x0eGetGroupsBatch\x12).personhog.types.v1.GetGroupsBatchRequest\x1a*.personhog.types.v1.GetGroupsBatchResponse\x12[\n\nListGroups\x12%.personhog.types.v1.ListGroupsRequest\x1a&.personhog.types.v1.ListGroupsResponse\x12\x86\x01\n\x1cGetGroupTypeMappingsByTeamId\x127.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x128.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x8c\x01\n\x1fGetGroupTypeMappingsByProjectId\x12:.personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x93\x01\n GetGroupTypeMappingsByProjectIds\x12;.personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12^\n\x0bCreateGroup\x12&.personhog.types.v1.CreateGroupRequest\x1a\'.personhog.types.v1.CreateGroupResponse\x12^\n\x0bUpdateGroup\x12&.personhog.types.v1.UpdateGroupRequest\x1a\'.personhog.types.v1.UpdateGroupResponse\x12\x85\x01\n\x18DeleteGroupsBatchForTeam\x123.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a4.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x121.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a2.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16DeleteGroupTypeMapping\x121.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a2.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x121.personhog.types.v1.UpdatePersonPropertiesRequest\x1a2.personhog.types.v1.UpdatePersonPropertiesResponse\x12d\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19DeletePersonsBatchForTeam\x124.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a5.personhog.types.v1.DeletePersonsBatchForTeamResponseb\x06proto3'
)
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -28,4 +28,4 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.service.v1.servic
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
_globals["_PERSONHOGSERVICE"]._serialized_start = 198
- _globals["_PERSONHOGSERVICE"]._serialized_end = 4547
+ _globals["_PERSONHOGSERVICE"]._serialized_end = 4640
diff --git a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py
index 610478256559..2f56cddef0be 100644
--- a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py
+++ b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py
@@ -165,6 +165,12 @@ class PersonHogServiceStub:
response_deserializer=personhog_dot_types_dot_v1_dot_group__pb2.GetGroupsBatchResponse.FromString,
_registered_method=True,
)
+ self.ListGroups = channel.unary_unary(
+ "/personhog.service.v1.PersonHogService/ListGroups",
+ request_serializer=personhog_dot_types_dot_v1_dot_group__pb2.ListGroupsRequest.SerializeToString,
+ response_deserializer=personhog_dot_types_dot_v1_dot_group__pb2.ListGroupsResponse.FromString,
+ _registered_method=True,
+ )
self.GetGroupTypeMappingsByTeamId = channel.unary_unary(
"/personhog.service.v1.PersonHogService/GetGroupTypeMappingsByTeamId",
request_serializer=personhog_dot_types_dot_v1_dot_group__pb2.GetGroupTypeMappingsByTeamIdRequest.SerializeToString,
@@ -382,6 +388,12 @@ class PersonHogServiceServicer:
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
+ def ListGroups(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
def GetGroupTypeMappingsByTeamId(self, request, context):
"""Group type mappings"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -579,6 +591,11 @@ def add_PersonHogServiceServicer_to_server(servicer, server):
request_deserializer=personhog_dot_types_dot_v1_dot_group__pb2.GetGroupsBatchRequest.FromString,
response_serializer=personhog_dot_types_dot_v1_dot_group__pb2.GetGroupsBatchResponse.SerializeToString,
),
+ "ListGroups": grpc.unary_unary_rpc_method_handler(
+ servicer.ListGroups,
+ request_deserializer=personhog_dot_types_dot_v1_dot_group__pb2.ListGroupsRequest.FromString,
+ response_serializer=personhog_dot_types_dot_v1_dot_group__pb2.ListGroupsResponse.SerializeToString,
+ ),
"GetGroupTypeMappingsByTeamId": grpc.unary_unary_rpc_method_handler(
servicer.GetGroupTypeMappingsByTeamId,
request_deserializer=personhog_dot_types_dot_v1_dot_group__pb2.GetGroupTypeMappingsByTeamIdRequest.FromString,
@@ -1290,6 +1307,36 @@ class PersonHogService:
_registered_method=True,
)
+ @staticmethod
+ def ListGroups(
+ request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None,
+ ):
+ return grpc.experimental.unary_unary(
+ request,
+ target,
+ "/personhog.service.v1.PersonHogService/ListGroups",
+ personhog_dot_types_dot_v1_dot_group__pb2.ListGroupsRequest.SerializeToString,
+ personhog_dot_types_dot_v1_dot_group__pb2.ListGroupsResponse.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ _registered_method=True,
+ )
+
@staticmethod
def GetGroupTypeMappingsByTeamId(
request,
diff --git a/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.py b/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.py
index 6aa74fa37141..d42a70ea9967 100644
--- a/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.py
+++ b/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.py
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
from ....personhog.types.v1 import common_pb2 as personhog_dot_types_dot_v1_dot_common__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
- b'\n\x1epersonhog/types/v1/group.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xd7\x01\n\x05Group\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07team_id\x18\x02 \x01(\x03\x12\x18\n\x10group_type_index\x18\x03 \x01(\x05\x12\x11\n\tgroup_key\x18\x04 \x01(\t\x12\x18\n\x10group_properties\x18\x05 \x01(\x0c\x12\x12\n\ncreated_at\x18\x06 \x01(\x03\x12"\n\x1aproperties_last_updated_at\x18\x07 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x08 \x01(\x0c\x12\x0f\n\x07version\x18\t \x01(\x03"\xdd\x02\n\x10GroupTypeMapping\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07team_id\x18\x02 \x01(\x03\x12\x12\n\nproject_id\x18\x03 \x01(\x03\x12\x12\n\ngroup_type\x18\x04 \x01(\t\x12\x18\n\x10group_type_index\x18\x05 \x01(\x05\x12\x1a\n\rname_singular\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0bname_plural\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x0fdefault_columns\x18\x08 \x01(\x0cH\x02\x88\x01\x01\x12 \n\x13detail_dashboard_id\x18\t \x01(\x03H\x03\x88\x01\x01\x12\x17\n\ncreated_at\x18\n \x01(\x03H\x04\x88\x01\x01B\x10\n\x0e_name_singularB\x0e\n\x0c_name_pluralB\x12\n\x10_default_columnsB\x16\n\x14_detail_dashboard_idB\r\n\x0b_created_at"r\n\x0cGroupWithKey\x12)\n\x03key\x18\x01 \x01(\x0b2\x1c.personhog.types.v1.GroupKey\x12-\n\x05group\x18\x02 \x01(\x0b2\x19.personhog.types.v1.GroupH\x00\x88\x01\x01B\x08\n\x06_group"]\n\x16GroupTypeMappingsByKey\x12\x0b\n\x03key\x18\x01 \x01(\x03\x126\n\x08mappings\x18\x02 \x03(\x0b2$.personhog.types.v1.GroupTypeMapping"\x86\x01\n\x0fGetGroupRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x11\n\tgroup_key\x18\x03 \x01(\t\x125\n\x0cread_options\x18\x04 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"K\n\x10GetGroupResponse\x12-\n\x05group\x18\x01 \x01(\x0b2\x19.personhog.types.v1.GroupH\x00\x88\x01\x01B\x08\n\x06_group"\x9a\x01\n\x10GetGroupsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12>\n\x11group_identifiers\x18\x02 \x03(\x0b2#.personhog.types.v1.GroupIdentifier\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"x\n\x0eGroupsResponse\x12)\n\x06groups\x18\x01 \x03(\x0b2\x19.personhog.types.v1.Group\x12;\n\x0emissing_groups\x18\x02 \x03(\x0b2#.personhog.types.v1.GroupIdentifier"z\n\x15GetGroupsBatchRequest\x12*\n\x04keys\x18\x01 \x03(\x0b2\x1c.personhog.types.v1.GroupKey\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"K\n\x16GetGroupsBatchResponse\x121\n\x07results\x18\x01 \x03(\x0b2 .personhog.types.v1.GroupWithKey"m\n#GetGroupTypeMappingsByTeamIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"o\n$GetGroupTypeMappingsByTeamIdsRequest\x12\x10\n\x08team_ids\x18\x01 \x03(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"s\n&GetGroupTypeMappingsByProjectIdRequest\x12\x12\n\nproject_id\x18\x01 \x01(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"u\n\'GetGroupTypeMappingsByProjectIdsRequest\x12\x13\n\x0bproject_ids\x18\x01 \x03(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"S\n\x19GroupTypeMappingsResponse\x126\n\x08mappings\x18\x01 \x03(\x0b2$.personhog.types.v1.GroupTypeMapping"]\n\x1eGroupTypeMappingsBatchResponse\x12;\n\x07results\x18\x01 \x03(\x0b2*.personhog.types.v1.GroupTypeMappingsByKey"\x94\x01\n\x12CreateGroupRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x11\n\tgroup_key\x18\x03 \x01(\t\x12\x18\n\x10group_properties\x18\x04 \x01(\x0c\x12\x17\n\ncreated_at\x18\x05 \x01(\x03H\x00\x88\x01\x01B\r\n\x0b_created_at"?\n\x13CreateGroupResponse\x12(\n\x05group\x18\x01 \x01(\x0b2\x19.personhog.types.v1.Group"\xd1\x02\n\x12UpdateGroupRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x11\n\tgroup_key\x18\x03 \x01(\t\x12\x13\n\x0bupdate_mask\x18\x04 \x03(\t\x12\x1d\n\x10group_properties\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\'\n\x1aproperties_last_updated_at\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19properties_last_operation\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\ncreated_at\x18\x08 \x01(\x03H\x03\x88\x01\x01B\x13\n\x11_group_propertiesB\x1d\n\x1b_properties_last_updated_atB\x1c\n\x1a_properties_last_operationB\r\n\x0b_created_at"P\n\x13UpdateGroupResponse\x12(\n\x05group\x18\x01 \x01(\x0b2\x19.personhog.types.v1.Group\x12\x0f\n\x07updated\x18\x02 \x01(\x08"F\n\x1fDeleteGroupsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03"9\n DeleteGroupsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\xa6\x02\n\x1dUpdateGroupTypeMappingRequest\x12\x12\n\nproject_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x13\n\x0bupdate_mask\x18\x03 \x03(\t\x12\x1a\n\rname_singular\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0bname_plural\x18\x05 \x01(\tH\x01\x88\x01\x01\x12 \n\x13detail_dashboard_id\x18\x06 \x01(\x03H\x02\x88\x01\x01\x12\x1c\n\x0fdefault_columns\x18\x07 \x01(\x0cH\x03\x88\x01\x01B\x10\n\x0e_name_singularB\x0e\n\x0c_name_pluralB\x16\n\x14_detail_dashboard_idB\x12\n\x10_default_columns"W\n\x1eUpdateGroupTypeMappingResponse\x125\n\x07mapping\x18\x01 \x01(\x0b2$.personhog.types.v1.GroupTypeMapping"\x87\x01\n\'GetGroupTypeMappingByDashboardIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cdashboard_id\x18\x02 \x01(\x03\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"r\n(GetGroupTypeMappingByDashboardIdResponse\x12:\n\x07mapping\x18\x01 \x01(\x0b2$.personhog.types.v1.GroupTypeMappingH\x00\x88\x01\x01B\n\n\x08_mapping"M\n\x1dDeleteGroupTypeMappingRequest\x12\x12\n\nproject_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05"1\n\x1eDeleteGroupTypeMappingResponse\x12\x0f\n\x07deleted\x18\x01 \x01(\x08"Q\n*DeleteGroupTypeMappingsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03"D\n+DeleteGroupTypeMappingsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03b\x06proto3'
+ b'\n\x1epersonhog/types/v1/group.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xd7\x01\n\x05Group\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07team_id\x18\x02 \x01(\x03\x12\x18\n\x10group_type_index\x18\x03 \x01(\x05\x12\x11\n\tgroup_key\x18\x04 \x01(\t\x12\x18\n\x10group_properties\x18\x05 \x01(\x0c\x12\x12\n\ncreated_at\x18\x06 \x01(\x03\x12"\n\x1aproperties_last_updated_at\x18\x07 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x08 \x01(\x0c\x12\x0f\n\x07version\x18\t \x01(\x03"\xdd\x02\n\x10GroupTypeMapping\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07team_id\x18\x02 \x01(\x03\x12\x12\n\nproject_id\x18\x03 \x01(\x03\x12\x12\n\ngroup_type\x18\x04 \x01(\t\x12\x18\n\x10group_type_index\x18\x05 \x01(\x05\x12\x1a\n\rname_singular\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0bname_plural\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x0fdefault_columns\x18\x08 \x01(\x0cH\x02\x88\x01\x01\x12 \n\x13detail_dashboard_id\x18\t \x01(\x03H\x03\x88\x01\x01\x12\x17\n\ncreated_at\x18\n \x01(\x03H\x04\x88\x01\x01B\x10\n\x0e_name_singularB\x0e\n\x0c_name_pluralB\x12\n\x10_default_columnsB\x16\n\x14_detail_dashboard_idB\r\n\x0b_created_at"r\n\x0cGroupWithKey\x12)\n\x03key\x18\x01 \x01(\x0b2\x1c.personhog.types.v1.GroupKey\x12-\n\x05group\x18\x02 \x01(\x0b2\x19.personhog.types.v1.GroupH\x00\x88\x01\x01B\x08\n\x06_group"]\n\x16GroupTypeMappingsByKey\x12\x0b\n\x03key\x18\x01 \x01(\x03\x126\n\x08mappings\x18\x02 \x03(\x0b2$.personhog.types.v1.GroupTypeMapping"\xe1\x01\n\x11ListGroupsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x1a\n\x12group_key_contains\x18\x03 \x01(\t\x12\x0e\n\x06search\x18\x04 \x01(\t\x12\x1c\n\x14cursor_created_at_ms\x18\x05 \x01(\x03\x12\x11\n\tcursor_id\x18\x06 \x01(\x03\x12\r\n\x05limit\x18\x07 \x01(\x05\x125\n\x0cread_options\x18\x08 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"Q\n\x12ListGroupsResponse\x12)\n\x06groups\x18\x01 \x03(\x0b2\x19.personhog.types.v1.Group\x12\x10\n\x08has_more\x18\x02 \x01(\x08"\x86\x01\n\x0fGetGroupRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x11\n\tgroup_key\x18\x03 \x01(\t\x125\n\x0cread_options\x18\x04 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"K\n\x10GetGroupResponse\x12-\n\x05group\x18\x01 \x01(\x0b2\x19.personhog.types.v1.GroupH\x00\x88\x01\x01B\x08\n\x06_group"\x9a\x01\n\x10GetGroupsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12>\n\x11group_identifiers\x18\x02 \x03(\x0b2#.personhog.types.v1.GroupIdentifier\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"x\n\x0eGroupsResponse\x12)\n\x06groups\x18\x01 \x03(\x0b2\x19.personhog.types.v1.Group\x12;\n\x0emissing_groups\x18\x02 \x03(\x0b2#.personhog.types.v1.GroupIdentifier"z\n\x15GetGroupsBatchRequest\x12*\n\x04keys\x18\x01 \x03(\x0b2\x1c.personhog.types.v1.GroupKey\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"K\n\x16GetGroupsBatchResponse\x121\n\x07results\x18\x01 \x03(\x0b2 .personhog.types.v1.GroupWithKey"m\n#GetGroupTypeMappingsByTeamIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"o\n$GetGroupTypeMappingsByTeamIdsRequest\x12\x10\n\x08team_ids\x18\x01 \x03(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"s\n&GetGroupTypeMappingsByProjectIdRequest\x12\x12\n\nproject_id\x18\x01 \x01(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"u\n\'GetGroupTypeMappingsByProjectIdsRequest\x12\x13\n\x0bproject_ids\x18\x01 \x03(\x03\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"S\n\x19GroupTypeMappingsResponse\x126\n\x08mappings\x18\x01 \x03(\x0b2$.personhog.types.v1.GroupTypeMapping"]\n\x1eGroupTypeMappingsBatchResponse\x12;\n\x07results\x18\x01 \x03(\x0b2*.personhog.types.v1.GroupTypeMappingsByKey"\x94\x01\n\x12CreateGroupRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x11\n\tgroup_key\x18\x03 \x01(\t\x12\x18\n\x10group_properties\x18\x04 \x01(\x0c\x12\x17\n\ncreated_at\x18\x05 \x01(\x03H\x00\x88\x01\x01B\r\n\x0b_created_at"?\n\x13CreateGroupResponse\x12(\n\x05group\x18\x01 \x01(\x0b2\x19.personhog.types.v1.Group"\xd1\x02\n\x12UpdateGroupRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x11\n\tgroup_key\x18\x03 \x01(\t\x12\x13\n\x0bupdate_mask\x18\x04 \x03(\t\x12\x1d\n\x10group_properties\x18\x05 \x01(\x0cH\x00\x88\x01\x01\x12\'\n\x1aproperties_last_updated_at\x18\x06 \x01(\x0cH\x01\x88\x01\x01\x12&\n\x19properties_last_operation\x18\x07 \x01(\x0cH\x02\x88\x01\x01\x12\x17\n\ncreated_at\x18\x08 \x01(\x03H\x03\x88\x01\x01B\x13\n\x11_group_propertiesB\x1d\n\x1b_properties_last_updated_atB\x1c\n\x1a_properties_last_operationB\r\n\x0b_created_at"P\n\x13UpdateGroupResponse\x12(\n\x05group\x18\x01 \x01(\x0b2\x19.personhog.types.v1.Group\x12\x0f\n\x07updated\x18\x02 \x01(\x08"F\n\x1fDeleteGroupsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03"9\n DeleteGroupsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\xa6\x02\n\x1dUpdateGroupTypeMappingRequest\x12\x12\n\nproject_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05\x12\x13\n\x0bupdate_mask\x18\x03 \x03(\t\x12\x1a\n\rname_singular\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0bname_plural\x18\x05 \x01(\tH\x01\x88\x01\x01\x12 \n\x13detail_dashboard_id\x18\x06 \x01(\x03H\x02\x88\x01\x01\x12\x1c\n\x0fdefault_columns\x18\x07 \x01(\x0cH\x03\x88\x01\x01B\x10\n\x0e_name_singularB\x0e\n\x0c_name_pluralB\x16\n\x14_detail_dashboard_idB\x12\n\x10_default_columns"W\n\x1eUpdateGroupTypeMappingResponse\x125\n\x07mapping\x18\x01 \x01(\x0b2$.personhog.types.v1.GroupTypeMapping"\x87\x01\n\'GetGroupTypeMappingByDashboardIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cdashboard_id\x18\x02 \x01(\x03\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"r\n(GetGroupTypeMappingByDashboardIdResponse\x12:\n\x07mapping\x18\x01 \x01(\x0b2$.personhog.types.v1.GroupTypeMappingH\x00\x88\x01\x01B\n\n\x08_mapping"M\n\x1dDeleteGroupTypeMappingRequest\x12\x12\n\nproject_id\x18\x01 \x01(\x03\x12\x18\n\x10group_type_index\x18\x02 \x01(\x05"1\n\x1eDeleteGroupTypeMappingResponse\x12\x0f\n\x07deleted\x18\x01 \x01(\x08"Q\n*DeleteGroupTypeMappingsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03"D\n+DeleteGroupTypeMappingsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03b\x06proto3'
)
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -30,55 +30,59 @@ if not _descriptor._USE_C_DESCRIPTORS:
_globals["_GROUPWITHKEY"]._serialized_end = 771
_globals["_GROUPTYPEMAPPINGSBYKEY"]._serialized_start = 773
_globals["_GROUPTYPEMAPPINGSBYKEY"]._serialized_end = 866
- _globals["_GETGROUPREQUEST"]._serialized_start = 869
- _globals["_GETGROUPREQUEST"]._serialized_end = 1003
- _globals["_GETGROUPRESPONSE"]._serialized_start = 1005
- _globals["_GETGROUPRESPONSE"]._serialized_end = 1080
- _globals["_GETGROUPSREQUEST"]._serialized_start = 1083
- _globals["_GETGROUPSREQUEST"]._serialized_end = 1237
- _globals["_GROUPSRESPONSE"]._serialized_start = 1239
- _globals["_GROUPSRESPONSE"]._serialized_end = 1359
- _globals["_GETGROUPSBATCHREQUEST"]._serialized_start = 1361
- _globals["_GETGROUPSBATCHREQUEST"]._serialized_end = 1483
- _globals["_GETGROUPSBATCHRESPONSE"]._serialized_start = 1485
- _globals["_GETGROUPSBATCHRESPONSE"]._serialized_end = 1560
- _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDREQUEST"]._serialized_start = 1562
- _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDREQUEST"]._serialized_end = 1671
- _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDSREQUEST"]._serialized_start = 1673
- _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDSREQUEST"]._serialized_end = 1784
- _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDREQUEST"]._serialized_start = 1786
- _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDREQUEST"]._serialized_end = 1901
- _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDSREQUEST"]._serialized_start = 1903
- _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDSREQUEST"]._serialized_end = 2020
- _globals["_GROUPTYPEMAPPINGSRESPONSE"]._serialized_start = 2022
- _globals["_GROUPTYPEMAPPINGSRESPONSE"]._serialized_end = 2105
- _globals["_GROUPTYPEMAPPINGSBATCHRESPONSE"]._serialized_start = 2107
- _globals["_GROUPTYPEMAPPINGSBATCHRESPONSE"]._serialized_end = 2200
- _globals["_CREATEGROUPREQUEST"]._serialized_start = 2203
- _globals["_CREATEGROUPREQUEST"]._serialized_end = 2351
- _globals["_CREATEGROUPRESPONSE"]._serialized_start = 2353
- _globals["_CREATEGROUPRESPONSE"]._serialized_end = 2416
- _globals["_UPDATEGROUPREQUEST"]._serialized_start = 2419
- _globals["_UPDATEGROUPREQUEST"]._serialized_end = 2756
- _globals["_UPDATEGROUPRESPONSE"]._serialized_start = 2758
- _globals["_UPDATEGROUPRESPONSE"]._serialized_end = 2838
- _globals["_DELETEGROUPSBATCHFORTEAMREQUEST"]._serialized_start = 2840
- _globals["_DELETEGROUPSBATCHFORTEAMREQUEST"]._serialized_end = 2910
- _globals["_DELETEGROUPSBATCHFORTEAMRESPONSE"]._serialized_start = 2912
- _globals["_DELETEGROUPSBATCHFORTEAMRESPONSE"]._serialized_end = 2969
- _globals["_UPDATEGROUPTYPEMAPPINGREQUEST"]._serialized_start = 2972
- _globals["_UPDATEGROUPTYPEMAPPINGREQUEST"]._serialized_end = 3266
- _globals["_UPDATEGROUPTYPEMAPPINGRESPONSE"]._serialized_start = 3268
- _globals["_UPDATEGROUPTYPEMAPPINGRESPONSE"]._serialized_end = 3355
- _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDREQUEST"]._serialized_start = 3358
- _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDREQUEST"]._serialized_end = 3493
- _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDRESPONSE"]._serialized_start = 3495
- _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDRESPONSE"]._serialized_end = 3609
- _globals["_DELETEGROUPTYPEMAPPINGREQUEST"]._serialized_start = 3611
- _globals["_DELETEGROUPTYPEMAPPINGREQUEST"]._serialized_end = 3688
- _globals["_DELETEGROUPTYPEMAPPINGRESPONSE"]._serialized_start = 3690
- _globals["_DELETEGROUPTYPEMAPPINGRESPONSE"]._serialized_end = 3739
- _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMREQUEST"]._serialized_start = 3741
- _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMREQUEST"]._serialized_end = 3822
- _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMRESPONSE"]._serialized_start = 3824
- _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMRESPONSE"]._serialized_end = 3892
+ _globals["_LISTGROUPSREQUEST"]._serialized_start = 869
+ _globals["_LISTGROUPSREQUEST"]._serialized_end = 1094
+ _globals["_LISTGROUPSRESPONSE"]._serialized_start = 1096
+ _globals["_LISTGROUPSRESPONSE"]._serialized_end = 1177
+ _globals["_GETGROUPREQUEST"]._serialized_start = 1180
+ _globals["_GETGROUPREQUEST"]._serialized_end = 1314
+ _globals["_GETGROUPRESPONSE"]._serialized_start = 1316
+ _globals["_GETGROUPRESPONSE"]._serialized_end = 1391
+ _globals["_GETGROUPSREQUEST"]._serialized_start = 1394
+ _globals["_GETGROUPSREQUEST"]._serialized_end = 1548
+ _globals["_GROUPSRESPONSE"]._serialized_start = 1550
+ _globals["_GROUPSRESPONSE"]._serialized_end = 1670
+ _globals["_GETGROUPSBATCHREQUEST"]._serialized_start = 1672
+ _globals["_GETGROUPSBATCHREQUEST"]._serialized_end = 1794
+ _globals["_GETGROUPSBATCHRESPONSE"]._serialized_start = 1796
+ _globals["_GETGROUPSBATCHRESPONSE"]._serialized_end = 1871
+ _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDREQUEST"]._serialized_start = 1873
+ _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDREQUEST"]._serialized_end = 1982
+ _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDSREQUEST"]._serialized_start = 1984
+ _globals["_GETGROUPTYPEMAPPINGSBYTEAMIDSREQUEST"]._serialized_end = 2095
+ _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDREQUEST"]._serialized_start = 2097
+ _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDREQUEST"]._serialized_end = 2212
+ _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDSREQUEST"]._serialized_start = 2214
+ _globals["_GETGROUPTYPEMAPPINGSBYPROJECTIDSREQUEST"]._serialized_end = 2331
+ _globals["_GROUPTYPEMAPPINGSRESPONSE"]._serialized_start = 2333
+ _globals["_GROUPTYPEMAPPINGSRESPONSE"]._serialized_end = 2416
+ _globals["_GROUPTYPEMAPPINGSBATCHRESPONSE"]._serialized_start = 2418
+ _globals["_GROUPTYPEMAPPINGSBATCHRESPONSE"]._serialized_end = 2511
+ _globals["_CREATEGROUPREQUEST"]._serialized_start = 2514
+ _globals["_CREATEGROUPREQUEST"]._serialized_end = 2662
+ _globals["_CREATEGROUPRESPONSE"]._serialized_start = 2664
+ _globals["_CREATEGROUPRESPONSE"]._serialized_end = 2727
+ _globals["_UPDATEGROUPREQUEST"]._serialized_start = 2730
+ _globals["_UPDATEGROUPREQUEST"]._serialized_end = 3067
+ _globals["_UPDATEGROUPRESPONSE"]._serialized_start = 3069
+ _globals["_UPDATEGROUPRESPONSE"]._serialized_end = 3149
+ _globals["_DELETEGROUPSBATCHFORTEAMREQUEST"]._serialized_start = 3151
+ _globals["_DELETEGROUPSBATCHFORTEAMREQUEST"]._serialized_end = 3221
+ _globals["_DELETEGROUPSBATCHFORTEAMRESPONSE"]._serialized_start = 3223
+ _globals["_DELETEGROUPSBATCHFORTEAMRESPONSE"]._serialized_end = 3280
+ _globals["_UPDATEGROUPTYPEMAPPINGREQUEST"]._serialized_start = 3283
+ _globals["_UPDATEGROUPTYPEMAPPINGREQUEST"]._serialized_end = 3577
+ _globals["_UPDATEGROUPTYPEMAPPINGRESPONSE"]._serialized_start = 3579
+ _globals["_UPDATEGROUPTYPEMAPPINGRESPONSE"]._serialized_end = 3666
+ _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDREQUEST"]._serialized_start = 3669
+ _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDREQUEST"]._serialized_end = 3804
+ _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDRESPONSE"]._serialized_start = 3806
+ _globals["_GETGROUPTYPEMAPPINGBYDASHBOARDIDRESPONSE"]._serialized_end = 3920
+ _globals["_DELETEGROUPTYPEMAPPINGREQUEST"]._serialized_start = 3922
+ _globals["_DELETEGROUPTYPEMAPPINGREQUEST"]._serialized_end = 3999
+ _globals["_DELETEGROUPTYPEMAPPINGRESPONSE"]._serialized_start = 4001
+ _globals["_DELETEGROUPTYPEMAPPINGRESPONSE"]._serialized_end = 4050
+ _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMREQUEST"]._serialized_start = 4052
+ _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMREQUEST"]._serialized_end = 4133
+ _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMRESPONSE"]._serialized_start = 4135
+ _globals["_DELETEGROUPTYPEMAPPINGSBATCHFORTEAMRESPONSE"]._serialized_end = 4203
diff --git a/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.pyi b/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.pyi
index 1a9aa0cf1e34..c766b2319cc4 100644
--- a/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.pyi
+++ b/posthog/personhog_client/proto/generated/personhog/types/v1/group_pb2.pyi
@@ -133,6 +133,55 @@ class GroupTypeMappingsByKey(_message.Message):
self, key: _Optional[int] = ..., mappings: _Optional[_Iterable[_Union[GroupTypeMapping, _Mapping]]] = ...
) -> None: ...
+class ListGroupsRequest(_message.Message):
+ __slots__ = (
+ "team_id",
+ "group_type_index",
+ "group_key_contains",
+ "search",
+ "cursor_created_at_ms",
+ "cursor_id",
+ "limit",
+ "read_options",
+ )
+ TEAM_ID_FIELD_NUMBER: _ClassVar[int]
+ GROUP_TYPE_INDEX_FIELD_NUMBER: _ClassVar[int]
+ GROUP_KEY_CONTAINS_FIELD_NUMBER: _ClassVar[int]
+ SEARCH_FIELD_NUMBER: _ClassVar[int]
+ CURSOR_CREATED_AT_MS_FIELD_NUMBER: _ClassVar[int]
+ CURSOR_ID_FIELD_NUMBER: _ClassVar[int]
+ LIMIT_FIELD_NUMBER: _ClassVar[int]
+ READ_OPTIONS_FIELD_NUMBER: _ClassVar[int]
+ team_id: int
+ group_type_index: int
+ group_key_contains: str
+ search: str
+ cursor_created_at_ms: int
+ cursor_id: int
+ limit: int
+ read_options: _common_pb2.ReadOptions
+
+ def __init__(
+ self,
+ team_id: _Optional[int] = ...,
+ group_type_index: _Optional[int] = ...,
+ group_key_contains: _Optional[str] = ...,
+ search: _Optional[str] = ...,
+ cursor_created_at_ms: _Optional[int] = ...,
+ cursor_id: _Optional[int] = ...,
+ limit: _Optional[int] = ...,
+ read_options: _Optional[_Union[_common_pb2.ReadOptions, _Mapping]] = ...,
+ ) -> None: ...
+
+class ListGroupsResponse(_message.Message):
+ __slots__ = ("groups", "has_more")
+ GROUPS_FIELD_NUMBER: _ClassVar[int]
+ HAS_MORE_FIELD_NUMBER: _ClassVar[int]
+ groups: _containers.RepeatedCompositeFieldContainer[Group]
+ has_more: bool
+
+ def __init__(self, groups: _Optional[_Iterable[_Union[Group, _Mapping]]] = ..., has_more: bool = ...) -> None: ...
+
class GetGroupRequest(_message.Message):
__slots__ = ("team_id", "group_type_index", "group_key", "read_options")
TEAM_ID_FIELD_NUMBER: _ClassVar[int]
diff --git a/proto/personhog/replica/v1/replica.proto b/proto/personhog/replica/v1/replica.proto
index 73d4a2b46cb3..5dba35d11e1b 100644
--- a/proto/personhog/replica/v1/replica.proto
+++ b/proto/personhog/replica/v1/replica.proto
@@ -41,6 +41,7 @@ service PersonHogReplica {
rpc GetGroup(personhog.types.v1.GetGroupRequest) returns (personhog.types.v1.GetGroupResponse);
rpc GetGroups(personhog.types.v1.GetGroupsRequest) returns (personhog.types.v1.GroupsResponse);
rpc GetGroupsBatch(personhog.types.v1.GetGroupsBatchRequest) returns (personhog.types.v1.GetGroupsBatchResponse);
+ rpc ListGroups(personhog.types.v1.ListGroupsRequest) returns (personhog.types.v1.ListGroupsResponse);
// Group type mappings
rpc GetGroupTypeMappingsByTeamId(personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest) returns (personhog.types.v1.GroupTypeMappingsResponse);
diff --git a/proto/personhog/service/v1/service.proto b/proto/personhog/service/v1/service.proto
index 7ba104e44804..0b515167c785 100644
--- a/proto/personhog/service/v1/service.proto
+++ b/proto/personhog/service/v1/service.proto
@@ -41,6 +41,7 @@ service PersonHogService {
rpc GetGroup(personhog.types.v1.GetGroupRequest) returns (personhog.types.v1.GetGroupResponse);
rpc GetGroups(personhog.types.v1.GetGroupsRequest) returns (personhog.types.v1.GroupsResponse);
rpc GetGroupsBatch(personhog.types.v1.GetGroupsBatchRequest) returns (personhog.types.v1.GetGroupsBatchResponse);
+ rpc ListGroups(personhog.types.v1.ListGroupsRequest) returns (personhog.types.v1.ListGroupsResponse);
// Group type mappings
rpc GetGroupTypeMappingsByTeamId(personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest) returns (personhog.types.v1.GroupTypeMappingsResponse);
diff --git a/proto/personhog/types/v1/group.proto b/proto/personhog/types/v1/group.proto
index 913297787665..63dcbba81739 100644
--- a/proto/personhog/types/v1/group.proto
+++ b/proto/personhog/types/v1/group.proto
@@ -42,6 +42,30 @@ message GroupTypeMappingsByKey {
repeated GroupTypeMapping mappings = 2;
}
+// ListGroupsRequest returns groups for a team with filtering and keyset pagination.
+// Used by the groups list API endpoint.
+message ListGroupsRequest {
+ int64 team_id = 1;
+ int32 group_type_index = 2;
+ // Substring match on group_key (case-insensitive). Empty means no filter.
+ string group_key_contains = 3;
+ // Substring search across group_properties JSON and exact match on group_key.
+ // Empty means no search filter.
+ string search = 4;
+ // Keyset pagination cursor: pass the created_at millis + id from the last
+ // result of the previous page. First page: cursor_created_at_ms = 0, cursor_id = 0.
+ int64 cursor_created_at_ms = 5;
+ int64 cursor_id = 6;
+ int32 limit = 7;
+ ReadOptions read_options = 8;
+}
+
+message ListGroupsResponse {
+ repeated Group groups = 1;
+ // True when more results exist beyond this page.
+ bool has_more = 2;
+}
+
message GetGroupRequest {
int64 team_id = 1;
int32 group_type_index = 2;
diff --git a/rust/personhog-replica/.sqlx/query-bbc39a15c461e8af13f6974d23ebab51d1137cee17376bb9d47d010283ecd138.json b/rust/personhog-replica/.sqlx/query-bbc39a15c461e8af13f6974d23ebab51d1137cee17376bb9d47d010283ecd138.json
new file mode 100644
index 000000000000..283921af546e
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-bbc39a15c461e8af13f6974d23ebab51d1137cee17376bb9d47d010283ecd138.json
@@ -0,0 +1,80 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT id::bigint as \"id!\", team_id::bigint as \"team_id!\",\n group_type_index, group_key, group_properties,\n created_at,\n properties_last_updated_at as \"properties_last_updated_at?: serde_json::Value\",\n properties_last_operation as \"properties_last_operation?: serde_json::Value\",\n version\n FROM posthog_group\n WHERE team_id = $1\n AND group_type_index = $2\n AND (NOT $3 OR group_key ILIKE $4)\n AND (NOT $5 OR (group_properties::text ILIKE $6 OR group_key = $7))\n AND (NOT $8 OR (created_at, id) < ($9, $10::bigint))\n ORDER BY created_at DESC, id DESC\n LIMIT $11\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 1,
+ "name": "team_id!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 2,
+ "name": "group_type_index",
+ "type_info": "Int4"
+ },
+ {
+ "ordinal": 3,
+ "name": "group_key",
+ "type_info": "Varchar"
+ },
+ {
+ "ordinal": 4,
+ "name": "group_properties",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 5,
+ "name": "created_at",
+ "type_info": "Timestamptz"
+ },
+ {
+ "ordinal": 6,
+ "name": "properties_last_updated_at?: serde_json::Value",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 7,
+ "name": "properties_last_operation?: serde_json::Value",
+ "type_info": "Jsonb"
+ },
+ {
+ "ordinal": 8,
+ "name": "version",
+ "type_info": "Int8"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "Int4",
+ "Bool",
+ "Text",
+ "Bool",
+ "Text",
+ "Text",
+ "Bool",
+ "Timestamptz",
+ "Int8",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ null,
+ null,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ false
+ ]
+ },
+ "hash": "bbc39a15c461e8af13f6974d23ebab51d1137cee17376bb9d47d010283ecd138"
+}
diff --git a/rust/personhog-replica/src/service/mod.rs b/rust/personhog-replica/src/service/mod.rs
index a663ff8ea72d..d490f717ef79 100644
--- a/rust/personhog-replica/src/service/mod.rs
+++ b/rust/personhog-replica/src/service/mod.rs
@@ -32,11 +32,11 @@ use personhog_proto::personhog::types::v1::{
GroupTypeMappingsByKey, GroupTypeMappingsResponse, GroupWithKey, GroupsResponse,
HashKeyOverride, HashKeyOverrideContext as ProtoHashKeyOverrideContext,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, PersonDistinctIds, PersonWithDistinctIds,
- PersonWithTeamDistinctId, PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse,
- PersonsResponse, TeamDistinctId, UpdateGroupRequest, UpdateGroupResponse,
- UpdateGroupTypeMappingRequest, UpdateGroupTypeMappingResponse, UpsertHashKeyOverridesRequest,
- UpsertHashKeyOverridesResponse,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse, PersonDistinctIds,
+ PersonWithDistinctIds, PersonWithTeamDistinctId, PersonsByDistinctIdsInTeamResponse,
+ PersonsByDistinctIdsResponse, PersonsResponse, TeamDistinctId, UpdateGroupRequest,
+ UpdateGroupResponse, UpdateGroupTypeMappingRequest, UpdateGroupTypeMappingResponse,
+ UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
use tonic::{Request, Response, Status};
use uuid::Uuid;
@@ -44,6 +44,8 @@ use uuid::Uuid;
use crate::storage::{self, FullStorage};
const MAX_BATCH_DELETE_SIZE: i64 = 50_000;
+const MAX_LIST_COHORT_MEMBER_IDS_LIMIT: i32 = 10_000;
+const MAX_LIST_GROUPS_LIMIT: i32 = 1_000;
use consistency::{reject_strong_consistency, to_storage_consistency};
use error::log_and_convert_error;
@@ -587,8 +589,8 @@ impl PersonHogReplica for PersonHogReplicaService {
let req = request.into_inner();
let consistency = to_storage_consistency(&req.read_options);
- let limit = if req.limit <= 0 || req.limit > 10000 {
- 10000
+ let limit = if req.limit <= 0 || req.limit > MAX_LIST_COHORT_MEMBER_IDS_LIMIT {
+ MAX_LIST_COHORT_MEMBER_IDS_LIMIT
} else {
req.limit
};
@@ -721,6 +723,46 @@ impl PersonHogReplica for PersonHogReplicaService {
Ok(Response::new(GetGroupsBatchResponse { results }))
}
+ async fn list_groups(
+ &self,
+ request: Request<ListGroupsRequest>,
+ ) -> Result<Response<ListGroupsResponse>, Status> {
+ let req = request.into_inner();
+ let consistency = to_storage_consistency(&req.read_options);
+
+ let limit = if req.limit <= 0 || req.limit > MAX_LIST_GROUPS_LIMIT {
+ MAX_LIST_GROUPS_LIMIT
+ } else {
+ req.limit
+ };
+
+ let cursor_created_at = if req.cursor_created_at_ms > 0 {
+ chrono::DateTime::from_timestamp_millis(req.cursor_created_at_ms)
+ } else {
+ None
+ };
+
+ let (groups, has_more) = self
+ .storage
+ .list_groups(
+ req.team_id,
+ req.group_type_index,
+ &req.group_key_contains,
+ &req.search,
+ cursor_created_at,
+ req.cursor_id,
+ limit,
+ consistency,
+ )
+ .await
+ .map_err(|e| log_and_convert_error(e, "list_groups"))?;
+
+ Ok(Response::new(ListGroupsResponse {
+ groups: groups.into_iter().map(Into::into).collect(),
+ has_more,
+ }))
+ }
+
// ============================================================
// Group Type Mappings
// ============================================================
diff --git a/rust/personhog-replica/src/service/tests/mocks.rs b/rust/personhog-replica/src/service/tests/mocks.rs
index 032a92781732..7bf3e799e9a6 100644
--- a/rust/personhog-replica/src/service/tests/mocks.rs
+++ b/rust/personhog-replica/src/service/tests/mocks.rs
@@ -237,6 +237,20 @@ impl storage::GroupStorage for FailingStorage {
Err(self.error.clone())
}
+ async fn list_groups(
+ &self,
+ _team_id: i64,
+ _group_type_index: i32,
+ _group_key_contains: &str,
+ _search: &str,
+ _cursor_created_at: Option<chrono::DateTime<chrono::Utc>>,
+ _cursor_id: i64,
+ _limit: i32,
+ _consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<(Vec<storage::Group>, bool)> {
+ Err(self.error.clone())
+ }
+
async fn get_group_type_mappings_by_team_id(
&self,
_team_id: i64,
@@ -560,6 +574,20 @@ impl storage::GroupStorage for SuccessStorage {
Ok(Vec::new())
}
+ async fn list_groups(
+ &self,
+ _team_id: i64,
+ _group_type_index: i32,
+ _group_key_contains: &str,
+ _search: &str,
+ _cursor_created_at: Option<chrono::DateTime<chrono::Utc>>,
+ _cursor_id: i64,
+ _limit: i32,
+ _consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<(Vec<storage::Group>, bool)> {
+ Ok((Vec::new(), false))
+ }
+
async fn get_group_type_mappings_by_team_id(
&self,
_team_id: i64,
@@ -957,6 +985,21 @@ impl storage::GroupStorage for ConsistencyTrackingStorage {
Ok(Vec::new())
}
+ async fn list_groups(
+ &self,
+ _team_id: i64,
+ _group_type_index: i32,
+ _group_key_contains: &str,
+ _search: &str,
+ _cursor_created_at: Option<chrono::DateTime<chrono::Utc>>,
+ _cursor_id: i64,
+ _limit: i32,
+ consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<(Vec<storage::Group>, bool)> {
+ self.record(consistency);
+ Ok((Vec::new(), false))
+ }
+
async fn create_group(
&self,
team_id: i64,
diff --git a/rust/personhog-replica/src/storage/postgres/group.rs b/rust/personhog-replica/src/storage/postgres/group.rs
index e034c92288ad..4af0735159fb 100644
--- a/rust/personhog-replica/src/storage/postgres/group.rs
+++ b/rust/personhog-replica/src/storage/postgres/group.rs
@@ -433,6 +433,96 @@ impl GroupStorage for PostgresStorage {
Ok(row)
}
+ async fn list_groups(
+ &self,
+ team_id: i64,
+ group_type_index: i32,
+ group_key_contains: &str,
+ search: &str,
+ cursor_created_at: Option<chrono::DateTime<chrono::Utc>>,
+ cursor_id: i64,
+ limit: i32,
+ consistency: ConsistencyLevel,
+ ) -> StorageResult<(Vec<Group>, bool)> {
+ let client = current_client_name();
+ let pool_label = PostgresStorage::pool_label(consistency);
+ let labels = [
+ ("operation".to_string(), "list_groups".to_string()),
+ ("pool".to_string(), pool_label.to_string()),
+ ("client".to_string(), client.to_string()),
+ ];
+ let _timer = common_metrics::timing_guard(DB_QUERY_DURATION, &labels);
+
+ let pool = self.pool_for_consistency(consistency);
+ let mut conn = PostgresStorage::acquire_timed(pool, pool_label).await?;
+
+ let fetch_limit = (limit as i64) + 1;
+ let has_key_filter = !group_key_contains.is_empty();
+ let escaped_key = group_key_contains
+ .replace('\\', "\\\\")
+ .replace('%', "\\%")
+ .replace('_', "\\_");
+ let key_pattern = format!("%{}%", escaped_key);
+ let has_search = !search.is_empty();
+ let escaped_search = search
+ .replace('\\', "\\\\")
+ .replace('%', "\\%")
+ .replace('_', "\\_");
+ let search_pattern = format!("%{}%", escaped_search);
+ let has_cursor = cursor_created_at.is_some();
+
+ let rows = sqlx::query_as!(
+ Group,
+ r#"
+ SELECT id::bigint as "id!", team_id::bigint as "team_id!",
+ group_type_index, group_key, group_properties,
+ created_at,
+ properties_last_updated_at as "properties_last_updated_at?: serde_json::Value",
+ properties_last_operation as "properties_last_operation?: serde_json::Value",
+ version
+ FROM posthog_group
+ WHERE team_id = $1
+ AND group_type_index = $2
+ AND (NOT $3 OR group_key ILIKE $4)
+ AND (NOT $5 OR (group_properties::text ILIKE $6 OR group_key = $7))
+ AND (NOT $8 OR (created_at, id) < ($9, $10::bigint))
+ ORDER BY created_at DESC, id DESC
+ LIMIT $11
+ "#,
+ team_id as i32,
+ group_type_index,
+ has_key_filter,
+ &key_pattern,
+ has_search,
+ &search_pattern,
+ search,
+ has_cursor,
+ cursor_created_at,
+ cursor_id,
+ fetch_limit,
+ )
+ .fetch_all(&mut *conn)
+ .await?;
+
+ let has_more = rows.len() as i64 > limit as i64;
+ let groups: Vec<Group> = if has_more {
+ rows.into_iter().take(limit as usize).collect()
+ } else {
+ rows
+ };
+
+ common_metrics::histogram(
+ DB_ROWS_RETURNED,
+ &[
+ ("operation".to_string(), "list_groups".to_string()),
+ ("client".to_string(), client.to_string()),
+ ],
+ groups.len() as f64,
+ );
+
+ Ok((groups, has_more))
+ }
+
// ============================================================
// Group writes
// ============================================================
diff --git a/rust/personhog-replica/src/storage/traits/group.rs b/rust/personhog-replica/src/storage/traits/group.rs
index 6814c013dfe6..93b85b59a64c 100644
--- a/rust/personhog-replica/src/storage/traits/group.rs
+++ b/rust/personhog-replica/src/storage/traits/group.rs
@@ -5,6 +5,7 @@ use crate::storage::postgres::ConsistencyLevel;
use crate::storage::types::{Group, GroupIdentifier, GroupKey, GroupTypeMapping};
/// Group and group type mapping operations
+#[allow(clippy::too_many_arguments)]
#[async_trait]
pub trait GroupStorage: Send + Sync {
// Group lookups
@@ -30,6 +31,18 @@ pub trait GroupStorage: Send + Sync {
consistency: ConsistencyLevel,
) -> StorageResult<Vec<(GroupKey, Group)>>;
+ async fn list_groups(
+ &self,
+ team_id: i64,
+ group_type_index: i32,
+ group_key_contains: &str,
+ search: &str,
+ cursor_created_at: Option<chrono::DateTime<chrono::Utc>>,
+ cursor_id: i64,
+ limit: i32,
+ consistency: ConsistencyLevel,
+ ) -> StorageResult<(Vec<Group>, bool)>;
+
// Group writes
async fn create_group(
diff --git a/rust/personhog-router/src/backend/mod.rs b/rust/personhog-router/src/backend/mod.rs
index 08348b387076..30580b124c16 100644
--- a/rust/personhog-router/src/backend/mod.rs
+++ b/rust/personhog-router/src/backend/mod.rs
@@ -28,8 +28,9 @@ use personhog_proto::personhog::types::v1::{
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse,
- PersonsResponse, UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse,
+ PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
+ UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse,
UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
@@ -143,6 +144,7 @@ pub trait PersonHogBackend: Send + Sync {
&self,
request: GetGroupsBatchRequest,
) -> Result<GetGroupsBatchResponse, Status>;
+ async fn list_groups(&self, request: ListGroupsRequest) -> Result<ListGroupsResponse, Status>;
// Group type mappings
async fn get_group_type_mappings_by_team_id(
diff --git a/rust/personhog-router/src/backend/replica.rs b/rust/personhog-router/src/backend/replica.rs
index 73dbcbd1b541..5796694c7a4c 100644
--- a/rust/personhog-router/src/backend/replica.rs
+++ b/rust/personhog-router/src/backend/replica.rs
@@ -20,8 +20,9 @@ use personhog_proto::personhog::types::v1::{
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse,
- PersonsResponse, UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse,
+ PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
+ UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse, UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
use std::sync::atomic::{AtomicUsize, Ordering};
@@ -306,6 +307,10 @@ impl PersonHogBackend for ReplicaBackend {
retry_call!(self, get_groups_batch, request)
}
+ async fn list_groups(&self, request: ListGroupsRequest) -> Result<ListGroupsResponse, Status> {
+ retry_call!(self, list_groups, request)
+ }
+
// Group type mappings
async fn get_group_type_mappings_by_team_id(
diff --git a/rust/personhog-router/src/router/mod.rs b/rust/personhog-router/src/router/mod.rs
index 98d17986bcab..e2844ef0eb3a 100644
--- a/rust/personhog-router/src/router/mod.rs
+++ b/rust/personhog-router/src/router/mod.rs
@@ -27,8 +27,9 @@ use personhog_proto::personhog::types::v1::{
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse,
- PersonsResponse, UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse,
+ PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
+ UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse,
UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
@@ -403,6 +404,13 @@ impl PersonHogRouter {
call_backend!(self, "GetGroupsBatch", get_groups_batch, request)
}
+ pub async fn list_groups(
+ &self,
+ request: ListGroupsRequest,
+ ) -> Result<ListGroupsResponse, Status> {
+ call_backend!(self, "ListGroups", list_groups, request)
+ }
+
// ============================================================
// Group type mappings - Non-person data
// ============================================================
diff --git a/rust/personhog-router/src/service/mod.rs b/rust/personhog-router/src/service/mod.rs
index e4947a2d2c9e..36966b560895 100644
--- a/rust/personhog-router/src/service/mod.rs
+++ b/rust/personhog-router/src/service/mod.rs
@@ -24,8 +24,9 @@ use personhog_proto::personhog::types::v1::{
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse,
- PersonsResponse, UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse,
+ PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
+ UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse,
UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
@@ -213,6 +214,13 @@ impl PersonHogService for PersonHogRouterService {
route_request!(self, get_groups_batch, request)
}
+ async fn list_groups(
+ &self,
+ request: Request<ListGroupsRequest>,
+ ) -> Result<Response<ListGroupsResponse>, Status> {
+ route_request!(self, list_groups, request)
+ }
+
// Group type mappings
async fn get_group_type_mappings_by_team_id(
diff --git a/rust/personhog-router/src/service/tests/mocks.rs b/rust/personhog-router/src/service/tests/mocks.rs
index 2ad1744bd784..ce400da6be8a 100644
--- a/rust/personhog-router/src/service/tests/mocks.rs
+++ b/rust/personhog-router/src/service/tests/mocks.rs
@@ -19,10 +19,10 @@ use personhog_proto::personhog::types::v1::{
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, Person, PersonsByDistinctIdsInTeamResponse,
- PersonsByDistinctIdsResponse, PersonsResponse, UpdateGroupRequest, UpdateGroupResponse,
- UpdateGroupTypeMappingRequest, UpdateGroupTypeMappingResponse, UpsertHashKeyOverridesRequest,
- UpsertHashKeyOverridesResponse,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse, Person,
+ PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
+ UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
+ UpdateGroupTypeMappingResponse, UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
use std::sync::Mutex;
use tonic::Status;
@@ -257,6 +257,14 @@ impl PersonHogBackend for MockBackend {
Ok(GetGroupsBatchResponse { results: vec![] })
}
+ async fn list_groups(&self, _request: ListGroupsRequest) -> Result<ListGroupsResponse, Status> {
+ self.check_error()?;
+ Ok(ListGroupsResponse {
+ groups: vec![],
+ has_more: false,
+ })
+ }
+
async fn get_group_type_mappings_by_team_id(
&self,
_request: GetGroupTypeMappingsByTeamIdRequest,
diff --git a/rust/personhog-router/tests/common/mod.rs b/rust/personhog-router/tests/common/mod.rs
index ee7505e3a507..a90023d2c60b 100644
--- a/rust/personhog-router/tests/common/mod.rs
+++ b/rust/personhog-router/tests/common/mod.rs
@@ -35,10 +35,11 @@ use personhog_proto::personhog::types::v1::{
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
- ListCohortMemberIdsResponse, Person, PersonsByDistinctIdsInTeamResponse,
- PersonsByDistinctIdsResponse, PersonsResponse, UpdateGroupRequest, UpdateGroupResponse,
- UpdateGroupTypeMappingRequest, UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest,
- UpdatePersonPropertiesResponse, UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
+ ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse, Person,
+ PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
+ UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
+ UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse,
+ UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
};
use personhog_router::backend::{
LeaderBackend, LeaderBackendConfig, ReplicaBackend, ReplicaBackendConfig, StashTable,
@@ -309,6 +310,16 @@ impl PersonHogReplica for TestReplicaService {
Ok(Response::new(GetGroupsBatchResponse { results: vec![] }))
}
+ async fn list_groups(
+ &self,
+ _request: Request<ListGroupsRequest>,
+ ) -> Result<Response<ListGroupsResponse>, Status> {
+ Ok(Response::new(ListGroupsResponse {
+ groups: vec![],
+ has_more: false,
+ }))
+ }
+
async fn get_group_type_mappings_by_team_id(
&self,
_request: Request<GetGroupTypeMappingsByTeamIdRequest>,
diff --git a/rust/property-defs-rs/tests/group_type_resolver.rs b/rust/property-defs-rs/tests/group_type_resolver.rs
index 5356ebe38046..c343ed27408f 100644
--- a/rust/property-defs-rs/tests/group_type_resolver.rs
+++ b/rust/property-defs-rs/tests/group_type_resolver.rs
@@ -194,6 +194,12 @@ impl PersonHogService for MockPersonHogService {
) -> Result<Response<GetGroupsBatchResponse>, Status> {
Err(Status::unimplemented(""))
}
+ async fn list_groups(
+ &self,
+ _: Request<ListGroupsRequest>,
+ ) -> Result<Response<ListGroupsResponse>, Status> {
+ Err(Status::unimplemented(""))
+ }
async fn get_group_type_mappings_by_team_id(
&self,
_: Request<GetGroupTypeMappingsByTeamIdRequest>,