: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(persons): update delete version reference (#100511)
Paul D'Ambrafa03c8a18250
diff --git a/posthog/management/commands/sync_persons_to_clickhouse.py b/posthog/management/commands/sync_persons_to_clickhouse.pyindex 666a8a1773cd..715c3d1a1c40 100644--- a/posthog/management/commands/sync_persons_to_clickhouse.py+++ b/posthog/management/commands/sync_persons_to_clickhouse.py@@ -138,8 +138,9 @@ def run_person_sync(team_id: int, live_run: bool, deletes: bool):uuid=str(uuid),team_id=team_id,properties={},- version=int(version or 0)- + 100, # keep in sync with deletePerson in plugin-server/src/utils/db/db.ts+ # Keep this tombstone version in sync with deletePerson in+ # nodejs/src/common/persons/repositories/postgres-person-repository.ts.+ version=int(version or 0) + 100,is_deleted=True,)