diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json index 10e539b1d61ac5..9912dcceb7d7d6 100644 --- a/frontend/src/queries/schema.json +++ b/frontend/src/queries/schema.json @@ -6826,6 +6826,9 @@ "description": "Client provided query ID. Can be used to retrieve the status or cancel the query.", "type": "string" }, + "filters_override": { + "$ref": "#/definitions/DashboardFilter" + }, "query": { "$ref": "#/definitions/QuerySchema", "description": "Submit a JSON string representing a query for PostHog data analysis, for example a HogQL query.\n\nExample payload:\n\n```\n\n{\"query\": {\"kind\": \"HogQLQuery\", \"query\": \"select * from events limit 100\"}}\n\n```\n\nFor more details on HogQL queries, see the [PostHog HogQL documentation](/docs/hogql#api-access)." diff --git a/frontend/src/queries/schema.ts b/frontend/src/queries/schema.ts index 8ddd7d79fad6d7..a43c2d0ce6f990 100644 --- a/frontend/src/queries/schema.ts +++ b/frontend/src/queries/schema.ts @@ -1073,6 +1073,7 @@ export interface QueryRequest { * see the [PostHog HogQL documentation](/docs/hogql#api-access). */ query: QuerySchema + filters_override?: DashboardFilter } /** diff --git a/frontend/src/scenes/dashboard/dashboardLogic.tsx b/frontend/src/scenes/dashboard/dashboardLogic.tsx index 2d9a642ba5e773..f9a5b1c5e9949a 100644 --- a/frontend/src/scenes/dashboard/dashboardLogic.tsx +++ b/frontend/src/scenes/dashboard/dashboardLogic.tsx @@ -1082,6 +1082,7 @@ export const dashboardLogic = kea([ type: 'dashboard_load', context: 'dashboard', action, + status: 'success', primary_interaction_id: dashboardQueryId, time_to_see_data_ms: Math.floor(performance.now() - startTime), api_response_bytes: responseBytes, @@ -1170,6 +1171,7 @@ export const dashboardLogic = kea([ type: 'dashboard_load', context: 'dashboard', action, + status: 'success', primary_interaction_id: dashboardQueryId, api_response_bytes: totalResponseBytes, time_to_see_data_ms: Math.floor(performance.now() - refreshStartTime), diff --git a/posthog/schema.py b/posthog/schema.py index 81638c5ee0ff7c..a755fcf997b0ba 100644 --- a/posthog/schema.py +++ b/posthog/schema.py @@ -5564,6 +5564,7 @@ class QueryRequest(BaseModel): client_query_id: Optional[str] = Field( default=None, description="Client provided query ID. Can be used to retrieve the status or cancel the query." ) + filters_override: Optional[DashboardFilter] = None query: Union[ EventsNode, ActionsNode, @@ -5607,7 +5608,6 @@ class QueryRequest(BaseModel): discriminator="kind", ) refresh: Optional[Union[bool, str]] = None - filters_override: Optional[DashboardFilter] = None class QuerySchemaRoot(