: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
fix(data-warehouse): disable geoip on warehouse person-property updates (#108045)
jake sciotto81a5f351ee49
diff --git a/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer.py b/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer.pyindex 568bc2ec728e..73c2489e41ba 100644--- a/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer.py+++ b/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer.py@@ -150,7 +150,12 @@ def build_capture_kwargs(payload: dict[str, Any]) -> dict[str, Any]:"event_name": "$groupidentify","event_source": event_source,"distinct_id": str(distinct_id),- "properties": {"$group_type": group_type, "$group_key": str(group_key), "$group_set": properties},+ "properties": {+ "$group_type": group_type,+ "$group_key": str(group_key),+ "$group_set": properties,+ "$geoip_disable": True,+ },"process_person_profile": True,}return {@@ -158,7 +163,7 @@ def build_capture_kwargs(payload: dict[str, Any]) -> dict[str, Any]:"event_name": "$set","event_source": event_source,"distinct_id": str(distinct_id),- "properties": {"$set": properties},+ "properties": {"$set": properties, "$geoip_disable": True},"process_person_profile": True,}diff --git a/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer_test.py b/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer_test.pyindex 3e4f5e8996e6..d2558b7f153c 100644--- a/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer_test.py+++ b/products/warehouse_sources/backend/temporal/data_imports/person_property_update_consumer_test.py@@ -35,7 +35,7 @@ class TestBuildCaptureKwargs:"event_name": "$set","event_source": "x","distinct_id": "42",- "properties": {"$set": {"plan_tier": "pro"}},+ "properties": {"$set": {"plan_tier": "pro"}, "$geoip_disable": True},"process_person_profile": True,}@@ -60,7 +60,12 @@ class TestBuildCaptureKwargs:"event_name": "$groupidentify","event_source": EVENT_SOURCE,"distinct_id": "team-uuid",- "properties": {"$group_type": "organization", "$group_key": "acme", "$group_set": {"plan_tier": "pro"}},+ "properties": {+ "$group_type": "organization",+ "$group_key": "acme",+ "$group_set": {"plan_tier": "pro"},+ "$geoip_disable": True,+ },"process_person_profile": True,}