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): remove the DeletePersonlessDistinctIdsBatchForTeam RPC (#85150)

José Sequeira5e3b35ce3051
diff --git a/nodejs/src/common/generated/personhog/personhog/identity/v1/identity_pb.ts b/nodejs/src/common/generated/personhog/personhog/identity/v1/identity_pb.ts
index 99201587fa4e..590e19a430af 100644
--- a/nodejs/src/common/generated/personhog/personhog/identity/v1/identity_pb.ts
+++ b/nodejs/src/common/generated/personhog/personhog/identity/v1/identity_pb.ts
@@ -41,8 +41,8 @@ export type GetOrCreatePersonEntry = Message<'personhog.identity.v1.GetOrCreateP
/**
* Additional distinct ids mapped to the person on the creation branch.
- * Their rows get version 1 when the distinct id has personless history
- * (a posthog_personlessdistinctid row already existed), else version 0.
+ * Their rows always get version 1: there is no proof the distinct id
+ * never sent events, and version 1 is safe either way.
* An extra already mapped to a different person keeps its existing
* mapping: get-or-create never re-points or merges, so the conflict is
* not an error and is not reported — re-pointing distinct ids is the
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 189878db4c7a..9c0e24641587 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
@@ -61,8 +61,6 @@ import type {
} from '../../types/v1/group_pb'
import { file_personhog_types_v1_group } from '../../types/v1/group_pb'
import type {
- DeletePersonlessDistinctIdsBatchForTeamRequestSchema,
- DeletePersonlessDistinctIdsBatchForTeamResponseSchema,
DeletePersonsBatchForTeamRequestSchema,
DeletePersonsBatchForTeamResponseSchema,
DeletePersonsRequestSchema,
@@ -105,7 +103,7 @@ import { file_personhog_types_v1_person } from '../../types/v1/person_pb'
export const file_personhog_service_v1_service: GenFile =
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29uaG9nLnR5cGVzLnYxLlNwbGl0UGVyc29uUmVxdWVzdBonLnBlcnNvbmhvZy50eXBlcy52MS5TcGxpdFBlcnNvblJlc3BvbnNlEpoBCh9TZXRQZXJzb25EaXN0aW5jdElkVmVyc2lvbkZsb29yEjoucGVyc29uaG9nLnR5cGVzLnYxLlNldFBlcnNvbkRpc3RpbmN0SWRWZXJzaW9uRmxvb3JSZXF1ZXN0GjsucGVyc29uaG9nLnR5cGVzLnYxLlNldFBlcnNvbkRpc3RpbmN0SWRWZXJzaW9uRmxvb3JSZXNwb25zZRJ8ChVTZXRQZXJzb25WZXJzaW9uRmxvb3ISMC5wZXJzb25ob2cudHlwZXMudjEuU2V0UGVyc29uVmVyc2lvbkZsb29yUmVxdWVzdBoxLnBlcnNvbmhvZy50eXBlcy52MS5TZXRQZXJzb25WZXJzaW9uRmxvb3JSZXNwb25zZWIGcHJvdG8z',
[
file_personhog_types_v1_person,
file_personhog_types_v1_group,
@@ -473,16 +471,6 @@ export const PersonHogService: GenService<{
input: typeof DeletePersonsBatchForTeamRequestSchema
output: typeof DeletePersonsBatchForTeamResponseSchema
}
- /**
- * WARNING: Same routing caveat as DeletePersons above.
- *
- * @generated from rpc personhog.service.v1.PersonHogService.DeletePersonlessDistinctIdsBatchForTeam
- */
- deletePersonlessDistinctIdsBatchForTeam: {
- methodKind: 'unary'
- input: typeof DeletePersonlessDistinctIdsBatchForTeamRequestSchema
- output: typeof DeletePersonlessDistinctIdsBatchForTeamResponseSchema
- }
/**
* Person split
* WARNING: Same routing caveat as DeletePersons above — write operation on person data
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 b15742aa9f47..bde3b671f423 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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RRACKm0KDlJlbGVhc2VPdXRjb21lEh8KG1JFTEVBU0VfT1VUQ09NRV9VTlNQRUNJRklFRBAAEh0KGVJFTEVBU0VfT1VUQ09NRV9DT01NSVRURUQQARIbChdSRUxFQVNFX09VVENPTUVfQUJPUlRFRBACYgZwcm90bzM',
[file_personhog_types_v1_common]
)
@@ -794,57 +794,6 @@ export const DeletePersonsBatchForTeamResponseSchema: GenMessage<DeletePersonsBa
/*@__PURE__*/
messageDesc(file_personhog_types_v1_person, 25)
-/**
- * DeletePersonlessDistinctIdsBatchForTeamRequest deletes up to batch_size
- * posthog_personlessdistinctid rows for a team. These rows have no person FK, so
- * they aren't covered by person deletion. Callers should loop until deleted_count is 0.
- *
- * @generated from message personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamRequest
- */
-export type DeletePersonlessDistinctIdsBatchForTeamRequest =
- Message<'personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamRequest'> & {
- /**
- * @generated from field: int64 team_id = 1;
- */
- teamId: bigint
-
- /**
- * Max rows to delete per call. Must be > 0 and <= 50000.
- *
- * @generated from field: int64 batch_size = 2;
- */
- batchSize: bigint
- }
-
-/**
- * Describes the message personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamRequest.
- * Use `create(DeletePersonlessDistinctIdsBatchForTeamRequestSchema)` to create a new message.
- */
-export const DeletePersonlessDistinctIdsBatchForTeamRequestSchema: GenMessage<DeletePersonlessDistinctIdsBatchForTeamRequest> =
- /*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 26)
-
-/**
- * @generated from message personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamResponse
- */
-export type DeletePersonlessDistinctIdsBatchForTeamResponse =
- Message<'personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamResponse'> & {
- /**
- * Number of rows deleted. 0 means no more rows to delete.
- *
- * @generated from field: int64 deleted_count = 1;
- */
- deletedCount: bigint
- }
-
-/**
- * Describes the message personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamResponse.
- * Use `create(DeletePersonlessDistinctIdsBatchForTeamResponseSchema)` to create a new message.
- */
-export const DeletePersonlessDistinctIdsBatchForTeamResponseSchema: GenMessage<DeletePersonlessDistinctIdsBatchForTeamResponse> =
- /*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 27)
-
/**
* SplitPersonRequest splits specific distinct_ids off of a person onto new persons.
* Each distinct_id gets a new person with a deterministic UUID (UUIDv5 from team_id:distinct_id).
@@ -881,7 +830,7 @@ export type SplitPersonRequest = Message<'personhog.types.v1.SplitPersonRequest'
*/
export const SplitPersonRequestSchema: GenMessage<SplitPersonRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 28)
+ messageDesc(file_personhog_types_v1_person, 26)
/**
* SplitResult describes a single distinct_id that was split onto a new person.
@@ -923,7 +872,7 @@ export type SplitResult = Message<'personhog.types.v1.SplitResult'> & {
* Describes the message personhog.types.v1.SplitResult.
* Use `create(SplitResultSchema)` to create a new message.
*/
-export const SplitResultSchema: GenMessage<SplitResult> = /*@__PURE__*/ messageDesc(file_personhog_types_v1_person, 29)
+export const SplitResultSchema: GenMessage<SplitResult> = /*@__PURE__*/ messageDesc(file_personhog_types_v1_person, 27)
/**
* @generated from message personhog.types.v1.SplitPersonResponse
@@ -943,7 +892,7 @@ export type SplitPersonResponse = Message<'personhog.types.v1.SplitPersonRespons
*/
export const SplitPersonResponseSchema: GenMessage<SplitPersonResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 30)
+ messageDesc(file_personhog_types_v1_person, 28)
/**
* SetPersonDistinctIdVersionFloorRequest bumps a person_distinct_id row's version.
@@ -980,7 +929,7 @@ export type SetPersonDistinctIdVersionFloorRequest =
*/
export const SetPersonDistinctIdVersionFloorRequestSchema: GenMessage<SetPersonDistinctIdVersionFloorRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 31)
+ messageDesc(file_personhog_types_v1_person, 29)
/**
* @generated from message personhog.types.v1.SetPersonDistinctIdVersionFloorResponse
@@ -1003,7 +952,7 @@ export type SetPersonDistinctIdVersionFloorResponse =
*/
export const SetPersonDistinctIdVersionFloorResponseSchema: GenMessage<SetPersonDistinctIdVersionFloorResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 32)
+ messageDesc(file_personhog_types_v1_person, 30)
/**
* SetPersonVersionFloorRequest bumps a person's version. Used by the undelete repair
@@ -1038,7 +987,7 @@ export type SetPersonVersionFloorRequest = Message<'personhog.types.v1.SetPerson
*/
export const SetPersonVersionFloorRequestSchema: GenMessage<SetPersonVersionFloorRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 33)
+ messageDesc(file_personhog_types_v1_person, 31)
/**
* @generated from message personhog.types.v1.SetPersonVersionFloorResponse
@@ -1058,7 +1007,7 @@ export type SetPersonVersionFloorResponse = Message<'personhog.types.v1.SetPerso
*/
export const SetPersonVersionFloorResponseSchema: GenMessage<SetPersonVersionFloorResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 34)
+ messageDesc(file_personhog_types_v1_person, 32)
/**
* FencePersonRequest freezes a person for a lifecycle operation (see
@@ -1095,7 +1044,7 @@ export type FencePersonRequest = Message<'personhog.types.v1.FencePersonRequest'
*/
export const FencePersonRequestSchema: GenMessage<FencePersonRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 35)
+ messageDesc(file_personhog_types_v1_person, 33)
/**
* @generated from message personhog.types.v1.FencePersonResponse
@@ -1124,7 +1073,7 @@ export type FencePersonResponse = Message<'personhog.types.v1.FencePersonRespons
*/
export const FencePersonResponseSchema: GenMessage<FencePersonResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 36)
+ messageDesc(file_personhog_types_v1_person, 34)
/**
* ReleaseFenceRequest closes a fence (see PersonHogLeader.ReleaseFence).
@@ -1192,7 +1141,7 @@ export type ReleaseFenceRequest = Message<'personhog.types.v1.ReleaseFenceReques
*/
export const ReleaseFenceRequestSchema: GenMessage<ReleaseFenceRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 37)
+ messageDesc(file_personhog_types_v1_person, 35)
/**
* @generated from message personhog.types.v1.ReleaseFenceResponse
@@ -1205,7 +1154,7 @@ export type ReleaseFenceResponse = Message<'personhog.types.v1.ReleaseFenceRespo
*/
export const ReleaseFenceResponseSchema: GenMessage<ReleaseFenceResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 38)
+ messageDesc(file_personhog_types_v1_person, 36)
/**
* A sealed source snapshot paired with its precedence ordinal — the
@@ -1233,7 +1182,7 @@ export type SealedSourceSnapshot = Message<'personhog.types.v1.SealedSourceSnaps
*/
export const SealedSourceSnapshotSchema: GenMessage<SealedSourceSnapshot> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 39)
+ messageDesc(file_personhog_types_v1_person, 37)
/**
* FoldPersonDocumentRequest folds sealed source snapshots into the merge
@@ -1309,7 +1258,7 @@ export type FoldPersonDocumentRequest = Message<'personhog.types.v1.FoldPersonDo
*/
export const FoldPersonDocumentRequestSchema: GenMessage<FoldPersonDocumentRequest> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 40)
+ messageDesc(file_personhog_types_v1_person, 38)
/**
* @generated from message personhog.types.v1.FoldPersonDocumentResponse
@@ -1337,7 +1286,7 @@ export type FoldPersonDocumentResponse = Message<'personhog.types.v1.FoldPersonD
*/
export const FoldPersonDocumentResponseSchema: GenMessage<FoldPersonDocumentResponse> =
/*@__PURE__*/
- messageDesc(file_personhog_types_v1_person, 41)
+ messageDesc(file_personhog_types_v1_person, 39)
/**
* The kind of lifecycle operation — mirrors lifecycle_op.op_type. The
diff --git a/nodejs/src/common/personhog/client.test.ts b/nodejs/src/common/personhog/client.test.ts
index 445399d8ea56..55ea8f889ac2 100644
--- a/nodejs/src/common/personhog/client.test.ts
+++ b/nodejs/src/common/personhog/client.test.ts
@@ -133,7 +133,6 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
updatePersonProperties: () => ({}),
deletePersons: () => ({ deletedCount: 0n }),
deletePersonsBatchForTeam: () => ({ deletedCount: 0n }),
- deletePersonlessDistinctIdsBatchForTeam: () => ({ deletedCount: 0n }),
splitPerson: () => ({ splits: [] }),
setPersonDistinctIdVersionFloor: () => ({}),
setPersonVersionFloor: () => ({ updated: false }),
diff --git a/nodejs/src/common/personhog/persons.test.ts b/nodejs/src/common/personhog/persons.test.ts
index f2c0037777ab..bd65fd41ce50 100644
--- a/nodejs/src/common/personhog/persons.test.ts
+++ b/nodejs/src/common/personhog/persons.test.ts
@@ -71,7 +71,6 @@ const SERVICE_DEFAULTS: ServiceImpl<typeof PersonHogService> = {
updatePersonProperties: () => ({}),
deletePersons: () => ({ deletedCount: 0n }),
deletePersonsBatchForTeam: () => ({ deletedCount: 0n }),
- deletePersonlessDistinctIdsBatchForTeam: () => ({ deletedCount: 0n }),
splitPerson: () => ({ splits: [] }),
setPersonDistinctIdVersionFloor: () => ({}),
setPersonVersionFloor: () => ({ updated: false }),
diff --git a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py
index 97f43c00680d..a0c0dce60d5a 100644
--- a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py
+++ b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2.py
@@ -20,7 +20,7 @@ from ....personhog.types.v1 import (
)
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
- b"\n\"personhog/service/v1/service.proto\x12\x14personhog.service.v1\x1a\x1fpersonhog/types/v1/person.proto\x1a\x1epersonhog/types/v1/group.proto\x1a\x1fpersonhog/types/v1/cohort.proto\x1a%personhog/types/v1/feature_flag.proto2\xc3*\n\x10PersonHogService\x12X\n\tGetPerson\x12$.personhog.types.v1.GetPersonRequest\x1a%.personhog.types.v1.GetPersonResponse\x12X\n\nGetPersons\x12%.personhog.types.v1.GetPersonsRequest\x1a#.personhog.types.v1.PersonsResponse\x12d\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12f\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x120.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x128.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a6.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x122.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a0.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x122.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a3.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x123.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a4.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x124.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a5.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x121.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a2.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1dDeleteHashKeyOverridesByTeams\x128.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a9.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15CheckCohortMembership\x120.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12CountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12DeleteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17DeleteCohortMembersBulk\x122.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a3.personhog.types.v1.DeleteCohortMembersBulkResponse\x12v\n\x13InsertCohortMembers\x12..personhog.types.v1.InsertCohortMembersRequest\x1a/.personhog.types.v1.InsertCohortMembersResponse\x12v\n\x13ListCohortMemberIds\x12..personhog.types.v1.ListCohortMemberIdsRequest\x1a/.personhog.types.v1.ListCohortMemberIdsResponse\x12U\n\x08GetGroup\x12#.personhog.types.v1.GetGroupRequest\x1a$.personhog.types.v1.GetGroupResponse\x12U\n\tGetGroups\x12$.personhog.types.v1.GetGroupsRequest\x1a\".personhog.types.v1.GroupsResponse\x12g\n\x0eGetGroupsBatch\x12).personhog.types.v1.GetGroupsBatchRequest\x1a*.personhog.types.v1.GetGroupsBatchResponse\x12[\n\nListGroups\x12%.personhog.types.v1.ListGroupsRequest\x1a&.personhog.types.v1.ListGroupsResponse\x12\x86\x01\n\x1cGetGroupTypeMappingsByTeamId\x127.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x128.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x8c\x01\n\x1fGetGroupTypeMappingsByProjectId\x12:.personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x93\x01\n GetGroupTypeMappingsByProjectIds\x12;.personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12\x7f\n\x16CountGroupTypeMappings\x121.personhog.types.v1.CountGroupTypeMappingsRequest\x1a2.personhog.types.v1.CountGroupTypeMappingsResponse\x12^\n\x0bCreateGroup\x12&.personhog.types.v1.CreateGroupRequest\x1a'.personhog.types.v1.CreateGroupResponse\x12^\n\x0bUpdateGroup\x12&.personhog.types.v1.UpdateGroupRequest\x1a'.personhog.types.v1.UpdateGroupResponse\x12\x85\x01\n\x18DeleteGroupsBatchForTeam\x123.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a4.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x121.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a2.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16DeleteGroupTypeMapping\x121.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a2.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x121.personhog.types.v1.UpdatePersonPropertiesRequest\x1a2.personhog.types.v1.UpdatePersonPropertiesResponse\x12^\n\x0bFencePerson\x12&.personhog.types.v1.FencePersonRequest\x1a'.personhog.types.v1.FencePersonResponse\x12a\n\x0cReleaseFence\x12'.personhog.types.v1.ReleaseFenceRequest\x1a(.personhog.types.v1.ReleaseFenceResponse\x12s\n\x12FoldPersonDocument\x12-.personhog.types.v1.FoldPersonDocumentRequest\x1a..personhog.types.v1.FoldPersonDocumentResponse\x12d\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19DeletePersonsBatchForTeam\x124.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a5.personhog.types.v1.DeletePersonsBatchForTeamResponse\x12\xb2\x01\n'DeletePersonlessDistinctIdsBatchForTeam\x12B.personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamRequest\x1aC.personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamResponse\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\x120.personhog.types.v1.SetPersonVersionFloorRequest\x1a1.personhog.types.v1.SetPersonVersionFloorResponseb\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\x8e)\n\x10PersonHogService\x12X\n\tGetPerson\x12$.personhog.types.v1.GetPersonRequest\x1a%.personhog.types.v1.GetPersonResponse\x12X\n\nGetPersons\x12%.personhog.types.v1.GetPersonsRequest\x1a#.personhog.types.v1.PersonsResponse\x12d\n\x0fGetPersonByUuid\x12*.personhog.types.v1.GetPersonByUuidRequest\x1a%.personhog.types.v1.GetPersonResponse\x12f\n\x11GetPersonsByUuids\x12,.personhog.types.v1.GetPersonsByUuidsRequest\x1a#.personhog.types.v1.PersonsResponse\x12p\n\x15GetPersonByDistinctId\x120.personhog.types.v1.GetPersonByDistinctIdRequest\x1a%.personhog.types.v1.GetPersonResponse\x12\x91\x01\n\x1dGetPersonsByDistinctIdsInTeam\x128.personhog.types.v1.GetPersonsByDistinctIdsInTeamRequest\x1a6.personhog.types.v1.PersonsByDistinctIdsInTeamResponse\x12\x7f\n\x17GetPersonsByDistinctIds\x122.personhog.types.v1.GetPersonsByDistinctIdsRequest\x1a0.personhog.types.v1.PersonsByDistinctIdsResponse\x12\x82\x01\n\x17GetDistinctIdsForPerson\x122.personhog.types.v1.GetDistinctIdsForPersonRequest\x1a3.personhog.types.v1.GetDistinctIdsForPersonResponse\x12\x85\x01\n\x18GetDistinctIdsForPersons\x123.personhog.types.v1.GetDistinctIdsForPersonsRequest\x1a4.personhog.types.v1.GetDistinctIdsForPersonsResponse\x12\x88\x01\n\x19GetHashKeyOverrideContext\x124.personhog.types.v1.GetHashKeyOverrideContextRequest\x1a5.personhog.types.v1.GetHashKeyOverrideContextResponse\x12\x7f\n\x16UpsertHashKeyOverrides\x121.personhog.types.v1.UpsertHashKeyOverridesRequest\x1a2.personhog.types.v1.UpsertHashKeyOverridesResponse\x12\x94\x01\n\x1dDeleteHashKeyOverridesByTeams\x128.personhog.types.v1.DeleteHashKeyOverridesByTeamsRequest\x1a9.personhog.types.v1.DeleteHashKeyOverridesByTeamsResponse\x12w\n\x15CheckCohortMembership\x120.personhog.types.v1.CheckCohortMembershipRequest\x1a,.personhog.types.v1.CohortMembershipResponse\x12s\n\x12CountCohortMembers\x12-.personhog.types.v1.CountCohortMembersRequest\x1a..personhog.types.v1.CountCohortMembersResponse\x12s\n\x12DeleteCohortMember\x12-.personhog.types.v1.DeleteCohortMemberRequest\x1a..personhog.types.v1.DeleteCohortMemberResponse\x12\x82\x01\n\x17DeleteCohortMembersBulk\x122.personhog.types.v1.DeleteCohortMembersBulkRequest\x1a3.personhog.types.v1.DeleteCohortMembersBulkResponse\x12v\n\x13InsertCohortMembers\x12..personhog.types.v1.InsertCohortMembersRequest\x1a/.personhog.types.v1.InsertCohortMembersResponse\x12v\n\x13ListCohortMemberIds\x12..personhog.types.v1.ListCohortMemberIdsRequest\x1a/.personhog.types.v1.ListCohortMemberIdsResponse\x12U\n\x08GetGroup\x12#.personhog.types.v1.GetGroupRequest\x1a$.personhog.types.v1.GetGroupResponse\x12U\n\tGetGroups\x12$.personhog.types.v1.GetGroupsRequest\x1a\".personhog.types.v1.GroupsResponse\x12g\n\x0eGetGroupsBatch\x12).personhog.types.v1.GetGroupsBatchRequest\x1a*.personhog.types.v1.GetGroupsBatchResponse\x12[\n\nListGroups\x12%.personhog.types.v1.ListGroupsRequest\x1a&.personhog.types.v1.ListGroupsResponse\x12\x86\x01\n\x1cGetGroupTypeMappingsByTeamId\x127.personhog.types.v1.GetGroupTypeMappingsByTeamIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x8d\x01\n\x1dGetGroupTypeMappingsByTeamIds\x128.personhog.types.v1.GetGroupTypeMappingsByTeamIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x8c\x01\n\x1fGetGroupTypeMappingsByProjectId\x12:.personhog.types.v1.GetGroupTypeMappingsByProjectIdRequest\x1a-.personhog.types.v1.GroupTypeMappingsResponse\x12\x93\x01\n GetGroupTypeMappingsByProjectIds\x12;.personhog.types.v1.GetGroupTypeMappingsByProjectIdsRequest\x1a2.personhog.types.v1.GroupTypeMappingsBatchResponse\x12\x9d\x01\n GetGroupTypeMappingByDashboardId\x12;.personhog.types.v1.GetGroupTypeMappingByDashboardIdRequest\x1a<.personhog.types.v1.GetGroupTypeMappingByDashboardIdResponse\x12\x7f\n\x16CountGroupTypeMappings\x121.personhog.types.v1.CountGroupTypeMappingsRequest\x1a2.personhog.types.v1.CountGroupTypeMappingsResponse\x12^\n\x0bCreateGroup\x12&.personhog.types.v1.CreateGroupRequest\x1a'.personhog.types.v1.CreateGroupResponse\x12^\n\x0bUpdateGroup\x12&.personhog.types.v1.UpdateGroupRequest\x1a'.personhog.types.v1.UpdateGroupResponse\x12\x85\x01\n\x18DeleteGroupsBatchForTeam\x123.personhog.types.v1.DeleteGroupsBatchForTeamRequest\x1a4.personhog.types.v1.DeleteGroupsBatchForTeamResponse\x12\x7f\n\x16UpdateGroupTypeMapping\x121.personhog.types.v1.UpdateGroupTypeMappingRequest\x1a2.personhog.types.v1.UpdateGroupTypeMappingResponse\x12\x7f\n\x16DeleteGroupTypeMapping\x121.personhog.types.v1.DeleteGroupTypeMappingRequest\x1a2.personhog.types.v1.DeleteGroupTypeMappingResponse\x12\xa6\x01\n#DeleteGroupTypeMappingsBatchForTeam\x12>.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamRequest\x1a?.personhog.types.v1.DeleteGroupTypeMappingsBatchForTeamResponse\x12\x7f\n\x16UpdatePersonProperties\x121.personhog.types.v1.UpdatePersonPropertiesRequest\x1a2.personhog.types.v1.UpdatePersonPropertiesResponse\x12^\n\x0bFencePerson\x12&.personhog.types.v1.FencePersonRequest\x1a'.personhog.types.v1.FencePersonResponse\x12a\n\x0cReleaseFence\x12'.personhog.types.v1.ReleaseFenceRequest\x1a(.personhog.types.v1.ReleaseFenceResponse\x12s\n\x12FoldPersonDocument\x12-.personhog.types.v1.FoldPersonDocumentRequest\x1a..personhog.types.v1.FoldPersonDocumentResponse\x12d\n\rDeletePersons\x12(.personhog.types.v1.DeletePersonsRequest\x1a).personhog.types.v1.DeletePersonsResponse\x12\x88\x01\n\x19DeletePersonsBatchForTeam\x124.personhog.types.v1.DeletePersonsBatchForTeamRequest\x1a5.personhog.types.v1.DeletePersonsBatchForTeamResponse\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\x120.personhog.types.v1.SetPersonVersionFloorRequest\x1a1.personhog.types.v1.SetPersonVersionFloorResponseb\x06proto3"
)
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -28,4 +28,4 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.service.v1.servic
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
_globals["_PERSONHOGSERVICE"]._serialized_start = 198
- _globals["_PERSONHOGSERVICE"]._serialized_end = 5641
+ _globals["_PERSONHOGSERVICE"]._serialized_end = 5460
diff --git a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py
index afd1eabd9231..8c6a68ea8d31 100644
--- a/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py
+++ b/posthog/personhog_client/proto/generated/personhog/service/v1/service_pb2_grpc.py
@@ -279,12 +279,6 @@ class PersonHogServiceStub:
response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonsBatchForTeamResponse.FromString,
_registered_method=True,
)
- self.DeletePersonlessDistinctIdsBatchForTeam = channel.unary_unary(
- "/personhog.service.v1.PersonHogService/DeletePersonlessDistinctIdsBatchForTeam",
- request_serializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonlessDistinctIdsBatchForTeamRequest.SerializeToString,
- response_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonlessDistinctIdsBatchForTeamResponse.FromString,
- _registered_method=True,
- )
self.SplitPerson = channel.unary_unary(
"/personhog.service.v1.PersonHogService/SplitPerson",
request_serializer=personhog_dot_types_dot_v1_dot_person__pb2.SplitPersonRequest.SerializeToString,
@@ -558,12 +552,6 @@ class PersonHogServiceServicer:
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
- def DeletePersonlessDistinctIdsBatchForTeam(self, request, context):
- """WARNING: Same routing caveat as DeletePersons above."""
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
- context.set_details("Method not implemented!")
- raise NotImplementedError("Method not implemented!")
-
def SplitPerson(self, request, context):
"""Person split
WARNING: Same routing caveat as DeletePersons above — write operation on person data
@@ -788,11 +776,6 @@ def add_PersonHogServiceServicer_to_server(servicer, server):
request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonsBatchForTeamRequest.FromString,
response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonsBatchForTeamResponse.SerializeToString,
),
- "DeletePersonlessDistinctIdsBatchForTeam": grpc.unary_unary_rpc_method_handler(
- servicer.DeletePersonlessDistinctIdsBatchForTeam,
- request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonlessDistinctIdsBatchForTeamRequest.FromString,
- response_serializer=personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonlessDistinctIdsBatchForTeamResponse.SerializeToString,
- ),
"SplitPerson": grpc.unary_unary_rpc_method_handler(
servicer.SplitPerson,
request_deserializer=personhog_dot_types_dot_v1_dot_person__pb2.SplitPersonRequest.FromString,
@@ -2019,36 +2002,6 @@ class PersonHogService:
_registered_method=True,
)
- @staticmethod
- def DeletePersonlessDistinctIdsBatchForTeam(
- 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/DeletePersonlessDistinctIdsBatchForTeam",
- personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonlessDistinctIdsBatchForTeamRequest.SerializeToString,
- personhog_dot_types_dot_v1_dot_person__pb2.DeletePersonlessDistinctIdsBatchForTeamResponse.FromString,
- options,
- channel_credentials,
- insecure,
- call_credentials,
- compression,
- wait_for_ready,
- timeout,
- metadata,
- _registered_method=True,
- )
-
@staticmethod
def SplitPerson(
request,
diff --git a/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.py b/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.py
index 40c3e3f7b88b..26a49e2d4f14 100644
--- a/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.py
+++ b/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.py
@@ -15,17 +15,17 @@ _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(\x08B\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"N\n\x15DistinctIdWithVersion\x12\x13\n\x0bdistinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01B\n\n\x08_version"h\n\x15PersonWithDistinctIds\x12\x13\n\x0bdistinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0cdistinct_ids\x18\x02 \x03(\x0b2).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b2".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b2\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bdistinct_id\x18\x02 \x01(\t\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cdistinct_ids\x18\x02 \x03(\t\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b2).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b2".personhog.types.v1.TeamDistinctId\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b2,.personhog.types.v1.PersonWithTeamDistinctId"\x99\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01B\x08\n\x06_limit"b\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0cdistinct_ids\x18\x01 \x03(\x0b2).personhog.types.v1.DistinctIdWithVersion"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01B\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12B\n\x13person_distinct_ids\x18\x01 \x03(\x0b2%.personhog.types.v1.PersonDistinctIds"\x80\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\x01B\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08B\t\n\x07_person"=\n\x14DeletePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t".\n\x15DeletePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"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"U\n.DeletePersonlessDistinctIdsBatchForTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nbatch_size\x18\x02 \x01(\x03"H\n/DeletePersonlessDistinctIdsBatchForTeamResponse\x12\x15\n\rdeleted_count\x18\x01 \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\x15distinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0bdistinct_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(\x0b2\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bdistinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\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\x12FencePersonRequest\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\x124\n\x07op_type\x18\x04 \x01(\x0e2#.personhog.types.v1.LifecycleOpType"A\n\x13FencePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.Person"\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\x123\n\x07outcome\x18\x05 \x01(\x0e2".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(\x03B\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19FoldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12B\n\x10sealed_snapshots\x18\x03 \x03(\x0b2(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0eevent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1aFoldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.Person*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\x02b\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(\x08B\r\n\x0b_is_user_idB\x0f\n\r_last_seen_at"N\n\x15DistinctIdWithVersion\x12\x13\n\x0bdistinct_id\x18\x01 \x01(\t\x12\x14\n\x07version\x18\x02 \x01(\x03H\x00\x88\x01\x01B\n\n\x08_version"h\n\x15PersonWithDistinctIds\x12\x13\n\x0bdistinct_id\x18\x01 \x01(\t\x12/\n\x06person\x18\x02 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\t\n\x07_person"g\n\x11PersonDistinctIds\x12\x11\n\tperson_id\x18\x01 \x01(\x03\x12?\n\x0cdistinct_ids\x18\x02 \x03(\x0b2).personhog.types.v1.DistinctIdWithVersion"\x87\x01\n\x18PersonWithTeamDistinctId\x12/\n\x03key\x18\x01 \x01(\x0b2".personhog.types.v1.TeamDistinctId\x12/\n\x06person\x18\x02 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"O\n\x11GetPersonResponse\x12/\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"S\n\x0fPersonsResponse\x12+\n\x07persons\x18\x01 \x03(\x0b2\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\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\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"{\n\x1cGetPersonByDistinctIdRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bdistinct_id\x18\x02 \x01(\t\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"\x84\x01\n$GetPersonsByDistinctIdsInTeamRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cdistinct_ids\x18\x02 \x03(\t\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"`\n"PersonsByDistinctIdsInTeamResponse\x12:\n\x07results\x18\x01 \x03(\x0b2).personhog.types.v1.PersonWithDistinctIds"\x96\x01\n\x1eGetPersonsByDistinctIdsRequest\x12=\n\x11team_distinct_ids\x18\x01 \x03(\x0b2".personhog.types.v1.TeamDistinctId\x125\n\x0cread_options\x18\x02 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions"]\n\x1cPersonsByDistinctIdsResponse\x12=\n\x07results\x18\x01 \x03(\x0b2,.personhog.types.v1.PersonWithTeamDistinctId"\x99\x01\n\x1eGetDistinctIdsForPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions\x12\x12\n\x05limit\x18\x04 \x01(\x03H\x00\x88\x01\x01B\x08\n\x06_limit"b\n\x1fGetDistinctIdsForPersonResponse\x12?\n\x0cdistinct_ids\x18\x01 \x03(\x0b2).personhog.types.v1.DistinctIdWithVersion"\xb1\x01\n\x1fGetDistinctIdsForPersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x12\n\nperson_ids\x18\x02 \x03(\x03\x125\n\x0cread_options\x18\x03 \x01(\x0b2\x1f.personhog.types.v1.ReadOptions\x12\x1d\n\x10limit_per_person\x18\x04 \x01(\x03H\x00\x88\x01\x01B\x13\n\x11_limit_per_person"f\n GetDistinctIdsForPersonsResponse\x12B\n\x13person_distinct_ids\x18\x01 \x03(\x0b2%.personhog.types.v1.PersonDistinctIds"\x80\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\x01B\x10\n\x0e_is_identifiedB\x0f\n\r_last_seen_at"m\n\x1eUpdatePersonPropertiesResponse\x12/\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01\x12\x0f\n\x07updated\x18\x02 \x01(\x08B\t\n\x07_person"=\n\x14DeletePersonsRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x14\n\x0cperson_uuids\x18\x02 \x03(\t".\n\x15DeletePersonsResponse\x12\x15\n\rdeleted_count\x18\x01 \x01(\x03"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"W\n\x12SplitPersonRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12\x1d\n\x15distinct_ids_to_split\x18\x03 \x03(\t"\x8e\x01\n\x0bSplitResult\x12\x13\n\x0bdistinct_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(\x0b2\x1f.personhog.types.v1.SplitResult"c\n&SetPersonDistinctIdVersionFloorRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x13\n\x0bdistinct_id\x18\x02 \x01(\t\x12\x13\n\x0bmin_version\x18\x03 \x01(\x03"e\n\'SetPersonDistinctIdVersionFloorResponse\x12/\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.PersonH\x00\x88\x01\x01B\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\x12FencePersonRequest\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\x124\n\x07op_type\x18\x04 \x01(\x0e2#.personhog.types.v1.LifecycleOpType"A\n\x13FencePersonResponse\x12*\n\x06sealed\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.Person"\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\x123\n\x07outcome\x18\x05 \x01(\x0e2".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(\x03B\x11\n\x0f_sealed_version"\x16\n\x14ReleaseFenceResponse"S\n\x14SealedSourceSnapshot\x12*\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.Person\x12\x0f\n\x07ordinal\x18\x02 \x01(\x05"\xbd\x01\n\x19FoldPersonDocumentRequest\x12\x0f\n\x07team_id\x18\x01 \x01(\x03\x12\x11\n\tperson_id\x18\x02 \x01(\x03\x12B\n\x10sealed_snapshots\x18\x03 \x03(\x0b2(.personhog.types.v1.SealedSourceSnapshot\x12\x11\n\tevent_set\x18\x04 \x01(\x0c\x12\x16\n\x0eevent_set_once\x18\x05 \x01(\x0c\x12\r\n\x05op_id\x18\x06 \x01(\t"H\n\x1aFoldPersonDocumentResponse\x12*\n\x06person\x18\x01 \x01(\x0b2\x1a.personhog.types.v1.Person*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\x02b\x06proto3'
)
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "personhog.types.v1.person_pb2", _globals)
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
- _globals["_LIFECYCLEOPTYPE"]._serialized_start = 4799
- _globals["_LIFECYCLEOPTYPE"]._serialized_end = 4910
- _globals["_RELEASEOUTCOME"]._serialized_start = 4912
- _globals["_RELEASEOUTCOME"]._serialized_end = 5021
+ _globals["_LIFECYCLEOPTYPE"]._serialized_start = 4638
+ _globals["_LIFECYCLEOPTYPE"]._serialized_end = 4749
+ _globals["_RELEASEOUTCOME"]._serialized_start = 4751
+ _globals["_RELEASEOUTCOME"]._serialized_end = 4860
_globals["_PERSON"]._serialized_start = 89
_globals["_PERSON"]._serialized_end = 395
_globals["_DISTINCTIDWITHVERSION"]._serialized_start = 397
@@ -78,35 +78,31 @@ if not _descriptor._USE_C_DESCRIPTORS:
_globals["_DELETEPERSONSBATCHFORTEAMREQUEST"]._serialized_end = 3141
_globals["_DELETEPERSONSBATCHFORTEAMRESPONSE"]._serialized_start = 3143
_globals["_DELETEPERSONSBATCHFORTEAMRESPONSE"]._serialized_end = 3201
- _globals["_DELETEPERSONLESSDISTINCTIDSBATCHFORTEAMREQUEST"]._serialized_start = 3203
- _globals["_DELETEPERSONLESSDISTINCTIDSBATCHFORTEAMREQUEST"]._serialized_end = 3288
- _globals["_DELETEPERSONLESSDISTINCTIDSBATCHFORTEAMRESPONSE"]._serialized_start = 3290
- _globals["_DELETEPERSONLESSDISTINCTIDSBATCHFORTEAMRESPONSE"]._serialized_end = 3362
- _globals["_SPLITPERSONREQUEST"]._serialized_start = 3364
- _globals["_SPLITPERSONREQUEST"]._serialized_end = 3451
- _globals["_SPLITRESULT"]._serialized_start = 3454
- _globals["_SPLITRESULT"]._serialized_end = 3596
- _globals["_SPLITPERSONRESPONSE"]._serialized_start = 3598
- _globals["_SPLITPERSONRESPONSE"]._serialized_end = 3668
- _globals["_SETPERSONDISTINCTIDVERSIONFLOORREQUEST"]._serialized_start = 3670
- _globals["_SETPERSONDISTINCTIDVERSIONFLOORREQUEST"]._serialized_end = 3769
- _globals["_SETPERSONDISTINCTIDVERSIONFLOORRESPONSE"]._serialized_start = 3771
- _globals["_SETPERSONDISTINCTIDVERSIONFLOORRESPONSE"]._serialized_end = 3872
- _globals["_SETPERSONVERSIONFLOORREQUEST"]._serialized_start = 3874
- _globals["_SETPERSONVERSIONFLOORREQUEST"]._serialized_end = 3961
- _globals["_SETPERSONVERSIONFLOORRESPONSE"]._serialized_start = 3963
- _globals["_SETPERSONVERSIONFLOORRESPONSE"]._serialized_end = 4011
- _globals["_FENCEPERSONREQUEST"]._serialized_start = 4013
- _globals["_FENCEPERSONREQUEST"]._serialized_end = 4138
- _globals["_FENCEPERSONRESPONSE"]._serialized_start = 4140
- _globals["_FENCEPERSONRESPONSE"]._serialized_end = 4205
- _globals["_RELEASEFENCEREQUEST"]._serialized_start = 4208
- _globals["_RELEASEFENCEREQUEST"]._serialized_end = 4422
- _globals["_RELEASEFENCERESPONSE"]._serialized_start = 4424
- _globals["_RELEASEFENCERESPONSE"]._serialized_end = 4446
- _globals["_SEALEDSOURCESNAPSHOT"]._serialized_start = 4448
- _globals["_SEALEDSOURCESNAPSHOT"]._serialized_end = 4531
- _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_start = 4534
- _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_end = 4723
- _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_start = 4725
- _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_end = 4797
+ _globals["_SPLITPERSONREQUEST"]._serialized_start = 3203
+ _globals["_SPLITPERSONREQUEST"]._serialized_end = 3290
+ _globals["_SPLITRESULT"]._serialized_start = 3293
+ _globals["_SPLITRESULT"]._serialized_end = 3435
+ _globals["_SPLITPERSONRESPONSE"]._serialized_start = 3437
+ _globals["_SPLITPERSONRESPONSE"]._serialized_end = 3507
+ _globals["_SETPERSONDISTINCTIDVERSIONFLOORREQUEST"]._serialized_start = 3509
+ _globals["_SETPERSONDISTINCTIDVERSIONFLOORREQUEST"]._serialized_end = 3608
+ _globals["_SETPERSONDISTINCTIDVERSIONFLOORRESPONSE"]._serialized_start = 3610
+ _globals["_SETPERSONDISTINCTIDVERSIONFLOORRESPONSE"]._serialized_end = 3711
+ _globals["_SETPERSONVERSIONFLOORREQUEST"]._serialized_start = 3713
+ _globals["_SETPERSONVERSIONFLOORREQUEST"]._serialized_end = 3800
+ _globals["_SETPERSONVERSIONFLOORRESPONSE"]._serialized_start = 3802
+ _globals["_SETPERSONVERSIONFLOORRESPONSE"]._serialized_end = 3850
+ _globals["_FENCEPERSONREQUEST"]._serialized_start = 3852
+ _globals["_FENCEPERSONREQUEST"]._serialized_end = 3977
+ _globals["_FENCEPERSONRESPONSE"]._serialized_start = 3979
+ _globals["_FENCEPERSONRESPONSE"]._serialized_end = 4044
+ _globals["_RELEASEFENCEREQUEST"]._serialized_start = 4047
+ _globals["_RELEASEFENCEREQUEST"]._serialized_end = 4261
+ _globals["_RELEASEFENCERESPONSE"]._serialized_start = 4263
+ _globals["_RELEASEFENCERESPONSE"]._serialized_end = 4285
+ _globals["_SEALEDSOURCESNAPSHOT"]._serialized_start = 4287
+ _globals["_SEALEDSOURCESNAPSHOT"]._serialized_end = 4370
+ _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_start = 4373
+ _globals["_FOLDPERSONDOCUMENTREQUEST"]._serialized_end = 4562
+ _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_start = 4564
+ _globals["_FOLDPERSONDOCUMENTRESPONSE"]._serialized_end = 4636
diff --git a/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.pyi b/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.pyi
index f1ff692bd781..170e94630f31 100644
--- a/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.pyi
+++ b/posthog/personhog_client/proto/generated/personhog/types/v1/person_pb2.pyi
@@ -419,22 +419,6 @@ class DeletePersonsBatchForTeamResponse(_message.Message):
def __init__(self, deleted_count: _Optional[int] = ...) -> None: ...
-class DeletePersonlessDistinctIdsBatchForTeamRequest(_message.Message):
- __slots__ = ("team_id", "batch_size")
- TEAM_ID_FIELD_NUMBER: _ClassVar[int]
- BATCH_SIZE_FIELD_NUMBER: _ClassVar[int]
- team_id: int
- batch_size: int
-
- def __init__(self, team_id: _Optional[int] = ..., batch_size: _Optional[int] = ...) -> None: ...
-
-class DeletePersonlessDistinctIdsBatchForTeamResponse(_message.Message):
- __slots__ = ("deleted_count",)
- DELETED_COUNT_FIELD_NUMBER: _ClassVar[int]
- deleted_count: int
-
- def __init__(self, deleted_count: _Optional[int] = ...) -> None: ...
-
class SplitPersonRequest(_message.Message):
__slots__ = ("team_id", "person_id", "distinct_ids_to_split")
TEAM_ID_FIELD_NUMBER: _ClassVar[int]
diff --git a/proto/buf.yaml b/proto/buf.yaml
index a791d78ae527..42108ae3719d 100644
--- a/proto/buf.yaml
+++ b/proto/buf.yaml
@@ -18,3 +18,12 @@ lint:
breaking:
use:
- FILE
+ # Temporary: allows deleting a retired RPC and its messages. Safe to
+ # remove once the deletion is on master, which these checks compare
+ # against.
+ ignore_only:
+ RPC_NO_DELETE:
+ - personhog/replica/v1/replica.proto
+ - personhog/service/v1/service.proto
+ MESSAGE_NO_DELETE:
+ - personhog/types/v1/person.proto
diff --git a/proto/personhog/identity/v1/identity.proto b/proto/personhog/identity/v1/identity.proto
index ee341127220b..6e6b28ff4c61 100644
--- a/proto/personhog/identity/v1/identity.proto
+++ b/proto/personhog/identity/v1/identity.proto
@@ -13,8 +13,8 @@ message GetOrCreatePersonEntry {
// team_id:distinct_id, so its distinct id row is always version 0.
string distinct_id = 2;
// Additional distinct ids mapped to the person on the creation branch.
- // Their rows get version 1 when the distinct id has personless history
- // (a posthog_personlessdistinctid row already existed), else version 0.
+ // Their rows always get version 1: there is no proof the distinct id
+ // never sent events, and version 1 is safe either way.
// An extra already mapped to a different person keeps its existing
// mapping: get-or-create never re-points or merges, so the conflict is
// not an error and is not reported — re-pointing distinct ids is the
diff --git a/proto/personhog/replica/v1/replica.proto b/proto/personhog/replica/v1/replica.proto
index cff754425209..d8ccdaf5d9f0 100644
--- a/proto/personhog/replica/v1/replica.proto
+++ b/proto/personhog/replica/v1/replica.proto
@@ -64,7 +64,6 @@ service PersonHogReplica {
// Person deletes (temporary: should move to leader once it supports deletes)
rpc DeletePersons(personhog.types.v1.DeletePersonsRequest) returns (personhog.types.v1.DeletePersonsResponse);
rpc DeletePersonsBatchForTeam(personhog.types.v1.DeletePersonsBatchForTeamRequest) returns (personhog.types.v1.DeletePersonsBatchForTeamResponse);
- rpc DeletePersonlessDistinctIdsBatchForTeam(personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamRequest) returns (personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamResponse);
// Person split (temporary: same routing caveat as deletes above)
rpc SplitPerson(personhog.types.v1.SplitPersonRequest) returns (personhog.types.v1.SplitPersonResponse);
diff --git a/proto/personhog/service/v1/service.proto b/proto/personhog/service/v1/service.proto
index 79cb2ca6dd87..22b3e661855b 100644
--- a/proto/personhog/service/v1/service.proto
+++ b/proto/personhog/service/v1/service.proto
@@ -79,8 +79,6 @@ service PersonHogService {
rpc DeletePersons(personhog.types.v1.DeletePersonsRequest) returns (personhog.types.v1.DeletePersonsResponse);
// WARNING: Same routing caveat as DeletePersons above.
rpc DeletePersonsBatchForTeam(personhog.types.v1.DeletePersonsBatchForTeamRequest) returns (personhog.types.v1.DeletePersonsBatchForTeamResponse);
- // WARNING: Same routing caveat as DeletePersons above.
- rpc DeletePersonlessDistinctIdsBatchForTeam(personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamRequest) returns (personhog.types.v1.DeletePersonlessDistinctIdsBatchForTeamResponse);
// Person split
// WARNING: Same routing caveat as DeletePersons above — write operation on person data
diff --git a/proto/personhog/types/v1/person.proto b/proto/personhog/types/v1/person.proto
index a7386ff93fcb..9977f702263f 100644
--- a/proto/personhog/types/v1/person.proto
+++ b/proto/personhog/types/v1/person.proto
@@ -207,20 +207,6 @@ message DeletePersonsBatchForTeamResponse {
int64 deleted_count = 1;
}
-// DeletePersonlessDistinctIdsBatchForTeamRequest deletes up to batch_size
-// posthog_personlessdistinctid rows for a team. These rows have no person FK, so
-// they aren't covered by person deletion. Callers should loop until deleted_count is 0.
-message DeletePersonlessDistinctIdsBatchForTeamRequest {
- int64 team_id = 1;
- // Max rows to delete per call. Must be > 0 and <= 50000.
- int64 batch_size = 2;
-}
-
-message DeletePersonlessDistinctIdsBatchForTeamResponse {
- // Number of rows deleted. 0 means no more rows to delete.
- int64 deleted_count = 1;
-}
-
// SplitPersonRequest splits specific distinct_ids off of a person onto new persons.
// Each distinct_id gets a new person with a deterministic UUID (UUIDv5 from team_id:distinct_id).
// The operation is atomic per request: all splits succeed or none do.
diff --git a/rust/personhog-replica/.sqlx/query-fc5037764742e242ed6745972363081ad6f13f95c1631338deb54f30d8b018f0.json b/rust/personhog-replica/.sqlx/query-fc5037764742e242ed6745972363081ad6f13f95c1631338deb54f30d8b018f0.json
deleted file mode 100644
index c9c66dee552e..000000000000
--- a/rust/personhog-replica/.sqlx/query-fc5037764742e242ed6745972363081ad6f13f95c1631338deb54f30d8b018f0.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "db_name": "PostgreSQL",
- "query": "\n DELETE FROM posthog_personlessdistinctid\n WHERE id IN (\n SELECT id FROM posthog_personlessdistinctid\n WHERE team_id = $1\n LIMIT $2\n FOR UPDATE SKIP LOCKED\n )\n ",
- "describe": {
- "columns": [],
- "parameters": {
- "Left": [
- "Int4",
- "Int8"
- ]
- },
- "nullable": []
- },
- "hash": "fc5037764742e242ed6745972363081ad6f13f95c1631338deb54f30d8b018f0"
-}
diff --git a/rust/personhog-replica/src/service/mod.rs b/rust/personhog-replica/src/service/mod.rs
index 67b365ce87f5..c67de1b162d8 100644
--- a/rust/personhog-replica/src/service/mod.rs
+++ b/rust/personhog-replica/src/service/mod.rs
@@ -19,16 +19,15 @@ use personhog_proto::personhog::types::v1::{
DeleteGroupTypeMappingsBatchForTeamRequest, DeleteGroupTypeMappingsBatchForTeamResponse,
DeleteGroupsBatchForTeamRequest, DeleteGroupsBatchForTeamResponse,
DeleteHashKeyOverridesByTeamsRequest, DeleteHashKeyOverridesByTeamsResponse,
- DeletePersonlessDistinctIdsBatchForTeamRequest,
- DeletePersonlessDistinctIdsBatchForTeamResponse, DeletePersonsBatchForTeamRequest,
- DeletePersonsBatchForTeamResponse, DeletePersonsRequest, DeletePersonsResponse,
- DistinctIdWithVersion, GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
- GetDistinctIdsForPersonsRequest, GetDistinctIdsForPersonsResponse, GetGroupRequest,
- GetGroupResponse, GetGroupTypeMappingByDashboardIdRequest,
- GetGroupTypeMappingByDashboardIdResponse, GetGroupTypeMappingsByProjectIdRequest,
- GetGroupTypeMappingsByProjectIdsRequest, GetGroupTypeMappingsByTeamIdRequest,
- GetGroupTypeMappingsByTeamIdsRequest, GetGroupsBatchRequest, GetGroupsBatchResponse,
- GetGroupsRequest, GetHashKeyOverrideContextRequest, GetHashKeyOverrideContextResponse,
+ DeletePersonsBatchForTeamRequest, DeletePersonsBatchForTeamResponse, DeletePersonsRequest,
+ DeletePersonsResponse, DistinctIdWithVersion, GetDistinctIdsForPersonRequest,
+ GetDistinctIdsForPersonResponse, GetDistinctIdsForPersonsRequest,
+ GetDistinctIdsForPersonsResponse, GetGroupRequest, GetGroupResponse,
+ GetGroupTypeMappingByDashboardIdRequest, GetGroupTypeMappingByDashboardIdResponse,
+ GetGroupTypeMappingsByProjectIdRequest, GetGroupTypeMappingsByProjectIdsRequest,
+ GetGroupTypeMappingsByTeamIdRequest, GetGroupTypeMappingsByTeamIdsRequest,
+ GetGroupsBatchRequest, GetGroupsBatchResponse, GetGroupsRequest,
+ GetHashKeyOverrideContextRequest, GetHashKeyOverrideContextResponse,
GetPersonByDistinctIdRequest, GetPersonByUuidRequest, GetPersonRequest, GetPersonResponse,
GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
GetPersonsRequest, GroupKey, GroupTypeMapping, GroupTypeMappingCount,
@@ -410,31 +409,6 @@ impl PersonHogReplica for PersonHogReplicaService {
Ok(Response::new(DeletePersonsResponse { deleted_count }))
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- request: Request<DeletePersonlessDistinctIdsBatchForTeamRequest>,
- ) -> Result<Response<DeletePersonlessDistinctIdsBatchForTeamResponse>, Status> {
- let req = request.into_inner();
-
- if req.batch_size <= 0 || req.batch_size > MAX_BATCH_DELETE_SIZE {
- return Err(Status::invalid_argument(format!(
- "batch_size must be between 1 and {MAX_BATCH_DELETE_SIZE}"
- )));
- }
-
- let deleted_count = self
- .storage
- .delete_personless_distinct_ids_batch_for_team(req.team_id, req.batch_size)
- .await
- .map_err(|e| {
- log_and_convert_error(e, "delete_personless_distinct_ids_batch_for_team")
- })?;
-
- Ok(Response::new(
- DeletePersonlessDistinctIdsBatchForTeamResponse { deleted_count },
- ))
- }
-
async fn delete_persons_batch_for_team(
&self,
request: Request<DeletePersonsBatchForTeamRequest>,
diff --git a/rust/personhog-replica/src/service/tests/mocks.rs b/rust/personhog-replica/src/service/tests/mocks.rs
index 1c592df99ec0..bf7995f18c83 100644
--- a/rust/personhog-replica/src/service/tests/mocks.rs
+++ b/rust/personhog-replica/src/service/tests/mocks.rs
@@ -103,14 +103,6 @@ impl storage::PersonLookup for FailingStorage {
Err(self.error.clone())
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- _team_id: i64,
- _batch_size: i64,
- ) -> storage::StorageResult<i64> {
- Err(self.error.clone())
- }
-
async fn split_person(
&self,
_team_id: i64,
@@ -485,14 +477,6 @@ impl storage::PersonLookup for SuccessStorage {
Ok(0)
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- _team_id: i64,
- _batch_size: i64,
- ) -> storage::StorageResult<i64> {
- Ok(0)
- }
-
async fn split_person(
&self,
_team_id: i64,
@@ -926,14 +910,6 @@ impl storage::PersonLookup for PopulatedStorage {
Ok(0)
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- _team_id: i64,
- _batch_size: i64,
- ) -> storage::StorageResult<i64> {
- Ok(0)
- }
-
async fn split_person(
&self,
_team_id: i64,
@@ -1343,14 +1319,6 @@ impl storage::PersonLookup for ConsistencyTrackingStorage {
Ok(0)
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- _team_id: i64,
- _batch_size: i64,
- ) -> storage::StorageResult<i64> {
- Ok(0)
- }
-
async fn split_person(
&self,
_team_id: i64,
diff --git a/rust/personhog-replica/src/storage/postgres/person.rs b/rust/personhog-replica/src/storage/postgres/person.rs
index 67143a2a3ec0..69ce79d31667 100644
--- a/rust/personhog-replica/src/storage/postgres/person.rs
+++ b/rust/personhog-replica/src/storage/postgres/person.rs
@@ -477,61 +477,6 @@ impl PersonLookup for PostgresStorage {
Ok(results.iter().sum())
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- team_id: i64,
- batch_size: i64,
- ) -> StorageResult<i64> {
- if batch_size <= 0 {
- return Ok(0);
- }
-
- let client = current_client_name();
- let method = current_method_name();
- let labels = [
- (
- "operation".to_string(),
- "delete_personless_distinct_ids_batch_for_team".to_string(),
- ),
- ("pool".to_string(), "bulk_primary".to_string()),
- ("client".to_string(), client.to_string()),
- ("method".to_string(), method.to_string()),
- ];
- let _timer = common_metrics::timing_guard(DB_QUERY_DURATION, &labels);
-
- let result = sqlx::query!(
- r#"
- DELETE FROM posthog_personlessdistinctid
- WHERE id IN (
- SELECT id FROM posthog_personlessdistinctid
- WHERE team_id = $1
- LIMIT $2
- FOR UPDATE SKIP LOCKED
- )
- "#,
- team_id as i32,
- batch_size
- )
- .execute(&self.bulk_primary_pool)
- .await?;
-
- common_metrics::histogram(
- DB_ROWS_RETURNED,
- &[
- (
- "operation".to_string(),
- "delete_personless_distinct_ids_batch_for_team".to_string(),
- ),
- ("pool".to_string(), "bulk_primary".to_string()),
- ("client".to_string(), client.to_string()),
- ("method".to_string(), method.to_string()),
- ],
- result.rows_affected() as f64,
- );
-
- Ok(result.rows_affected() as i64)
- }
-
async fn delete_persons_batch_for_team(
&self,
team_id: i64,
diff --git a/rust/personhog-replica/src/storage/traits/person.rs b/rust/personhog-replica/src/storage/traits/person.rs
index 0b33b3085a6f..1eee1e522503 100644
--- a/rust/personhog-replica/src/storage/traits/person.rs
+++ b/rust/personhog-replica/src/storage/traits/person.rs
@@ -70,15 +70,6 @@ pub trait PersonLookup: Send + Sync {
batch_size: i64,
) -> StorageResult<i64>;
- /// Delete up to `batch_size` posthog_personlessdistinctid rows for a team.
- /// These rows have no person FK, so they aren't covered by person deletion.
- /// Returns the number of deleted rows; 0 means no more rows to delete.
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- team_id: i64,
- batch_size: i64,
- ) -> StorageResult<i64>;
-
/// Atomically split distinct_ids off a person onto new persons.
///
/// Within a single transaction (constant statement count, set-based):
diff --git a/rust/personhog-replica/tests/common/mod.rs b/rust/personhog-replica/tests/common/mod.rs
index 595beeca7cb7..2841bc404af1 100644
--- a/rust/personhog-replica/tests/common/mod.rs
+++ b/rust/personhog-replica/tests/common/mod.rs
@@ -218,35 +218,12 @@ impl TestContext {
Ok(())
}
- pub async fn insert_personless_distinct_id(
- &self,
- distinct_id: &str,
- ) -> Result<(), sqlx::Error> {
- sqlx::query(
- r#"INSERT INTO posthog_personlessdistinctid
- (distinct_id, team_id, is_merged, created_at)
- VALUES ($1, $2, false, NOW())
- ON CONFLICT DO NOTHING"#,
- )
- .bind(distinct_id)
- .bind(self.team_id)
- .execute(&self.pool)
- .await?;
-
- Ok(())
- }
-
pub async fn cleanup(&self) -> Result<(), sqlx::Error> {
sqlx::query("DELETE FROM posthog_featureflaghashkeyoverride WHERE team_id = $1")
.bind(self.team_id)
.execute(&self.pool)
.await?;
- sqlx::query("DELETE FROM posthog_personlessdistinctid WHERE team_id = $1")
- .bind(self.team_id)
- .execute(&self.pool)
- .await?;
-
sqlx::query(
"DELETE FROM posthog_cohortpeople WHERE person_id IN (SELECT id FROM posthog_person WHERE team_id = $1)",
)
diff --git a/rust/personhog-replica/tests/service_tests.rs b/rust/personhog-replica/tests/service_tests.rs
index 4e6c4ce7a313..17467920671c 100644
--- a/rust/personhog-replica/tests/service_tests.rs
+++ b/rust/personhog-replica/tests/service_tests.rs
@@ -4,16 +4,16 @@ use common::TestContext;
use personhog_proto::personhog::replica::v1::person_hog_replica_server::PersonHogReplica;
use personhog_proto::personhog::types::v1::{
CheckCohortMembershipRequest, CountGroupTypeMappingsRequest,
- DeleteHashKeyOverridesByTeamsRequest, DeletePersonlessDistinctIdsBatchForTeamRequest,
- DeletePersonsBatchForTeamRequest, GetDistinctIdsForPersonRequest,
- GetDistinctIdsForPersonsRequest, GetGroupRequest, GetGroupTypeMappingsByProjectIdRequest,
- GetGroupTypeMappingsByProjectIdsRequest, GetGroupTypeMappingsByTeamIdRequest,
- GetGroupTypeMappingsByTeamIdsRequest, GetGroupsBatchRequest, GetGroupsRequest,
- GetHashKeyOverrideContextRequest, GetPersonByDistinctIdRequest, GetPersonByUuidRequest,
- GetPersonRequest, GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest,
- GetPersonsByUuidsRequest, GetPersonsRequest, GroupIdentifier, GroupKey,
- SetPersonDistinctIdVersionFloorRequest, SetPersonVersionFloorRequest, SplitPersonRequest,
- TeamDistinctId, UpsertHashKeyOverridesRequest,
+ DeleteHashKeyOverridesByTeamsRequest, DeletePersonsBatchForTeamRequest,
+ GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonsRequest, GetGroupRequest,
+ GetGroupTypeMappingsByProjectIdRequest, GetGroupTypeMappingsByProjectIdsRequest,
+ GetGroupTypeMappingsByTeamIdRequest, GetGroupTypeMappingsByTeamIdsRequest,
+ GetGroupsBatchRequest, GetGroupsRequest, GetHashKeyOverrideContextRequest,
+ GetPersonByDistinctIdRequest, GetPersonByUuidRequest, GetPersonRequest,
+ GetPersonsByDistinctIdsInTeamRequest, GetPersonsByDistinctIdsRequest, GetPersonsByUuidsRequest,
+ GetPersonsRequest, GroupIdentifier, GroupKey, SetPersonDistinctIdVersionFloorRequest,
+ SetPersonVersionFloorRequest, SplitPersonRequest, TeamDistinctId,
+ UpsertHashKeyOverridesRequest,
};
use personhog_replica::service::PersonHogReplicaService;
use rstest::rstest;
@@ -1323,82 +1323,6 @@ async fn test_delete_persons_batch_for_team_invalid_batch_size(#[case] batch_siz
ctx.cleanup().await.ok();
}
-#[tokio::test]
-async fn test_delete_personless_distinct_ids_batch_for_team() {
- let ctx = ServiceTestContext::new().await;
- ctx.insert_personless_distinct_id("svc_personless_1")
- .await
- .unwrap();
- ctx.insert_personless_distinct_id("svc_personless_2")
- .await
- .unwrap();
-
- let response = ctx
- .service
- .delete_personless_distinct_ids_batch_for_team(Request::new(
- DeletePersonlessDistinctIdsBatchForTeamRequest {
- team_id: ctx.team_id,
- batch_size: 1,
- },
- ))
- .await
- .expect("RPC failed");
- assert_eq!(response.into_inner().deleted_count, 1);
-
- let response = ctx
- .service
- .delete_personless_distinct_ids_batch_for_team(Request::new(
- DeletePersonlessDistinctIdsBatchForTeamRequest {
- team_id: ctx.team_id,
- batch_size: 100,
- },
- ))
- .await
- .expect("RPC failed");
- assert_eq!(response.into_inner().deleted_count, 1);
-
- let response = ctx
- .service
- .delete_personless_distinct_ids_batch_for_team(Request::new(
- DeletePersonlessDistinctIdsBatchForTeamRequest {
- team_id: ctx.team_id,
- batch_size: 100,
- },
- ))
- .await
- .expect("RPC failed");
- assert_eq!(response.into_inner().deleted_count, 0);
-
- ctx.cleanup().await.ok();
-}
-
-#[rstest]
-#[case::zero(0)]
-#[case::negative(-1)]
-#[case::exceeds_max(50001)]
-#[tokio::test]
-async fn test_delete_personless_distinct_ids_batch_for_team_invalid_batch_size(
- #[case] batch_size: i64,
-) {
- let ctx = ServiceTestContext::new().await;
-
- let result = ctx
- .service
- .delete_personless_distinct_ids_batch_for_team(Request::new(
- DeletePersonlessDistinctIdsBatchForTeamRequest {
- team_id: ctx.team_id,
- batch_size,
- },
- ))
- .await;
-
- let status = result.unwrap_err();
- assert_eq!(status.code(), tonic::Code::InvalidArgument);
- assert!(status.message().contains("batch_size"));
-
- ctx.cleanup().await.ok();
-}
-
#[rstest]
#[case::exceeds_max((0..251).map(|i| format!("did_{i}")).collect(), "Maximum")]
#[case::duplicates(vec!["[email protected]".to_string(), "[email protected]".to_string()], "Duplicate")]
diff --git a/rust/personhog-replica/tests/storage_tests.rs b/rust/personhog-replica/tests/storage_tests.rs
index b400bb6bbab3..822bc0c8ed99 100644
--- a/rust/personhog-replica/tests/storage_tests.rs
+++ b/rust/personhog-replica/tests/storage_tests.rs
@@ -1279,130 +1279,6 @@ async fn test_delete_persons_batch_for_team_cross_team_isolation() {
ctx.cleanup().await.ok();
}
-// ============================================================
-// Delete personless distinct IDs batch for team tests
-// ============================================================
-
-#[tokio::test]
-async fn test_delete_personless_distinct_ids_batch_for_team() {
- let ctx = TestContext::new().await;
-
- ctx.insert_personless_distinct_id("personless_1")
- .await
- .unwrap();
- ctx.insert_personless_distinct_id("personless_2")
- .await
- .unwrap();
- ctx.insert_personless_distinct_id("personless_3")
- .await
- .unwrap();
-
- // batch_size=2 deletes 2 of the 3 rows.
- let deleted = ctx
- .storage
- .delete_personless_distinct_ids_batch_for_team(ctx.team_id, 2)
- .await
- .expect("Failed to delete personless distinct IDs batch");
- assert_eq!(deleted, 2);
-
- // The remaining row is deleted next.
- let deleted = ctx
- .storage
- .delete_personless_distinct_ids_batch_for_team(ctx.team_id, 2)
- .await
- .expect("Failed to delete personless distinct IDs batch");
- assert_eq!(deleted, 1);
-
- // Nothing left.
- let deleted = ctx
- .storage
- .delete_personless_distinct_ids_batch_for_team(ctx.team_id, 2)
- .await
- .expect("Failed to delete personless distinct IDs batch");
- assert_eq!(deleted, 0);
-
- ctx.cleanup().await.ok();
-}
-
-#[tokio::test]
-async fn test_delete_personless_distinct_ids_batch_for_team_empty() {
- let ctx = TestContext::new().await;
-
- let deleted = ctx
- .storage
- .delete_personless_distinct_ids_batch_for_team(ctx.team_id, 1000)
- .await
- .expect("Failed to delete personless distinct IDs batch");
- assert_eq!(deleted, 0);
-
- ctx.cleanup().await.ok();
-}
-
-#[tokio::test]
-async fn test_delete_personless_distinct_ids_batch_for_team_cross_team_isolation() {
- let ctx = TestContext::new().await;
-
- ctx.insert_personless_distinct_id("team_a_personless")
- .await
- .unwrap();
-
- // Insert a personless distinct ID for a different team directly.
- let other_team_id = ctx.team_id + 1;
- sqlx::query(
- r#"INSERT INTO posthog_personlessdistinctid
- (distinct_id, team_id, is_merged, created_at)
- VALUES ($1, $2, false, NOW())
- ON CONFLICT DO NOTHING"#,
- )
- .bind("team_b_personless")
- .bind(other_team_id)
- .execute(&ctx.pool)
- .await
- .unwrap();
-
- let deleted = ctx
- .storage
- .delete_personless_distinct_ids_batch_for_team(ctx.team_id, 1000)
- .await
- .expect("Failed to delete personless distinct IDs batch");
- assert_eq!(deleted, 1);
-
- // The other team's row should remain.
- let remaining: i64 =
- sqlx::query_scalar("SELECT COUNT(*) FROM posthog_personlessdistinctid WHERE team_id = $1")
- .bind(other_team_id)
- .fetch_one(&ctx.pool)
- .await
- .unwrap();
- assert_eq!(remaining, 1);
-
- sqlx::query("DELETE FROM posthog_personlessdistinctid WHERE team_id = $1")
- .bind(other_team_id)
- .execute(&ctx.pool)
- .await
- .ok();
- ctx.cleanup().await.ok();
-}
-
-#[tokio::test]
-async fn test_delete_personless_distinct_ids_batch_for_team_zero_batch_size() {
- let ctx = TestContext::new().await;
-
- ctx.insert_personless_distinct_id("personless_zero")
- .await
- .unwrap();
-
- // A non-positive batch size deletes nothing.
- let deleted = ctx
- .storage
- .delete_personless_distinct_ids_batch_for_team(ctx.team_id, 0)
- .await
- .expect("Failed to delete personless distinct IDs batch");
- assert_eq!(deleted, 0);
-
- ctx.cleanup().await.ok();
-}
-
#[tokio::test]
async fn test_delete_persons_batch_for_team_rolls_back_on_partial_failure() {
let ctx = TestContext::new().await;
diff --git a/rust/personhog-router/src/proxy.rs b/rust/personhog-router/src/proxy.rs
index 79046f7227e5..1560eb054b1b 100644
--- a/rust/personhog-router/src/proxy.rs
+++ b/rust/personhog-router/src/proxy.rs
@@ -35,7 +35,6 @@ pub const KNOWN_METHODS: &[&str] = &[
"DeleteGroupTypeMappingsBatchForTeam",
"DeleteGroupsBatchForTeam",
"DeleteHashKeyOverridesByTeams",
- "DeletePersonlessDistinctIdsBatchForTeam",
"DeletePersons",
"DeletePersonsBatchForTeam",
"FencePerson",
diff --git a/rust/personhog-router/tests/common/mod.rs b/rust/personhog-router/tests/common/mod.rs
index 2c72cc001534..008b2d0ac991 100644
--- a/rust/personhog-router/tests/common/mod.rs
+++ b/rust/personhog-router/tests/common/mod.rs
@@ -23,8 +23,7 @@ use personhog_proto::personhog::types::v1::{
DeleteGroupTypeMappingResponse, DeleteGroupTypeMappingsBatchForTeamRequest,
DeleteGroupTypeMappingsBatchForTeamResponse, DeleteGroupsBatchForTeamRequest,
DeleteGroupsBatchForTeamResponse, DeleteHashKeyOverridesByTeamsRequest,
- DeleteHashKeyOverridesByTeamsResponse, DeletePersonlessDistinctIdsBatchForTeamRequest,
- DeletePersonlessDistinctIdsBatchForTeamResponse, DeletePersonsBatchForTeamRequest,
+ DeleteHashKeyOverridesByTeamsResponse, DeletePersonsBatchForTeamRequest,
DeletePersonsBatchForTeamResponse, DeletePersonsRequest, DeletePersonsResponse,
GetDistinctIdsForPersonRequest, GetDistinctIdsForPersonResponse,
GetDistinctIdsForPersonsRequest, GetDistinctIdsForPersonsResponse, GetGroupRequest,
@@ -447,15 +446,6 @@ impl PersonHogReplica for TestReplicaService {
}))
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- _request: Request<DeletePersonlessDistinctIdsBatchForTeamRequest>,
- ) -> Result<Response<DeletePersonlessDistinctIdsBatchForTeamResponse>, Status> {
- Ok(Response::new(
- DeletePersonlessDistinctIdsBatchForTeamResponse { deleted_count: 0 },
- ))
- }
-
async fn split_person(
&self,
_request: Request<SplitPersonRequest>,
diff --git a/rust/property-defs-rs/tests/group_type_resolver.rs b/rust/property-defs-rs/tests/group_type_resolver.rs
index 1e975d9aaa34..de4b0a05e6a5 100644
--- a/rust/property-defs-rs/tests/group_type_resolver.rs
+++ b/rust/property-defs-rs/tests/group_type_resolver.rs
@@ -337,12 +337,6 @@ impl PersonHogService for MockPersonHogService {
) -> Result<Response<DeletePersonsBatchForTeamResponse>, Status> {
Err(Status::unimplemented(""))
}
- async fn delete_personless_distinct_ids_batch_for_team(
- &self,
- _: Request<DeletePersonlessDistinctIdsBatchForTeamRequest>,
- ) -> Result<Response<DeletePersonlessDistinctIdsBatchForTeamResponse>, Status> {
- Err(Status::unimplemented(""))
- }
async fn get_group_type_mapping_by_dashboard_id(
&self,
_: Request<GetGroupTypeMappingByDashboardIdRequest>,