: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): add organization_id as a project group property on the duckgres sink flag (#69426)
Eric Duongc89cae4fd991
diff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/enablement.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/enablement.pyindex 437b03089841..5d3d7f740170 100644--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/enablement.py+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/enablement.py@@ -59,7 +59,7 @@ def duckgres_sink_team_ids() -> list[int] | None:groups={"organization": str(org_id), "project": str(team_id)},group_properties={"organization": {"id": str(org_id)},- "project": {"id": str(team_id)},+ "project": {"id": str(team_id), "organization_id": str(org_id)},},only_evaluate_locally=True,send_feature_flag_events=False,diff --git a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_enablement.py b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_enablement.pyindex bed633b5dcc7..2d1a8e0e1238 100644--- a/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_enablement.py+++ b/products/warehouse_sources/backend/temporal/data_imports/pipelines/pipeline_v3/duckgres/test_enablement.py@@ -31,7 +31,7 @@ def test_duckgres_sink_flag_evaluated_locally_with_group_properties(groups={"organization": str(org.id), "project": str(team.id)},group_properties={"organization": {"id": str(org.id)},- "project": {"id": str(team.id)},+ "project": {"id": str(team.id), "organization_id": str(org.id)},},only_evaluate_locally=True,send_feature_flag_events=False,