: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(experiments): tag precompute window on the insert path builds actually use (#67333)
Juraj Majerik46dca54a30e8
diff --git a/products/analytics_platform/backend/lazy_computation/lazy_computation_executor.py b/products/analytics_platform/backend/lazy_computation/lazy_computation_executor.pyindex 269b5f785ac2..22c754167a15 100644--- a/products/analytics_platform/backend/lazy_computation/lazy_computation_executor.py+++ b/products/analytics_platform/backend/lazy_computation/lazy_computation_executor.py@@ -1202,7 +1202,12 @@ def ensure_precomputed(base_placeholders=base_placeholders,)set_ch_query_started(job.id)- tag_kwargs: dict = {"client_query_id": str(job.id), "team_id": t.id}+ tag_kwargs: dict = {+ "client_query_id": str(job.id),+ "team_id": t.id,+ "precompute_window_start": str(job.time_range_start),+ "precompute_window_end": str(job.time_range_end),+ }if query_type:tag_kwargs["query_type"] = query_typewith tags_context(**tag_kwargs):