: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(insights): remove stale always-query-blocking flag check (#59166)
Thomas Obermüller8a23f135b033
diff --git a/frontend/src/queries/query.ts b/frontend/src/queries/query.tsindex 1cf0354d2bd8..a298e8e46664 100644--- a/frontend/src/queries/query.ts+++ b/frontend/src/queries/query.ts@@ -23,7 +23,6 @@ import {isHogQLQuery,isInsightQueryNode,isPersonsNode,- shouldQueryBeAsync,} from './utils'export function waitForPageVisible(signal?: AbortSignal): Promise<void> {@@ -172,18 +171,7 @@ async function executeQuery<N extends DataNode>(limitContext?: 'posthog_ai'): Promise<NonNullable<N['response']>> {if (!pollOnly) {- // Determine the refresh type based on the query node type and refresh parameter- let refreshParam: RefreshType-- if (posthog.isFeatureEnabled('always-query-blocking')) {- refreshParam = refresh || 'blocking'- } else if (shouldQueryBeAsync(queryNode)) {- // For insight queries, use async variants but preserve explicit force requests- refreshParam = refresh || 'async'- } else {- // For other queries, use blocking unless explicitly set to a different RefreshType- refreshParam = refresh || 'blocking'- }+ const refreshParam: RefreshType = refresh || 'blocking'const response = await api.query(queryNode, {requestOptions: methodOptions,