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): add distinct id row and team person list reads (#117394)

Eli Reismanf036f98c7d73
diff --git a/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts b/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts
index 3a2ba334af4a..5b5a66f772af 100644
--- a/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts
+++ b/nodejs/src/common/generated/personhog/personhog/service/v1/service_pb.ts
@@ -77,6 +77,8 @@ import type {
FencePersonsResponseSchema,
FoldPersonDocumentRequestSchema,
FoldPersonDocumentResponseSchema,
+ GetDistinctIdRowsRequestSchema,
+ GetDistinctIdRowsResponseSchema,
GetDistinctIdsForPersonRequestSchema,
GetDistinctIdsForPersonResponseSchema,
GetDistinctIdsForPersonsRequestSchema,
@@ -93,6 +95,8 @@ import type {
GetPersonsRequestSchema,
ListPersonTombstoneQueueRequestSchema,
ListPersonTombstoneQueueResponseSchema,
+ ListPersonsForTeamRequestSchema,
+ ListPersonsForTeamResponseSchema,
PersonsByDistinctIdsInTeamResponseSchema,
PersonsByDistinctIdsResponseSchema,
PersonsResponseSchema,
@@ -117,7 +121,7 @@ import { file_personhog_types_v1_person } from '../../types/v1/person_pb'
export const file_personhog_service_v1_service: GenFile =
/*@__PURE__*/
fileDesc(
- 'CiJwZXJzb25ob2cvc2VydmljZS92MS9zZXJ2aWNlLnByb3RvEhRwZXJzb25ob2cuc2VydmljZS52MTLfLwoQUGVyc29uSG9nU2VydmljZRJYCglHZXRQZXJzb24SJC5wZXJzb25ob2cudHlwZXMudjEuR2V0UGVyc29uUmVxdWVzdBolLnBlcnNvbmhvZy50eXBlcy52MS5HZXRQZXJzb25SZXNwb25zZRJYCgpHZXRQZXJzb25zEiUucGVyc29uaG9nLnR5cGVzLnYxLkdldF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zLnYxLkVuc3VyZVBlcnNvblZlcnNpb25GbG9vcnNSZXNwb25zZRJwChFHZXREaXN0aW5jdElkUm93cxIsLnBlcnNvbmhvZy50eXBlcy52MS5HZXREaXN0aW5jdElkUm93c1JlcXVlc3QaLS5wZXJzb25ob2cudHlwZXMudjEuR2V0RGlzdGluY3RJZFJvd3NSZXNwb25zZRJzChJMaXN0UGVyc29uc0ZvclRlYW0SLS5wZXJzb25ob2cudHlwZXMudjEuTGlzdFBlcnNvbnNGb3JUZWFtUmVxdWVzdBouLnBlcnNvbmhvZy50eXBlcy52MS5MaXN0UGVyc29uc0ZvclRlYW1SZXNwb25zZWIGcHJvdG8z',
[
file_personhog_types_v1_person,
file_personhog_types_v1_group,
@@ -582,4 +586,22 @@ export const PersonHogService: GenService<{
input: typeof EnsurePersonVersionFloorsRequestSchema
output: typeof EnsurePersonVersionFloorsResponseSchema
}
+ /**
+ * Reads for the person consistency scan and repair. Rows include tombstones.
+ *
+ * @generated from rpc personhog.service.v1.PersonHogService.GetDistinctIdRows
+ */
+ getDistinctIdRows: {
+ methodKind: 'unary'
+ input: typeof GetDistinctIdRowsRequestSchema
+ output: typeof GetDistinctIdRowsResponseSchema
+ }
+ /**
+ * @generated from rpc personhog.service.v1.PersonHogService.ListPersonsForTeam
+ */
+ listPersonsForTeam: {
+ methodKind: 'unary'
+ input: typeof ListPersonsForTeamRequestSchema
+ output: typeof ListPersonsForTeamResponseSchema
+ }
}> = /*@__PURE__*/ serviceDesc(file_personhog_service_v1_service, 0)
diff --git a/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts b/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts
index 1ca31015db98..af1b57cef53e 100644
--- a/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts
+++ b/nodejs/src/common/generated/personhog/personhog/types/v1/person_pb.ts
@@ -13,7 +13,7 @@ import { file_personhog_types_v1_common } from './common_pb'
export const file_personhog_types_v1_person: GenFile =
/*@__PURE__*/
file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V9UT01CU1RPTkVfUkFJU0VEEAISLAooVkVSU0lPTl9GTE9PUl9PVVRDT01FX1RPTUJTVE9ORV9BVF9GTE9PUhADEh4KGlZFUlNJT05fRkxPT1JfT1VUQ09NRV9MSVZFEAQqbwoPTGlmZWN5Y2xlT3BUeXBlEiEKHUxJRkVDWUNMRV9PUF9UWVBFX1VOU1BFQ0lGSUVEEAASHAoYTElGRUNZQ0xFX09QX1RZUEVfREVMRVRFEAESGwoXTElGRUNZQ0xFX09QX1RZUEVfTUVSR0UQAiptCg5SZWxlYXNlT3V0Y29tZRIfChtSRUxFQVNFX09VVENPTUVfVU5TUEVDSUZJRUQQABIdChlSRUxFQVNFX09VVENPTUVfQ09NTUlUVEVEEAESGwoXUkVMRUFTRV9PVVRDT01FX0FCT1JURUQQAmIGcHJvdG8z',
[file_personhog_types_v1_common]
)
@@ -2018,6 +2018,219 @@ export const FoldPersonDocumentResponseSchema: GenMessage<FoldPersonDocumentResp
/*@__PURE__*/
messageDesc(file_personhog_types_v1_person, 62)
+/**
+ * A persons-database mapping row, live or tombstoned, with the state of the person it points at.
+ *
+ * @generated from message personhog.types.v1.DistinctIdRow
+ */
+export type DistinctIdRow = Message<'personhog.types.v1.DistinctIdRow'> & {
+ /**
+ * @generated from field: string distinct_id = 1;
+ */
+ distinctId: string
+
+ /**
+ * @generated from field: int64 person_id = 2;
+ */
+ personId: bigint
+
+ /**
+ * Absent for an orphan row whose person no longer exists.
+ *
+ * @generated from field: optional string person_uuid = 3;
+ */
+ personUuid?: string
+
+ /**
+ * @generated from field: int64 version = 4;
+ */
+ version: bigint
+
+ /**
+ * @generated from field: bool is_deleted = 5;
+ */
+ isDeleted: boolean
+
+ /**
+ * Absent for an orphan row whose person no longer exists.
+ *
+ * @generated from field: optional bool person_is_deleted = 6;
+ */
+ personIsDeleted?: boolean
+}
+
+/**
+ * Describes the message personhog.types.v1.DistinctIdRow.
+ * Use `create(DistinctIdRowSchema)` to create a new message.
+ */
+export const DistinctIdRowSchema: GenMessage<DistinctIdRow> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 63)
+
+/**
+ * @generated from message personhog.types.v1.GetDistinctIdRowsRequest
+ */
+export type GetDistinctIdRowsRequest = Message<'personhog.types.v1.GetDistinctIdRowsRequest'> & {
+ /**
+ * @generated from field: int64 team_id = 1;
+ */
+ teamId: bigint
+
+ /**
+ * At most 1000. Distinct ids with no row are left out of the response.
+ *
+ * @generated from field: repeated string distinct_ids = 2;
+ */
+ distinctIds: string[]
+
+ /**
+ * @generated from field: personhog.types.v1.ReadOptions read_options = 3;
+ */
+ readOptions?: ReadOptions
+}
+
+/**
+ * Describes the message personhog.types.v1.GetDistinctIdRowsRequest.
+ * Use `create(GetDistinctIdRowsRequestSchema)` to create a new message.
+ */
+export const GetDistinctIdRowsRequestSchema: GenMessage<GetDistinctIdRowsRequest> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 64)
+
+/**
+ * @generated from message personhog.types.v1.GetDistinctIdRowsResponse
+ */
+export type GetDistinctIdRowsResponse = Message<'personhog.types.v1.GetDistinctIdRowsResponse'> & {
+ /**
+ * @generated from field: repeated personhog.types.v1.DistinctIdRow rows = 1;
+ */
+ rows: DistinctIdRow[]
+}
+
+/**
+ * Describes the message personhog.types.v1.GetDistinctIdRowsResponse.
+ * Use `create(GetDistinctIdRowsResponseSchema)` to create a new message.
+ */
+export const GetDistinctIdRowsResponseSchema: GenMessage<GetDistinctIdRowsResponse> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 65)
+
+/**
+ * One persons-database person row, live or tombstoned, without properties.
+ *
+ * @generated from message personhog.types.v1.PersonListEntry
+ */
+export type PersonListEntry = Message<'personhog.types.v1.PersonListEntry'> & {
+ /**
+ * @generated from field: int64 id = 1;
+ */
+ id: bigint
+
+ /**
+ * @generated from field: string uuid = 2;
+ */
+ uuid: string
+
+ /**
+ * @generated from field: int64 version = 3;
+ */
+ version: bigint
+
+ /**
+ * @generated from field: bool is_deleted = 4;
+ */
+ isDeleted: boolean
+
+ /**
+ * Whether any live mapping row points at this person.
+ *
+ * @generated from field: bool has_live_distinct_ids = 5;
+ */
+ hasLiveDistinctIds: boolean
+
+ /**
+ * @generated from field: int64 created_at_ms = 6;
+ */
+ createdAtMs: bigint
+}
+
+/**
+ * Describes the message personhog.types.v1.PersonListEntry.
+ * Use `create(PersonListEntrySchema)` to create a new message.
+ */
+export const PersonListEntrySchema: GenMessage<PersonListEntry> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 66)
+
+/**
+ * @generated from message personhog.types.v1.ListPersonsForTeamRequest
+ */
+export type ListPersonsForTeamRequest = Message<'personhog.types.v1.ListPersonsForTeamRequest'> & {
+ /**
+ * @generated from field: int64 team_id = 1;
+ */
+ teamId: bigint
+
+ /**
+ * Keyset cursor: return persons with id > after_person_id, in id order.
+ *
+ * @generated from field: int64 after_person_id = 2;
+ */
+ afterPersonId: bigint
+
+ /**
+ * Persons per page. 0 means 1000; at most 10000.
+ *
+ * @generated from field: int64 limit = 3;
+ */
+ limit: bigint
+
+ /**
+ * @generated from field: personhog.types.v1.ReadOptions read_options = 4;
+ */
+ readOptions?: ReadOptions
+
+ /**
+ * When set, return only persons with id < before_person_id, so a caller can scan id ranges in parallel.
+ *
+ * @generated from field: optional int64 before_person_id = 5;
+ */
+ beforePersonId?: bigint
+}
+
+/**
+ * Describes the message personhog.types.v1.ListPersonsForTeamRequest.
+ * Use `create(ListPersonsForTeamRequestSchema)` to create a new message.
+ */
+export const ListPersonsForTeamRequestSchema: GenMessage<ListPersonsForTeamRequest> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 67)
+
+/**
+ * @generated from message personhog.types.v1.ListPersonsForTeamResponse
+ */
+export type ListPersonsForTeamResponse = Message<'personhog.types.v1.ListPersonsForTeamResponse'> & {
+ /**
+ * @generated from field: repeated personhog.types.v1.PersonListEntry persons = 1;
+ */
+ persons: PersonListEntry[]
+
+ /**
+ * Absent when this page is the last one.
+ *
+ * @generated from field: optional int64 next_after_person_id = 2;
+ */
+ nextAfterPersonId?: bigint
+}
+
+/**
+ * Describes the message personhog.types.v1.ListPersonsForTeamResponse.
+ * Use `create(ListPersonsForTeamResponseSchema)` to create a new message.
+ */
+export const ListPersonsForTeamResponseSchema: GenMessage<ListPersonsForTeamResponse> =
+ /*@__PURE__*/
+ messageDesc(file_personhog_types_v1_person, 68)
+
/**
* How DeletePersons removes the rows.
*
diff --git a/nodejs/src/common/personhog/client.test.ts b/nodejs/src/common/personhog/client.test.ts
index e74c9bbf189e..e4eabda12741 100644
--- a/nodejs/src/common/personhog/client.test.ts
+++ b/nodejs/src/common/personhog/client.test.ts
@@ -150,6 +150,8 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
setPersonDistinctIdVersionFloor: () => ({}),
setPersonVersionFloor: () => ({ updated: false }),
ensurePersonVersionFloors: () => ({ results: [] }),
+ getDistinctIdRows: () => ({ rows: [] }),
+ listPersonsForTeam: () => ({ persons: [] }),
fencePerson: () => ({}),
fencePersons: () => ({}),
releaseFence: () => ({}),
diff --git a/nodejs/src/common/personhog/persons.test.ts b/nodejs/src/common/personhog/persons.test.ts
index 4e3a8b1924d5..e5d34104ca36 100644
--- a/nodejs/src/common/personhog/persons.test.ts
+++ b/nodejs/src/common/personhog/persons.test.ts
@@ -85,6 +85,8 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
setPersonDistinctIdVersionFloor: () => ({}),
setPersonVersionFloor: () => ({ updated: false }),
ensurePersonVersionFloors: () => ({ results: [] }),
+ getDistinctIdRows: () => ({ rows: [] }),
+ listPersonsForTeam: () => ({ persons: [] }),
fencePerson: () => ({}),
fencePersons: () => ({}),
releaseFence: () => ({}),
diff --git a/packages/personhog-proto/personhog/service/v1/service_pb2.py b/packages/personhog-proto/personhog/service/v1/service_pb2.py
index 5001c984e3d7..d8733bcf7fa0 100644
--- a/packages/personhog-proto/personhog/service/v1/service_pb2.py
+++ b/packages/personhog-proto/personhog/service/v1/service_pb2.py
@@ -28,7 +28,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\xdf/\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\x12\x64\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x66\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x12\x30.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x12\x38.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a\x36.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x12\x32.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a\x30.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x12\x32.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a\x33.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x12\x33.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a\x34.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x12\x34.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a\x35.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x12\x31.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a\x32.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1d\x44\x65leteHashKeyOverridesByTeams\x12\x38.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a\x39.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15\x43heckCohortMembership\x12\x30.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12\x43ountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12\x44\x65leteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17\x44\x65leteCohortMembersBulk\x12\x32.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a\x33.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\x12\x37.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x12\x38.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a\x32.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\x1a\x32.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12\x7f\n\x16\x43ountGroupTypeMappings\x12\x31.personhog.types.v1.CountGroupTypeMappingsRequest\x1a\x32.personhog.types.v1.CountGroupTypeMappingsResponse\x12^\n\x0b\x43reateGroup\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\x18\x44\x65leteGroupsBatchForTeam\x12\x33.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a\x34.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x12\x31.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a\x32.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16\x44\x65leteGroupTypeMapping\x12\x31.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a\x32.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x12\x31.personhog.types.v1.UpdatePersonPropertiesRequest\x1a\x32.personhog.types.v1.UpdatePersonPropertiesResponse\x12^\n\x0b\x46\x65ncePerson\x12&.personhog.types.v1.FencePersonRequest\x1a'.personhog.types.v1.FencePersonResponse\x12\x61\n\x0c\x46\x65ncePersons\x12'.personhog.types.v1.FencePersonsRequest\x1a(.personhog.types.v1.FencePersonsResponse\x12\x61\n\x0cReleaseFence\x12'.personhog.types.v1.ReleaseFenceRequest\x1a(.personhog.types.v1.ReleaseFenceResponse\x12\x64\n\rReleaseFences\x12(.personhog.types.v1.ReleaseFencesRequest\x1a).personhog.types.v1.ReleaseFencesResponse\x12s\n\x12\x46oldPersonDocument\x12-.personhog.types.v1.FoldPersonDocumentRequest\x1a..personhog.types.v1.FoldPersonDocumentResponse\x12\x64\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19\x44\x65letePersonsBatchForTeam\x12\x34.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a\x35.personhog.types.v1.DeletePersonsBatchForTeamResponse\x12\x82\x01\n\x17\x44\x65leteTombstonedPersons\x12\x32.personhog.types.v1.DeleteTombstonedPersonsRequest\x1a\x33.personhog.types.v1.DeleteTombstonedPersonsResponse\x12v\n\x13GetPersonTombstones\x12..personhog.types.v1.GetPersonTombstonesRequest\x1a/.personhog.types.v1.GetPersonTombstonesResponse\x12v\n\x13\x41\x63kPersonTombstones\x12..personhog.types.v1.AckPersonTombstonesRequest\x1a/.personhog.types.v1.AckPersonTombstonesResponse\x12\x85\x01\n\x18ListPersonTombstoneQueue\x12\x33.personhog.types.v1.ListPersonTombstoneQueueRequest\x1a\x34.personhog.types.v1.ListPersonTombstoneQueueResponse\x12^\n\x0bSplitPerson\x12&.personhog.types.v1.SplitPersonRequest\x1a'.personhog.types.v1.SplitPersonResponse\x12\x9a\x01\n\x1fSetPersonDistinctIdVersionFloor\x12:.personhog.types.v1.SetPersonDistinctIdVersionFloorRequest\x1a;.personhog.types.v1.SetPersonDistinctIdVersionFloorResponse\x12|\n\x15SetPersonVersionFloor\x12\x30.personhog.types.v1.SetPersonVersionFloorRequest\x1a\x31.personhog.types.v1.SetPersonVersionFloorResponse\x12\x88\x01\n\x19\x45nsurePersonVersionFloors\x12\x34.personhog.types.v1.EnsurePersonVersionFloorsRequest\x1a\x35.personhog.types.v1.EnsurePersonVersionFloorsResponseb\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\xc6\x31\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\x12\x64\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x66\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x12\x30.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x12\x38.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a\x36.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x12\x32.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a\x30.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x12\x32.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a\x33.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x12\x33.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a\x34.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x12\x34.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a\x35.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x12\x31.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a\x32.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1d\x44\x65leteHashKeyOverridesByTeams\x12\x38.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a\x39.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15\x43heckCohortMembership\x12\x30.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12\x43ountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12\x44\x65leteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17\x44\x65leteCohortMembersBulk\x12\x32.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a\x33.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\x12\x37.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x12\x38.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a\x32.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\x1a\x32.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12\x7f\n\x16\x43ountGroupTypeMappings\x12\x31.personhog.types.v1.CountGroupTypeMappingsRequest\x1a\x32.personhog.types.v1.CountGroupTypeMappingsResponse\x12^\n\x0b\x43reateGroup\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\x18\x44\x65leteGroupsBatchForTeam\x12\x33.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a\x34.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x12\x31.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a\x32.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16\x44\x65leteGroupTypeMapping\x12\x31.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a\x32.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x12\x31.personhog.types.v1.UpdatePersonPropertiesRequest\x1a\x32.personhog.types.v1.UpdatePersonPropertiesResponse\x12^\n\x0b\x46\x65ncePerson\x12&.personhog.types.v1.FencePersonRequest\x1a'.personhog.types.v1.FencePersonResponse\x12\x61\n\x0c\x46\x65ncePersons\x12'.personhog.types.v1.FencePersonsRequest\x1a(.personhog.types.v1.FencePersonsResponse\x12\x61\n\x0cReleaseFence\x12'.personhog.types.v1.ReleaseFenceRequest\x1a(.personhog.types.v1.ReleaseFenceResponse\x12\x64\n\rReleaseFences\x12(.personhog.types.v1.ReleaseFencesRequest\x1a).personhog.types.v1.ReleaseFencesResponse\x12s\n\x12\x46oldPersonDocument\x12-.personhog.types.v1.FoldPersonDocumentRequest\x1a..personhog.types.v1.FoldPersonDocumentResponse\x12\x64\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19\x44\x65letePersonsBatchForTeam\x12\x34.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a\x35.personhog.types.v1.DeletePersonsBatchForTeamResponse\x12\x82\x01\n\x17\x44\x65leteTombstonedPersons\x12\x32.personhog.types.v1.DeleteTombstonedPersonsRequest\x1a\x33.personhog.types.v1.DeleteTombstonedPersonsResponse\x12v\n\x13GetPersonTombstones\x12..personhog.types.v1.GetPersonTombstonesRequest\x1a/.personhog.types.v1.GetPersonTombstonesResponse\x12v\n\x13\x41\x63kPersonTombstones\x12..personhog.types.v1.AckPersonTombstonesRequest\x1a/.personhog.types.v1.AckPersonTombstonesResponse\x12\x85\x01\n\x18ListPersonTombstoneQueue\x12\x33.personhog.types.v1.ListPersonTombstoneQueueRequest\x1a\x34.personhog.types.v1.ListPersonTombstoneQueueResponse\x12^\n\x0bSplitPerson\x12&.personhog.types.v1.SplitPersonRequest\x1a'.personhog.types.v1.SplitPersonResponse\x12\x9a\x01\n\x1fSetPersonDistinctIdVersionFloor\x12:.personhog.types.v1.SetPersonDistinctIdVersionFloorRequest\x1a;.personhog.types.v1.SetPersonDistinctIdVersionFloorResponse\x12|\n\x15SetPersonVersionFloor\x12\x30.personhog.types.v1.SetPersonVersionFloorRequest\x1a\x31.personhog.types.v1.SetPersonVersionFloorResponse\x12\x88\x01\n\x19\x45nsurePersonVersionFloors\x12\x34.personhog.types.v1.EnsurePersonVersionFloorsRequest\x1a\x35.personhog.types.v1.EnsurePersonVersionFloorsResponse\x12p\n\x11GetDistinctIdRows\x12,.personhog.types.v1.GetDistinctIdRowsRequest\x1a-.personhog.types.v1.GetDistinctIdRowsResponse\x12s\n\x12ListPersonsForTeam\x12-.personhog.types.v1.ListPersonsForTeamRequest\x1a..personhog.types.v1.ListPersonsForTeamResponseb\x06proto3"
)
_globals = globals()
@@ -37,5 +37,5 @@ _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 = 6309
+ _globals["_PERSONHOGSERVICE"]._serialized_end = 6540
# @@protoc_insertion_point(module_scope)
diff --git a/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py b/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py
index ff87d99316e3..cfa8ffe97f7b 100644
--- a/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py
+++ b/packages/personhog-proto/personhog/service/v1/service_pb2_grpc.py
@@ -342,6 +342,18 @@ class PersonHogServiceStub:
response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.EnsurePersonVersionFloorsResponse.FromString,
_registered_method=True,
)
+ self.GetDistinctIdRows = channel.unary_unary(
+ "/personhog.service.v1.PersonHogService/GetDistinctIdRows",
+ request_serializer=personhog_dot_types_dot_v1_dot_person__pb2.GetDistinctIdRowsRequest.SerializeToString,
+ response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.GetDistinctIdRowsResponse.FromString,
+ _registered_method=True,
+ )
+ self.ListPersonsForTeam = channel.unary_unary(
+ "/personhog.service.v1.PersonHogService/ListPersonsForTeam",
+ request_serializer=personhog_dot_types_dot_v1_dot_person__pb2.ListPersonsForTeamRequest.SerializeToString,
+ response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.ListPersonsForTeamResponse.FromString,
+ _registered_method=True,
+ )
class PersonHogServiceServicer:
@@ -669,6 +681,18 @@ class PersonHogServiceServicer:
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
+ def GetDistinctIdRows(self, request, context):
+ """Reads for the person consistency scan and repair. Rows include tombstones."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details("Method not implemented!")
+ raise NotImplementedError("Method not implemented!")
+
+ def ListPersonsForTeam(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 add_PersonHogServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
@@ -922,6 +946,16 @@ def add_PersonHogServiceServicer_to_server(servicer, server):
request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.EnsurePersonVersionFloorsRequest.FromString,
response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.EnsurePersonVersionFloorsResponse.SerializeToString,
),
+ "GetDistinctIdRows": grpc.unary_unary_rpc_method_handler(
+ servicer.GetDistinctIdRows,
+ request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.GetDistinctIdRowsRequest.FromString,
+ response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.GetDistinctIdRowsResponse.SerializeToString,
+ ),
+ "ListPersonsForTeam": grpc.unary_unary_rpc_method_handler(
+ servicer.ListPersonsForTeam,
+ request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.ListPersonsForTeamRequest.FromString,
+ response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.ListPersonsForTeamResponse.SerializeToString,
+ ),
}
generic_handler = grpc.method_handlers_generic_handler("personhog.service.v1.PersonHogService", rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
@@ -2433,3 +2467,63 @@ class PersonHogService:
metadata,
_registered_method=True,
)
+
+ @staticmethod
+ def GetDistinctIdRows(
+ 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/GetDistinctIdRows",
+ personhog_dot_types_dot_v1_dot_person__pb2.GetDistinctIdRowsRequest.SerializeToString,
+ personhog_dot_types_dot_v1_dot_person__pb2.GetDistinctIdRowsResponse.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ _registered_method=True,
+ )
+
+ @staticmethod
+ def ListPersonsForTeam(
+ 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/ListPersonsForTeam",
+ personhog_dot_types_dot_v1_dot_person__pb2.ListPersonsForTeamRequest.SerializeToString,
+ personhog_dot_types_dot_v1_dot_person__pb2.ListPersonsForTeamResponse.FromString,
+ options,
+ channel_credentials,
+ insecure,
+ call_credentials,
+ compression,
+ wait_for_ready,
+ timeout,
+ metadata,
+ _registered_method=True,
+ )
diff --git a/packages/personhog-proto/personhog/types/v1/person_pb2.py b/packages/personhog-proto/personhog/types/v1/person_pb2.py
index 3ea25edf84fa..096f110d3f71 100644
--- a/packages/personhog-proto/personhog/types/v1/person_pb2.py
+++ b/packages/personhog-proto/personhog/types/v1/person_pb2.py
@@ -23,7 +23,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\x1fpersonhog/types/v1/person.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xb2\x02\n\x06Person\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07team_id\x18\x03 \x01(\x03\x12\x12\n\nproperties\x18\x04 \x01(\x0c\x12"\n\x1aproperties_last_updated_at\x18\x05 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x06 \x01(\x0c\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x0f\n\x07version\x18\x08 \x01(\x03\x12\x15\n\ris_identified\x18\t \x01(\x08\x12\x17\n\nis_user_id\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\x12\n\nis_deleted\x18\x0c \x01(\x08\x42\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"f\n\x15\x44istinctIdWithVersion\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_versionB\x05\n\x03_id"h\n\x15PersonWithDistinctIds\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0c\x64istinct_ids\x18\x02 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b\x32".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"m\n\x10GetPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"o\n\x11GetPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b\x32\x1a.personhog.types.v1.Person\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\x03"n\n\x16GetPersonByUuidRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"q\n\x18GetPersonsByUuidsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05uuids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b\x32".personhog.types.v1.TeamDistinctId\x12\x35\n\x0cread_options\x18\x02 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonWithTeamDistinctId"\xbf\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tcursor_id\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0c\n\n_cursor_id"\x92\x01\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0c\x64istinct_ids\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion\x12\x1b\n\x0enext_cursor_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x11\n\x0f_next_cursor_id"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12\x42\n\x13person_distinct_ids\x18\x01 \x03(\x0b\x32%.personhog.types.v1.PersonDistinctIds"\x96\x02\n\x1dUpdatePersonPropertiesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x12\n\nevent_name\x18\x03 \x01(\t\x12\x16\n\x0eset_properties\x18\x04 \x01(\x0c\x12\x1b\n\x13set_once_properties\x18\x05 \x01(\x0c\x12\x18\n\x10unset_properties\x18\x06 \x03(\t\x12\x1a\n\ris_identified\x18\x07 \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x14\n\x0c\x66orce_update\x18\t \x01(\x08\x42\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08\x42\t\n\x07_person"r\n\x14\x44\x65letePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.personhog.types.v1.DeletePersonsMode"<\n\x14TombstonedDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"x\n\x10TombstonedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12>\n\x0c\x64istinct_ids\x18\x03 \x03(\x0b\x32(.personhog.types.v1.TombstonedDistinctId"|\n\x15\x44\x65letePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x12\n\ntombstoned\x18\x02 \x01(\x08\x12\x38\n\ntombstones\x18\x03 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"C\n\x1aGetPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t"W\n\x1bGetPersonTombstonesResponse\x12\x38\n\ntombstones\x18\x01 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"<\n\x14\x41\x63kedPersonTombstone\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"k\n\x1a\x41\x63kPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12<\n\ntombstones\x18\x02 \x03(\x0b\x32(.personhog.types.v1.AckedPersonTombstone"4\n\x1b\x41\x63kPersonTombstonesResponse\x12\x15\n\rcleared_count\x18\x01 \x01(\x03"\x84\x01\n\x1fListPersonTombstoneQueueRequest\x12\x15\n\rafter_team_id\x18\x01 \x01(\x03\x12\x19\n\x11\x61\x66ter_person_uuid\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x14\n\x07team_id\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\n\n\x08_team_id"p\n\x19PersonTombstoneQueueEntry\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x16\n\x0eperson_version\x18\x03 \x01(\x03\x12\x15\n\rtombstoned_at\x18\x04 \x01(\x03"b\n ListPersonTombstoneQueueResponse\x12>\n\x07\x65ntries\x18\x01 \x03(\x0b\x32-.personhog.types.v1.PersonTombstoneQueueEntry"G\n DeletePersonsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03":\n!DeletePersonsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\x9c\x01\n\x1e\x44\x65leteTombstonedPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x03\x12\x41\n\x0f\x62ounded_persons\x18\x04 \x03(\x0b\x32(.personhog.types.v1.VersionBoundedPerson"@\n\x14VersionBoundedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmax_version\x18\x02 \x01(\x03"\xe4\x01\n\x1f\x44\x65leteTombstonedPersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x1a\n\x12skipped_live_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x62locked_person_uuids\x18\x03 \x03(\t\x12\x1c\n\x14pending_person_uuids\x18\x04 \x03(\t\x12\x14\n\x0crows_deleted\x18\x05 \x01(\x03\x12\x1d\n\x15version_guard_applied\x18\x06 \x01(\x08\x12\x1d\n\x15skipped_version_count\x18\x07 \x01(\x03"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15\x64istinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x17\n\x0fnew_person_uuid\x18\x02 \x01(\t\x12\x1a\n\x12new_person_version\x18\x03 \x01(\x03\x12\x13\n\x0bpdi_version\x18\x04 \x01(\x03\x12 \n\x18new_person_created_at_ms\x18\x05 \x01(\x03"F\n\x13SplitPersonResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"W\n\x1cSetPersonVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"0\n\x1dSetPersonVersionFloorResponse\x12\x0f\n\x07updated\x18\x01 \x01(\x08">\n\x12PersonVersionFloor\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\x03"k\n EnsurePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"z\n\x18PersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x38\n\x07outcome\x18\x02 \x01(\x0e\x32\'.personhog.types.v1.VersionFloorOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"b\n!EnsurePersonVersionFloorsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonVersionFloorResult"}\n\x12\x46\x65ncePersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\r\n\x05op_id\x18\x03 \x01(\t\x12\x34\n\x07op_type\x18\x04 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType"A\n\x13\x46\x65ncePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\x7f\n\x13\x46\x65ncePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x34\n\x07op_type\x18\x03 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType\x12\x12\n\nperson_ids\x18\x04 \x03(\x03"_\n\x14\x46\x65ncePersonsResponse\x12\x34\n\x06sealed\x18\x01 \x03(\x0b\x32$.personhog.types.v1.FencedPersonSeal\x12\x11\n\tnot_found\x18\x02 \x03(\x03"J\n\x10\x46\x65ncedPersonSeal\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\x03"\xd6\x01\n\x13ReleaseFenceRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\r\n\x05op_id\x18\x04 \x01(\t\x12\x33\n\x07outcome\x18\x05 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x1b\n\x0esealed_version\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x42\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"\xa2\x01\n\x14ReleaseFencesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x33\n\x07outcome\x18\x03 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x35\n\x07persons\x18\x04 \x03(\x0b\x32$.personhog.types.v1.ReleaseFenceItem"~\n\x10ReleaseFenceItem\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x1b\n\x0esealed_version\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x42\x11\n\x0f_sealed_version"\x17\n\x15ReleaseFencesResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19\x46oldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x42\n\x10sealed_snapshots\x18\x03 \x03(\x0b\x32(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0e\x65vent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1a\x46oldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person*y\n\x11\x44\x65letePersonsMode\x12#\n\x1f\x44\x45LETE_PERSONS_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x45LETE_PERSONS_MODE_HARD\x10\x01\x12!\n\x1d\x44\x45LETE_PERSONS_MODE_TOMBSTONE\x10\x02*\xe4\x01\n\x13VersionFloorOutcome\x12%\n!VERSION_FLOOR_OUTCOME_UNSPECIFIED\x10\x00\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_INSERTED\x10\x01\x12*\n&VERSION_FLOOR_OUTCOME_TOMBSTONE_RAISED\x10\x02\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_AT_FLOOR\x10\x03\x12\x1e\n\x1aVERSION_FLOOR_OUTCOME_LIVE\x10\x04*o\n\x0fLifecycleOpType\x12!\n\x1dLIFECYCLE_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18LIFECYCLE_OP_TYPE_DELETE\x10\x01\x12\x1b\n\x17LIFECYCLE_OP_TYPE_MERGE\x10\x02*m\n\x0eReleaseOutcome\x12\x1f\n\x1bRELEASE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n\x19RELEASE_OUTCOME_COMMITTED\x10\x01\x12\x1b\n\x17RELEASE_OUTCOME_ABORTED\x10\x02\x62\x06proto3'
+ b'\n\x1fpersonhog/types/v1/person.proto\x12\x12personhog.types.v1\x1a\x1fpersonhog/types/v1/common.proto"\xb2\x02\n\x06Person\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07team_id\x18\x03 \x01(\x03\x12\x12\n\nproperties\x18\x04 \x01(\x0c\x12"\n\x1aproperties_last_updated_at\x18\x05 \x01(\x0c\x12!\n\x19properties_last_operation\x18\x06 \x01(\x0c\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x0f\n\x07version\x18\x08 \x01(\x03\x12\x15\n\ris_identified\x18\t \x01(\x08\x12\x17\n\nis_user_id\x18\n \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\x12\n\nis_deleted\x18\x0c \x01(\x08\x42\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"f\n\x15\x44istinctIdWithVersion\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x0f\n\x02id\x18\x03 \x01(\x03H\x01\x88\x01\x01\x42\n\n\x08_versionB\x05\n\x03_id"h\n\x15PersonWithDistinctIds\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0c\x64istinct_ids\x18\x02 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b\x32".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"m\n\x10GetPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"o\n\x11GetPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b\x32\x1a.personhog.types.v1.Person\x12\x13\n\x0bmissing_ids\x18\x02 \x03(\x03"n\n\x16GetPersonByUuidRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"q\n\x18GetPersonsByUuidsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05uuids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b\x32).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b\x32".personhog.types.v1.TeamDistinctId\x12\x35\n\x0cread_options\x18\x02 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonWithTeamDistinctId"\xbf\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tcursor_id\x18\x05 \x01(\x03H\x01\x88\x01\x01\x42\x08\n\x06_limitB\x0c\n\n_cursor_id"\x92\x01\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0c\x64istinct_ids\x18\x01 \x03(\x0b\x32).personhog.types.v1.DistinctIdWithVersion\x12\x1b\n\x0enext_cursor_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x11\n\x0f_next_cursor_id"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12\x42\n\x13person_distinct_ids\x18\x01 \x03(\x0b\x32%.personhog.types.v1.PersonDistinctIds"\x96\x02\n\x1dUpdatePersonPropertiesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x12\n\nevent_name\x18\x03 \x01(\t\x12\x16\n\x0eset_properties\x18\x04 \x01(\x0c\x12\x1b\n\x13set_once_properties\x18\x05 \x01(\x0c\x12\x18\n\x10unset_properties\x18\x06 \x03(\t\x12\x1a\n\ris_identified\x18\x07 \x01(\x08H\x00\x88\x01\x01\x12\x19\n\x0clast_seen_at\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x14\n\x0c\x66orce_update\x18\t \x01(\x08\x42\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08\x42\t\n\x07_person"r\n\x14\x44\x65letePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x33\n\x04mode\x18\x03 \x01(\x0e\x32%.personhog.types.v1.DeletePersonsMode"<\n\x14TombstonedDistinctId\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"x\n\x10TombstonedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12>\n\x0c\x64istinct_ids\x18\x03 \x03(\x0b\x32(.personhog.types.v1.TombstonedDistinctId"|\n\x15\x44\x65letePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x12\n\ntombstoned\x18\x02 \x01(\x08\x12\x38\n\ntombstones\x18\x03 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"C\n\x1aGetPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t"W\n\x1bGetPersonTombstonesResponse\x12\x38\n\ntombstones\x18\x01 \x03(\x0b\x32$.personhog.types.v1.TombstonedPerson"<\n\x14\x41\x63kedPersonTombstone\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x03"k\n\x1a\x41\x63kPersonTombstonesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12<\n\ntombstones\x18\x02 \x03(\x0b\x32(.personhog.types.v1.AckedPersonTombstone"4\n\x1b\x41\x63kPersonTombstonesResponse\x12\x15\n\rcleared_count\x18\x01 \x01(\x03"\x84\x01\n\x1fListPersonTombstoneQueueRequest\x12\x15\n\rafter_team_id\x18\x01 \x01(\x03\x12\x19\n\x11\x61\x66ter_person_uuid\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x14\n\x07team_id\x18\x04 \x01(\x03H\x00\x88\x01\x01\x42\n\n\x08_team_id"p\n\x19PersonTombstoneQueueEntry\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x16\n\x0eperson_version\x18\x03 \x01(\x03\x12\x15\n\rtombstoned_at\x18\x04 \x01(\x03"b\n ListPersonTombstoneQueueResponse\x12>\n\x07\x65ntries\x18\x01 \x03(\x0b\x32-.personhog.types.v1.PersonTombstoneQueueEntry"G\n DeletePersonsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03":\n!DeletePersonsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"\x9c\x01\n\x1e\x44\x65leteTombstonedPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t\x12\x10\n\x08max_rows\x18\x03 \x01(\x03\x12\x41\n\x0f\x62ounded_persons\x18\x04 \x03(\x0b\x32(.personhog.types.v1.VersionBoundedPerson"@\n\x14VersionBoundedPerson\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmax_version\x18\x02 \x01(\x03"\xe4\x01\n\x1f\x44\x65leteTombstonedPersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03\x12\x1a\n\x12skipped_live_count\x18\x02 \x01(\x03\x12\x1c\n\x14\x62locked_person_uuids\x18\x03 \x03(\t\x12\x1c\n\x14pending_person_uuids\x18\x04 \x03(\t\x12\x14\n\x0crows_deleted\x18\x05 \x01(\x03\x12\x1d\n\x15version_guard_applied\x18\x06 \x01(\x08\x12\x1d\n\x15skipped_version_count\x18\x07 \x01(\x03"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15\x64istinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x17\n\x0fnew_person_uuid\x18\x02 \x01(\t\x12\x1a\n\x12new_person_version\x18\x03 \x01(\x03\x12\x13\n\x0bpdi_version\x18\x04 \x01(\x03\x12 \n\x18new_person_created_at_ms\x18\x05 \x01(\x03"F\n\x13SplitPersonResponse\x12/\n\x06splits\x18\x01 \x03(\x0b\x32\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0b\x64istinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x42\t\n\x07_person"W\n\x1cSetPersonVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"0\n\x1dSetPersonVersionFloorResponse\x12\x0f\n\x07updated\x18\x01 \x01(\x08">\n\x12PersonVersionFloor\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x13\n\x0bmin_version\x18\x02 \x01(\x03"k\n EnsurePersonVersionFloorsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x36\n\x06\x66loors\x18\x02 \x03(\x0b\x32&.personhog.types.v1.PersonVersionFloor"z\n\x18PersonVersionFloorResult\x12\x13\n\x0bperson_uuid\x18\x01 \x01(\t\x12\x38\n\x07outcome\x18\x02 \x01(\x0e\x32\'.personhog.types.v1.VersionFloorOutcome\x12\x0f\n\x07version\x18\x03 \x01(\x03"b\n!EnsurePersonVersionFloorsResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.personhog.types.v1.PersonVersionFloorResult"}\n\x12\x46\x65ncePersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\r\n\x05op_id\x18\x03 \x01(\t\x12\x34\n\x07op_type\x18\x04 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType"A\n\x13\x46\x65ncePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\x7f\n\x13\x46\x65ncePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x34\n\x07op_type\x18\x03 \x01(\x0e\x32#.personhog.types.v1.LifecycleOpType\x12\x12\n\nperson_ids\x18\x04 \x03(\x03"_\n\x14\x46\x65ncePersonsResponse\x12\x34\n\x06sealed\x18\x01 \x03(\x0b\x32$.personhog.types.v1.FencedPersonSeal\x12\x11\n\tnot_found\x18\x02 \x03(\x03"J\n\x10\x46\x65ncedPersonSeal\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x0f\n\x07version\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\x03"\xd6\x01\n\x13ReleaseFenceRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x03 \x01(\t\x12\r\n\x05op_id\x18\x04 \x01(\t\x12\x33\n\x07outcome\x18\x05 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x1b\n\x0esealed_version\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x42\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"\xa2\x01\n\x14ReleaseFencesRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\r\n\x05op_id\x18\x02 \x01(\t\x12\x33\n\x07outcome\x18\x03 \x01(\x0e\x32".personhog.types.v1.ReleaseOutcome\x12\x35\n\x07persons\x18\x04 \x03(\x0b\x32$.personhog.types.v1.ReleaseFenceItem"~\n\x10ReleaseFenceItem\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12\x13\n\x0bperson_uuid\x18\x02 \x01(\t\x12\x1b\n\x0esealed_version\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x42\x11\n\x0f_sealed_version"\x17\n\x15ReleaseFencesResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19\x46oldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x42\n\x10sealed_snapshots\x18\x03 \x03(\x0b\x32(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0e\x65vent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1a\x46oldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b\x32\x1a.personhog.types.v1.Person"\xbc\x01\n\rDistinctIdRow\x12\x13\n\x0b\x64istinct_id\x18\x01 \x01(\t\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x18\n\x0bperson_uuid\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x12\n\nis_deleted\x18\x05 \x01(\x08\x12\x1e\n\x11person_is_deleted\x18\x06 \x01(\x08H\x01\x88\x01\x01\x42\x0e\n\x0c_person_uuidB\x14\n\x12_person_is_deleted"x\n\x18GetDistinctIdRowsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0c\x64istinct_ids\x18\x02 \x03(\t\x12\x35\n\x0cread_options\x18\x03 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions"L\n\x19GetDistinctIdRowsResponse\x12/\n\x04rows\x18\x01 \x03(\x0b\x32!.personhog.types.v1.DistinctIdRow"\x86\x01\n\x0fPersonListEntry\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x03\x12\x12\n\nis_deleted\x18\x04 \x01(\x08\x12\x1d\n\x15has_live_distinct_ids\x18\x05 \x01(\x08\x12\x15\n\rcreated_at_ms\x18\x06 \x01(\x03"\xbf\x01\n\x19ListPersonsForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x17\n\x0f\x61\x66ter_person_id\x18\x02 \x01(\x03\x12\r\n\x05limit\x18\x03 \x01(\x03\x12\x35\n\x0cread_options\x18\x04 \x01(\x0b\x32\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10\x62\x65\x66ore_person_id\x18\x05 \x01(\x03H\x00\x88\x01\x01\x42\x13\n\x11_before_person_id"\x8e\x01\n\x1aListPersonsForTeamResponse\x12\x34\n\x07persons\x18\x01 \x03(\x0b\x32#.personhog.types.v1.PersonListEntry\x12!\n\x14next_after_person_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_next_after_person_id*y\n\x11\x44\x65letePersonsMode\x12#\n\x1f\x44\x45LETE_PERSONS_MODE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x44\x45LETE_PERSONS_MODE_HARD\x10\x01\x12!\n\x1d\x44\x45LETE_PERSONS_MODE_TOMBSTONE\x10\x02*\xe4\x01\n\x13VersionFloorOutcome\x12%\n!VERSION_FLOOR_OUTCOME_UNSPECIFIED\x10\x00\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_INSERTED\x10\x01\x12*\n&VERSION_FLOOR_OUTCOME_TOMBSTONE_RAISED\x10\x02\x12,\n(VERSION_FLOOR_OUTCOME_TOMBSTONE_AT_FLOOR\x10\x03\x12\x1e\n\x1aVERSION_FLOOR_OUTCOME_LIVE\x10\x04*o\n\x0fLifecycleOpType\x12!\n\x1dLIFECYCLE_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18LIFECYCLE_OP_TYPE_DELETE\x10\x01\x12\x1b\n\x17LIFECYCLE_OP_TYPE_MERGE\x10\x02*m\n\x0eReleaseOutcome\x12\x1f\n\x1bRELEASE_OUTCOME_UNSPECIFIED\x10\x00\x12\x1d\n\x19RELEASE_OUTCOME_COMMITTED\x10\x01\x12\x1b\n\x17RELEASE_OUTCOME_ABORTED\x10\x02\x62\x06proto3'
)
_globals = globals()
@@ -31,14 +31,14 @@ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.types.v1.person_pb2", _globals)
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
- _globals["_DELETEPERSONSMODE"]._serialized_start = 7291
- _globals["_DELETEPERSONSMODE"]._serialized_end = 7412
- _globals["_VERSIONFLOOROUTCOME"]._serialized_start = 7415
- _globals["_VERSIONFLOOROUTCOME"]._serialized_end = 7643
- _globals["_LIFECYCLEOPTYPE"]._serialized_start = 7645
- _globals["_LIFECYCLEOPTYPE"]._serialized_end = 7756
- _globals["_RELEASEOUTCOME"]._serialized_start = 7758
- _globals["_RELEASEOUTCOME"]._serialized_end = 7867
+ _globals["_DELETEPERSONSMODE"]._serialized_start = 8158
+ _globals["_DELETEPERSONSMODE"]._serialized_end = 8279
+ _globals["_VERSIONFLOOROUTCOME"]._serialized_start = 8282
+ _globals["_VERSIONFLOOROUTCOME"]._serialized_end = 8510
+ _globals["_LIFECYCLEOPTYPE"]._serialized_start = 8512
+ _globals["_LIFECYCLEOPTYPE"]._serialized_end = 8623
+ _globals["_RELEASEOUTCOME"]._serialized_start = 8625
+ _globals["_RELEASEOUTCOME"]._serialized_end = 8734
_globals["_PERSON"]._serialized_start = 89
_globals["_PERSON"]._serialized_end = 395
_globals["_DISTINCTIDWITHVERSION"]._serialized_start = 397
@@ -165,4 +165,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
_globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_end = 7215
_globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_start = 7217
_globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_end = 7289
+ _globals["_DISTINCTIDROW"]._serialized_start = 7292
+ _globals["_DISTINCTIDROW"]._serialized_end = 7480
+ _globals["_GETDISTINCTIDROWSREQUEST"]._serialized_start = 7482
+ _globals["_GETDISTINCTIDROWSREQUEST"]._serialized_end = 7602
+ _globals["_GETDISTINCTIDROWSRESPONSE"]._serialized_start = 7604
+ _globals["_GETDISTINCTIDROWSRESPONSE"]._serialized_end = 7680
+ _globals["_PERSONLISTENTRY"]._serialized_start = 7683
+ _globals["_PERSONLISTENTRY"]._serialized_end = 7817
+ _globals["_LISTPERSONSFORTEAMREQUEST"]._serialized_start = 7820
+ _globals["_LISTPERSONSFORTEAMREQUEST"]._serialized_end = 8011
+ _globals["_LISTPERSONSFORTEAMRESPONSE"]._serialized_start = 8014
+ _globals["_LISTPERSONSFORTEAMRESPONSE"]._serialized_end = 8156
# @@protoc_insertion_point(module_scope)
diff --git a/packages/personhog-proto/personhog/types/v1/person_pb2.pyi b/packages/personhog-proto/personhog/types/v1/person_pb2.pyi
index 2fa755b6bc10..102c8f47a179 100644
--- a/packages/personhog-proto/personhog/types/v1/person_pb2.pyi
+++ b/packages/personhog-proto/personhog/types/v1/person_pb2.pyi
@@ -906,3 +906,105 @@ class FoldPersonDocumentResponse(_message.Message):
PERSON_FIELD_NUMBER: _ClassVar[int]
person: Person
def __init__(self, person: _Optional[_Union[Person, _Mapping]] = ...) -> None: ...
+
+class DistinctIdRow(_message.Message):
+ __slots__ = ("distinct_id", "person_id", "person_uuid", "version", "is_deleted", "person_is_deleted")
+ DISTINCT_ID_FIELD_NUMBER: _ClassVar[int]
+ PERSON_ID_FIELD_NUMBER: _ClassVar[int]
+ PERSON_UUID_FIELD_NUMBER: _ClassVar[int]
+ VERSION_FIELD_NUMBER: _ClassVar[int]
+ IS_DELETED_FIELD_NUMBER: _ClassVar[int]
+ PERSON_IS_DELETED_FIELD_NUMBER: _ClassVar[int]
+ distinct_id: str
+ person_id: int
+ person_uuid: str
+ version: int
+ is_deleted: bool
+ person_is_deleted: bool
+ def __init__(
+ self,
+ distinct_id: _Optional[str] = ...,
+ person_id: _Optional[int] = ...,
+ person_uuid: _Optional[str] = ...,
+ version: _Optional[int] = ...,
+ is_deleted: bool = ...,
+ person_is_deleted: bool = ...,
+ ) -> None: ...
+
+class GetDistinctIdRowsRequest(_message.Message):
+ __slots__ = ("team_id", "distinct_ids", "read_options")
+ TEAM_ID_FIELD_NUMBER: _ClassVar[int]
+ DISTINCT_IDS_FIELD_NUMBER: _ClassVar[int]
+ READ_OPTIONS_FIELD_NUMBER: _ClassVar[int]
+ team_id: int
+ distinct_ids: _containers.RepeatedScalarFieldContainer[str]
+ read_options: _common_pb2.ReadOptions
+ def __init__(
+ self,
+ team_id: _Optional[int] = ...,
+ distinct_ids: _Optional[_Iterable[str]] = ...,
+ read_options: _Optional[_Union[_common_pb2.ReadOptions, _Mapping]] = ...,
+ ) -> None: ...
+
+class GetDistinctIdRowsResponse(_message.Message):
+ __slots__ = ("rows",)
+ ROWS_FIELD_NUMBER: _ClassVar[int]
+ rows: _containers.RepeatedCompositeFieldContainer[DistinctIdRow]
+ def __init__(self, rows: _Optional[_Iterable[_Union[DistinctIdRow, _Mapping]]] = ...) -> None: ...
+
+class PersonListEntry(_message.Message):
+ __slots__ = ("id", "uuid", "version", "is_deleted", "has_live_distinct_ids", "created_at_ms")
+ ID_FIELD_NUMBER: _ClassVar[int]
+ UUID_FIELD_NUMBER: _ClassVar[int]
+ VERSION_FIELD_NUMBER: _ClassVar[int]
+ IS_DELETED_FIELD_NUMBER: _ClassVar[int]
+ HAS_LIVE_DISTINCT_IDS_FIELD_NUMBER: _ClassVar[int]
+ CREATED_AT_MS_FIELD_NUMBER: _ClassVar[int]
+ id: int
+ uuid: str
+ version: int
+ is_deleted: bool
+ has_live_distinct_ids: bool
+ created_at_ms: int
+ def __init__(
+ self,
+ id: _Optional[int] = ...,
+ uuid: _Optional[str] = ...,
+ version: _Optional[int] = ...,
+ is_deleted: bool = ...,
+ has_live_distinct_ids: bool = ...,
+ created_at_ms: _Optional[int] = ...,
+ ) -> None: ...
+
+class ListPersonsForTeamRequest(_message.Message):
+ __slots__ = ("team_id", "after_person_id", "limit", "read_options", "before_person_id")
+ TEAM_ID_FIELD_NUMBER: _ClassVar[int]
+ AFTER_PERSON_ID_FIELD_NUMBER: _ClassVar[int]
+ LIMIT_FIELD_NUMBER: _ClassVar[int]
+ READ_OPTIONS_FIELD_NUMBER: _ClassVar[int]
+ BEFORE_PERSON_ID_FIELD_NUMBER: _ClassVar[int]
+ team_id: int
+ after_person_id: int
+ limit: int
+ read_options: _common_pb2.ReadOptions
+ before_person_id: int
+ def __init__(
+ self,
+ team_id: _Optional[int] = ...,
+ after_person_id: _Optional[int] = ...,
+ limit: _Optional[int] = ...,
+ read_options: _Optional[_Union[_common_pb2.ReadOptions, _Mapping]] = ...,
+ before_person_id: _Optional[int] = ...,
+ ) -> None: ...
+
+class ListPersonsForTeamResponse(_message.Message):
+ __slots__ = ("persons", "next_after_person_id")
+ PERSONS_FIELD_NUMBER: _ClassVar[int]
+ NEXT_AFTER_PERSON_ID_FIELD_NUMBER: _ClassVar[int]
+ persons: _containers.RepeatedCompositeFieldContainer[PersonListEntry]
+ next_after_person_id: int
+ def __init__(
+ self,
+ persons: _Optional[_Iterable[_Union[PersonListEntry, _Mapping]]] = ...,
+ next_after_person_id: _Optional[int] = ...,
+ ) -> None: ...
diff --git a/posthog/personhog_client/client.py b/posthog/personhog_client/client.py
index bf5ea803f09c..fd74e1cabc1b 100644
--- a/posthog/personhog_client/client.py
+++ b/posthog/personhog_client/client.py
@@ -48,6 +48,8 @@ from posthog.personhog_client.proto import (
DeleteTombstonedPersonsResponse,
EnsurePersonVersionFloorsRequest,
EnsurePersonVersionFloorsResponse,
+ GetDistinctIdRowsRequest,
+ GetDistinctIdRowsResponse,
GetDistinctIdsForPersonRequest,
GetDistinctIdsForPersonResponse,
GetDistinctIdsForPersonsRequest,
@@ -81,6 +83,8 @@ from posthog.personhog_client.proto import (
ListCohortMemberIdsResponse,
ListGroupsRequest,
ListGroupsResponse,
+ ListPersonsForTeamRequest,
+ ListPersonsForTeamResponse,
ListPersonTombstoneQueueRequest,
ListPersonTombstoneQueueResponse,
PersonHogServiceStub,
@@ -270,6 +274,16 @@ class PersonHogClient:
) -> EnsurePersonVersionFloorsResponse:
return self._stub.EnsurePersonVersionFloors(request, timeout=timeout or self._timeout)
+ def get_distinct_id_rows(
+ self, request: GetDistinctIdRowsRequest, timeout: float | None = None
+ ) -> GetDistinctIdRowsResponse:
+ return self._stub.GetDistinctIdRows(request, timeout=timeout or self._timeout)
+
+ def list_persons_for_team(
+ self, request: ListPersonsForTeamRequest, timeout: float | None = None
+ ) -> ListPersonsForTeamResponse:
+ return self._stub.ListPersonsForTeam(request, timeout=timeout or self._timeout)
+
# -- Person lookups --
def get_person(self, request: GetPersonRequest) -> GetPersonResponse:
diff --git a/posthog/personhog_client/fake_client.py b/posthog/personhog_client/fake_client.py
index 49e3f24e0e1b..130bdb4e3ab6 100644
--- a/posthog/personhog_client/fake_client.py
+++ b/posthog/personhog_client/fake_client.py
@@ -972,6 +972,72 @@ class FakePersonHogClient:
response.results.add(person_uuid=floor.person_uuid, outcome=outcome, version=person.version)
return response
+ # ── Consistency scan reads ───────────────────────────────────────
+
+ def get_distinct_id_rows(
+ self, request: person_pb2.GetDistinctIdRowsRequest, timeout: float | None = None
+ ) -> person_pb2.GetDistinctIdRowsResponse:
+ """Mapping rows, live or tombstoned, for mappings the fake tracks per person."""
+ self.calls.append(_Call("get_distinct_id_rows", request))
+ if len(request.distinct_ids) > 1000:
+ raise ValueError("Maximum 1000 distinct ids per request")
+ wanted = set(request.distinct_ids)
+ response = person_pb2.GetDistinctIdRowsResponse()
+ rows = []
+ for (team_id, person_id), mappings in self._distinct_ids.items():
+ if team_id != request.team_id:
+ continue
+ person = self._persons_by_id.get((team_id, person_id))
+ for mapping in mappings:
+ if mapping.distinct_id not in wanted:
+ continue
+ row = person_pb2.DistinctIdRow(
+ distinct_id=mapping.distinct_id,
+ person_id=person_id,
+ version=mapping.version or 0,
+ is_deleted=(team_id, mapping.distinct_id) in self._tombstoned_distinct_ids,
+ )
+ if person is not None:
+ row.person_uuid = person.uuid
+ row.person_is_deleted = person.is_deleted
+ rows.append(row)
+ response.rows.extend(sorted(rows, key=lambda r: r.distinct_id))
+ return response
+
+ def list_persons_for_team(
+ self, request: person_pb2.ListPersonsForTeamRequest, timeout: float | None = None
+ ) -> person_pb2.ListPersonsForTeamResponse:
+ self.calls.append(_Call("list_persons_for_team", request))
+ limit = request.limit or 1000
+ if not 1 <= limit <= 10_000:
+ raise ValueError("limit must be between 1 and 10000")
+ persons = sorted(
+ (
+ p
+ for (team_id, person_id), p in self._persons_by_id.items()
+ if team_id == request.team_id
+ and person_id > request.after_person_id
+ and (not request.HasField("before_person_id") or person_id < request.before_person_id)
+ ),
+ key=lambda p: p.id,
+ )[:limit]
+ response = person_pb2.ListPersonsForTeamResponse()
+ for person in persons:
+ response.persons.add(
+ id=person.id,
+ uuid=person.uuid,
+ version=person.version,
+ is_deleted=person.is_deleted,
+ has_live_distinct_ids=any(
+ (request.team_id, d.distinct_id) not in self._tombstoned_distinct_ids
+ for d in self._distinct_ids.get((request.team_id, person.id), [])
+ ),
+ created_at_ms=person.created_at,
+ )
+ if len(persons) == limit:
+ response.next_after_person_id = persons[-1].id
+ return response
+
# ── Assertion helpers ────────────────────────────────────────────
def assert_called(self, method: str, *, times: int | None = None) -> list[_Call]:
diff --git a/posthog/personhog_client/proto/__init__.py b/posthog/personhog_client/proto/__init__.py
index 93c149fffd3f..27d7b9b4c7c1 100644
--- a/posthog/personhog_client/proto/__init__.py
+++ b/posthog/personhog_client/proto/__init__.py
@@ -109,5 +109,9 @@ from personhog.types.v1.person_pb2 import (
PersonVersionFloor,
EnsurePersonVersionFloorsRequest,
EnsurePersonVersionFloorsResponse,
+ GetDistinctIdRowsRequest,
+ GetDistinctIdRowsResponse,
+ ListPersonsForTeamRequest,
+ ListPersonsForTeamResponse,
PersonVersionFloorResult,
)
diff --git a/proto/personhog/replica/v1/replica.proto b/proto/personhog/replica/v1/replica.proto
index bae7dd6e3cf9..d69ce476750f 100644
--- a/proto/personhog/replica/v1/replica.proto
+++ b/proto/personhog/replica/v1/replica.proto
@@ -78,4 +78,8 @@ service PersonHogReplica {
// ClickHouse cleanup version floors (temporary: same routing caveat as deletes above)
rpc EnsurePersonVersionFloors(personhog.types.v1.EnsurePersonVersionFloorsRequest) returns (personhog.types.v1.EnsurePersonVersionFloorsResponse);
+
+ // Reads for the person consistency scan and repair. Rows include tombstones.
+ rpc GetDistinctIdRows(personhog.types.v1.GetDistinctIdRowsRequest) returns (personhog.types.v1.GetDistinctIdRowsResponse);
+ rpc ListPersonsForTeam(personhog.types.v1.ListPersonsForTeamRequest) returns (personhog.types.v1.ListPersonsForTeamResponse);
}
diff --git a/proto/personhog/service/v1/service.proto b/proto/personhog/service/v1/service.proto
index 9bf79728d4d1..aa20dd33ee64 100644
--- a/proto/personhog/service/v1/service.proto
+++ b/proto/personhog/service/v1/service.proto
@@ -105,4 +105,8 @@ service PersonHogService {
// Version floors for the ClickHouse cleanup jobs.
// The write goes to the primary: same routing caveat as DeletePersons above.
rpc EnsurePersonVersionFloors(personhog.types.v1.EnsurePersonVersionFloorsRequest) returns (personhog.types.v1.EnsurePersonVersionFloorsResponse);
+
+ // Reads for the person consistency scan and repair. Rows include tombstones.
+ rpc GetDistinctIdRows(personhog.types.v1.GetDistinctIdRowsRequest) returns (personhog.types.v1.GetDistinctIdRowsResponse);
+ rpc ListPersonsForTeam(personhog.types.v1.ListPersonsForTeamRequest) returns (personhog.types.v1.ListPersonsForTeamResponse);
}
diff --git a/proto/personhog/types/v1/person.proto b/proto/personhog/types/v1/person.proto
index 60cd040a639c..110b0d29e890 100644
--- a/proto/personhog/types/v1/person.proto
+++ b/proto/personhog/types/v1/person.proto
@@ -623,3 +623,54 @@ message FoldPersonDocumentResponse {
// effects for this person.
Person person = 1;
}
+
+// A persons-database mapping row, live or tombstoned, with the state of the person it points at.
+message DistinctIdRow {
+ string distinct_id = 1;
+ int64 person_id = 2;
+ // Absent for an orphan row whose person no longer exists.
+ optional string person_uuid = 3;
+ int64 version = 4;
+ bool is_deleted = 5;
+ // Absent for an orphan row whose person no longer exists.
+ optional bool person_is_deleted = 6;
+}
+
+message GetDistinctIdRowsRequest {
+ int64 team_id = 1;
+ // At most 1000. Distinct ids with no row are left out of the response.
+ repeated string distinct_ids = 2;
+ ReadOptions read_options = 3;
+}
+
+message GetDistinctIdRowsResponse {
+ repeated DistinctIdRow rows = 1;
+}
+
+// One persons-database person row, live or tombstoned, without properties.
+message PersonListEntry {
+ int64 id = 1;
+ string uuid = 2;
+ int64 version = 3;
+ bool is_deleted = 4;
+ // Whether any live mapping row points at this person.
+ bool has_live_distinct_ids = 5;
+ int64 created_at_ms = 6;
+}
+
+message ListPersonsForTeamRequest {
+ int64 team_id = 1;
+ // Keyset cursor: return persons with id > after_person_id, in id order.
+ int64 after_person_id = 2;
+ // Persons per page. 0 means 1000; at most 10000.
+ int64 limit = 3;
+ ReadOptions read_options = 4;
+ // When set, return only persons with id < before_person_id, so a caller can scan id ranges in parallel.
+ optional int64 before_person_id = 5;
+}
+
+message ListPersonsForTeamResponse {
+ repeated PersonListEntry persons = 1;
+ // Absent when this page is the last one.
+ optional int64 next_after_person_id = 2;
+}
diff --git a/rust/personhog-replica/.sqlx/query-7ba2cc608be36486391e7c2a7d65c520d6fa20200f22c8a878e7964212ec9333.json b/rust/personhog-replica/.sqlx/query-7ba2cc608be36486391e7c2a7d65c520d6fa20200f22c8a878e7964212ec9333.json
new file mode 100644
index 000000000000..28e7294bdb8c
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-7ba2cc608be36486391e7c2a7d65c520d6fa20200f22c8a878e7964212ec9333.json
@@ -0,0 +1,53 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT d.distinct_id as \"distinct_id!\", d.person_id as \"person_id!\", p.uuid as \"person_uuid?\",\n COALESCE(d.version, 0)::bigint as \"version!\", d.is_deleted as \"is_deleted!\",\n p.is_deleted as \"person_is_deleted?\"\n FROM posthog_persondistinctid d\n LEFT JOIN posthog_person p ON p.team_id = d.team_id AND p.id = d.person_id\n WHERE d.team_id = $1 AND d.distinct_id = ANY($2)\n ORDER BY d.distinct_id\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "distinct_id!",
+ "type_info": "Varchar"
+ },
+ {
+ "ordinal": 1,
+ "name": "person_id!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 2,
+ "name": "person_uuid?",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 3,
+ "name": "version!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 4,
+ "name": "is_deleted!",
+ "type_info": "Bool"
+ },
+ {
+ "ordinal": 5,
+ "name": "person_is_deleted?",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "TextArray"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ null,
+ false,
+ false
+ ]
+ },
+ "hash": "7ba2cc608be36486391e7c2a7d65c520d6fa20200f22c8a878e7964212ec9333"
+}
diff --git a/rust/personhog-replica/.sqlx/query-d7226032035f297431b53f4366ad79100e6e35659787633eb7075e47763b1f0e.json b/rust/personhog-replica/.sqlx/query-d7226032035f297431b53f4366ad79100e6e35659787633eb7075e47763b1f0e.json
new file mode 100644
index 000000000000..89d0b8477966
--- /dev/null
+++ b/rust/personhog-replica/.sqlx/query-d7226032035f297431b53f4366ad79100e6e35659787633eb7075e47763b1f0e.json
@@ -0,0 +1,55 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT p.id::bigint as \"id!\", p.uuid as \"uuid!\",\n COALESCE(p.version, 0)::bigint as \"version!\", p.is_deleted as \"is_deleted!\",\n p.created_at as \"created_at!\",\n EXISTS (\n SELECT 1 FROM posthog_persondistinctid d\n WHERE d.team_id = p.team_id AND d.person_id = p.id AND d.is_deleted = false\n ) as \"has_live_distinct_ids!\"\n FROM posthog_person p\n WHERE p.team_id = $1 AND p.id > $2 AND ($4::bigint IS NULL OR p.id < $4)\n ORDER BY p.id\n LIMIT $3\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "id!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 1,
+ "name": "uuid!",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 2,
+ "name": "version!",
+ "type_info": "Int8"
+ },
+ {
+ "ordinal": 3,
+ "name": "is_deleted!",
+ "type_info": "Bool"
+ },
+ {
+ "ordinal": 4,
+ "name": "created_at!",
+ "type_info": "Timestamptz"
+ },
+ {
+ "ordinal": 5,
+ "name": "has_live_distinct_ids!",
+ "type_info": "Bool"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Int4",
+ "Int8",
+ "Int8",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ null,
+ false,
+ false,
+ null
+ ]
+ },
+ "hash": "d7226032035f297431b53f4366ad79100e6e35659787633eb7075e47763b1f0e"
+}
diff --git a/rust/personhog-replica/src/service/mod.rs b/rust/personhog-replica/src/service/mod.rs
index d97090f4161d..101a68facb19 100644
--- a/rust/personhog-replica/src/service/mod.rs
+++ b/rust/personhog-replica/src/service/mod.rs
@@ -23,15 +23,15 @@ use personhog_proto::personhog::types::v1::{
DeleteHashKeyOverridesByTeamsResponse, DeletePersonsBatchForTeamRequest,
DeletePersonsBatchForTeamResponse, DeletePersonsMode as ProtoDeletePersonsMode,
DeletePersonsRequest, DeletePersonsResponse, DeleteTombstonedPersonsRequest,
- DeleteTombstonedPersonsResponse, DistinctIdWithVersion, EnsurePersonVersionFloorsRequest,
- EnsurePersonVersionFloorsResponse, GetDistinctIdsForPersonRequest,
- GetDistinctIdsForPersonResponse, GetDistinctIdsForPersonsRequest,
- GetDistinctIdsForPersonsResponse, GetGroupRequest, GetGroupResponse,
- GetGroupTypeMappingByDashboardIdRequest, GetGroupTypeMappingByDashboardIdResponse,
- GetGroupTypeMappingsByProjectIdRequest, GetGroupTypeMappingsByProjectIdsRequest,
- GetGroupTypeMappingsByTeamIdRequest, GetGroupTypeMappingsByTeamIdsRequest,
- GetGroupsBatchRequest, GetGroupsBatchResponse, GetGroupsRequest,
- GetHashKeyOverrideContextRequest, GetHashKeyOverrideContextResponse,
+ DeleteTombstonedPersonsResponse, DistinctIdRow as ProtoDistinctIdRow, DistinctIdWithVersion,
+ EnsurePersonVersionFloorsRequest, EnsurePersonVersionFloorsResponse, GetDistinctIdRowsRequest,
+ GetDistinctIdRowsResponse, GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
+ GetDistinctIdsForPersonsRequest, GetDistinctIdsForPersonsResponse, GetGroupRequest,
+ GetGroupResponse, GetGroupTypeMappingByDashboardIdRequest,
+ GetGroupTypeMappingByDashboardIdResponse, GetGroupTypeMappingsByProjectIdRequest,
+ GetGroupTypeMappingsByProjectIdsRequest, GetGroupTypeMappingsByTeamIdRequest,
+ GetGroupTypeMappingsByTeamIdsRequest, GetGroupsBatchRequest, GetGroupsBatchResponse,
+ GetGroupsRequest, GetHashKeyOverrideContextRequest, GetHashKeyOverrideContextResponse,
GetPersonByDistinctIdRequest, GetPersonByUuidRequest, GetPersonRequest, GetPersonResponse,
GetPersonTombstonesRequest, GetPersonTombstonesResponse, GetPersonsByDistinctIdsInTeamRequest,
GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest, GetPersonsRequest, GroupKey,
@@ -40,7 +40,8 @@ use personhog_proto::personhog::types::v1::{
HashKeyOverride, HashKeyOverrideContext as ProtoHashKeyOverrideContext,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse,
- ListPersonTombstoneQueueRequest, ListPersonTombstoneQueueResponse, PersonDistinctIds,
+ ListPersonTombstoneQueueRequest, ListPersonTombstoneQueueResponse, ListPersonsForTeamRequest,
+ ListPersonsForTeamResponse, PersonDistinctIds, PersonListEntry as ProtoPersonListEntry,
PersonTombstoneQueueEntry, PersonVersionFloorResult, PersonWithDistinctIds,
PersonWithTeamDistinctId, PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse,
PersonsResponse, SetPersonDistinctIdVersionFloorRequest,
@@ -66,6 +67,9 @@ const MAX_SPLIT_BATCH_SIZE: usize = 250;
// Version floors also run in one transaction holding
// row locks, so they take the same cap as splits.
const MAX_LOCKED_WRITE_BATCH_SIZE: usize = 250;
+const MAX_DISTINCT_ID_ROWS_SIZE: usize = 1000;
+const DEFAULT_LIST_PERSONS_LIMIT: i64 = 1000;
+const MAX_LIST_PERSONS_LIMIT: i64 = 10_000;
use consistency::{reject_strong_consistency, to_storage_consistency};
use error::log_and_convert_error;
@@ -1592,6 +1596,84 @@ impl PersonHogReplica for PersonHogReplicaService {
.collect(),
}))
}
+ async fn get_distinct_id_rows(
+ &self,
+ request: Request<GetDistinctIdRowsRequest>,
+ ) -> Result<Response<GetDistinctIdRowsResponse>, Status> {
+ let req = request.into_inner();
+ if req.distinct_ids.len() > MAX_DISTINCT_ID_ROWS_SIZE {
+ return Err(Status::invalid_argument(format!(
+ "Maximum {MAX_DISTINCT_ID_ROWS_SIZE} distinct ids per request"
+ )));
+ }
+ let consistency = to_storage_consistency(&req.read_options);
+ let rows = self
+ .storage
+ .get_distinct_id_rows(req.team_id, &req.distinct_ids, consistency)
+ .await
+ .map_err(|e| log_and_convert_error(e, "get_distinct_id_rows"))?;
+
+ Ok(Response::new(GetDistinctIdRowsResponse {
+ rows: rows
+ .into_iter()
+ .map(|row| ProtoDistinctIdRow {
+ distinct_id: row.distinct_id,
+ person_id: row.person_id,
+ person_uuid: row.person_uuid.map(|u| u.to_string()),
+ version: row.version,
+ is_deleted: row.is_deleted,
+ person_is_deleted: row.person_is_deleted,
+ })
+ .collect(),
+ }))
+ }
+
+ async fn list_persons_for_team(
+ &self,
+ request: Request<ListPersonsForTeamRequest>,
+ ) -> Result<Response<ListPersonsForTeamResponse>, Status> {
+ let req = request.into_inner();
+ reject_strong_consistency(&req.read_options)?;
+ let limit = match req.limit {
+ 0 => DEFAULT_LIST_PERSONS_LIMIT,
+ l if (1..=MAX_LIST_PERSONS_LIMIT).contains(&l) => l,
+ _ => {
+ return Err(Status::invalid_argument(format!(
+ "limit must be between 1 and {MAX_LIST_PERSONS_LIMIT}"
+ )))
+ }
+ };
+ let persons = self
+ .storage
+ .list_persons_for_team(
+ req.team_id,
+ req.after_person_id,
+ req.before_person_id,
+ limit,
+ )
+ .await
+ .map_err(|e| log_and_convert_error(e, "list_persons_for_team"))?;
+
+ let next_after_person_id = if persons.len() as i64 >= limit {
+ persons.last().map(|p| p.id)
+ } else {
+ None
+ };
+ Ok(Response::new(ListPersonsForTeamResponse {
+ persons: persons
+ .into_iter()
+ .map(|p| ProtoPersonListEntry {
+ id: p.id,
+ uuid: p.uuid.to_string(),
+ version: p.version,
+ is_deleted: p.is_deleted,
+ has_live_distinct_ids: p.has_live_distinct_ids,
+ created_at_ms: p.created_at.timestamp_millis(),
+ })
+ .collect(),
+ next_after_person_id,
+ }))
+ }
}
#[allow(clippy::result_large_err)]
diff --git a/rust/personhog-replica/src/service/tests/mocks.rs b/rust/personhog-replica/src/service/tests/mocks.rs
index c55a6abf2fe4..c2bd169f8794 100644
--- a/rust/personhog-replica/src/service/tests/mocks.rs
+++ b/rust/personhog-replica/src/service/tests/mocks.rs
@@ -181,6 +181,15 @@ impl storage::PersonLookup for FailingStorage {
) -> storage::StorageResult<Vec<storage::PersonVersionFloorResult>> {
Err(self.error.clone())
}
+ async fn list_persons_for_team(
+ &self,
+ _team_id: i64,
+ _after_person_id: i64,
+ _before_person_id: Option<i64>,
+ _limit: i64,
+ ) -> storage::StorageResult<Vec<storage::types::PersonListEntry>> {
+ Err(self.error.clone())
+ }
}
#[async_trait]
@@ -205,6 +214,14 @@ impl storage::DistinctIdLookup for FailingStorage {
) -> storage::StorageResult<Vec<storage::DistinctIdMapping>> {
Err(self.error.clone())
}
+ async fn get_distinct_id_rows(
+ &self,
+ _team_id: i64,
+ _distinct_ids: &[String],
+ _consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdRow>> {
+ Err(self.error.clone())
+ }
}
#[async_trait]
@@ -602,6 +619,15 @@ impl storage::PersonLookup for SuccessStorage {
) -> storage::StorageResult<Vec<storage::PersonVersionFloorResult>> {
Ok(Vec::new())
}
+ async fn list_persons_for_team(
+ &self,
+ _team_id: i64,
+ _after_person_id: i64,
+ _before_person_id: Option<i64>,
+ _limit: i64,
+ ) -> storage::StorageResult<Vec<storage::types::PersonListEntry>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -626,6 +652,14 @@ impl storage::DistinctIdLookup for SuccessStorage {
) -> storage::StorageResult<Vec<storage::DistinctIdMapping>> {
Ok(Vec::new())
}
+ async fn get_distinct_id_rows(
+ &self,
+ _team_id: i64,
+ _distinct_ids: &[String],
+ _consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdRow>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -1082,6 +1116,15 @@ impl storage::PersonLookup for PopulatedStorage {
) -> storage::StorageResult<Vec<storage::PersonVersionFloorResult>> {
Ok(Vec::new())
}
+ async fn list_persons_for_team(
+ &self,
+ _team_id: i64,
+ _after_person_id: i64,
+ _before_person_id: Option<i64>,
+ _limit: i64,
+ ) -> storage::StorageResult<Vec<storage::types::PersonListEntry>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -1106,6 +1149,14 @@ impl storage::DistinctIdLookup for PopulatedStorage {
) -> storage::StorageResult<Vec<storage::DistinctIdMapping>> {
Ok(Vec::new())
}
+ async fn get_distinct_id_rows(
+ &self,
+ _team_id: i64,
+ _distinct_ids: &[String],
+ _consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdRow>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -1538,6 +1589,15 @@ impl storage::PersonLookup for ConsistencyTrackingStorage {
) -> storage::StorageResult<Vec<storage::PersonVersionFloorResult>> {
Ok(Vec::new())
}
+ async fn list_persons_for_team(
+ &self,
+ _team_id: i64,
+ _after_person_id: i64,
+ _before_person_id: Option<i64>,
+ _limit: i64,
+ ) -> storage::StorageResult<Vec<storage::types::PersonListEntry>> {
+ Ok(Vec::new())
+ }
}
#[async_trait]
@@ -1564,6 +1624,15 @@ impl storage::DistinctIdLookup for ConsistencyTrackingStorage {
self.record(consistency);
Ok(Vec::new())
}
+ async fn get_distinct_id_rows(
+ &self,
+ _team_id: i64,
+ _distinct_ids: &[String],
+ consistency: storage::postgres::ConsistencyLevel,
+ ) -> storage::StorageResult<Vec<storage::types::DistinctIdRow>> {
+ self.record(consistency);
+ Ok(Vec::new())
+ }
}
#[async_trait]
diff --git a/rust/personhog-replica/src/storage/postgres/distinct_id.rs b/rust/personhog-replica/src/storage/postgres/distinct_id.rs
index 0f0ff0862263..278125ffec90 100644
--- a/rust/personhog-replica/src/storage/postgres/distinct_id.rs
+++ b/rust/personhog-replica/src/storage/postgres/distinct_id.rs
@@ -8,7 +8,7 @@ use super::{
};
use crate::storage::error::{StorageError, StorageResult};
use crate::storage::traits::DistinctIdLookup;
-use crate::storage::types::{DistinctIdMapping, DistinctIdWithVersion};
+use crate::storage::types::{DistinctIdMapping, DistinctIdRow, DistinctIdWithVersion};
#[async_trait]
impl DistinctIdLookup for PostgresStorage {
@@ -242,4 +242,55 @@ impl DistinctIdLookup for PostgresStorage {
Ok(rows)
}
+
+ async fn get_distinct_id_rows(
+ &self,
+ team_id: i64,
+ distinct_ids: &[String],
+ consistency: ConsistencyLevel,
+ ) -> StorageResult<Vec<DistinctIdRow>> {
+ if distinct_ids.is_empty() {
+ return Ok(Vec::new());
+ }
+ let pool_label = PostgresStorage::bulk_pool_label(consistency);
+ let labels = [
+ ("operation".to_string(), "get_distinct_id_rows".to_string()),
+ ("pool".to_string(), pool_label.to_string()),
+ ("client".to_string(), current_client_name().to_string()),
+ ("method".to_string(), current_method_name().to_string()),
+ ];
+ let _timer = common_metrics::timing_guard(DB_QUERY_DURATION, &labels);
+
+ let pool = self.bulk_pool_for_consistency(consistency);
+ let mut conn = PostgresStorage::acquire_timed(pool, pool_label).await?;
+ // LEFT JOIN: the mapping foreign key is NOT VALID, so an orphan row can outlive its person.
+ let rows = sqlx::query!(
+ r#"
+ SELECT d.distinct_id as "distinct_id!", d.person_id as "person_id!", p.uuid as "person_uuid?",
+ COALESCE(d.version, 0)::bigint as "version!", d.is_deleted as "is_deleted!",
+ p.is_deleted as "person_is_deleted?"
+ FROM posthog_persondistinctid d
+ LEFT JOIN posthog_person p ON p.team_id = d.team_id AND p.id = d.person_id
+ WHERE d.team_id = $1 AND d.distinct_id = ANY($2)
+ ORDER BY d.distinct_id
+ "#,
+ team_id as i32,
+ distinct_ids
+ )
+ .fetch_all(&mut *conn)
+ .await?
+ .into_iter()
+ .map(|r| DistinctIdRow {
+ distinct_id: r.distinct_id,
+ person_id: r.person_id,
+ person_uuid: r.person_uuid,
+ version: r.version,
+ is_deleted: r.is_deleted,
+ person_is_deleted: r.person_is_deleted,
+ })
+ .collect::<Vec<_>>();
+
+ common_metrics::histogram(DB_ROWS_RETURNED, &labels, rows.len() as f64);
+ Ok(rows)
+ }
}
diff --git a/rust/personhog-replica/src/storage/postgres/person.rs b/rust/personhog-replica/src/storage/postgres/person.rs
index 147b34d2460d..dfd5c076641f 100644
--- a/rust/personhog-replica/src/storage/postgres/person.rs
+++ b/rust/personhog-replica/src/storage/postgres/person.rs
@@ -13,9 +13,9 @@ use super::{PostgresStorage, DB_BULK_CHUNKS, DB_QUERY_DURATION, DB_ROWS_RETURNED
use crate::storage::error::{StorageError, StorageResult};
use crate::storage::traits::PersonLookup;
use crate::storage::types::{
- DeletePersonsOutcome, Person, PersonTombstoneQueueEntry, PersonVersionFloorResult, SplitResult,
- TombstoneTarget, TombstonedDeleteOutcome, TombstonedDistinctId, TombstonedPerson,
- VersionFloorOutcome,
+ DeletePersonsOutcome, Person, PersonListEntry, PersonTombstoneQueueEntry,
+ PersonVersionFloorResult, SplitResult, TombstoneTarget, TombstonedDeleteOutcome,
+ TombstonedDistinctId, TombstonedPerson, VersionFloorOutcome,
};
/// Version offset for split person/PDI rows — mirrors the Django convention.
@@ -530,13 +530,14 @@ impl PersonLookup for PostgresStorage {
}
let labels = [
("operation".to_string(), "get_person_tombstones".to_string()),
- ("pool".to_string(), "primary".to_string()),
+ ("pool".to_string(), "bulk_primary".to_string()),
("client".to_string(), current_client_name().to_string()),
("method".to_string(), current_method_name().to_string()),
];
let _timer = common_metrics::timing_guard(DB_QUERY_DURATION, &labels);
- let mut conn = PostgresStorage::acquire_timed(&self.primary_pool, "primary").await?;
+ let mut conn =
+ PostgresStorage::acquire_timed(&self.bulk_primary_pool, "bulk_primary").await?;
let mut tx = sqlx::Connection::begin(&mut *conn).await?;
sqlx::query("SET TRANSACTION ISOLATION LEVEL REPEATABLE READ, READ ONLY")
.execute(&mut *tx)
@@ -1430,6 +1431,58 @@ impl PersonLookup for PostgresStorage {
);
Ok(results)
}
+ async fn list_persons_for_team(
+ &self,
+ team_id: i64,
+ after_person_id: i64,
+ before_person_id: Option<i64>,
+ limit: i64,
+ ) -> StorageResult<Vec<PersonListEntry>> {
+ let labels = [
+ ("operation".to_string(), "list_persons_for_team".to_string()),
+ ("pool".to_string(), "bulk_replica".to_string()),
+ ("client".to_string(), current_client_name().to_string()),
+ ("method".to_string(), current_method_name().to_string()),
+ ];
+ let _timer = common_metrics::timing_guard(DB_QUERY_DURATION, &labels);
+
+ let mut conn =
+ PostgresStorage::acquire_timed(&self.bulk_replica_pool, "bulk_replica").await?;
+ let rows = sqlx::query!(
+ r#"
+ SELECT p.id::bigint as "id!", p.uuid as "uuid!",
+ COALESCE(p.version, 0)::bigint as "version!", p.is_deleted as "is_deleted!",
+ p.created_at as "created_at!",
+ EXISTS (
+ SELECT 1 FROM posthog_persondistinctid d
+ WHERE d.team_id = p.team_id AND d.person_id = p.id AND d.is_deleted = false
+ ) as "has_live_distinct_ids!"
+ FROM posthog_person p
+ WHERE p.team_id = $1 AND p.id > $2 AND ($4::bigint IS NULL OR p.id < $4)
+ ORDER BY p.id
+ LIMIT $3
+ "#,
+ team_id as i32,
+ after_person_id,
+ limit,
+ before_person_id
+ )
+ .fetch_all(&mut *conn)
+ .await?
+ .into_iter()
+ .map(|r| PersonListEntry {
+ id: r.id,
+ uuid: r.uuid,
+ version: r.version,
+ is_deleted: r.is_deleted,
+ has_live_distinct_ids: r.has_live_distinct_ids,
+ created_at: r.created_at,
+ })
+ .collect::<Vec<_>>();
+
+ common_metrics::histogram(DB_ROWS_RETURNED, &labels, rows.len() as f64);
+ Ok(rows)
+ }
}
fn bulk_primary_labels(operation: &str) -> [(String, String); 4] {
diff --git a/rust/personhog-replica/src/storage/traits/distinct_id.rs b/rust/personhog-replica/src/storage/traits/distinct_id.rs
index 5b38eab998ab..13503e7d2bde 100644
--- a/rust/personhog-replica/src/storage/traits/distinct_id.rs
+++ b/rust/personhog-replica/src/storage/traits/distinct_id.rs
@@ -2,7 +2,7 @@ use async_trait::async_trait;
use crate::storage::error::StorageResult;
use crate::storage::postgres::ConsistencyLevel;
-use crate::storage::types::{DistinctIdMapping, DistinctIdWithVersion};
+use crate::storage::types::{DistinctIdMapping, DistinctIdRow, DistinctIdWithVersion};
/// Distinct ID operations - fetching distinct IDs for persons
#[async_trait]
@@ -23,4 +23,12 @@ pub trait DistinctIdLookup: Send + Sync {
consistency: ConsistencyLevel,
limit_per_person: Option<i64>,
) -> StorageResult<Vec<DistinctIdMapping>>;
+
+ /// The mapping rows for `distinct_ids`, live or tombstoned, in distinct id order. Missing ids are left out.
+ async fn get_distinct_id_rows(
+ &self,
+ team_id: i64,
+ distinct_ids: &[String],
+ consistency: ConsistencyLevel,
+ ) -> StorageResult<Vec<DistinctIdRow>>;
}
diff --git a/rust/personhog-replica/src/storage/traits/person.rs b/rust/personhog-replica/src/storage/traits/person.rs
index 81bb4a2d87fb..6c064bf2311e 100644
--- a/rust/personhog-replica/src/storage/traits/person.rs
+++ b/rust/personhog-replica/src/storage/traits/person.rs
@@ -3,8 +3,9 @@ use uuid::Uuid;
use crate::storage::error::StorageResult;
use crate::storage::types::{
- DeletePersonsOutcome, Person, PersonTombstoneQueueEntry, PersonVersionFloorResult, SplitResult,
- TombstoneTarget, TombstonedDeleteOutcome, TombstonedPerson,
+ DeletePersonsOutcome, Person, PersonListEntry, PersonTombstoneQueueEntry,
+ PersonVersionFloorResult, SplitResult, TombstoneTarget, TombstonedDeleteOutcome,
+ TombstonedPerson,
};
/// Person lookup operations by ID, UUID, and distinct ID
@@ -156,4 +157,14 @@ pub trait PersonLookup: Send + Sync {
team_id: i64,
floors: &[(Uuid, i64)],
) -> StorageResult<Vec<PersonVersionFloorResult>>;
+
+ /// One page of a team's persons, live and tombstoned, with id above `after_person_id` and below
+ /// `before_person_id` when given, in id order.
+ async fn list_persons_for_team(
+ &self,
+ team_id: i64,
+ after_person_id: i64,
+ before_person_id: Option<i64>,
+ limit: i64,
+ ) -> StorageResult<Vec<PersonListEntry>>;
}
diff --git a/rust/personhog-replica/src/storage/types/person.rs b/rust/personhog-replica/src/storage/types/person.rs
index c37f2946242e..1c63ac86459b 100644
--- a/rust/personhog-replica/src/storage/types/person.rs
+++ b/rust/personhog-replica/src/storage/types/person.rs
@@ -16,6 +16,29 @@ pub struct DistinctIdWithVersion {
pub id: i64,
}
+/// A mapping row, live or tombstoned, with the state of the person it points at. The person fields
+/// are None for an orphan row whose person no longer exists.
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct DistinctIdRow {
+ pub distinct_id: String,
+ pub person_id: i64,
+ pub person_uuid: Option<Uuid>,
+ pub version: i64,
+ pub is_deleted: bool,
+ pub person_is_deleted: Option<bool>,
+}
+
+/// A person row, live or tombstoned, without properties.
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct PersonListEntry {
+ pub id: i64,
+ pub uuid: Uuid,
+ pub version: i64,
+ pub is_deleted: bool,
+ pub has_live_distinct_ids: bool,
+ pub created_at: chrono::DateTime<chrono::Utc>,
+}
+
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct TombstonedDistinctId {
pub distinct_id: String,
diff --git a/rust/personhog-replica/tests/service_tests.rs b/rust/personhog-replica/tests/service_tests.rs
index 6e0bdffba185..9cdcc855586d 100644
--- a/rust/personhog-replica/tests/service_tests.rs
+++ b/rust/personhog-replica/tests/service_tests.rs
@@ -3,19 +3,19 @@ mod common;
use common::{TestContext, TestPerson};
use personhog_proto::personhog::replica::v1::person_hog_replica_server::PersonHogReplica;
use personhog_proto::personhog::types::v1::{
- CheckCohortMembershipRequest, CountGroupTypeMappingsRequest,
+ CheckCohortMembershipRequest, ConsistencyLevel, CountGroupTypeMappingsRequest,
DeleteHashKeyOverridesByTeamsRequest, DeletePersonsBatchForTeamRequest, DeletePersonsMode,
DeletePersonsRequest, DeleteTombstonedPersonsRequest, DeleteTombstonedPersonsResponse,
- EnsurePersonVersionFloorsRequest, GetDistinctIdsForPersonRequest,
+ EnsurePersonVersionFloorsRequest, GetDistinctIdRowsRequest, GetDistinctIdsForPersonRequest,
GetDistinctIdsForPersonsRequest, GetGroupRequest, GetGroupTypeMappingsByProjectIdRequest,
GetGroupTypeMappingsByProjectIdsRequest, GetGroupTypeMappingsByTeamIdRequest,
GetGroupTypeMappingsByTeamIdsRequest, GetGroupsBatchRequest, GetGroupsRequest,
GetHashKeyOverrideContextRequest, GetPersonByDistinctIdRequest, GetPersonByUuidRequest,
GetPersonRequest, GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest,
- GetPersonsByUuidsRequest, GetPersonsRequest, GroupIdentifier, GroupKey, PersonVersionFloor,
- PersonVersionFloorResult, SetPersonDistinctIdVersionFloorRequest, SetPersonVersionFloorRequest,
- SplitPersonRequest, TeamDistinctId, UpsertHashKeyOverridesRequest, VersionBoundedPerson,
- VersionFloorOutcome,
+ GetPersonsByUuidsRequest, GetPersonsRequest, GroupIdentifier, GroupKey,
+ ListPersonsForTeamRequest, PersonVersionFloor, PersonVersionFloorResult, ReadOptions,
+ SetPersonDistinctIdVersionFloorRequest, SetPersonVersionFloorRequest, SplitPersonRequest,
+ TeamDistinctId, UpsertHashKeyOverridesRequest, VersionBoundedPerson, VersionFloorOutcome,
};
use personhog_replica::service::PersonHogReplicaService;
use rstest::rstest;
@@ -1769,3 +1769,210 @@ async fn test_ensure_person_version_floors_maps_results_to_proto() {
ctx.cleanup().await.ok();
}
+
+fn read_options(strong: bool) -> Option<ReadOptions> {
+ strong.then(|| ReadOptions {
+ consistency: ConsistencyLevel::Strong as i32,
+ ..Default::default()
+ })
+}
+
+#[rstest]
+#[case::eventual(false)]
+#[case::strong(true)]
+#[tokio::test]
+async fn test_get_distinct_id_rows_reports_tombstones_and_owner_state(#[case] strong: bool) {
+ let ctx = ServiceTestContext::new().await;
+ let live = ctx.insert_person("rows_live", None).await.unwrap();
+ ctx.add_distinct_id_to_person(live.id, "rows_live_gone")
+ .await
+ .unwrap();
+ sqlx::query(
+ "UPDATE posthog_persondistinctid SET is_deleted = true, version = 4 WHERE team_id = $1 AND distinct_id = 'rows_live_gone'",
+ )
+ .bind(ctx.team_id)
+ .execute(&ctx.pool)
+ .await
+ .unwrap();
+ let deleted = ctx.insert_person("rows_deleted", None).await.unwrap();
+ ctx.add_distinct_id_to_person(deleted.id, "rows_stray")
+ .await
+ .unwrap();
+ ctx.tombstone_person(deleted.id, Some("rows_stray"))
+ .await
+ .unwrap();
+
+ let rows = ctx
+ .service
+ .get_distinct_id_rows(Request::new(GetDistinctIdRowsRequest {
+ team_id: ctx.team_id,
+ distinct_ids: [
+ "rows_stray",
+ "rows_live",
+ "rows_missing",
+ "rows_live_gone",
+ "rows_deleted",
+ ]
+ .map(String::from)
+ .to_vec(),
+ read_options: read_options(strong),
+ }))
+ .await
+ .expect("RPC failed")
+ .into_inner()
+ .rows;
+
+ let got: Vec<(&str, i64, bool, Option<bool>)> = rows
+ .iter()
+ .map(|r| {
+ (
+ r.distinct_id.as_str(),
+ r.version,
+ r.is_deleted,
+ r.person_is_deleted,
+ )
+ })
+ .collect();
+ assert_eq!(
+ got,
+ vec![
+ ("rows_deleted", 1, true, Some(true)),
+ ("rows_live", 0, false, Some(false)),
+ ("rows_live_gone", 4, true, Some(false)),
+ ("rows_stray", 0, false, Some(true)),
+ ]
+ );
+ let deleted_uuid = deleted.uuid.to_string();
+ let live_uuid = live.uuid.to_string();
+ for row in &rows {
+ let (expected_id, expected_uuid) = if row.distinct_id.starts_with("rows_live") {
+ (live.id, &live_uuid)
+ } else {
+ (deleted.id, &deleted_uuid)
+ };
+ assert_eq!(row.person_id, expected_id);
+ assert_eq!(row.person_uuid.as_ref(), Some(expected_uuid));
+ }
+
+ ctx.cleanup().await.ok();
+}
+
+#[tokio::test]
+async fn test_get_distinct_id_rows_rejects_more_than_1000_ids() {
+ let ctx = ServiceTestContext::new().await;
+ let status = ctx
+ .service
+ .get_distinct_id_rows(Request::new(GetDistinctIdRowsRequest {
+ team_id: ctx.team_id,
+ distinct_ids: (0..1001).map(|i| format!("too_many_{i}")).collect(),
+ read_options: None,
+ }))
+ .await
+ .expect_err("over the cap");
+ assert_eq!(status.code(), tonic::Code::InvalidArgument);
+
+ ctx.cleanup().await.ok();
+}
+
+#[tokio::test]
+async fn test_list_persons_for_team_pages_in_id_order_with_tombstones() {
+ let ctx = ServiceTestContext::new().await;
+ let with_ids = ctx.insert_person("list_with_ids", None).await.unwrap();
+ let tombstoned = ctx.insert_person("list_tombstoned", None).await.unwrap();
+ ctx.tombstone_person(tombstoned.id, None).await.unwrap();
+ let without_ids = ctx.insert_person("list_without_ids", None).await.unwrap();
+ ctx.delete_distinct_ids_of(without_ids.id).await.unwrap();
+ let mut expected = vec![
+ (with_ids.id, with_ids.uuid.to_string(), 0, false, true),
+ (tombstoned.id, tombstoned.uuid.to_string(), 1, true, false),
+ (
+ without_ids.id,
+ without_ids.uuid.to_string(),
+ 0,
+ false,
+ false,
+ ),
+ ];
+ expected.sort();
+
+ let mut page_sizes = Vec::new();
+ let mut listed = Vec::new();
+ let mut after_person_id = 0;
+ loop {
+ let page = ctx
+ .service
+ .list_persons_for_team(Request::new(ListPersonsForTeamRequest {
+ team_id: ctx.team_id,
+ after_person_id,
+ limit: 2,
+ read_options: None,
+ before_person_id: None,
+ }))
+ .await
+ .expect("RPC failed")
+ .into_inner();
+ page_sizes.push(page.persons.len());
+ for p in &page.persons {
+ assert!(p.created_at_ms > 0);
+ listed.push((
+ p.id,
+ p.uuid.clone(),
+ p.version,
+ p.is_deleted,
+ p.has_live_distinct_ids,
+ ));
+ }
+ match page.next_after_person_id {
+ Some(id) => after_person_id = id,
+ None => break,
+ }
+ }
+
+ assert_eq!(page_sizes, vec![2, 1]);
+ assert_eq!(listed, expected);
+
+ let bounded = ctx
+ .service
+ .list_persons_for_team(Request::new(ListPersonsForTeamRequest {
+ team_id: ctx.team_id,
+ after_person_id: 0,
+ limit: 0,
+ read_options: None,
+ before_person_id: Some(expected[2].0),
+ }))
+ .await
+ .expect("RPC failed")
+ .into_inner();
+ let bounded_ids: Vec<i64> = bounded.persons.iter().map(|p| p.id).collect();
+ assert_eq!(bounded_ids, vec![expected[0].0, expected[1].0]);
+ assert_eq!(bounded.next_after_person_id, None);
+
+ ctx.cleanup().await.ok();
+}
+
+#[rstest]
+#[case::negative_limit(-1, false, tonic::Code::InvalidArgument)]
+#[case::limit_over_the_cap(10_001, false, tonic::Code::InvalidArgument)]
+#[case::strong_consistency(0, true, tonic::Code::FailedPrecondition)]
+#[tokio::test]
+async fn test_list_persons_for_team_rejects_bad_requests(
+ #[case] limit: i64,
+ #[case] strong: bool,
+ #[case] code: tonic::Code,
+) {
+ let ctx = ServiceTestContext::new().await;
+ let status = ctx
+ .service
+ .list_persons_for_team(Request::new(ListPersonsForTeamRequest {
+ team_id: ctx.team_id,
+ after_person_id: 0,
+ limit,
+ read_options: read_options(strong),
+ before_person_id: None,
+ }))
+ .await
+ .expect_err("rejected");
+ assert_eq!(status.code(), code);
+
+ ctx.cleanup().await.ok();
+}
diff --git a/rust/personhog-router/src/proxy.rs b/rust/personhog-router/src/proxy.rs
index b5f3d07787b5..c56a4928bfde 100644
--- a/rust/personhog-router/src/proxy.rs
+++ b/rust/personhog-router/src/proxy.rs
@@ -47,6 +47,7 @@ pub const KNOWN_METHODS: &[&str] = &[
"FencePerson",
"FencePersons",
"FoldPersonDocument",
+ "GetDistinctIdRows",
"GetDistinctIdsForPerson",
"GetDistinctIdsForPersons",
"GetGroup",
@@ -70,6 +71,7 @@ pub const KNOWN_METHODS: &[&str] = &[
"ListCohortMemberIds",
"ListGroups",
"ListPersonTombstoneQueue",
+ "ListPersonsForTeam",
"ReleaseFence",
"ReleaseFences",
"SetPersonDistinctIdVersionFloor",
diff --git a/rust/personhog-router/tests/common/mod.rs b/rust/personhog-router/tests/common/mod.rs
index c9312a2c24ad..de96f4fffeda 100644
--- a/rust/personhog-router/tests/common/mod.rs
+++ b/rust/personhog-router/tests/common/mod.rs
@@ -36,8 +36,8 @@ use personhog_proto::personhog::types::v1::{
DeleteHashKeyOverridesByTeamsResponse, DeletePersonsBatchForTeamRequest,
DeletePersonsBatchForTeamResponse, DeletePersonsRequest, DeletePersonsResponse,
DeleteTombstonedPersonsRequest, DeleteTombstonedPersonsResponse,
- EnsurePersonVersionFloorsRequest, EnsurePersonVersionFloorsResponse,
- GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
+ EnsurePersonVersionFloorsRequest, EnsurePersonVersionFloorsResponse, GetDistinctIdRowsRequest,
+ GetDistinctIdRowsResponse, GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
GetDistinctIdsForPersonsRequest, GetDistinctIdsForPersonsResponse, GetGroupRequest,
GetGroupResponse, GetGroupTypeMappingByDashboardIdRequest,
GetGroupTypeMappingByDashboardIdResponse, GetGroupTypeMappingsByProjectIdRequest,
@@ -50,13 +50,14 @@ use personhog_proto::personhog::types::v1::{
GroupTypeMappingsBatchResponse, GroupTypeMappingsResponse, GroupsResponse,
InsertCohortMembersRequest, InsertCohortMembersResponse, ListCohortMemberIdsRequest,
ListCohortMemberIdsResponse, ListGroupsRequest, ListGroupsResponse,
- ListPersonTombstoneQueueRequest, ListPersonTombstoneQueueResponse, Person,
- PersonsByDistinctIdsInTeamResponse, PersonsByDistinctIdsResponse, PersonsResponse,
- SetPersonDistinctIdVersionFloorRequest, SetPersonDistinctIdVersionFloorResponse,
- SetPersonVersionFloorRequest, SetPersonVersionFloorResponse, SplitPersonRequest,
- SplitPersonResponse, UpdateGroupRequest, UpdateGroupResponse, UpdateGroupTypeMappingRequest,
- UpdateGroupTypeMappingResponse, UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse,
- UpsertHashKeyOverridesRequest, UpsertHashKeyOverridesResponse,
+ ListPersonTombstoneQueueRequest, ListPersonTombstoneQueueResponse, ListPersonsForTeamRequest,
+ ListPersonsForTeamResponse, Person, PersonsByDistinctIdsInTeamResponse,
+ PersonsByDistinctIdsResponse, PersonsResponse, SetPersonDistinctIdVersionFloorRequest,
+ SetPersonDistinctIdVersionFloorResponse, SetPersonVersionFloorRequest,
+ SetPersonVersionFloorResponse, SplitPersonRequest, SplitPersonResponse, UpdateGroupRequest,
+ UpdateGroupResponse, UpdateGroupTypeMappingRequest, UpdateGroupTypeMappingResponse,
+ UpdatePersonPropertiesRequest, UpdatePersonPropertiesResponse, UpsertHashKeyOverridesRequest,
+ UpsertHashKeyOverridesResponse,
};
use personhog_router::backend::{
ChannelBackend, DnsBackendConfig, LeaderBackend, LeaderBackendConfig, StashTable,
@@ -546,6 +547,20 @@ impl PersonHogReplica for TestReplicaService {
) -> Result<Response<EnsurePersonVersionFloorsResponse>, Status> {
Ok(Response::new(EnsurePersonVersionFloorsResponse::default()))
}
+
+ async fn get_distinct_id_rows(
+ &self,
+ _request: Request<GetDistinctIdRowsRequest>,
+ ) -> Result<Response<GetDistinctIdRowsResponse>, Status> {
+ Ok(Response::new(GetDistinctIdRowsResponse::default()))
+ }
+
+ async fn list_persons_for_team(
+ &self,
+ _request: Request<ListPersonsForTeamRequest>,
+ ) -> Result<Response<ListPersonsForTeamResponse>, Status> {
+ Ok(Response::new(ListPersonsForTeamResponse::default()))
+ }
}
/// Start a test replica server on a random port and return its address
diff --git a/rust/property-defs-rs/tests/group_type_resolver.rs b/rust/property-defs-rs/tests/group_type_resolver.rs
index b2a5831636de..a329b7f96fc8 100644
--- a/rust/property-defs-rs/tests/group_type_resolver.rs
+++ b/rust/property-defs-rs/tests/group_type_resolver.rs
@@ -450,6 +450,20 @@ impl PersonHogService for MockPersonHogService {
) -> Result<Response<EnsurePersonVersionFloorsResponse>, Status> {
Err(Status::unimplemented(""))
}
+
+ async fn get_distinct_id_rows(
+ &self,
+ _: Request<GetDistinctIdRowsRequest>,
+ ) -> Result<Response<GetDistinctIdRowsResponse>, Status> {
+ Err(Status::unimplemented(""))
+ }
+
+ async fn list_persons_for_team(
+ &self,
+ _: Request<ListPersonsForTeamRequest>,
+ ) -> Result<Response<ListPersonsForTeamResponse>, Status> {
+ Err(Status::unimplemented(""))
+ }
}
// -- helpers ------------------------------------------------------------