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.

fix(personhog): make mapping re-emission a no-op on the personhog backend (#97500)

José Sequeira2490b9d34e2f
diff --git a/nodejs/src/common/personhog/personhog-person-repository.ts b/nodejs/src/common/personhog/personhog-person-repository.ts
index ec109b38df2a..c99522269965 100644
--- a/nodejs/src/common/personhog/personhog-person-repository.ts
+++ b/nodejs/src/common/personhog/personhog-person-repository.ts
@@ -168,7 +168,10 @@ export class PersonHogPersonRepository implements PersonRepository {
}
fetchPersonDistinctIdMappings(_teamId: TeamId, _distinctIds: string[]): Promise<PersonDistinctIdMapping[]> {
- return Promise.reject(new Error('fetchPersonDistinctIdMappings is not implemented for personhog'))
+ // The personhog identity service produces the ClickHouse mapping messages
+ // itself, so mapping re-emission has nothing to heal on this backend.
+ // Returning no rows disables it without failing the merge.
+ return Promise.resolve([])
}
// All write operations delegate directly to Postgres