Skip to content

: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.

feat(error-tracking): add releases view to the issue page (#88363)

Aleksander Błaszkiewicz884047750af9
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index aaa6c290ebc1..28e4b14570e1 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6432,6 +6432,14 @@ snapshots:
hash: v1.k794b7964.c6e4938f5fea35b65ef57198ee2b0935151e55b3bfdc90f0d84fa4c416cf24a6.zmFTAxxBUspe5P1vhKPmyXwdDEqNg8ESGXd1V09FbCo
scenes-app-errortracking--group-page-many-assignees--light:
hash: v1.k794b7964.3288393a4ba05348eccc82815c30a4d38355bf1d0b31c4b360e1dbc20f0ccfe2.v07jBZUeqeXbQWK8J-JiY3y819Pad4pWNoBKvOIqF7w
+ scenes-app-errortracking--group-page-releases--dark:
+ hash: v1.k794b7964.fa7e884177c24a9ec44368828222b74c4870a11ce68574ed407811064aa0a86e.CuyYR06ujFSbRCseBnYrnppHqg2qd9ue-Qz-WTVWtJg
+ scenes-app-errortracking--group-page-releases--light:
+ hash: v1.k794b7964.b78d8817692091ffe0f28bee5402355fe8f7dc5879c6a20950895ed0caf638c6.V_72hxyAPHATCEfjW2lBpffRI6FEJ9br-AqzNZKMYQ0
+ scenes-app-errortracking--group-page-releases-stacked--dark:
+ hash: v1.k794b7964.df13f92aa545fa1056019d51f2dbcc7853919ed136f3cd58a345d9fa7bd64221.3PACUVdobKAIdsteppNzo6LALwqpw0zTXVfiM7fNVlQ
+ scenes-app-errortracking--group-page-releases-stacked--light:
+ hash: v1.k794b7964.22a72c64537f0bbdd54288f6355223e908a3d681738d55dfd940e35bf9d39e95.GkmPtbaBGZBssPIlnYxmU6Jej30vZ_gDlsOUC5YV7WU
scenes-app-errortracking--group-page-with-self-driving--dark:
hash: v1.k794b7964.361c63d8098b60ca1bbf69206dc8f6711320146663aaf32dbd6651168a0b600b.dMsSmC7-kkmsg2uY_UCUtBk-2KP8U8EC-CgTQBwgCkE
scenes-app-errortracking--group-page-with-self-driving--light:
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index d046bf9fadaa..ac86a0c027d8 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -316,6 +316,7 @@ export const FEATURE_FLAGS = {
ENGINEERING_ANALYTICS: 'engineering-analytics', // owner: #team-devex
ERROR_TRACKING_FINGERPRINT_MAP: 'error-tracking-fingerprint-map', // owner: #team-error-tracking
ERROR_TRACKING_ISSUE_CORRELATION: 'error-tracking-issue-correlation', // owner: @david #team-error-tracking
+ ERROR_TRACKING_ISSUE_RELEASES: 'error-tracking-issue-releases', // owner: #team-error-tracking
ERROR_TRACKING_ISSUE_SPLITTING: 'error-tracking-issue-splitting', // owner: @david #team-error-tracking
ERROR_TRACKING_RATE_LIMITING: 'error-tracking-rate-limiting', // owner: @ablaszkiewicz #team-error-tracking
ERROR_TRACKING_RATE_LIMITING_BYPASS: 'error-tracking-rate-limiting-bypass', // owner: @ablaszkiewicz #team-error-tracking
diff --git a/frontend/src/queries/schema.json b/frontend/src/queries/schema.json
index 5f3551c0f448..3bad890ad335 100644
--- a/frontend/src/queries/schema.json
+++ b/frontend/src/queries/schema.json
@@ -1637,6 +1637,9 @@
{
"$ref": "#/definitions/ErrorTrackingBreakdownsQuery"
},
+ {
+ "$ref": "#/definitions/ErrorTrackingReleasesQuery"
+ },
{
"$ref": "#/definitions/ErrorTrackingIssueCorrelationQuery"
},
@@ -7791,6 +7794,177 @@
],
"type": "object"
},
+ "CachedErrorTrackingReleasesQueryResponse": {
+ "additionalProperties": false,
+ "properties": {
+ "bucket_seconds": {
+ "$ref": "#/definitions/integer"
+ },
+ "buckets": {
+ "description": "ISO start of each bucket. The first one can start before `date_from`.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "cache_key": {
+ "type": "string"
+ },
+ "cache_target_age": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "calculation_trigger": {
+ "description": "What triggered the calculation of the query, leave empty if user/immediate",
+ "type": "string"
+ },
+ "date_from": {
+ "type": "string"
+ },
+ "date_to": {
+ "type": "string"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "is_cached": {
+ "type": "boolean"
+ },
+ "last_refresh": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "namespaces": {
+ "description": "Every app namespace in the range, regardless of `appNamespace`.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "next_allowed_client_refresh": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "other": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ErrorTrackingReleaseSeries"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Releases past `maxReleases`, summed."
+ },
+ "other_release_count": {
+ "$ref": "#/definitions/integer"
+ },
+ "query_metadata": {
+ "type": "object"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "release_count": {
+ "$ref": "#/definitions/integer",
+ "description": "Distinct releases in the range for the selected app, before folding."
+ },
+ "release_count_truncated": {
+ "description": "Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds.",
+ "type": "boolean"
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "description": "The releases returned on their own, in the requested order.",
+ "items": {
+ "$ref": "#/definitions/ErrorTrackingIssueRelease"
+ },
+ "type": "array"
+ },
+ "timezone": {
+ "type": "string"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "total": {
+ "$ref": "#/definitions/integer"
+ },
+ "unattributed": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ErrorTrackingReleaseSeries"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Exceptions without an app namespace or version."
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "bucket_seconds",
+ "buckets",
+ "cache_key",
+ "date_from",
+ "date_to",
+ "is_cached",
+ "last_refresh",
+ "namespaces",
+ "next_allowed_client_refresh",
+ "other",
+ "other_release_count",
+ "release_count",
+ "release_count_truncated",
+ "results",
+ "timezone",
+ "total",
+ "unattributed"
+ ],
+ "type": "object"
+ },
"CachedErrorTrackingSimilarIssuesQueryResponse": {
"additionalProperties": false,
"properties": {
@@ -21938,6 +22112,38 @@
"required": ["events"],
"type": "object"
},
+ "ErrorTrackingIssueRelease": {
+ "additionalProperties": false,
+ "properties": {
+ "build": {
+ "type": ["string", "null"]
+ },
+ "counts": {
+ "description": "Occurrences per bucket, aligned with the response's `buckets`.",
+ "items": {
+ "$ref": "#/definitions/integer"
+ },
+ "type": "array"
+ },
+ "first_seen": {
+ "type": ["string", "null"]
+ },
+ "last_seen": {
+ "type": ["string", "null"]
+ },
+ "namespace": {
+ "type": ["string", "null"]
+ },
+ "total": {
+ "$ref": "#/definitions/integer"
+ },
+ "version": {
+ "type": ["string", "null"]
+ }
+ },
+ "required": ["build", "counts", "first_seen", "last_seen", "namespace", "total", "version"],
+ "type": "object"
+ },
"ErrorTrackingIssueStatus": {
"enum": ["archived", "active", "resolved", "pending_release", "suppressed"],
"title": "ErrorTrackingIssueStatus",
@@ -22275,6 +22481,224 @@
"required": ["id", "name", "description", "assignee", "status", "first_seen"],
"type": "object"
},
+ "ErrorTrackingReleaseSeries": {
+ "additionalProperties": false,
+ "properties": {
+ "counts": {
+ "description": "Occurrences per bucket, aligned with the response's `buckets`.",
+ "items": {
+ "$ref": "#/definitions/integer"
+ },
+ "type": "array"
+ },
+ "first_seen": {
+ "type": ["string", "null"]
+ },
+ "last_seen": {
+ "type": ["string", "null"]
+ },
+ "total": {
+ "$ref": "#/definitions/integer"
+ }
+ },
+ "required": ["counts", "total", "first_seen", "last_seen"],
+ "type": "object"
+ },
+ "ErrorTrackingReleasesOrderBy": {
+ "enum": ["latest", "occurrences"],
+ "type": "string"
+ },
+ "ErrorTrackingReleasesQuery": {
+ "additionalProperties": false,
+ "properties": {
+ "appNamespace": {
+ "description": "Only count exceptions from this app namespace.",
+ "type": "string"
+ },
+ "dateRange": {
+ "$ref": "#/definitions/DateRange"
+ },
+ "filterGroup": {
+ "$ref": "#/definitions/PropertyGroupFilter"
+ },
+ "filterTestAccounts": {
+ "type": "boolean"
+ },
+ "issueId": {
+ "type": "string"
+ },
+ "kind": {
+ "const": "ErrorTrackingReleasesQuery",
+ "type": "string"
+ },
+ "maxReleases": {
+ "$ref": "#/definitions/integer",
+ "description": "How many releases to return on their own; the rest fold into `other`."
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "orderBy": {
+ "$ref": "#/definitions/ErrorTrackingReleasesOrderBy",
+ "description": "`latest` puts the release that first appeared most recently in the range on top, `occurrences` orders by volume."
+ },
+ "resolution": {
+ "$ref": "#/definitions/integer",
+ "description": "Number of time buckets across the date range."
+ },
+ "response": {
+ "$ref": "#/definitions/ErrorTrackingReleasesQueryResponse"
+ },
+ "tags": {
+ "$ref": "#/definitions/QueryLogTags"
+ },
+ "version": {
+ "description": "version of the node, used for schema migrations",
+ "type": "number"
+ }
+ },
+ "required": ["issueId", "kind"],
+ "type": "object"
+ },
+ "ErrorTrackingReleasesQueryResponse": {
+ "additionalProperties": false,
+ "properties": {
+ "bucket_seconds": {
+ "$ref": "#/definitions/integer"
+ },
+ "buckets": {
+ "description": "ISO start of each bucket. The first one can start before `date_from`.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "date_from": {
+ "type": "string"
+ },
+ "date_to": {
+ "type": "string"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "namespaces": {
+ "description": "Every app namespace in the range, regardless of `appNamespace`.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "other": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ErrorTrackingReleaseSeries"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Releases past `maxReleases`, summed."
+ },
+ "other_release_count": {
+ "$ref": "#/definitions/integer"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "release_count": {
+ "$ref": "#/definitions/integer",
+ "description": "Distinct releases in the range for the selected app, before folding."
+ },
+ "release_count_truncated": {
+ "description": "Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds.",
+ "type": "boolean"
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "description": "The releases returned on their own, in the requested order.",
+ "items": {
+ "$ref": "#/definitions/ErrorTrackingIssueRelease"
+ },
+ "type": "array"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "total": {
+ "$ref": "#/definitions/integer"
+ },
+ "unattributed": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ErrorTrackingReleaseSeries"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Exceptions without an app namespace or version."
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "bucket_seconds",
+ "buckets",
+ "date_from",
+ "date_to",
+ "namespaces",
+ "other",
+ "other_release_count",
+ "release_count",
+ "release_count_truncated",
+ "results",
+ "total",
+ "unattributed"
+ ],
+ "type": "object"
+ },
"ErrorTrackingSimilarIssuesQuery": {
"additionalProperties": false,
"properties": {
@@ -37033,6 +37457,7 @@
"ErrorTrackingSimilarIssuesQuery",
"ErrorTrackingFingerprintProjectionQuery",
"ErrorTrackingBreakdownsQuery",
+ "ErrorTrackingReleasesQuery",
"ErrorTrackingIssueCorrelationQuery",
"LogsQuery",
"LogAttributesQuery",
@@ -40327,6 +40752,144 @@
"required": ["results"],
"type": "object"
},
+ {
+ "additionalProperties": false,
+ "properties": {
+ "bucket_seconds": {
+ "$ref": "#/definitions/integer"
+ },
+ "buckets": {
+ "description": "ISO start of each bucket. The first one can start before `date_from`.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "date_from": {
+ "type": "string"
+ },
+ "date_to": {
+ "type": "string"
+ },
+ "error": {
+ "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
+ "type": "string"
+ },
+ "hogql": {
+ "description": "Generated HogQL query.",
+ "type": "string"
+ },
+ "modifiers": {
+ "$ref": "#/definitions/HogQLQueryModifiers",
+ "description": "Modifiers used when performing the query"
+ },
+ "namespaces": {
+ "description": "Every app namespace in the range, regardless of `appNamespace`.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "other": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ErrorTrackingReleaseSeries"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Releases past `maxReleases`, summed."
+ },
+ "other_release_count": {
+ "$ref": "#/definitions/integer"
+ },
+ "query_status": {
+ "$ref": "#/definitions/QueryStatus",
+ "description": "Query status indicates whether next to the provided data, a query is still running."
+ },
+ "release_count": {
+ "$ref": "#/definitions/integer",
+ "description": "Distinct releases in the range for the selected app, before folding."
+ },
+ "release_count_truncated": {
+ "description": "Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds.",
+ "type": "boolean"
+ },
+ "resolved_compare_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The resolved previous/comparison period date range, when comparing against another period"
+ },
+ "resolved_date_range": {
+ "$ref": "#/definitions/ResolvedDateRangeResponse",
+ "description": "The date range used for the query"
+ },
+ "results": {
+ "description": "The releases returned on their own, in the requested order.",
+ "items": {
+ "$ref": "#/definitions/ErrorTrackingIssueRelease"
+ },
+ "type": "array"
+ },
+ "timings": {
+ "description": "Measured timings for different parts of the query generation process",
+ "items": {
+ "$ref": "#/definitions/QueryTiming"
+ },
+ "type": "array"
+ },
+ "total": {
+ "$ref": "#/definitions/integer"
+ },
+ "unattributed": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ErrorTrackingReleaseSeries"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Exceptions without an app namespace or version."
+ },
+ "used_data_warehouse_sources": {
+ "description": "Connector-synced data warehouse sources referenced by this query, if any.",
+ "items": {
+ "$ref": "#/definitions/DataWarehouseSourceUsage"
+ },
+ "type": "array"
+ },
+ "warnings": {
+ "description": "Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access.",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/DataWarehouseSyncWarning"
+ },
+ {
+ "$ref": "#/definitions/AccessControlFilterWarning"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "bucket_seconds",
+ "buckets",
+ "date_from",
+ "date_to",
+ "namespaces",
+ "other",
+ "other_release_count",
+ "release_count",
+ "release_count_truncated",
+ "results",
+ "total",
+ "unattributed"
+ ],
+ "type": "object"
+ },
{
"additionalProperties": false,
"properties": {
@@ -47351,6 +47914,9 @@
{
"$ref": "#/definitions/ErrorTrackingBreakdownsQuery"
},
+ {
+ "$ref": "#/definitions/ErrorTrackingReleasesQuery"
+ },
{
"$ref": "#/definitions/ErrorTrackingIssueCorrelationQuery"
},
diff --git a/frontend/src/queries/schema/schema-general.ts b/frontend/src/queries/schema/schema-general.ts
index 02b70972ed7b..14907b5249d5 100644
--- a/frontend/src/queries/schema/schema-general.ts
+++ b/frontend/src/queries/schema/schema-general.ts
@@ -105,6 +105,7 @@ export enum NodeKind {
ErrorTrackingSimilarIssuesQuery = 'ErrorTrackingSimilarIssuesQuery',
ErrorTrackingFingerprintProjectionQuery = 'ErrorTrackingFingerprintProjectionQuery',
ErrorTrackingBreakdownsQuery = 'ErrorTrackingBreakdownsQuery',
+ ErrorTrackingReleasesQuery = 'ErrorTrackingReleasesQuery',
ErrorTrackingIssueCorrelationQuery = 'ErrorTrackingIssueCorrelationQuery',
LogsQuery = 'LogsQuery',
LogAttributesQuery = 'LogAttributesQuery',
@@ -254,6 +255,7 @@ export type AnyDataNode =
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| LogsQuery
| LogAttributesQuery
@@ -322,6 +324,7 @@ export type QuerySchema =
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -4008,6 +4011,61 @@ export interface ErrorTrackingBreakdownsQuery extends DataNode<ErrorTrackingBrea
maxValuesPerProperty?: integer
}
+export type ErrorTrackingReleasesOrderBy = 'latest' | 'occurrences'
+
+export interface ErrorTrackingReleasesQuery extends DataNode<ErrorTrackingReleasesQueryResponse> {
+ kind: NodeKind.ErrorTrackingReleasesQuery
+ issueId: ErrorTrackingIssue['id']
+ dateRange?: DateRange
+ filterGroup?: PropertyGroupFilter
+ filterTestAccounts?: boolean
+ /** Only count exceptions from this app namespace. */
+ appNamespace?: string
+ /** How many releases to return on their own; the rest fold into `other`. */
+ maxReleases?: integer
+ /** `latest` puts the release that first appeared most recently in the range on top, `occurrences` orders by volume. */
+ orderBy?: ErrorTrackingReleasesOrderBy
+ /** Number of time buckets across the date range. */
+ resolution?: integer
+}
+
+export interface ErrorTrackingReleaseSeries {
+ /** Occurrences per bucket, aligned with the response's `buckets`. */
+ counts: integer[]
+ total: integer
+ first_seen: string | null
+ last_seen: string | null
+}
+
+export interface ErrorTrackingIssueRelease extends ErrorTrackingReleaseSeries {
+ namespace: string | null
+ version: string | null
+ build: string | null
+}
+
+export interface ErrorTrackingReleasesQueryResponse extends AnalyticsQueryResponseBase {
+ /** The releases returned on their own, in the requested order. */
+ results: ErrorTrackingIssueRelease[]
+ date_from: string
+ date_to: string
+ /** ISO start of each bucket. The first one can start before `date_from`. */
+ buckets: string[]
+ bucket_seconds: integer
+ /** Releases past `maxReleases`, summed. */
+ other: ErrorTrackingReleaseSeries | null
+ other_release_count: integer
+ /** Exceptions without an app namespace or version. */
+ unattributed: ErrorTrackingReleaseSeries | null
+ /** Distinct releases in the range for the selected app, before folding. */
+ release_count: integer
+ /** Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds. */
+ release_count_truncated: boolean
+ /** Every app namespace in the range, regardless of `appNamespace`. */
+ namespaces: string[]
+ total: integer
+}
+export type CachedErrorTrackingReleasesQueryResponse = CachedQueryResponse<ErrorTrackingReleasesQueryResponse>
+
export interface ErrorTrackingIssueCorrelationQuery extends DataNode<ErrorTrackingIssueCorrelationQueryResponse> {
kind: NodeKind.ErrorTrackingIssueCorrelationQuery
events: string[]
diff --git a/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx b/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
index 0d41c3f98dbf..633c43d092d9 100644
--- a/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
+++ b/frontend/src/scenes/saved-insights/insightTypesMetadata.tsx
@@ -381,6 +381,12 @@ export const QUERY_TYPES_METADATA: Record<NodeKind, InsightTypeMetadata> = {
icon: IconWarning,
inMenu: false,
},
+ [NodeKind.ErrorTrackingReleasesQuery]: {
+ name: 'Error tracking releases',
+ description: 'Count occurrences of an error tracking issue per app release.',
+ icon: IconWarning,
+ inMenu: false,
+ },
[NodeKind.RecordingsQuery]: {
name: 'Session Recordings',
description: 'View available recordings.',
diff --git a/posthog/api/query.py b/posthog/api/query.py
index 93a066518540..89d4771596f6 100644
--- a/posthog/api/query.py
+++ b/posthog/api/query.py
@@ -174,6 +174,7 @@ def _process_query_request(
_QUERY_KIND_SCOPES: dict[str, list[str]] = {
"AccountsTableQuery": ["query:read", "account:read"],
"ErrorTrackingFingerprintProjectionQuery": ["query:read", "error_tracking:read"],
+ "ErrorTrackingReleasesQuery": ["query:read", "error_tracking:read"],
"MetricsQuery": ["metrics:read"],
# Both scopes listed: this result replaces the view's default query:read
# rather than adding to it, and a token must hold every listed scope.
diff --git a/posthog/clickhouse/query_tagging.py b/posthog/clickhouse/query_tagging.py
index aaa902a6bad8..46e11ecbc370 100644
--- a/posthog/clickhouse/query_tagging.py
+++ b/posthog/clickhouse/query_tagging.py
@@ -223,6 +223,7 @@ def kind_fallback_tags(kind: NodeKind) -> FallbackTags | None:
| NodeKind.ERROR_TRACKING_SIMILAR_ISSUES_QUERY
| NodeKind.ERROR_TRACKING_FINGERPRINT_PROJECTION_QUERY
| NodeKind.ERROR_TRACKING_BREAKDOWNS_QUERY
+ | NodeKind.ERROR_TRACKING_RELEASES_QUERY
):
return {"product": Product.ERROR_TRACKING}
case NodeKind.LOGS_QUERY | NodeKind.LOG_ATTRIBUTES_QUERY | NodeKind.LOG_VALUES_QUERY:
diff --git a/posthog/hogql_queries/query_runner.py b/posthog/hogql_queries/query_runner.py
index b6e73d3c2370..8df1e64a630f 100644
--- a/posthog/hogql_queries/query_runner.py
+++ b/posthog/hogql_queries/query_runner.py
@@ -1034,6 +1034,18 @@ def get_query_runner(
user=user,
)
+ if kind == "ErrorTrackingReleasesQuery":
+ from products.error_tracking.backend.facade.queries import ErrorTrackingReleasesQueryRunner
+
+ return ErrorTrackingReleasesQueryRunner(
+ query=query,
+ team=team,
+ timings=timings,
+ modifiers=modifiers,
+ limit_context=limit_context,
+ user=user,
+ )
+
if kind == "ExperimentFunnelsQuery":
from products.experiments.backend.hogql_queries.experiment_funnels_query_runner import (
ExperimentFunnelsQueryRunner,
diff --git a/posthog/schema.py b/posthog/schema.py
index 3ba50d0aba90..cb48cf0f0bdf 100644
--- a/posthog/schema.py
+++ b/posthog/schema.py
@@ -102,6 +102,7 @@ from posthog.schema_enums import (
ErrorTrackingIssueStatus as ErrorTrackingIssueStatus,
ErrorTrackingOrderBy as ErrorTrackingOrderBy,
ErrorTrackingQueryIssueSeverity as ErrorTrackingQueryIssueSeverity,
+ ErrorTrackingReleasesOrderBy as ErrorTrackingReleasesOrderBy,
EvaluationRuntime as EvaluationRuntime,
ExperimentMetricGoal as ExperimentMetricGoal,
ExperimentMetricMathType as ExperimentMetricMathType,
@@ -2486,7 +2487,7 @@ class QueryResponseAlternative7(BaseModel):
stdout: str | None = None
-class QueryResponseAlternative79(BaseModel):
+class QueryResponseAlternative80(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -4832,6 +4833,22 @@ class ErrorTrackingIssueFilter(BaseModel):
value: list[str | float | bool] | str | float | bool | None = None
+class ErrorTrackingIssueRelease(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ build: str | None = None
+ counts: list[int] = Field(
+ ...,
+ description="Occurrences per bucket, aligned with the response's `buckets`.",
+ )
+ first_seen: str | None = None
+ last_seen: str | None = None
+ namespace: str | None = None
+ total: int
+ version: str | None = None
+
+
class ErrorTrackingPendingFingerprintIssueStateUpdate(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -4852,6 +4869,19 @@ class ErrorTrackingPendingFingerprintIssueStateUpdate(BaseModel):
)
+class ErrorTrackingReleaseSeries(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ counts: list[int] = Field(
+ ...,
+ description="Occurrences per bucket, aligned with the response's `buckets`.",
+ )
+ first_seen: str | None = None
+ last_seen: str | None = None
+ total: int
+
+
class EventMetadataPropertyFilter(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -6415,7 +6445,7 @@ class QueryResponseAlternative10(BaseModel):
)
-class QueryResponseAlternative20(BaseModel):
+class QueryResponseAlternative21(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -6431,7 +6461,7 @@ class QueryResponseAlternative20(BaseModel):
)
-class QueryResponseAlternative30(BaseModel):
+class QueryResponseAlternative31(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -6440,7 +6470,7 @@ class QueryResponseAlternative30(BaseModel):
status: ExternalQueryStatus
-class QueryResponseAlternative86(BaseModel):
+class QueryResponseAlternative87(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -11290,6 +11320,91 @@ class CachedErrorTrackingFingerprintProjectionQueryResponse(BaseModel):
)
+class CachedErrorTrackingReleasesQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ bucket_seconds: int
+ buckets: list[str] = Field(
+ ...,
+ description=("ISO start of each bucket. The first one can start before `date_from`."),
+ )
+ cache_key: str
+ cache_target_age: AwareDatetime | None = None
+ calculation_trigger: str | None = Field(
+ default=None,
+ description=("What triggered the calculation of the query, leave empty if user/immediate"),
+ )
+ date_from: str
+ date_to: str
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ is_cached: bool
+ last_refresh: AwareDatetime
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ namespaces: list[str] = Field(
+ ...,
+ description="Every app namespace in the range, regardless of `appNamespace`.",
+ )
+ next_allowed_client_refresh: AwareDatetime
+ other: ErrorTrackingReleaseSeries | None = Field(..., description="Releases past `maxReleases`, summed.")
+ other_release_count: int
+ query_metadata: dict[str, Any] | None = None
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ release_count: int = Field(
+ ...,
+ description=("Distinct releases in the range for the selected app, before folding."),
+ )
+ release_count_truncated: bool = Field(
+ ...,
+ description=("Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingIssueRelease] = Field(
+ ..., description="The releases returned on their own, in the requested order."
+ )
+ timezone: str
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ total: int
+ unattributed: ErrorTrackingReleaseSeries | None = Field(
+ ..., description="Exceptions without an app namespace or version."
+ )
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
class CachedErrorTrackingSimilarIssuesQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -16599,6 +16714,80 @@ class ErrorTrackingRelationalIssue(BaseModel):
status: ErrorTrackingIssueStatus
+class ErrorTrackingReleasesQueryResponse(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ bucket_seconds: int
+ buckets: list[str] = Field(
+ ...,
+ description=("ISO start of each bucket. The first one can start before `date_from`."),
+ )
+ date_from: str
+ date_to: str
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ namespaces: list[str] = Field(
+ ...,
+ description="Every app namespace in the range, regardless of `appNamespace`.",
+ )
+ other: ErrorTrackingReleaseSeries | None = Field(..., description="Releases past `maxReleases`, summed.")
+ other_release_count: int
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ release_count: int = Field(
+ ...,
+ description=("Distinct releases in the range for the selected app, before folding."),
+ )
+ release_count_truncated: bool = Field(
+ ...,
+ description=("Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingIssueRelease] = Field(
+ ..., description="The releases returned on their own, in the requested order."
+ )
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ total: int
+ unattributed: ErrorTrackingReleaseSeries | None = Field(
+ ..., description="Exceptions without an app namespace or version."
+ )
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
class ErrorTrackingSimilarIssuesQueryResponse(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -19227,7 +19416,81 @@ class QueryResponseAlternative15(BaseModel):
)
-class QueryResponseAlternative21(BaseModel):
+class QueryResponseAlternative16(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ bucket_seconds: int
+ buckets: list[str] = Field(
+ ...,
+ description=("ISO start of each bucket. The first one can start before `date_from`."),
+ )
+ date_from: str
+ date_to: str
+ error: str | None = Field(
+ default=None,
+ description=(
+ "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise."
+ ),
+ )
+ hogql: str | None = Field(default=None, description="Generated HogQL query.")
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ namespaces: list[str] = Field(
+ ...,
+ description="Every app namespace in the range, regardless of `appNamespace`.",
+ )
+ other: ErrorTrackingReleaseSeries | None = Field(..., description="Releases past `maxReleases`, summed.")
+ other_release_count: int
+ query_status: QueryStatus | None = Field(
+ default=None,
+ description=("Query status indicates whether next to the provided data, a query is still running."),
+ )
+ release_count: int = Field(
+ ...,
+ description=("Distinct releases in the range for the selected app, before folding."),
+ )
+ release_count_truncated: bool = Field(
+ ...,
+ description=("Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds."),
+ )
+ resolved_compare_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None,
+ description=("The resolved previous/comparison period date range, when comparing against another period"),
+ )
+ resolved_date_range: ResolvedDateRangeResponse | None = Field(
+ default=None, description="The date range used for the query"
+ )
+ results: list[ErrorTrackingIssueRelease] = Field(
+ ..., description="The releases returned on their own, in the requested order."
+ )
+ timings: list[QueryTiming] | None = Field(
+ default=None,
+ description=("Measured timings for different parts of the query generation process"),
+ )
+ total: int
+ unattributed: ErrorTrackingReleaseSeries | None = Field(
+ ..., description="Exceptions without an app namespace or version."
+ )
+ used_data_warehouse_sources: list[DataWarehouseSourceUsage] | None = Field(
+ default=None,
+ description=("Connector-synced data warehouse sources referenced by this query, if any."),
+ )
+ warnings: list[DataWarehouseSyncWarning | AccessControlFilterWarning] | None = Field(
+ default=None,
+ description=(
+ "Warnings about data warehouse sources referenced by the query whose"
+ " latest sync failed, is paused, hit a billing limit, or is otherwise"
+ " stale. Results may not reflect current source data. Accumulated"
+ " across every HogQL execution that contributes to this response — so"
+ " insights backed by warehouse tables (Trends, Funnels, etc.) receive"
+ " the same warnings as raw HogQL queries. Also carries access control"
+ " warnings when a system-table query filters out objects the user can't"
+ " access."
+ ),
+ )
+
+
+class QueryResponseAlternative22(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19277,7 +19540,7 @@ class QueryResponseAlternative21(BaseModel):
)
-class QueryResponseAlternative22(BaseModel):
+class QueryResponseAlternative23(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19328,7 +19591,7 @@ class QueryResponseAlternative22(BaseModel):
)
-class QueryResponseAlternative23(BaseModel):
+class QueryResponseAlternative24(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19389,7 +19652,7 @@ class QueryResponseAlternative23(BaseModel):
)
-class QueryResponseAlternative24(BaseModel):
+class QueryResponseAlternative25(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19442,7 +19705,7 @@ class QueryResponseAlternative24(BaseModel):
)
-class QueryResponseAlternative25(BaseModel):
+class QueryResponseAlternative26(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19494,7 +19757,7 @@ class QueryResponseAlternative25(BaseModel):
)
-class QueryResponseAlternative27(BaseModel):
+class QueryResponseAlternative28(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19548,7 +19811,7 @@ class QueryResponseAlternative27(BaseModel):
)
-class QueryResponseAlternative28(BaseModel):
+class QueryResponseAlternative29(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19596,7 +19859,7 @@ class QueryResponseAlternative28(BaseModel):
)
-class QueryResponseAlternative29(BaseModel):
+class QueryResponseAlternative30(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19646,7 +19909,7 @@ class QueryResponseAlternative29(BaseModel):
)
-class QueryResponseAlternative31(BaseModel):
+class QueryResponseAlternative32(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19695,7 +19958,7 @@ class QueryResponseAlternative31(BaseModel):
)
-class QueryResponseAlternative32(BaseModel):
+class QueryResponseAlternative33(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19748,7 +20011,7 @@ class QueryResponseAlternative32(BaseModel):
)
-class QueryResponseAlternative33(BaseModel):
+class QueryResponseAlternative34(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19796,7 +20059,7 @@ class QueryResponseAlternative33(BaseModel):
)
-class QueryResponseAlternative34(BaseModel):
+class QueryResponseAlternative35(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19866,7 +20129,7 @@ class QueryResponseAlternative34(BaseModel):
)
-class QueryResponseAlternative35(BaseModel):
+class QueryResponseAlternative36(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19930,7 +20193,7 @@ class QueryResponseAlternative35(BaseModel):
)
-class QueryResponseAlternative36(BaseModel):
+class QueryResponseAlternative37(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -19983,7 +20246,7 @@ class QueryResponseAlternative36(BaseModel):
)
-class QueryResponseAlternative37(BaseModel):
+class QueryResponseAlternative38(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20036,7 +20299,7 @@ class QueryResponseAlternative37(BaseModel):
)
-class QueryResponseAlternative38(BaseModel):
+class QueryResponseAlternative39(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20089,7 +20352,7 @@ class QueryResponseAlternative38(BaseModel):
)
-class QueryResponseAlternative39(BaseModel):
+class QueryResponseAlternative40(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20142,7 +20405,7 @@ class QueryResponseAlternative39(BaseModel):
)
-class QueryResponseAlternative40(BaseModel):
+class QueryResponseAlternative41(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20195,7 +20458,7 @@ class QueryResponseAlternative40(BaseModel):
)
-class QueryResponseAlternative41(BaseModel):
+class QueryResponseAlternative42(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20246,7 +20509,7 @@ class QueryResponseAlternative41(BaseModel):
)
-class QueryResponseAlternative42(BaseModel):
+class QueryResponseAlternative43(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20307,7 +20570,7 @@ class QueryResponseAlternative42(BaseModel):
)
-class QueryResponseAlternative43(BaseModel):
+class QueryResponseAlternative44(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20360,7 +20623,7 @@ class QueryResponseAlternative43(BaseModel):
)
-class QueryResponseAlternative44(BaseModel):
+class QueryResponseAlternative45(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20412,7 +20675,7 @@ class QueryResponseAlternative44(BaseModel):
)
-class QueryResponseAlternative45(BaseModel):
+class QueryResponseAlternative46(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20466,7 +20729,7 @@ class QueryResponseAlternative45(BaseModel):
)
-class QueryResponseAlternative46(BaseModel):
+class QueryResponseAlternative47(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20514,7 +20777,7 @@ class QueryResponseAlternative46(BaseModel):
)
-class QueryResponseAlternative47(BaseModel):
+class QueryResponseAlternative48(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20566,7 +20829,7 @@ class QueryResponseAlternative47(BaseModel):
)
-class QueryResponseAlternative48(BaseModel):
+class QueryResponseAlternative49(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20618,7 +20881,7 @@ class QueryResponseAlternative48(BaseModel):
)
-class QueryResponseAlternative49(BaseModel):
+class QueryResponseAlternative50(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20671,7 +20934,7 @@ class QueryResponseAlternative49(BaseModel):
)
-class QueryResponseAlternative50(BaseModel):
+class QueryResponseAlternative51(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20719,7 +20982,7 @@ class QueryResponseAlternative50(BaseModel):
)
-class QueryResponseAlternative51(BaseModel):
+class QueryResponseAlternative52(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20772,7 +21035,7 @@ class QueryResponseAlternative51(BaseModel):
)
-class QueryResponseAlternative52(BaseModel):
+class QueryResponseAlternative53(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20823,7 +21086,7 @@ class QueryResponseAlternative52(BaseModel):
)
-class QueryResponseAlternative56(BaseModel):
+class QueryResponseAlternative57(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20874,7 +21137,7 @@ class QueryResponseAlternative56(BaseModel):
)
-class QueryResponseAlternative58(BaseModel):
+class QueryResponseAlternative59(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20926,7 +21189,7 @@ class QueryResponseAlternative58(BaseModel):
)
-class QueryResponseAlternative59(BaseModel):
+class QueryResponseAlternative60(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -20983,7 +21246,7 @@ class QueryResponseAlternative59(BaseModel):
)
-class QueryResponseAlternative60(BaseModel):
+class QueryResponseAlternative61(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21038,7 +21301,7 @@ class QueryResponseAlternative60(BaseModel):
)
-class QueryResponseAlternative61(BaseModel):
+class QueryResponseAlternative62(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21087,7 +21350,7 @@ class QueryResponseAlternative61(BaseModel):
)
-class QueryResponseAlternative62(BaseModel):
+class QueryResponseAlternative63(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21141,7 +21404,7 @@ class QueryResponseAlternative62(BaseModel):
)
-class QueryResponseAlternative63(BaseModel):
+class QueryResponseAlternative64(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21188,7 +21451,7 @@ class QueryResponseAlternative63(BaseModel):
)
-class QueryResponseAlternative64(BaseModel):
+class QueryResponseAlternative65(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21235,7 +21498,7 @@ class QueryResponseAlternative64(BaseModel):
)
-class QueryResponseAlternative65(BaseModel):
+class QueryResponseAlternative66(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21282,7 +21545,7 @@ class QueryResponseAlternative65(BaseModel):
)
-class QueryResponseAlternative66(BaseModel):
+class QueryResponseAlternative67(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21329,7 +21592,7 @@ class QueryResponseAlternative66(BaseModel):
)
-class QueryResponseAlternative68(BaseModel):
+class QueryResponseAlternative69(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21381,7 +21644,7 @@ class QueryResponseAlternative68(BaseModel):
)
-class QueryResponseAlternative70(BaseModel):
+class QueryResponseAlternative71(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21433,7 +21696,7 @@ class QueryResponseAlternative70(BaseModel):
)
-class QueryResponseAlternative71(BaseModel):
+class QueryResponseAlternative72(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21485,7 +21748,7 @@ class QueryResponseAlternative71(BaseModel):
)
-class QueryResponseAlternative72(BaseModel):
+class QueryResponseAlternative73(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21533,7 +21796,7 @@ class QueryResponseAlternative72(BaseModel):
)
-class QueryResponseAlternative73(BaseModel):
+class QueryResponseAlternative74(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21580,7 +21843,7 @@ class QueryResponseAlternative73(BaseModel):
)
-class QueryResponseAlternative74(BaseModel):
+class QueryResponseAlternative75(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21627,7 +21890,7 @@ class QueryResponseAlternative74(BaseModel):
)
-class QueryResponseAlternative75(BaseModel):
+class QueryResponseAlternative76(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21678,7 +21941,7 @@ class QueryResponseAlternative75(BaseModel):
)
-class QueryResponseAlternative76(BaseModel):
+class QueryResponseAlternative77(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21729,7 +21992,7 @@ class QueryResponseAlternative76(BaseModel):
)
-class QueryResponseAlternative77(BaseModel):
+class QueryResponseAlternative78(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21780,7 +22043,7 @@ class QueryResponseAlternative77(BaseModel):
)
-class QueryResponseAlternative78(BaseModel):
+class QueryResponseAlternative79(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21831,7 +22094,7 @@ class QueryResponseAlternative78(BaseModel):
)
-class QueryResponseAlternative80(BaseModel):
+class QueryResponseAlternative81(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21881,7 +22144,7 @@ class QueryResponseAlternative80(BaseModel):
)
-class QueryResponseAlternative81(BaseModel):
+class QueryResponseAlternative82(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21931,7 +22194,7 @@ class QueryResponseAlternative81(BaseModel):
)
-class QueryResponseAlternative82(BaseModel):
+class QueryResponseAlternative83(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -21978,7 +22241,7 @@ class QueryResponseAlternative82(BaseModel):
)
-class QueryResponseAlternative83(BaseModel):
+class QueryResponseAlternative84(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22029,7 +22292,7 @@ class QueryResponseAlternative83(BaseModel):
)
-class QueryResponseAlternative87(BaseModel):
+class QueryResponseAlternative88(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22076,7 +22339,7 @@ class QueryResponseAlternative87(BaseModel):
)
-class QueryResponseAlternative88(BaseModel):
+class QueryResponseAlternative89(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22123,7 +22386,7 @@ class QueryResponseAlternative88(BaseModel):
)
-class QueryResponseAlternative89(BaseModel):
+class QueryResponseAlternative90(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22180,7 +22443,7 @@ class QueryResponseAlternative89(BaseModel):
)
-class QueryResponseAlternative90(BaseModel):
+class QueryResponseAlternative91(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22235,7 +22498,7 @@ class QueryResponseAlternative90(BaseModel):
)
-class QueryResponseAlternative91(BaseModel):
+class QueryResponseAlternative92(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22282,7 +22545,7 @@ class QueryResponseAlternative91(BaseModel):
)
-class QueryResponseAlternative92(BaseModel):
+class QueryResponseAlternative93(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22334,7 +22597,7 @@ class QueryResponseAlternative92(BaseModel):
)
-class QueryResponseAlternative93(BaseModel):
+class QueryResponseAlternative94(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22381,7 +22644,7 @@ class QueryResponseAlternative93(BaseModel):
)
-class QueryResponseAlternative94(BaseModel):
+class QueryResponseAlternative95(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22428,7 +22691,7 @@ class QueryResponseAlternative94(BaseModel):
)
-class QueryResponseAlternative95(BaseModel):
+class QueryResponseAlternative96(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22475,7 +22738,7 @@ class QueryResponseAlternative95(BaseModel):
)
-class QueryResponseAlternative96(BaseModel):
+class QueryResponseAlternative97(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22522,7 +22785,7 @@ class QueryResponseAlternative96(BaseModel):
)
-class QueryResponseAlternative97(BaseModel):
+class QueryResponseAlternative98(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22569,7 +22832,7 @@ class QueryResponseAlternative97(BaseModel):
)
-class QueryResponseAlternative98(BaseModel):
+class QueryResponseAlternative99(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22616,7 +22879,7 @@ class QueryResponseAlternative98(BaseModel):
)
-class QueryResponseAlternative99(BaseModel):
+class QueryResponseAlternative100(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22663,7 +22926,7 @@ class QueryResponseAlternative99(BaseModel):
)
-class QueryResponseAlternative100(BaseModel):
+class QueryResponseAlternative101(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22713,7 +22976,7 @@ class QueryResponseAlternative100(BaseModel):
)
-class QueryResponseAlternative101(BaseModel):
+class QueryResponseAlternative102(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22760,7 +23023,7 @@ class QueryResponseAlternative101(BaseModel):
)
-class QueryResponseAlternative102(BaseModel):
+class QueryResponseAlternative103(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22807,7 +23070,7 @@ class QueryResponseAlternative102(BaseModel):
)
-class QueryResponseAlternative103(BaseModel):
+class QueryResponseAlternative104(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22854,7 +23117,7 @@ class QueryResponseAlternative103(BaseModel):
)
-class QueryResponseAlternative104(BaseModel):
+class QueryResponseAlternative105(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22901,7 +23164,7 @@ class QueryResponseAlternative104(BaseModel):
)
-class QueryResponseAlternative105(BaseModel):
+class QueryResponseAlternative106(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22948,7 +23211,7 @@ class QueryResponseAlternative105(BaseModel):
)
-class QueryResponseAlternative106(BaseModel):
+class QueryResponseAlternative107(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -22995,7 +23258,7 @@ class QueryResponseAlternative106(BaseModel):
)
-class QueryResponseAlternative107(BaseModel):
+class QueryResponseAlternative108(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23042,7 +23305,7 @@ class QueryResponseAlternative107(BaseModel):
)
-class QueryResponseAlternative108(BaseModel):
+class QueryResponseAlternative109(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23089,7 +23352,7 @@ class QueryResponseAlternative108(BaseModel):
)
-class QueryResponseAlternative109(BaseModel):
+class QueryResponseAlternative110(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -23136,7 +23399,7 @@ class QueryResponseAlternative109(BaseModel):
)
-class QueryResponseAlternative110(BaseModel):
+class QueryResponseAlternative111(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -26698,7 +26961,7 @@ class PropertyValuesQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative16(BaseModel):
+class QueryResponseAlternative17(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -27823,6 +28086,34 @@ class ErrorTrackingQuery(BaseModel):
withLastEvent: bool | None = None
+class ErrorTrackingReleasesQuery(BaseModel):
+ model_config = ConfigDict(
+ extra="forbid",
+ )
+ appNamespace: str | None = Field(default=None, description="Only count exceptions from this app namespace.")
+ dateRange: DateRange | None = None
+ filterGroup: PropertyGroupFilter | None = None
+ filterTestAccounts: bool | None = None
+ issueId: str
+ kind: Literal["ErrorTrackingReleasesQuery"] = "ErrorTrackingReleasesQuery"
+ maxReleases: int | None = Field(
+ default=None,
+ description=("How many releases to return on their own; the rest fold into `other`."),
+ )
+ modifiers: HogQLQueryModifiers | None = Field(default=None, description="Modifiers used when performing the query")
+ orderBy: ErrorTrackingReleasesOrderBy | None = Field(
+ default=None,
+ description=(
+ "`latest` puts the release that first appeared most recently in the range"
+ " on top, `occurrences` orders by volume."
+ ),
+ )
+ resolution: int | None = Field(default=None, description="Number of time buckets across the date range.")
+ response: ErrorTrackingReleasesQueryResponse | None = None
+ tags: QueryLogTags | None = None
+ version: float | None = Field(default=None, description="version of the node, used for schema migrations")
+
+
class ExperimentExposureQuery(BaseModel):
model_config = ConfigDict(
extra="forbid",
@@ -28229,7 +28520,7 @@ class PathsV2Query(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative69(BaseModel):
+class QueryResponseAlternative70(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -28646,7 +28937,7 @@ class LegacyExperimentQueryResponse(BaseModel):
)
-class QueryResponseAlternative19(BaseModel):
+class QueryResponseAlternative20(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -29047,7 +29338,7 @@ class FunnelsQuery(BaseModel):
version: float | None = Field(default=None, description="version of the node, used for schema migrations")
-class QueryResponseAlternative17(BaseModel):
+class QueryResponseAlternative18(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -29067,7 +29358,7 @@ class QueryResponseAlternative17(BaseModel):
)
-class QueryResponseAlternative18(BaseModel):
+class QueryResponseAlternative19(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -29088,7 +29379,7 @@ class QueryResponseAlternative18(BaseModel):
)
-class QueryResponseAlternative54(BaseModel):
+class QueryResponseAlternative55(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -29108,7 +29399,7 @@ class QueryResponseAlternative54(BaseModel):
)
-class QueryResponseAlternative55(BaseModel):
+class QueryResponseAlternative56(BaseModel):
model_config = ConfigDict(
extra="forbid",
)
@@ -29157,7 +29448,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative23
| QueryResponseAlternative24
| QueryResponseAlternative25
- | QueryResponseAlternative27
+ | QueryResponseAlternative26
| QueryResponseAlternative28
| QueryResponseAlternative29
| QueryResponseAlternative30
@@ -29167,8 +29458,8 @@ class QueryResponseAlternative(
| QueryResponseAlternative34
| QueryResponseAlternative35
| QueryResponseAlternative36
- | Any
| QueryResponseAlternative37
+ | Any
| QueryResponseAlternative38
| QueryResponseAlternative39
| QueryResponseAlternative40
@@ -29184,10 +29475,10 @@ class QueryResponseAlternative(
| QueryResponseAlternative50
| QueryResponseAlternative51
| QueryResponseAlternative52
- | QueryResponseAlternative54
+ | QueryResponseAlternative53
| QueryResponseAlternative55
| QueryResponseAlternative56
- | QueryResponseAlternative58
+ | QueryResponseAlternative57
| QueryResponseAlternative59
| QueryResponseAlternative60
| QueryResponseAlternative61
@@ -29196,7 +29487,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative64
| QueryResponseAlternative65
| QueryResponseAlternative66
- | QueryResponseAlternative68
+ | QueryResponseAlternative67
| QueryResponseAlternative69
| QueryResponseAlternative70
| QueryResponseAlternative71
@@ -29212,7 +29503,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative81
| QueryResponseAlternative82
| QueryResponseAlternative83
- | QueryResponseAlternative86
+ | QueryResponseAlternative84
| QueryResponseAlternative87
| QueryResponseAlternative88
| QueryResponseAlternative89
@@ -29237,6 +29528,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative108
| QueryResponseAlternative109
| QueryResponseAlternative110
+ | QueryResponseAlternative111
]
):
root: (
@@ -29266,7 +29558,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative23
| QueryResponseAlternative24
| QueryResponseAlternative25
- | QueryResponseAlternative27
+ | QueryResponseAlternative26
| QueryResponseAlternative28
| QueryResponseAlternative29
| QueryResponseAlternative30
@@ -29276,8 +29568,8 @@ class QueryResponseAlternative(
| QueryResponseAlternative34
| QueryResponseAlternative35
| QueryResponseAlternative36
- | Any
| QueryResponseAlternative37
+ | Any
| QueryResponseAlternative38
| QueryResponseAlternative39
| QueryResponseAlternative40
@@ -29293,10 +29585,10 @@ class QueryResponseAlternative(
| QueryResponseAlternative50
| QueryResponseAlternative51
| QueryResponseAlternative52
- | QueryResponseAlternative54
+ | QueryResponseAlternative53
| QueryResponseAlternative55
| QueryResponseAlternative56
- | QueryResponseAlternative58
+ | QueryResponseAlternative57
| QueryResponseAlternative59
| QueryResponseAlternative60
| QueryResponseAlternative61
@@ -29305,7 +29597,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative64
| QueryResponseAlternative65
| QueryResponseAlternative66
- | QueryResponseAlternative68
+ | QueryResponseAlternative67
| QueryResponseAlternative69
| QueryResponseAlternative70
| QueryResponseAlternative71
@@ -29321,7 +29613,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative81
| QueryResponseAlternative82
| QueryResponseAlternative83
- | QueryResponseAlternative86
+ | QueryResponseAlternative84
| QueryResponseAlternative87
| QueryResponseAlternative88
| QueryResponseAlternative89
@@ -29346,6 +29638,7 @@ class QueryResponseAlternative(
| QueryResponseAlternative108
| QueryResponseAlternative109
| QueryResponseAlternative110
+ | QueryResponseAlternative111
)
@@ -30280,6 +30573,7 @@ class HogQLAutocomplete(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| LogsQuery
| LogAttributesQuery
@@ -30403,6 +30697,7 @@ class HogQLMetadata(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| LogsQuery
| LogAttributesQuery
@@ -30511,6 +30806,7 @@ class MaxInsightContext(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -30650,6 +30946,7 @@ class QueryRequest(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -30781,6 +31078,7 @@ class QuerySchemaRoot(
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -30882,6 +31180,7 @@ class QuerySchemaRoot(
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -30988,6 +31287,7 @@ class QueryUpgradeRequest(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -31094,6 +31394,7 @@ class QueryUpgradeResponse(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
@@ -31386,6 +31687,7 @@ class VisualizationArtifactContent(BaseModel):
| ErrorTrackingSimilarIssuesQuery
| ErrorTrackingFingerprintProjectionQuery
| ErrorTrackingBreakdownsQuery
+ | ErrorTrackingReleasesQuery
| ErrorTrackingIssueCorrelationQuery
| ExperimentFunnelsQuery
| ExperimentTrendsQuery
diff --git a/posthog/schema_enums.py b/posthog/schema_enums.py
index c8759e0f80ac..480a0b0e3238 100644
--- a/posthog/schema_enums.py
+++ b/posthog/schema_enums.py
@@ -1164,6 +1164,11 @@ class ErrorTrackingQueryIssueSeverity(StrEnum):
CRITICAL = "critical"
+class ErrorTrackingReleasesOrderBy(StrEnum):
+ LATEST = "latest"
+ OCCURRENCES = "occurrences"
+
+
class EvaluationRuntime(StrEnum):
HOG = "hog"
LLM_JUDGE = "llm_judge"
@@ -3325,6 +3330,7 @@ class NodeKind(StrEnum):
ERROR_TRACKING_SIMILAR_ISSUES_QUERY = "ErrorTrackingSimilarIssuesQuery"
ERROR_TRACKING_FINGERPRINT_PROJECTION_QUERY = "ErrorTrackingFingerprintProjectionQuery"
ERROR_TRACKING_BREAKDOWNS_QUERY = "ErrorTrackingBreakdownsQuery"
+ ERROR_TRACKING_RELEASES_QUERY = "ErrorTrackingReleasesQuery"
ERROR_TRACKING_ISSUE_CORRELATION_QUERY = "ErrorTrackingIssueCorrelationQuery"
LOGS_QUERY = "LogsQuery"
LOG_ATTRIBUTES_QUERY = "LogAttributesQuery"
diff --git a/products/error_tracking/backend/facade/queries.py b/products/error_tracking/backend/facade/queries.py
index 0ac9189dd10a..91ad408a12bb 100644
--- a/products/error_tracking/backend/facade/queries.py
+++ b/products/error_tracking/backend/facade/queries.py
@@ -24,6 +24,9 @@ from products.error_tracking.backend.hogql_queries.error_tracking_issue_correlat
ErrorTrackingIssueCorrelationQueryRunner,
)
from products.error_tracking.backend.hogql_queries.error_tracking_query_runner import ErrorTrackingQueryRunner
+from products.error_tracking.backend.hogql_queries.error_tracking_releases_query_runner import (
+ ErrorTrackingReleasesQueryRunner,
+)
from products.error_tracking.backend.hogql_queries.error_tracking_similar_issues_query_runner import (
ErrorTrackingSimilarIssuesQueryRunner,
)
@@ -33,6 +36,7 @@ __all__ = [
"ErrorTrackingFingerprintProjectionQueryRunner",
"ErrorTrackingIssueCorrelationQueryRunner",
"ErrorTrackingQueryRunner",
+ "ErrorTrackingReleasesQueryRunner",
"ErrorTrackingSimilarIssuesQueryRunner",
"run_error_tracking_query",
]
diff --git a/products/error_tracking/backend/hogql_queries/error_tracking_releases_query_runner.py b/products/error_tracking/backend/hogql_queries/error_tracking_releases_query_runner.py
new file mode 100644
index 000000000000..ad34f04cd80f
--- /dev/null
+++ b/products/error_tracking/backend/hogql_queries/error_tracking_releases_query_runner.py
@@ -0,0 +1,305 @@
+import re
+import datetime
+from collections.abc import Callable
+from zoneinfo import ZoneInfo
+
+from posthog.schema import (
+ CachedErrorTrackingReleasesQueryResponse,
+ ErrorTrackingIssueRelease,
+ ErrorTrackingReleaseSeries,
+ ErrorTrackingReleasesOrderBy,
+ ErrorTrackingReleasesQuery,
+ ErrorTrackingReleasesQueryResponse,
+)
+
+from posthog.hogql import ast
+from posthog.hogql.constants import HogQLQuerySettings
+from posthog.hogql.parser import parse_select
+from posthog.hogql.property import property_to_expr
+from posthog.hogql.query import execute_hogql_query
+
+from posthog.hogql_queries.query_runner import AnalyticsQueryRunner
+from posthog.utils import relative_date_parse
+
+from products.error_tracking.backend.hogql_queries.access import ErrorTrackingQueryRunnerAccessMixin
+from products.error_tracking.backend.hogql_queries.error_tracking_query_runner_utils import validate_uuid_param
+
+DEFAULT_RESOLUTION = 40
+# Caps the `counts` lists in the response, whatever date range the request spans.
+MAX_RESOLUTION = 1000
+DEFAULT_MAX_RELEASES = 5
+# Matches the stacked chart's request. With MAX_RESOLUTION, it bounds a response at a million counts.
+MAX_RELEASES = 1000
+MIN_BUCKET_SECONDS = 60
+# Rows the query hands back for folding. Past this, the lowest-volume releases are dropped, so the
+# fold undercounts `other` but every returned series stays exact. A capped response says so, so the
+# panel can show its release count as a lower bound.
+MAX_QUERY_RELEASES = 5000
+
+# Bounded digit runs keep `int()` from raising on absurdly long client-set version strings. Only the
+# numeric prefix counts, so a hash or a prerelease tag still yields a usable tiebreaker.
+NUMERIC_VERSION = re.compile(r"^\d{1,18}(\.\d{1,18})*")
+
+ReleaseKey = tuple[str | None, str | None, str | None]
+
+
+class _Accumulator:
+ """Per-release occurrence counts while the query rows are folded into the response."""
+
+ def __init__(self, key: ReleaseKey) -> None:
+ self.key = key
+ # Sparse, so the thousands of releases that fold into `other` never allocate a full bucket grid.
+ self.counts: dict[int, int] = {}
+ self.total = 0
+ self.first_index = -1
+ self.last_index = -1
+
+ def add(self, index: int, count: int) -> None:
+ self.counts[index] = self.counts.get(index, 0) + count
+ self.total += count
+ if self.first_index == -1 or index < self.first_index:
+ self.first_index = index
+ if index > self.last_index:
+ self.last_index = index
+
+
+class ErrorTrackingReleasesQueryRunner(
+ ErrorTrackingQueryRunnerAccessMixin, AnalyticsQueryRunner[ErrorTrackingReleasesQueryResponse]
+):
+ query: ErrorTrackingReleasesQuery
+ cached_response: CachedErrorTrackingReleasesQueryResponse
+
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.query.issueId = validate_uuid_param(self.query.issueId, "issueId")
+ self.date_from = self.parse_relative_date_from(self.query.dateRange.date_from if self.query.dateRange else None)
+ self.date_to = self.parse_relative_date_to(self.query.dateRange.date_to if self.query.dateRange else None)
+ resolution = min(MAX_RESOLUTION, max(1, self.query.resolution or DEFAULT_RESOLUTION))
+ total_seconds = max(1, int((self.date_to - self.date_from).total_seconds()))
+ self.bucket_seconds = max(MIN_BUCKET_SECONDS, -(-total_seconds // resolution))
+ aligned_from = int(self.date_from.timestamp()) // self.bucket_seconds * self.bucket_seconds
+ self.bucket_starts = list(range(aligned_from, int(self.date_to.timestamp()), self.bucket_seconds))
+ if not self.bucket_starts:
+ self.bucket_starts = [aligned_from]
+
+ @classmethod
+ def parse_relative_date_from(cls, date: str | None) -> datetime.datetime:
+ if date == "all" or date is None:
+ return datetime.datetime.now(tz=ZoneInfo("UTC")) - datetime.timedelta(days=7)
+ return relative_date_parse(date, now=datetime.datetime.now(tz=ZoneInfo("UTC")), timezone_info=ZoneInfo("UTC"))
+
+ @classmethod
+ def parse_relative_date_to(cls, date: str | None) -> datetime.datetime:
+ if not date:
+ return datetime.datetime.now(tz=ZoneInfo("UTC"))
+ if date == "all":
+ raise ValueError("Invalid date range")
+ return relative_date_parse(date, ZoneInfo("UTC"), increase=True)
+
+ def to_query(self) -> ast.SelectQuery | ast.SelectSetQuery:
+ return parse_select(
+ """
+ SELECT
+ namespace,
+ version,
+ build,
+ groupArray(tuple(bucket, occurrences)) AS series,
+ sum(occurrences) AS total
+ FROM (
+ SELECT
+ toUnixTimestamp(toStartOfInterval(timestamp, toIntervalSecond({bucket_seconds}))) AS bucket,
+ properties.$app_namespace AS namespace,
+ properties.$app_version AS version,
+ toString(properties.$app_build) AS build,
+ count() AS occurrences
+ FROM events
+ WHERE {where}
+ GROUP BY bucket, namespace, version, build
+ )
+ GROUP BY namespace, version, build
+ ORDER BY total DESC
+ LIMIT {limit}
+ """,
+ placeholders={
+ "bucket_seconds": ast.Constant(value=self.bucket_seconds),
+ "where": self.events_where(),
+ "limit": ast.Constant(value=MAX_QUERY_RELEASES),
+ },
+ )
+
+ def events_where(self) -> ast.Expr:
+ conditions: list[ast.Expr] = [
+ ast.CompareOperation(
+ left=ast.Field(chain=["timestamp"]),
+ right=ast.Constant(value=self.date_from),
+ op=ast.CompareOperationOp.GtEq,
+ ),
+ ast.CompareOperation(
+ left=ast.Field(chain=["timestamp"]),
+ right=ast.Constant(value=self.date_to),
+ op=ast.CompareOperationOp.LtEq,
+ ),
+ ast.CompareOperation(
+ left=ast.Field(chain=["event"]), right=ast.Constant(value="$exception"), op=ast.CompareOperationOp.Eq
+ ),
+ # Resolve the issue's fingerprints once, inside ClickHouse, instead of joining the
+ # fingerprint state onto every event row. Merged issues can own hundreds of fingerprints.
+ ast.CompareOperation(
+ left=ast.Field(chain=["properties", "$exception_fingerprint"]),
+ op=ast.CompareOperationOp.In,
+ right=self.issue_fingerprints_query(),
+ ),
+ ]
+
+ if self.query.filterTestAccounts:
+ for prop in self.team.test_account_filters or []:
+ conditions.append(property_to_expr(prop, self.team))
+
+ if self.query.filterGroup:
+ conditions.append(property_to_expr(self.query.filterGroup, self.team))
+
+ return ast.And(exprs=conditions)
+
+ def issue_fingerprints_query(self) -> ast.SelectQuery | ast.SelectSetQuery:
+ # The tuple wrap keeps `argMax` from skipping a NULL issue_id at the latest version, so a
+ # fingerprint unassigned after a split does not resolve to its previous issue.
+ latest_state = parse_select(
+ """
+ SELECT
+ fingerprint,
+ tupleElement(argMax(tuple(issue_id), version), 1) AS issue_id,
+ argMax(is_deleted, version) AS is_deleted
+ FROM raw_error_tracking_fingerprint_issue_state
+ GROUP BY fingerprint
+ """
+ )
+ # Aggregate in the table's (team_id, fingerprint) sort order so the per-team latest-state
+ # GROUP BY streams instead of building a full-team hash table, which has no disk fallback and
+ # can hit MEMORY_LIMIT_EXCEEDED. Matches the shared issue-state helper on the same table.
+ assert isinstance(latest_state, ast.SelectQuery)
+ latest_state.settings = HogQLQuerySettings(optimize_aggregation_in_order=True)
+ return parse_select(
+ """
+ SELECT fingerprint
+ FROM {latest_state}
+ WHERE issue_id = {issue_id} AND is_deleted = 0
+ """,
+ placeholders={
+ "latest_state": latest_state,
+ "issue_id": ast.Constant(value=self.query.issueId),
+ },
+ )
+
+ def _calculate(self) -> ErrorTrackingReleasesQueryResponse:
+ with self.timings.measure("error_tracking_releases_hogql_execute"):
+ query_result = execute_hogql_query(
+ query=self.to_query(),
+ team=self.team,
+ user=self.user,
+ query_type="ErrorTrackingReleasesQuery",
+ timings=self.timings,
+ modifiers=self.modifiers,
+ limit_context=self.limit_context,
+ )
+
+ response = self.fold(query_result.results)
+ response.timings = query_result.timings
+ response.hogql = query_result.hogql
+ response.modifiers = self.modifiers
+ return response
+
+ def fold(self, rows: list) -> ErrorTrackingReleasesQueryResponse:
+ bucket_count = len(self.bucket_starts)
+ aligned_from = self.bucket_starts[0]
+ selected_namespace = self.query.appNamespace or None
+ releases: dict[ReleaseKey, _Accumulator] = {}
+ unattributed: _Accumulator | None = None
+ namespaces: set[str] = set()
+
+ for namespace, version, build, series, _total in rows:
+ # The WHERE bounds rows to [date_from, date_to] and the grid starts at or before date_from, so
+ # only a bucket that starts exactly at an aligned date_to falls outside the grid. That instant
+ # folds into the last bucket, which keeps the inclusive range the events list uses.
+ in_range = [
+ (max(0, min((int(bucket) - aligned_from) // self.bucket_seconds, bucket_count - 1)), int(count))
+ for bucket, count in series
+ ]
+ if namespace:
+ namespaces.add(namespace)
+ if selected_namespace is not None and namespace != selected_namespace:
+ continue
+ if not namespace and not version:
+ unattributed = unattributed or _Accumulator((None, None, None))
+ target = unattributed
+ else:
+ key: ReleaseKey = (namespace, version, build)
+ target = releases.setdefault(key, _Accumulator(key))
+ for index, count in in_range:
+ target.add(index, count)
+
+ ordered = sorted(releases.values(), key=self.sort_key(), reverse=True)
+ requested = self.query.maxReleases if self.query.maxReleases is not None else DEFAULT_MAX_RELEASES
+ max_releases = min(MAX_RELEASES, max(0, requested))
+ visible, hidden = ordered[:max_releases], ordered[max_releases:]
+
+ other: _Accumulator | None = None
+ if hidden:
+ other = _Accumulator((None, None, None))
+ for release in hidden:
+ for index, count in release.counts.items():
+ other.add(index, count)
+
+ total = sum(release.total for release in ordered) + (unattributed.total if unattributed else 0)
+ return ErrorTrackingReleasesQueryResponse(
+ date_from=self.date_from.isoformat(),
+ date_to=self.date_to.isoformat(),
+ buckets=[self.bucket_iso(index) for index in range(bucket_count)],
+ bucket_seconds=self.bucket_seconds,
+ results=[
+ ErrorTrackingIssueRelease(
+ namespace=release.key[0],
+ version=release.key[1],
+ build=release.key[2],
+ **self.series(release).model_dump(),
+ )
+ for release in visible
+ ],
+ other=self.series(other) if other else None,
+ other_release_count=len(hidden),
+ unattributed=self.series(unattributed) if unattributed else None,
+ release_count=len(ordered),
+ release_count_truncated=len(rows) >= MAX_QUERY_RELEASES,
+ namespaces=sorted(namespaces),
+ total=total,
+ )
+
+ def sort_key(self) -> Callable[[_Accumulator], tuple]:
+ order_by = self.query.orderBy or ErrorTrackingReleasesOrderBy.LATEST
+ if order_by == ErrorTrackingReleasesOrderBy.OCCURRENCES:
+ return lambda release: (release.total, release.first_index)
+ # When a release first appeared in the range is the only signal that works for every version
+ # format (semver, commit hashes, dates). Version numbers break ties, which are common because
+ # releases active before the range all start in the first bucket. Unversioned releases sort last.
+ return lambda release: (
+ release.key[1] is not None,
+ release.first_index,
+ version_tuple(release.key[1]),
+ version_tuple(release.key[2]),
+ release.total,
+ )
+
+ def bucket_iso(self, index: int) -> str:
+ return datetime.datetime.fromtimestamp(self.bucket_starts[index], tz=ZoneInfo("UTC")).isoformat()
+
+ def series(self, release: _Accumulator) -> ErrorTrackingReleaseSeries:
+ return ErrorTrackingReleaseSeries(
+ counts=[release.counts.get(index, 0) for index in range(len(self.bucket_starts))],
+ total=release.total,
+ first_seen=self.bucket_iso(release.first_index) if release.first_index >= 0 else None,
+ last_seen=self.bucket_iso(release.last_index) if release.last_index >= 0 else None,
+ )
+
+
+def version_tuple(value: str | None) -> tuple[int, ...]:
+ match = NUMERIC_VERSION.match(value or "")
+ return tuple(int(part) for part in match.group(0).split(".")) if match else ()
diff --git a/products/error_tracking/backend/hogql_queries/test/test_error_tracking_releases_query_runner.py b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_releases_query_runner.py
new file mode 100644
index 000000000000..6056cc838c8f
--- /dev/null
+++ b/products/error_tracking/backend/hogql_queries/test/test_error_tracking_releases_query_runner.py
@@ -0,0 +1,218 @@
+from freezegun import freeze_time
+from posthog.test.base import APIBaseTest, ClickhouseTestMixin, _create_event, flush_persons_and_events
+
+from parameterized import parameterized
+from rest_framework.exceptions import ValidationError
+
+from posthog.schema import (
+ DateRange,
+ ErrorTrackingReleasesOrderBy,
+ ErrorTrackingReleasesQuery,
+ ErrorTrackingReleasesQueryResponse,
+)
+
+from products.error_tracking.backend.hogql_queries.error_tracking_releases_query_runner import (
+ MAX_QUERY_RELEASES,
+ MAX_RELEASES,
+ MAX_RESOLUTION,
+ ErrorTrackingReleasesQueryRunner,
+ version_tuple,
+)
+from products.error_tracking.backend.models import (
+ ErrorTrackingIssue,
+ ErrorTrackingIssueFingerprintV2,
+ sync_issues_to_clickhouse,
+)
+
+ISSUE_ID = "01936e7f-d7ff-7314-b2d4-7627981e34f0"
+OTHER_ISSUE_ID = "01936e7f-d7ff-7314-b2d4-7627981e34f1"
+
+
+class TestErrorTrackingReleasesQueryRunner(ClickhouseTestMixin, APIBaseTest):
+ def create_issue(self, issue_id: str, fingerprints: list[str]) -> ErrorTrackingIssue:
+ issue = ErrorTrackingIssue.objects.create(id=issue_id, team=self.team)
+ for fingerprint in fingerprints:
+ ErrorTrackingIssueFingerprintV2.objects.create(team=self.team, issue=issue, fingerprint=fingerprint)
+ sync_issues_to_clickhouse(issue_ids=[issue.id], team_id=self.team.pk)
+ return issue
+
+ def create_exception(
+ self, fingerprint: str, timestamp: str, release: tuple[str, str | None, str | None] | None
+ ) -> None:
+ properties: dict = {"$exception_fingerprint": fingerprint}
+ if release:
+ namespace, version, build = release
+ properties["$app_namespace"] = namespace
+ if version is not None:
+ properties["$app_version"] = version
+ if build is not None:
+ properties["$app_build"] = build
+ _create_event(
+ distinct_id="user", event="$exception", team=self.team, timestamp=timestamp, properties=properties
+ )
+
+ def run_query(self, **kwargs) -> ErrorTrackingReleasesQueryResponse:
+ query = ErrorTrackingReleasesQuery(
+ kind="ErrorTrackingReleasesQuery",
+ issueId=ISSUE_ID,
+ dateRange=DateRange(date_from="2024-01-01T00:00:00Z", date_to="2024-01-08T00:00:00Z"),
+ resolution=7,
+ **kwargs,
+ )
+ return ErrorTrackingReleasesQueryRunner(team=self.team, query=query).calculate()
+
+ @freeze_time("2024-01-10T12:00:00Z")
+ def test_folds_releases_across_merged_fingerprints(self) -> None:
+ self.create_issue(ISSUE_ID, ["fp-a", "fp-b"])
+ self.create_issue(OTHER_ISSUE_ID, ["fp-other"])
+ ios = ("com.example.ios", "2.9.0", "1502")
+ old_ios = ("com.example.ios", "2.8.0", "1460")
+ android = ("com.example.android", "2.9.0", "20901")
+ for fingerprint, day, release in [
+ ("fp-a", 1, old_ios),
+ ("fp-b", 2, old_ios),
+ ("fp-a", 4, ios),
+ ("fp-b", 4, ios),
+ ("fp-a", 5, ios),
+ ("fp-a", 5, android),
+ ("fp-a", 3, None),
+ ("fp-other", 4, ios),
+ ]:
+ self.create_exception(fingerprint, f"2024-01-0{day}T10:00:00Z", release)
+ flush_persons_and_events()
+
+ response = self.run_query(maxReleases=2)
+
+ assert response.bucket_seconds == 24 * 60 * 60
+ assert len(response.buckets) == 7
+ # Newest first appearance on top.
+ assert [(r.namespace, r.version, r.build, r.total) for r in response.results] == [
+ ("com.example.android", "2.9.0", "20901", 1),
+ ("com.example.ios", "2.9.0", "1502", 3),
+ ]
+ assert response.results[1].counts == [0, 0, 0, 2, 1, 0, 0]
+ assert response.results[1].first_seen == "2024-01-04T00:00:00+00:00"
+ assert response.results[1].last_seen == "2024-01-05T00:00:00+00:00"
+ assert response.other is not None
+ assert response.other.counts == [1, 1, 0, 0, 0, 0, 0]
+ assert response.other_release_count == 1
+ assert response.unattributed is not None
+ assert response.unattributed.total == 1
+ assert response.release_count == 3
+ assert response.namespaces == ["com.example.android", "com.example.ios"]
+ assert response.total == 7
+
+ @freeze_time("2024-01-10T12:00:00Z")
+ def test_app_namespace_filter_and_occurrence_order(self) -> None:
+ self.create_issue(ISSUE_ID, ["fp-a"])
+ for release, count in [
+ (("com.example.ios", "2.9.1", "1507"), 1),
+ (("com.example.ios", "2.8.0", "1460"), 3),
+ (("com.example.android", "2.9.0", "20901"), 2),
+ ]:
+ for _ in range(count):
+ self.create_exception("fp-a", "2024-01-04T10:00:00Z", release)
+ self.create_exception("fp-a", "2024-01-04T10:00:00Z", None)
+ flush_persons_and_events()
+
+ response = self.run_query(appNamespace="com.example.ios", orderBy=ErrorTrackingReleasesOrderBy.OCCURRENCES)
+
+ assert [(r.version, r.total) for r in response.results] == [("2.8.0", 3), ("2.9.1", 1)]
+ assert response.unattributed is None
+ assert response.release_count == 2
+ assert response.namespaces == ["com.example.android", "com.example.ios"]
+ assert response.total == 4
+
+ @freeze_time("2024-01-10T12:00:00Z")
+ def test_latest_orders_by_first_seen_then_version(self) -> None:
+ self.create_issue(ISSUE_ID, ["fp-a"])
+ for day, release in [
+ (1, ("com.example.ios", "3.0.0", "1600")),
+ (1, ("com.example.ios", "2.9.0", "1502")),
+ (2, ("com.example.ios", None, None)),
+ (3, ("com.example.ios", "3a1b2c", None)),
+ (4, ("com.example.ios", "2.8.0", "1460")),
+ ]:
+ self.create_exception("fp-a", f"2024-01-0{day}T10:00:00Z", release)
+ flush_persons_and_events()
+
+ response = self.run_query()
+
+ # An old release that reappears late ranks first, and a hash orders like any other version.
+ # Releases that share a first bucket order by version number. Unversioned releases sort last.
+ assert [r.version for r in response.results] == ["2.8.0", "3a1b2c", "3.0.0", "2.9.0", None]
+
+ @freeze_time("2024-01-10T12:00:00Z")
+ def test_counts_an_event_at_the_inclusive_range_end(self) -> None:
+ self.create_issue(ISSUE_ID, ["fp-a"])
+ self.create_exception("fp-a", "2024-01-08T00:00:00Z", ("com.example.ios", "3.0.0", "1600"))
+ flush_persons_and_events()
+
+ response = self.run_query()
+
+ assert response.results[0].counts == [0, 0, 0, 0, 0, 0, 1]
+ assert response.total == 1
+
+ @parameterized.expand([(10**9, MAX_RESOLUTION + 1), (-1, 2)])
+ def test_clamps_resolution(self, resolution: int, max_bucket_count: int) -> None:
+ runner = ErrorTrackingReleasesQueryRunner(
+ team=self.team,
+ query=ErrorTrackingReleasesQuery(
+ kind="ErrorTrackingReleasesQuery",
+ issueId=ISSUE_ID,
+ dateRange=DateRange(date_from="2024-01-01T00:00:00Z", date_to="2024-01-08T00:00:00Z"),
+ resolution=resolution,
+ ),
+ )
+
+ assert 1 <= len(runner.bucket_starts) <= max_bucket_count
+
+ def test_caps_max_releases(self) -> None:
+ runner = ErrorTrackingReleasesQueryRunner(
+ team=self.team,
+ query=ErrorTrackingReleasesQuery(
+ kind="ErrorTrackingReleasesQuery",
+ issueId=ISSUE_ID,
+ dateRange=DateRange(date_from="2024-01-01T00:00:00Z", date_to="2024-01-08T00:00:00Z"),
+ resolution=7,
+ maxReleases=10**6,
+ ),
+ )
+ bucket = runner.bucket_starts[-1]
+ rows = [("com.example.ios", str(i), None, [(bucket, 1)], 1) for i in range(MAX_RELEASES + 1)]
+
+ response = runner.fold(rows)
+
+ assert len(response.results) == MAX_RELEASES
+ assert response.other_release_count == 1
+ assert response.other is not None
+ assert response.other.counts == [0, 0, 0, 0, 0, 0, 1]
+
+ def test_flags_a_release_count_the_query_capped(self) -> None:
+ runner = ErrorTrackingReleasesQueryRunner(
+ team=self.team,
+ query=ErrorTrackingReleasesQuery(
+ kind="ErrorTrackingReleasesQuery",
+ issueId=ISSUE_ID,
+ dateRange=DateRange(date_from="2024-01-01T00:00:00Z", date_to="2024-01-08T00:00:00Z"),
+ resolution=7,
+ ),
+ )
+ bucket = runner.bucket_starts[-1]
+
+ def rows(count: int) -> list:
+ return [("com.example.ios", str(index), None, [(bucket, 1)], 1) for index in range(count)]
+
+ assert runner.fold(rows(MAX_QUERY_RELEASES)).release_count_truncated is True
+ assert runner.fold(rows(MAX_QUERY_RELEASES - 1)).release_count_truncated is False
+
+ def test_rejects_malformed_issue_id(self) -> None:
+ with self.assertRaises(ValidationError):
+ ErrorTrackingReleasesQueryRunner(
+ team=self.team,
+ query=ErrorTrackingReleasesQuery(kind="ErrorTrackingReleasesQuery", issueId="not-a-uuid"),
+ )
+
+
+def test_version_tuple_bounds_digit_runs() -> None:
+ assert version_tuple("1" * 5000 + ".2") == (int("1" * 18),)
diff --git a/products/error_tracking/backend/tests/api/test_query_api.py b/products/error_tracking/backend/tests/api/test_query_api.py
index 15ba1641fb47..dc1c44ffe1cc 100644
--- a/products/error_tracking/backend/tests/api/test_query_api.py
+++ b/products/error_tracking/backend/tests/api/test_query_api.py
@@ -9,10 +9,13 @@ from unittest.mock import patch
from django.utils.timezone import now
from dateutil.relativedelta import relativedelta
+from parameterized import parameterized
from posthog.clickhouse.query_tagging import Feature, Product, get_query_tags
from posthog.constants import AvailableFeature
from posthog.models import PropertyDefinition
+from posthog.models.personal_api_key import PersonalAPIKey
+from posthog.models.utils import generate_random_token_personal, hash_key_value
from products.access_control.backend.models.property_access_control import PropertyAccessControl
from products.access_control.backend.property_access_control import PropertyAccessLevel
@@ -705,3 +708,25 @@ class TestErrorTrackingQueryAPI(ClickhouseTestMixin, APIBaseTest):
assert "$exception_issue_id" not in variables_properties
assert "$lib" not in variables_properties
assert "$current_url" not in variables_properties
+
+ # The runner's access check reads the token owner's RBAC, not the token's granted scopes, so a
+ # kind registered on the generic query endpoint without a _QUERY_KIND_SCOPES entry is reachable
+ # by any token holding only query:read.
+ @parameterized.expand(
+ [
+ (["query:read"], 403),
+ (["error_tracking:read"], 403),
+ (["query:read", "error_tracking:read"], 200),
+ ]
+ )
+ def test_releases_query_needs_both_scopes(self, scopes: list[str], expected_status: int) -> None:
+ value = generate_random_token_personal()
+ PersonalAPIKey.objects.create(label="test", user=self.user, secure_value=hash_key_value(value), scopes=scopes)
+
+ response = self.client.post(
+ f"/api/projects/{self.team.pk}/query/",
+ {"query": {"kind": "ErrorTrackingReleasesQuery", "issueId": self.issue_id}},
+ HTTP_AUTHORIZATION=f"Bearer {value}",
+ )
+
+ assert response.status_code == expected_status, response.json()
diff --git a/products/error_tracking/frontend/ErrorTracking.stories.tsx b/products/error_tracking/frontend/ErrorTracking.stories.tsx
index fa0ffb339369..c173a9c3a3e8 100644
--- a/products/error_tracking/frontend/ErrorTracking.stories.tsx
+++ b/products/error_tracking/frontend/ErrorTracking.stories.tsx
@@ -11,14 +11,23 @@ import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
import { mswDecorator } from '~/mocks/browser'
-import { ErrorTrackingQueryResponse, NodeKind } from '~/queries/schema/schema-general'
+import {
+ ErrorTrackingIssueRelease,
+ ErrorTrackingQueryResponse,
+ ErrorTrackingReleasesQueryResponse,
+ NodeKind,
+} from '~/queries/schema/schema-general'
import { errorTrackingQueryResponse, errorTrackingTypeIssue } from './__mocks__/error_tracking_query'
import { TEST_EVENTS } from './__mocks__/events'
import { results as stackFrameResults } from './__mocks__/stack_frames/batch_get'
import { BreakdownPreset } from './components/Breakdowns/consts'
import { miniBreakdownsLogic } from './components/Breakdowns/miniBreakdownsLogic'
-import { issueFilterPreviewLogic, IssueFilterPreview } from './components/IssueFilterPreview/issueFilterPreviewLogic'
+import {
+ issueFilterPreviewLogic,
+ IssueFilterPreview,
+ IssueReleasesViewMode,
+} from './components/IssueFilterPreview/issueFilterPreviewLogic'
import { errorTrackingIssueSceneLogic } from './scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic'
const ISSUE_ID = '01890a1b-2c3d-4e4f-8a9b-0c1d2e3f4a5b'
@@ -158,6 +167,84 @@ const STORY_BREAKDOWNS_RESPONSE = {
},
},
}
+// Each release is active over a slice of the date range (as fractions), with a volume shape over that slice
+const STORY_RELEASES: {
+ namespace: string | null
+ version: string | null
+ build: string | null
+ from: number
+ to: number
+ peak: number
+ shape: 'flat' | 'decay' | 'ramp' | 'hump'
+}[] = [
+ { namespace: 'com.example.app', version: '3.0.4', build: '398', from: 0, to: 1, peak: 2, shape: 'flat' },
+ { namespace: 'com.example.app', version: '3.1.0', build: '412', from: 0, to: 0.6, peak: 9, shape: 'decay' },
+ { namespace: 'com.example.app', version: '3.1.1', build: '415', from: 0.25, to: 0.85, peak: 14, shape: 'hump' },
+ { namespace: 'com.example.app', version: '3.2.0', build: '420', from: 0.65, to: 1, peak: 34, shape: 'ramp' },
+ { namespace: 'com.example.app', version: '3.2.1', build: '421', from: 0.88, to: 1, peak: 5, shape: 'flat' },
+ { namespace: null, version: null, build: null, from: 0.3, to: 0.5, peak: 1, shape: 'flat' },
+]
+const STORY_RELEASE_BUCKET_SECONDS = (7 * 24 * 60 * 60) / 40
+const STORY_RELEASE_BUCKETS = Array.from({ length: 40 }, (_, index) =>
+ new Date(Date.UTC(2024, 6, 2) + index * STORY_RELEASE_BUCKET_SECONDS * 1000).toISOString()
+)
+function storyReleaseSeries(release: (typeof STORY_RELEASES)[number]): ErrorTrackingIssueRelease {
+ const counts = STORY_RELEASE_BUCKETS.map(() => 0)
+ const start = Math.floor(release.from * counts.length)
+ const end = Math.ceil(release.to * counts.length)
+ for (let index = start; index < end; index++) {
+ const progress = (index - start) / Math.max(1, end - start - 1)
+ const jitter = 0.7 + ((index * 7) % 4) / 10
+ const factor = {
+ flat: 1,
+ decay: 1 - 0.85 * progress,
+ ramp: 0.15 + 0.85 * progress,
+ hump: Math.sin(Math.PI * progress),
+ }[release.shape]
+ counts[index] = Math.round(release.peak * factor * jitter)
+ }
+ const seen = counts.map((count, index) => (count > 0 ? index : -1)).filter((index) => index >= 0)
+ return {
+ namespace: release.namespace,
+ version: release.version,
+ build: release.build,
+ counts,
+ total: counts.reduce((sum, count) => sum + count, 0),
+ first_seen: seen.length ? STORY_RELEASE_BUCKETS[seen[0]] : null,
+ last_seen: seen.length ? STORY_RELEASE_BUCKETS[seen[seen.length - 1]] : null,
+ }
+}
+function storyReleasesResponse(maxReleases: number): ErrorTrackingReleasesQueryResponse {
+ const series = STORY_RELEASES.map(storyReleaseSeries)
+ const releases = series.filter((release) => release.namespace !== null).reverse()
+ const unattributed = series.find((release) => release.namespace === null) ?? null
+ const visible = releases.slice(0, maxReleases)
+ const hidden = releases.slice(maxReleases)
+ const other = hidden.length
+ ? {
+ counts: STORY_RELEASE_BUCKETS.map((_, index) =>
+ hidden.reduce((sum, release) => sum + release.counts[index], 0)
+ ),
+ total: hidden.reduce((sum, release) => sum + release.total, 0),
+ first_seen: hidden[0].first_seen,
+ last_seen: hidden[0].last_seen,
+ }
+ : null
+ return {
+ date_from: STORY_RELEASE_BUCKETS[0],
+ date_to: new Date(Date.UTC(2024, 6, 9)).toISOString(),
+ buckets: STORY_RELEASE_BUCKETS,
+ bucket_seconds: STORY_RELEASE_BUCKET_SECONDS,
+ results: visible,
+ other,
+ other_release_count: hidden.length,
+ unattributed,
+ release_count: releases.length,
+ release_count_truncated: false,
+ namespaces: ['com.example.app'],
+ total: series.reduce((sum, release) => sum + release.total, 0),
+ }
+}
const STORY_MANY_CUSTOM_PROPERTIES = Object.fromEntries(
Array.from({ length: 18 }, (_, index) => [`custom_property_${index + 1}`, `value_${index + 1}`])
)
@@ -338,7 +425,9 @@ const meta: Meta = {
},
post: {
'/api/environments/:team_id/query/:kind/': async ({ request }) => {
- const body = (await request.json()) as { query?: { kind?: string; select?: string[] } }
+ const body = (await request.json()) as {
+ query?: { kind?: string; select?: string[]; maxReleases?: number }
+ }
if (body.query?.kind === NodeKind.ErrorTrackingBreakdownsQuery) {
return [200, STORY_BREAKDOWNS_RESPONSE]
}
@@ -350,6 +439,9 @@ const meta: Meta = {
? [200, STORY_TIMELINE_RESPONSE]
: [200, STORY_EVENTS_RESPONSE]
}
+ if (body.query?.kind === NodeKind.ErrorTrackingReleasesQuery) {
+ return [200, storyReleasesResponse(body.query.maxReleases ?? 5)]
+ }
return body.query?.kind === NodeKind.HogQLQuery
? [200, { results: [] }]
: [200, STORY_SUMMARY_RESPONSE]
@@ -409,18 +501,21 @@ function IssueScenePreviewStory({
selectedEventProperties,
openBreakdown,
propertyFilter,
+ releasesViewMode,
}: {
activePreview: IssueFilterPreview
selectedEventProperties?: string
openBreakdown?: BreakdownPreset
propertyFilter?: { key: string; value: string }
+ releasesViewMode?: IssueReleasesViewMode
}): JSX.Element {
- const { applyPropertyFilter, setActivePreview } = useActions(issueFilterPreviewLogic)
+ const { applyPropertyFilter, setActivePreview, setReleasesViewMode } = useActions(issueFilterPreviewLogic)
const { selectEvent } = useActions(errorTrackingIssueSceneLogic({ id: ISSUE_ID }))
const { openBreakdownDetails } = useActions(miniBreakdownsLogic({ issueId: ISSUE_ID }))
useLayoutEffect(() => {
setActivePreview(activePreview)
+ setReleasesViewMode(releasesViewMode ?? 'list')
if (selectedEventProperties) {
selectEvent({
event: '$exception',
@@ -447,9 +542,11 @@ function IssueScenePreviewStory({
openBreakdown,
openBreakdownDetails,
propertyFilter,
+ releasesViewMode,
selectEvent,
selectedEventProperties,
setActivePreview,
+ setReleasesViewMode,
])
return <App />
@@ -547,6 +644,24 @@ export const GroupPageFingerprintMap: Story = {
render: () => <IssueScenePreviewStory activePreview="fingerprints" />,
}
+export const GroupPageReleases: Story = {
+ name: 'Issue scene with releases',
+ parameters: {
+ pageUrl: urls.errorTrackingIssue(ISSUE_ID),
+ featureFlags: [FEATURE_FLAGS.ERROR_TRACKING_ISSUE_RELEASES],
+ },
+ render: () => <IssueScenePreviewStory activePreview="releases" />,
+}
+
+export const GroupPageReleasesStacked: Story = {
+ name: 'Issue scene with stacked releases',
+ parameters: {
+ pageUrl: urls.errorTrackingIssue(ISSUE_ID),
+ featureFlags: [FEATURE_FLAGS.ERROR_TRACKING_ISSUE_RELEASES],
+ },
+ render: () => <IssueScenePreviewStory activePreview="releases" releasesViewMode="stacked" />,
+}
+
export const GroupPageBreakdownLoading: Story = {
name: 'Issue scene with loading breakdown panel',
parameters: {
diff --git a/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx b/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx
index c1f77cee6753..4ee509059da2 100644
--- a/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx
+++ b/products/error_tracking/frontend/components/IssueFilterPreview/IssueFilterPreviewPanel.tsx
@@ -1,7 +1,7 @@
import { useActions, useValues } from 'kea'
import type { PropsWithChildren, UIEvent } from 'react'
-import { IconClock, IconListTree } from '@posthog/icons'
+import { IconClock, IconListTree, IconRocket } from '@posthog/icons'
import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { IconFingerprint } from 'lib/lemon-ui/icons'
@@ -10,7 +10,8 @@ import { Tabs, TabsContent, TabsList, TabsTrigger, Tooltip, TooltipContent, Tool
import { errorTrackingIssueSceneLogic } from '../../scenes/ErrorTrackingIssueScene/errorTrackingIssueSceneLogic'
import { MiniBreakdowns } from '../Breakdowns/MiniBreakdowns'
import { FingerprintPreview } from '../FingerprintPreview/FingerprintPreview'
-import { issueFilterPreviewLogic } from './issueFilterPreviewLogic'
+import { IssueReleasesPreview } from '../IssueReleases/IssueReleasesPreview'
+import { IssueFilterPreview, issueFilterPreviewLogic } from './issueFilterPreviewLogic'
import { TimeFilterPreview } from './TimeFilterPreview'
interface IssueFilterPreviewPanelProps {
@@ -27,7 +28,14 @@ export function IssueFilterPreviewPanel({
const { issueId } = useValues(errorTrackingIssueSceneLogic)
const { setActivePreview } = useActions(issueFilterPreviewLogic)
const hasFingerprintMap = useFeatureFlag('ERROR_TRACKING_FINGERPRINT_MAP')
- const selectedPreview = !hasFingerprintMap && activePreview === 'fingerprints' ? 'time' : activePreview
+ const hasReleases = useFeatureFlag('ERROR_TRACKING_ISSUE_RELEASES')
+ const previewEnabled: Record<IssueFilterPreview, boolean> = {
+ time: true,
+ properties: true,
+ fingerprints: hasFingerprintMap,
+ releases: hasReleases,
+ }
+ const selectedPreview = previewEnabled[activePreview] ? activePreview : 'time'
const handleScroll = (event: UIEvent<HTMLDivElement>): void => {
const { clientHeight, scrollHeight, scrollTop } = event.currentTarget
@@ -44,11 +52,7 @@ export function IssueFilterPreviewPanel({
orientation="vertical"
value={selectedPreview}
onValueChange={(preview) => {
- if (
- preview === 'time' ||
- preview === 'properties' ||
- (hasFingerprintMap && preview === 'fingerprints')
- ) {
+ if (isIssueFilterPreview(preview) && previewEnabled[preview]) {
setActivePreview(preview)
}
}}
@@ -104,6 +108,22 @@ export function IssueFilterPreviewPanel({
<TooltipContent side="right">Fingerprints</TooltipContent>
</Tooltip>
)}
+ {hasReleases && (
+ <Tooltip>
+ <TooltipTrigger
+ render={
+ <TabsTrigger
+ value="releases"
+ aria-label="Releases"
+ className="!size-8 !flex-none !justify-center !p-0"
+ />
+ }
+ >
+ <IconRocket />
+ </TooltipTrigger>
+ <TooltipContent side="right">Releases</TooltipContent>
+ </Tooltip>
+ )}
</TabsList>
<TabsContent value="time" className="min-w-0 !flex-none flex-1">
<TimeFilterPreview />
@@ -116,6 +136,11 @@ export function IssueFilterPreviewPanel({
<FingerprintPreview issueId={issueId} />
</TabsContent>
)}
+ {hasReleases && (
+ <TabsContent value="releases" className="min-w-0 !flex-none flex-1">
+ <IssueReleasesPreview issueId={issueId} />
+ </TabsContent>
+ )}
</Tabs>
</div>
{children}
@@ -123,3 +148,7 @@ export function IssueFilterPreviewPanel({
</div>
)
}
+
+function isIssueFilterPreview(value: string): value is IssueFilterPreview {
+ return value === 'time' || value === 'properties' || value === 'fingerprints' || value === 'releases'
+}
diff --git a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts
index 8e7973acbf84..7b84eb2c181d 100644
--- a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts
+++ b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.test.ts
@@ -2,7 +2,7 @@ import { quickFiltersSectionLogic } from 'lib/components/QuickFilters'
import { QuickFilterContext } from '~/queries/schema/schema-general'
import { initKeaTests } from '~/test/init'
-import { PropertyOperator, UniversalFiltersGroup } from '~/types'
+import { EventPropertyFilter, PropertyOperator, UniversalFiltersGroup } from '~/types'
import {
DEFAULT_DATE_RANGE,
@@ -77,6 +77,61 @@ describe('issueFilterPreviewLogic', () => {
filters.unmount()
})
+ it('applies grouped filters as one undo step without opening their chips', () => {
+ initKeaTests()
+ const filters = issueFiltersLogic({ logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY })
+ const preview = issueFilterPreviewLogic()
+ filters.mount()
+ preview.mount()
+ const chips = (): Partial<EventPropertyFilter>[] =>
+ (filters.values.filterGroup.values[0] as UniversalFiltersGroup).values.map((filter) => {
+ const { key, value, operator } = filter as EventPropertyFilter
+ return { key, value, operator }
+ })
+
+ preview.actions.setActivePreview('releases')
+ preview.actions.applyPropertyFilter('$browser', 'Chrome')
+ const beforeRelease = filters.values.filterGroup
+ preview.actions.applyPropertyFilters([
+ { key: '$app_version', value: '3.2.0', operator: PropertyOperator.Exact },
+ { key: '$app_build', value: null, operator: PropertyOperator.IsNotSet },
+ ])
+ const afterFirstRelease = filters.values.filterGroup
+ expect(chips()).toEqual([
+ { key: '$browser', value: ['Chrome'], operator: PropertyOperator.Exact },
+ { key: '$app_version', value: ['3.2.0'], operator: PropertyOperator.Exact },
+ { key: '$app_build', value: undefined, operator: PropertyOperator.IsNotSet },
+ ])
+ // FilterGroup opens the popover of every chip it does not count as preview-added.
+ expect(filters.values.filterAddedFromPreview).toBe(2)
+
+ // A second release replaces both keys and leaves other chips alone.
+ preview.actions.applyPropertyFilters([
+ { key: '$app_version', value: '3.3.0', operator: PropertyOperator.Exact },
+ { key: '$app_build', value: '20901', operator: PropertyOperator.Exact },
+ ])
+ expect(chips().map((chip) => chip.key)).toEqual(['$browser', '$app_version', '$app_build'])
+ expect(chips()[2]).toEqual({ key: '$app_build', value: ['20901'], operator: PropertyOperator.Exact })
+ expect(filters.values.filterAddedFromPreview).toBe(2)
+ const afterSecondRelease = filters.values.filterGroup
+
+ // Clearing one key from the preview removes only that chip and stays undoable.
+ preview.actions.clearPropertyFilter('$app_build')
+ expect(chips().map((chip) => chip.key)).toEqual(['$browser', '$app_version'])
+ preview.actions.clearPropertyFilter('$app_build')
+ expect(preview.values.filterGroupHistory).toHaveLength(4)
+
+ preview.actions.undoActivePreview()
+ expect(filters.values.filterGroup).toEqual(afterSecondRelease)
+ preview.actions.undoActivePreview()
+ expect(filters.values.filterGroup).toEqual(afterFirstRelease)
+ preview.actions.undoActivePreview()
+ expect(filters.values.filterGroup).toEqual(beforeRelease)
+
+ preview.unmount()
+ filters.unmount()
+ })
+
it('drops the undo stack when a filter changes manually after a preview', () => {
initKeaTests()
const filters = issueFiltersLogic({ logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY })
diff --git a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts
index 926442c09538..756cf9b4f34d 100644
--- a/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts
+++ b/products/error_tracking/frontend/components/IssueFilterPreview/issueFilterPreviewLogic.ts
@@ -13,7 +13,14 @@ import {
issueFiltersLogic,
} from '../IssueFilters/issueFiltersLogic'
-export type IssueFilterPreview = 'time' | 'properties' | 'fingerprints'
+export type IssueFilterPreview = 'time' | 'properties' | 'fingerprints' | 'releases'
+export type IssueReleasesViewMode = 'list' | 'stacked'
+
+export interface PreviewPropertyFilter {
+ key: string
+ value: string | null
+ operator: PropertyOperator
+}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface issueFilterPreviewLogicValues {
@@ -27,6 +34,7 @@ export interface issueFilterPreviewLogicValues {
dateRangeHistory: DateRange[]
filterGroupHistory: UniversalFiltersGroup[]
hasActiveFilters: boolean
+ releasesViewMode: IssueReleasesViewMode
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
@@ -44,6 +52,13 @@ export interface issueFilterPreviewLogicActions {
replaceExisting: boolean
value: boolean | number | string | null
} // issueFiltersLogic
+ removePropertyFilter: (
+ key: string,
+ fromPreview?: boolean | undefined
+ ) => {
+ fromPreview: boolean
+ key: string
+ } // issueFiltersLogic
setDateRange: (
dateRange: DateRange,
fromPreview?: boolean | undefined
@@ -81,9 +96,15 @@ export interface issueFilterPreviewLogicActions {
replaceExisting: boolean
value: boolean | number | string | null
}
+ applyPropertyFilters: (filters: PreviewPropertyFilter[]) => {
+ filters: PreviewPropertyFilter[]
+ }
clearNonDateFilters: () => {
value: true
}
+ clearPropertyFilter: (key: string) => {
+ key: string
+ }
popDateRangeHistory: () => {
value: true
}
@@ -99,6 +120,9 @@ export interface issueFilterPreviewLogicActions {
setActivePreview: (activePreview: IssueFilterPreview) => {
activePreview: IssueFilterPreview
}
+ setReleasesViewMode: (viewMode: IssueReleasesViewMode) => {
+ viewMode: IssueReleasesViewMode
+ }
undoActivePreview: () => {
value: true
}
@@ -142,7 +166,14 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
],
actions: [
issueFiltersLogic({ logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY }),
- ['addPropertyFilter', 'setDateRange', 'setFilterGroup', 'setFilterTestAccounts', 'setSearchQuery'],
+ [
+ 'addPropertyFilter',
+ 'removePropertyFilter',
+ 'setDateRange',
+ 'setFilterGroup',
+ 'setFilterTestAccounts',
+ 'setSearchQuery',
+ ],
quickFiltersSectionLogic({
context: QuickFilterContext.ErrorTrackingIssueFilters,
logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY,
@@ -152,6 +183,7 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
})),
actions({
setActivePreview: (activePreview: IssueFilterPreview) => ({ activePreview }),
+ setReleasesViewMode: (viewMode: IssueReleasesViewMode) => ({ viewMode }),
applyDateRangeFilter: (dateRange: DateRange) => ({ dateRange }),
applyPropertyFilter: (
key: string,
@@ -159,6 +191,8 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
operator: PropertyOperator = PropertyOperator.Exact,
replaceExisting: boolean = false
) => ({ key, value, operator, replaceExisting }),
+ applyPropertyFilters: (filters: PreviewPropertyFilter[]) => ({ filters }),
+ clearPropertyFilter: (key: string) => ({ key }),
undoActivePreview: true,
clearNonDateFilters: true,
popDateRangeHistory: true,
@@ -173,6 +207,13 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
setActivePreview: (_, { activePreview }) => activePreview,
},
],
+ releasesViewMode: [
+ 'list' as IssueReleasesViewMode,
+ { persist: true },
+ {
+ setReleasesViewMode: (_, { viewMode }) => viewMode,
+ },
+ ],
dateRangeHistory: [
[] as DateRange[],
{
@@ -235,6 +276,25 @@ export const issueFilterPreviewLogic = kea<issueFilterPreviewLogicType>([
actions.pushFilterGroupHistory(previousFilterGroup)
}
},
+ // Several properties identify one thing (a release), so they replace their keys together and undo as one step.
+ applyPropertyFilters: ({ filters }) => {
+ const previousFilterGroup = values.filterGroup
+ for (const filter of filters) {
+ actions.addPropertyFilter(filter.key, filter.value, filter.operator, false, true)
+ }
+ // Each add counts one chip as preview-added, which would open the popovers of the earlier ones.
+ actions.setFilterGroup(values.filterGroup, filters.length)
+ if (values.filterGroup !== previousFilterGroup) {
+ actions.pushFilterGroupHistory(previousFilterGroup)
+ }
+ },
+ clearPropertyFilter: ({ key }) => {
+ const previousFilterGroup = values.filterGroup
+ actions.removePropertyFilter(key, true)
+ if (values.filterGroup !== previousFilterGroup) {
+ actions.pushFilterGroupHistory(previousFilterGroup)
+ }
+ },
undoActivePreview: () => {
const previousDateRange = values.dateRangeHistory.at(-1)
const previousFilterGroup = values.filterGroupHistory.at(-1)
diff --git a/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts b/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts
index ca58e904a24a..18f1c00e3c8e 100644
--- a/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts
+++ b/products/error_tracking/frontend/components/IssueFilters/issueFiltersLogic.ts
@@ -57,6 +57,13 @@ export interface issueFiltersLogicActions {
replaceExisting: boolean
value: boolean | number | string | null
}
+ removePropertyFilter: (
+ key: string,
+ fromPreview?: boolean
+ ) => {
+ fromPreview: boolean
+ key: string
+ }
setDateRange: (
dateRange: DateRange,
fromPreview?: boolean
@@ -123,6 +130,7 @@ export const issueFiltersLogic = kea<issueFiltersLogicType>([
openConfig: boolean = true,
replaceExisting: boolean = false
) => ({ key, value, operator, openConfig, replaceExisting }),
+ removePropertyFilter: (key: string, fromPreview: boolean = false) => ({ key, fromPreview }),
setDateRange: (dateRange: DateRange, fromPreview: boolean = false) => ({ dateRange, fromPreview }),
setSearchInput: (searchInput: string) => ({ searchInput }),
setSearchQuery: (searchQuery: string) => ({ searchQuery }),
@@ -180,6 +188,25 @@ export const issueFiltersLogic = kea<issueFiltersLogicType>([
values: [{ ...firstGroup, values: nextFilters }, ...filterGroup.values.slice(1)],
}
},
+ removePropertyFilter: (filterGroup, { key }) => {
+ const firstGroup = filterGroup.values[0]
+ if (!isUniversalGroupFilterLike(firstGroup)) {
+ return filterGroup
+ }
+ const nextFilters = firstGroup.values.filter(
+ (existingFilter) =>
+ isUniversalGroupFilterLike(existingFilter) ||
+ existingFilter.type !== PropertyFilterType.Event ||
+ existingFilter.key !== key
+ )
+ if (nextFilters.length === firstGroup.values.length) {
+ return filterGroup
+ }
+ return {
+ type: FilterLogicalOperator.And,
+ values: [{ ...firstGroup, values: nextFilters }, ...filterGroup.values.slice(1)],
+ }
+ },
setFilterGroup: (_, { filterGroup }) =>
filterGroup?.values?.length ? filterGroup : DEFAULT_FILTER_GROUP,
},
@@ -215,6 +242,10 @@ export const issueFiltersLogic = kea<issueFiltersLogicType>([
addPropertyFilter: ({ openConfig }) => {
actions.setFilterGroup(values.filterGroup, openConfig ? 0 : 1)
},
+ // A nonzero count marks the change as preview-made, which keeps the preview undo history.
+ removePropertyFilter: ({ fromPreview }) => {
+ actions.setFilterGroup(values.filterGroup, fromPreview ? 1 : 0)
+ },
setSearchInput: async ({ searchInput }, breakpoint) => {
await breakpoint(250)
if (values.searchInput === searchInput) {
diff --git a/products/error_tracking/frontend/components/IssueReleases/IssueReleaseRow.tsx b/products/error_tracking/frontend/components/IssueReleases/IssueReleaseRow.tsx
new file mode 100644
index 000000000000..0ce06b9412c1
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/IssueReleaseRow.tsx
@@ -0,0 +1,92 @@
+import { useValues } from 'kea'
+
+import { Tooltip as LemonTooltip } from '@posthog/lemon-ui'
+
+import { dayjs } from 'lib/dayjs'
+import { Button, Text } from 'lib/ui/quill'
+import { humanFriendlyLargeNumber } from 'lib/utils/numbers'
+import { teamLogic } from 'scenes/teamLogic'
+
+import { IssueReleaseStrip as IssueReleaseStripData } from './issueReleases'
+import { IssueReleaseStrip } from './IssueReleaseStrip'
+
+interface IssueReleaseRowProps {
+ strip: IssueReleaseStripData
+ buckets: string[]
+ maxValue: number
+ total: number
+ onSelect: () => void
+}
+
+export function IssueReleaseRow({ strip, buckets, maxValue, total, onSelect }: IssueReleaseRowProps): JSX.Element {
+ const { timezone } = useValues(teamLogic)
+ const { series, kind, label, color } = strip
+ const share = total > 0 ? series.total / total : 0
+ const filterable = kind !== 'other'
+
+ const formatDate = (iso: string): string => dayjs(iso).tz(timezone).format('D MMM YYYY HH:mm')
+
+ const swatch = (
+ // eslint-disable-next-line react/forbid-dom-props
+ <span aria-hidden className="size-2 shrink-0 rounded-full" style={{ backgroundColor: color }} />
+ )
+
+ return (
+ <div className="grid h-7 grid-cols-[minmax(0,8rem)_minmax(0,1fr)_4.5rem] items-center gap-x-2">
+ <LemonTooltip
+ delayMs={0}
+ placement="right"
+ title={
+ <div className="flex flex-col gap-0.5">
+ <span className="font-semibold">{label}</span>
+ {strip.release && <span>{strip.release.namespace ?? 'No app namespace'}</span>}
+ {series.first_seen && series.last_seen && (
+ <span>
+ {formatDate(series.first_seen)} to {formatDate(series.last_seen)}
+ </span>
+ )}
+ {filterable && <span className="text-muted-alt">Click to filter exceptions</span>}
+ </div>
+ }
+ >
+ {filterable ? (
+ <Button
+ variant="default"
+ size="sm"
+ className="h-6 w-full min-w-0 justify-start gap-1.5 px-1.5 text-xs"
+ data-attr="error-tracking-issue-release-filter"
+ onClick={onSelect}
+ >
+ {swatch}
+ <span className={kind === 'unattributed' ? 'truncate text-muted-foreground' : 'truncate'}>
+ {label}
+ </span>
+ </Button>
+ ) : (
+ <div className="flex h-6 min-w-0 items-center gap-1.5 px-1.5">
+ {swatch}
+ <Text size="xs" variant="muted" className="truncate">
+ {label}
+ </Text>
+ </div>
+ )}
+ </LemonTooltip>
+ <IssueReleaseStrip
+ stripKey={strip.key}
+ label={label}
+ color={color}
+ counts={series.counts}
+ buckets={buckets}
+ maxValue={maxValue}
+ />
+ <div className="flex items-baseline justify-end gap-1 tabular-nums">
+ <Text size="xs" weight="semibold">
+ {humanFriendlyLargeNumber(series.total)}
+ </Text>
+ <Text size="xxs" variant="muted">
+ {share > 0 && share < 0.005 ? '<1%' : `${Math.round(share * 100)}%`}
+ </Text>
+ </div>
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/components/IssueReleases/IssueReleaseStrip.tsx b/products/error_tracking/frontend/components/IssueReleases/IssueReleaseStrip.tsx
new file mode 100644
index 000000000000..1ab9aad8d315
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/IssueReleaseStrip.tsx
@@ -0,0 +1,74 @@
+import { useValues } from 'kea'
+import { useMemo } from 'react'
+
+import { BarChart } from '@posthog/quill-charts'
+import type { BarChartConfig, Series } from '@posthog/quill-charts'
+
+import { useChartConfig, useChartTheme } from 'lib/charts/hooks'
+import { dayjs } from 'lib/dayjs'
+import { teamLogic } from 'scenes/teamLogic'
+
+interface IssueReleaseStripProps {
+ stripKey: string
+ label: string
+ color: string
+ counts: number[]
+ /** ISO bucket starts, aligned with `counts`. */
+ buckets: string[]
+ /** Shared value ceiling, so bar heights compare across every strip in the panel. */
+ maxValue: number
+}
+
+export function IssueReleaseStrip({
+ stripKey,
+ label,
+ color,
+ counts,
+ buckets,
+ maxValue,
+}: IssueReleaseStripProps): JSX.Element {
+ const theme = useChartTheme()
+ const { timezone } = useValues(teamLogic)
+ const series = useMemo<Series[]>(
+ () => [{ key: stripKey, label, color, data: counts }],
+ [stripKey, counts, label, color]
+ )
+ const config = useChartConfig<BarChartConfig>(
+ () => ({
+ hideXAxis: true,
+ hideYAxis: true,
+ showGrid: false,
+ showAxisLines: false,
+ showTickMarks: false,
+ showCrosshair: false,
+ barCornerRadius: 1,
+ margins: { top: 1, right: 0, bottom: 0, left: 0 },
+ bars: {
+ bandPadding: 0.25,
+ minBarSize: 2,
+ valueDomain: { min: 0, max: Math.max(1, maxValue) },
+ },
+ tooltip: {
+ placement: 'cursor',
+ pinnable: false,
+ hitArea: 'band',
+ labelFormatter: (bucketLabel) => dayjs(bucketLabel).tz(timezone).format('D MMM YYYY HH:mm'),
+ valueFormatter: (value) => `${value} ${value === 1 ? 'occurrence' : 'occurrences'}`,
+ },
+ }),
+ [maxValue, timezone]
+ )
+
+ return (
+ <div className="flex h-6 w-full min-w-0 overflow-hidden">
+ <BarChart
+ series={series}
+ labels={buckets}
+ theme={theme}
+ config={config}
+ className="h-full"
+ dataAttr="error-tracking-issue-release-strip"
+ />
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/components/IssueReleases/IssueReleasesPreview.tsx b/products/error_tracking/frontend/components/IssueReleases/IssueReleasesPreview.tsx
new file mode 100644
index 000000000000..80fceae89811
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/IssueReleasesPreview.tsx
@@ -0,0 +1,215 @@
+import { useActions, useValues } from 'kea'
+
+import { useChartTheme } from 'lib/charts/hooks'
+import { dayjs } from 'lib/dayjs'
+import {
+ Button,
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+ Skeleton,
+ Spinner,
+ Text,
+ ToggleGroup,
+ ToggleGroupItem,
+} from 'lib/ui/quill'
+import { pluralize } from 'lib/utils/strings'
+import { teamLogic } from 'scenes/teamLogic'
+
+import { ErrorTrackingReleasesQueryResponse } from '~/queries/schema/schema-general'
+
+import { IssueFilterPreviewHeader } from '../IssueFilterPreview/IssueFilterPreviewHeader'
+import { issueFilterPreviewLogic } from '../IssueFilterPreview/issueFilterPreviewLogic'
+import { IssueReleaseRow } from './IssueReleaseRow'
+import { formatReleaseCount, IssueReleaseStrip, listReleaseStrips, maxBucketValue } from './issueReleases'
+import { issueReleasesLogic } from './issueReleasesLogic'
+import { IssueReleasesStackedChart } from './IssueReleasesStackedChart'
+
+export function IssueReleasesPreview({ issueId }: { issueId: string }): JSX.Element {
+ const { releases, releasesLoading, releasesError, selectedNamespace } = useValues(issueReleasesLogic({ issueId }))
+ const { loadReleases, selectNamespace, selectStrip } = useActions(issueReleasesLogic({ issueId }))
+ const { releasesViewMode } = useValues(issueFilterPreviewLogic)
+ const { setReleasesViewMode } = useActions(issueFilterPreviewLogic)
+ const hasReleases = releases !== null && (releases.results.length > 0 || releases.other !== null)
+
+ return (
+ <div className="flex flex-col">
+ <IssueFilterPreviewHeader preview="releases" title="Releases">
+ <div className="flex w-full items-center justify-between gap-3">
+ <ToggleGroup
+ size="sm"
+ aria-label="Releases view"
+ value={[releasesViewMode]}
+ onValueChange={(value) => {
+ const next = value[0]
+ if (next === 'list' || next === 'stacked') {
+ setReleasesViewMode(next)
+ }
+ }}
+ >
+ <ToggleGroupItem value="list" data-attr="error-tracking-issue-releases-view-list">
+ List
+ </ToggleGroupItem>
+ <ToggleGroupItem value="stacked" data-attr="error-tracking-issue-releases-view-stacked">
+ Stacked
+ </ToggleGroupItem>
+ </ToggleGroup>
+ <ReleasesSummary
+ releases={releases}
+ loading={releasesLoading}
+ selectedNamespace={selectedNamespace}
+ onSelectNamespace={selectNamespace}
+ />
+ </div>
+ </IssueFilterPreviewHeader>
+ <div className="flex min-h-40 flex-col px-3 pb-3 pt-2">
+ {releasesLoading ? (
+ <div className="flex min-h-40 flex-1 items-center justify-center">
+ <Spinner />
+ </div>
+ ) : releasesError ? (
+ <div className="flex min-h-40 flex-1 flex-col items-center justify-center gap-2 text-center">
+ <Text variant="muted">Couldn't load releases for this issue.</Text>
+ <Button variant="default" size="sm" onClick={() => loadReleases()}>
+ Retry
+ </Button>
+ </div>
+ ) : releases === null || !hasReleases ? (
+ <div className="flex min-h-40 flex-1 flex-col items-center justify-center gap-1 text-center">
+ <Text variant="muted">No release information for these exceptions.</Text>
+ <Text size="xs" variant="muted">
+ Exceptions show up here once they carry the $app_version property. Add $app_namespace to
+ tell apps apart.
+ </Text>
+ </div>
+ ) : releasesViewMode === 'stacked' ? (
+ <IssueReleasesStackedChart releases={releases} onSelectStrip={selectStrip} />
+ ) : (
+ <ReleaseTimeline releases={releases} onSelectStrip={selectStrip} />
+ )}
+ </div>
+ </div>
+ )
+}
+
+const ALL_APPS = '__all__'
+
+function ReleasesSummary({
+ releases,
+ loading,
+ selectedNamespace,
+ onSelectNamespace,
+}: {
+ releases: ErrorTrackingReleasesQueryResponse | null
+ loading: boolean
+ selectedNamespace: string | null
+ onSelectNamespace: (namespace: string | null) => void
+}): JSX.Element | null {
+ if (loading) {
+ return (
+ <Skeleton className="h-4 w-24">
+ <span>Loading…</span>
+ </Skeleton>
+ )
+ }
+ if (releases === null) {
+ return null
+ }
+ const count = formatReleaseCount(releases.release_count, 'release', releases.release_count_truncated)
+ // An active `$app_namespace` chip narrows the response to that app, so the picker stays to switch back.
+ if (selectedNamespace === null) {
+ if (releases.release_count === 0 && releases.namespaces.length === 0) {
+ return null
+ }
+ if (releases.namespaces.length <= 1) {
+ const namespace = releases.namespaces[0]
+ return (
+ <Text size="xs" variant="muted" className="truncate">
+ {namespace ? `${namespace} · ${count}` : count}
+ </Text>
+ )
+ }
+ }
+ const namespaces = Array.from(new Set([...releases.namespaces, ...(selectedNamespace ? [selectedNamespace] : [])]))
+ const appItems: Record<string, string> = {
+ [ALL_APPS]: selectedNamespace ? 'All apps' : pluralize(namespaces.length, 'app'),
+ ...Object.fromEntries(namespaces.map((namespace) => [namespace, namespace])),
+ }
+ return (
+ <div className="flex min-w-0 items-center gap-2">
+ <Select
+ items={appItems}
+ value={selectedNamespace ?? ALL_APPS}
+ onValueChange={(value) => onSelectNamespace(value === ALL_APPS ? null : String(value))}
+ >
+ <SelectTrigger size="sm" aria-label="App" data-attr="error-tracking-issue-releases-app">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent align="end">
+ {Object.entries(appItems).map(([value, label]) => (
+ <SelectItem key={value} value={value}>
+ {label}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <Text size="xs" variant="muted" className="shrink-0">
+ {count}
+ </Text>
+ </div>
+ )
+}
+
+function ReleaseTimeline({
+ releases,
+ onSelectStrip,
+}: {
+ releases: ErrorTrackingReleasesQueryResponse
+ onSelectStrip: (strip: IssueReleaseStrip) => void
+}): JSX.Element {
+ const theme = useChartTheme()
+ const strips = listReleaseStrips(releases, theme.colors)
+ const maxValue = maxBucketValue(strips)
+
+ return (
+ <div className="flex flex-col gap-px">
+ {strips.map((strip) => (
+ <IssueReleaseRow
+ key={strip.key}
+ strip={strip}
+ buckets={releases.buckets}
+ maxValue={maxValue}
+ total={releases.total}
+ onSelect={() => onSelectStrip(strip)}
+ />
+ ))}
+ <ReleaseTimelineAxis dateFrom={releases.date_from} dateTo={releases.date_to} />
+ </div>
+ )
+}
+
+function ReleaseTimelineAxis({ dateFrom, dateTo }: { dateFrom: string; dateTo: string }): JSX.Element {
+ const { timezone } = useValues(teamLogic)
+ const start = dayjs(dateFrom)
+ const end = dayjs(dateTo)
+ const spansDays = end.diff(start, 'day') >= 2
+ const format = (date: dayjs.Dayjs): string => date.tz(timezone).format(spansDays ? 'D MMM' : 'D MMM HH:mm')
+
+ return (
+ <div className="grid grid-cols-[minmax(0,8rem)_minmax(0,1fr)_4.5rem] gap-x-2 pt-1">
+ <div className="col-start-2 flex justify-between border-t border-primary pt-1">
+ <Text size="xxs" variant="muted">
+ {format(start)}
+ </Text>
+ <Text size="xxs" variant="muted">
+ {format(dayjs((start.valueOf() + end.valueOf()) / 2))}
+ </Text>
+ <Text size="xxs" variant="muted">
+ {format(end)}
+ </Text>
+ </div>
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/components/IssueReleases/IssueReleasesStackedChart.tsx b/products/error_tracking/frontend/components/IssueReleases/IssueReleasesStackedChart.tsx
new file mode 100644
index 000000000000..0963a1e5edb3
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/IssueReleasesStackedChart.tsx
@@ -0,0 +1,83 @@
+import { useValues } from 'kea'
+import { useMemo } from 'react'
+
+import { DefaultTooltip, TimeSeriesBarChart, createXAxisTickCallback } from '@posthog/quill-charts'
+import type { PointClickData, Series, TimeSeriesBarChartConfig } from '@posthog/quill-charts'
+
+import { useChartConfig, useChartTheme } from 'lib/charts/hooks'
+import { dayjs } from 'lib/dayjs'
+import { teamLogic } from 'scenes/teamLogic'
+
+import { ErrorTrackingReleasesQueryResponse } from '~/queries/schema/schema-general'
+
+import { IssueReleaseStrip, listReleaseStrips } from './issueReleases'
+
+export function IssueReleasesStackedChart({
+ releases,
+ onSelectStrip,
+}: {
+ releases: ErrorTrackingReleasesQueryResponse
+ onSelectStrip: (strip: IssueReleaseStrip) => void
+}): JSX.Element {
+ const theme = useChartTheme()
+ const { timezone } = useValues(teamLogic)
+
+ const labels = releases.buckets
+ const series = useMemo<Series<IssueReleaseStrip>[]>(
+ () =>
+ listReleaseStrips(releases, theme.colors).map((strip) => ({
+ key: strip.key,
+ label: strip.fullLabel,
+ color: strip.color,
+ data: strip.series.counts,
+ meta: strip,
+ })),
+ [releases, theme.colors]
+ )
+ const tickFormatter = useMemo(() => createXAxisTickCallback({ timezone, allDays: labels }), [labels, timezone])
+ const config = useChartConfig<TimeSeriesBarChartConfig>(
+ () => ({
+ barLayout: 'stacked',
+ barCornerRadius: 2,
+ bandPadding: 0.15,
+ margins: { top: 4 },
+ xAxis: { tickFormatter },
+ yAxis: { hide: true },
+ showAxisLines: { x: true, y: false },
+ showTickMarks: false,
+ showCrosshair: true,
+ showGrid: false,
+ tooltip: { placement: 'cursor', pinnable: false, hitArea: 'band' },
+ }),
+ [tickFormatter]
+ )
+
+ const onPointClick = ({ series: clicked }: PointClickData<IssueReleaseStrip>): void => {
+ if (clicked.meta) {
+ onSelectStrip(clicked.meta)
+ }
+ }
+
+ return (
+ <div className="flex h-56 w-full min-w-0 flex-col">
+ <TimeSeriesBarChart
+ series={series}
+ labels={labels}
+ theme={theme}
+ config={config}
+ onPointClick={onPointClick}
+ dataAttr="error-tracking-issue-releases-stacked"
+ tooltip={(context) => (
+ <DefaultTooltip
+ {...context}
+ hideZeroRows
+ sortedByValue
+ showTotal
+ labelFormatter={(label) => dayjs(label).tz(timezone).format('D MMM YYYY HH:mm')}
+ valueFormatter={(value) => `${value} ${value === 1 ? 'occurrence' : 'occurrences'}`}
+ />
+ )}
+ />
+ </div>
+ )
+}
diff --git a/products/error_tracking/frontend/components/IssueReleases/issueReleases.test.ts b/products/error_tracking/frontend/components/IssueReleases/issueReleases.test.ts
new file mode 100644
index 000000000000..0da6548dc8bd
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/issueReleases.test.ts
@@ -0,0 +1,88 @@
+import { FilterLogicalOperator, PropertyFilterType, PropertyOperator, UniversalFiltersGroup } from '~/types'
+
+import { PreviewPropertyFilter } from '../IssueFilterPreview/issueFilterPreviewLogic'
+import {
+ formatReleaseCount,
+ IssueReleaseStrip,
+ IssueReleaseStripKind,
+ releasePropertyFilters,
+ selectedAppNamespace,
+} from './issueReleases'
+
+describe('issueReleases', () => {
+ const group = (...filters: object[]): UniversalFiltersGroup => ({
+ type: FilterLogicalOperator.And,
+ values: [{ type: FilterLogicalOperator.And, values: filters as UniversalFiltersGroup['values'] }],
+ })
+ const namespaceChip = (operator: PropertyOperator, value: string[]): object => ({
+ key: '$app_namespace',
+ type: PropertyFilterType.Event,
+ operator,
+ value,
+ })
+
+ it.each<[string, UniversalFiltersGroup, string | null]>([
+ [
+ 'reads a single exact namespace',
+ group(namespaceChip(PropertyOperator.Exact, ['com.example.ios'])),
+ 'com.example.ios',
+ ],
+ ['ignores other chips', group({ key: '$browser', type: PropertyFilterType.Event, value: ['Chrome'] }), null],
+ ['ignores a multi-value chip', group(namespaceChip(PropertyOperator.Exact, ['a', 'b'])), null],
+ ['ignores a non-exact operator', group(namespaceChip(PropertyOperator.IsNot, ['com.example.ios'])), null],
+ ['handles an empty group', group(), null],
+ ])('selectedAppNamespace %s', (_name, filterGroup, expected) => {
+ expect(selectedAppNamespace(filterGroup)).toBe(expected)
+ })
+
+ it.each<[number, string, boolean, string]>([
+ [5000, 'release', true, '5,000+ releases'],
+ [4999, 'release', false, '4,999 releases'],
+ [1, 'release', false, '1 release'],
+ [12, 'other release', true, '12+ other releases'],
+ ])('formatReleaseCount %s %s truncated=%s', (count, noun, truncated, expected) => {
+ expect(formatReleaseCount(count, noun, truncated)).toBe(expected)
+ })
+
+ const emptySeries = { counts: [], total: 0, first_seen: null, last_seen: null }
+
+ const strip = (
+ kind: IssueReleaseStripKind,
+ release: { namespace: string | null; version: string | null; build: string | null } | null
+ ): IssueReleaseStrip => ({
+ key: 'k',
+ kind,
+ series: emptySeries,
+ release: release ? { ...emptySeries, ...release } : null,
+ label: 'label',
+ fullLabel: 'label',
+ color: '#000',
+ })
+
+ const exact = (key: string, value: string): PreviewPropertyFilter => ({
+ key,
+ value,
+ operator: PropertyOperator.Exact,
+ })
+ const notSet = (key: string): PreviewPropertyFilter => ({ key, value: null, operator: PropertyOperator.IsNotSet })
+ it.each<[string, IssueReleaseStrip, PreviewPropertyFilter[]]>([
+ [
+ 'filters on version and build, never on the namespace',
+ strip('release', { namespace: 'com.example.ios', version: '3.2.0', build: '1502' }),
+ [exact('$app_version', '3.2.0'), exact('$app_build', '1502')],
+ ],
+ [
+ 'filters an unversioned release on both properties being unset',
+ strip('release', { namespace: 'com.example.ios', version: null, build: null }),
+ [notSet('$app_version'), notSet('$app_build')],
+ ],
+ [
+ 'filters missing release data on both properties being unset',
+ strip('unattributed', null),
+ [notSet('$app_version'), notSet('$app_build')],
+ ],
+ ['cannot filter the folded "other" strip', strip('other', null), []],
+ ])('releasePropertyFilters %s', (_name, input, expected) => {
+ expect(releasePropertyFilters(input)).toEqual(expected)
+ })
+})
diff --git a/products/error_tracking/frontend/components/IssueReleases/issueReleases.ts b/products/error_tracking/frontend/components/IssueReleases/issueReleases.ts
new file mode 100644
index 000000000000..d329e2876c8e
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/issueReleases.ts
@@ -0,0 +1,144 @@
+import { isUniversalGroupFilterLike } from 'lib/components/UniversalFilters/utils'
+import { humanFriendlyNumber } from 'lib/utils/numbers'
+import { pluralize } from 'lib/utils/strings'
+
+import {
+ ErrorTrackingIssueRelease,
+ ErrorTrackingReleaseSeries,
+ ErrorTrackingReleasesQueryResponse,
+} from '~/queries/schema/schema-general'
+import { PropertyFilterType, PropertyOperator, UniversalFiltersGroup } from '~/types'
+
+import { PreviewPropertyFilter } from '../IssueFilterPreview/issueFilterPreviewLogic'
+
+/** Bars per release strip. The strips share the panel width with the label and count columns. */
+export const RELEASE_TIMELINE_RESOLUTION = 40
+export const MAX_VISIBLE_RELEASES = 5
+/** Stacked mode has no per-release rows, so it can hold far more releases before folding. */
+export const MAX_STACKED_RELEASES = 1000
+/** zinc-400 as hex: the chart canvas cannot resolve a CSS variable for a bar color. */
+export const UNATTRIBUTED_RELEASE_COLOR = '#9f9fa9'
+
+export function formatReleaseVersion(release: Pick<ErrorTrackingIssueRelease, 'version' | 'build'>): string {
+ if (!release.version) {
+ return 'Unknown version'
+ }
+ return release.build ? `${release.version} (${release.build})` : release.version
+}
+
+/** A release count for display. A truncated response counted only the releases the query returned, so it reads as a lower bound. */
+export function formatReleaseCount(count: number, noun: string, truncated: boolean): string {
+ const number = humanFriendlyNumber(count)
+ return `${truncated ? `${number}+` : number} ${pluralize(count, noun, undefined, false)}`
+}
+
+export type IssueReleaseStripKind = 'release' | 'other' | 'unattributed'
+
+export interface IssueReleaseStrip {
+ key: string
+ kind: IssueReleaseStripKind
+ series: ErrorTrackingReleaseSeries
+ /** Set for `release` strips only. */
+ release: ErrorTrackingIssueRelease | null
+ label: string
+ /** `label` prefixed with the app namespace when the response mixes several apps. */
+ fullLabel: string
+ color: string
+}
+
+/** Every strip the panel draws, in display order, with palette colors assigned to real releases. */
+export function listReleaseStrips(
+ response: ErrorTrackingReleasesQueryResponse,
+ palette: string[]
+): IssueReleaseStrip[] {
+ const multipleApps = new Set(response.results.map((release) => release.namespace)).size > 1
+ const strips: IssueReleaseStrip[] = response.results.map((release, index) => {
+ const label = formatReleaseVersion(release)
+ return {
+ key: [release.namespace ?? '', release.version ?? '', release.build ?? ''].join('\0'),
+ kind: 'release',
+ series: release,
+ release,
+ label,
+ fullLabel: multipleApps && release.namespace ? `${release.namespace} · ${label}` : label,
+ color: palette[index % palette.length],
+ }
+ })
+ if (response.other) {
+ const label = formatReleaseCount(
+ response.other_release_count,
+ 'other release',
+ response.release_count_truncated
+ )
+ strips.push({
+ key: 'other',
+ kind: 'other',
+ series: response.other,
+ release: null,
+ label,
+ fullLabel: label,
+ color: UNATTRIBUTED_RELEASE_COLOR,
+ })
+ }
+ if (response.unattributed) {
+ const label = 'No release data'
+ strips.push({
+ key: 'unattributed',
+ kind: 'unattributed',
+ series: response.unattributed,
+ release: null,
+ label,
+ fullLabel: label,
+ color: UNATTRIBUTED_RELEASE_COLOR,
+ })
+ }
+ return strips
+}
+
+function propertyFilter(key: string, value: string | null): PreviewPropertyFilter {
+ return value
+ ? { key, value, operator: PropertyOperator.Exact }
+ : { key, value: null, operator: PropertyOperator.IsNotSet }
+}
+
+/**
+ * The filters a click on the strip applies, empty when the strip cannot be filtered. A missing property filters on
+ * "is not set" so a click never leaves a stale chip from an earlier click. The app namespace stays with the panel's
+ * app picker and never becomes a chip.
+ */
+export function releasePropertyFilters(strip: IssueReleaseStrip): PreviewPropertyFilter[] {
+ if (strip.kind === 'other') {
+ return []
+ }
+ return [
+ propertyFilter('$app_version', strip.release?.version ?? null),
+ propertyFilter('$app_build', strip.release?.build ?? null),
+ ]
+}
+
+/** The app pinned by an `$app_namespace` chip with one exact value. The app picker mirrors this chip. */
+export function selectedAppNamespace(filterGroup: UniversalFiltersGroup): string | null {
+ const firstGroup = filterGroup.values[0]
+ if (!isUniversalGroupFilterLike(firstGroup)) {
+ return null
+ }
+ const filter = firstGroup.values.find(
+ (candidate) =>
+ !isUniversalGroupFilterLike(candidate) &&
+ candidate.type === PropertyFilterType.Event &&
+ candidate.key === '$app_namespace'
+ )
+ if (!filter || isUniversalGroupFilterLike(filter) || filter.type !== PropertyFilterType.Event) {
+ return null
+ }
+ if ((filter.operator ?? PropertyOperator.Exact) !== PropertyOperator.Exact) {
+ return null
+ }
+ const values = Array.isArray(filter.value) ? filter.value : [filter.value]
+ const value = values.length === 1 ? values[0] : null
+ return typeof value === 'string' && value ? value : null
+}
+
+export function maxBucketValue(strips: IssueReleaseStrip[]): number {
+ return Math.max(0, ...strips.flatMap((strip) => strip.series.counts))
+}
diff --git a/products/error_tracking/frontend/components/IssueReleases/issueReleasesLogic.ts b/products/error_tracking/frontend/components/IssueReleases/issueReleasesLogic.ts
new file mode 100644
index 000000000000..c7e7bc445e38
--- /dev/null
+++ b/products/error_tracking/frontend/components/IssueReleases/issueReleasesLogic.ts
@@ -0,0 +1,216 @@
+import { MakeLogicType, actions, afterMount, connect, kea, key, listeners, path, props, reducers, selectors } from 'kea'
+import { loaders } from 'kea-loaders'
+
+import api from 'lib/api'
+
+import { DateRange, ErrorTrackingReleasesQueryResponse } from '~/queries/schema/schema-general'
+import { PropertyOperator, UniversalFiltersGroup } from '~/types'
+
+import { errorTrackingReleasesQuery } from '../../queries'
+import {
+ IssueReleasesViewMode,
+ PreviewPropertyFilter,
+ issueFilterPreviewLogic,
+} from '../IssueFilterPreview/issueFilterPreviewLogic'
+import { ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY, issueFiltersLogic } from '../IssueFilters/issueFiltersLogic'
+import {
+ IssueReleaseStrip,
+ MAX_STACKED_RELEASES,
+ MAX_VISIBLE_RELEASES,
+ releasePropertyFilters,
+ selectedAppNamespace,
+} from './issueReleases'
+
+export interface IssueReleasesLogicProps {
+ issueId: string
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface issueReleasesLogicValues {
+ releasesViewMode: IssueReleasesViewMode // issueFilterPreviewLogic
+ dateRange: DateRange // issueFiltersLogic
+ filterGroup: UniversalFiltersGroup // issueFiltersLogic
+ filterTestAccounts: boolean // issueFiltersLogic
+ releases: ErrorTrackingReleasesQueryResponse | null
+ releasesError: string | null
+ releasesLoading: boolean
+ selectedNamespace: string | null
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface issueReleasesLogicActions {
+ applyPropertyFilters: (filters: PreviewPropertyFilter[]) => {
+ filters: PreviewPropertyFilter[]
+ } // issueFilterPreviewLogic
+ clearPropertyFilter: (key: string) => {
+ key: string
+ } // issueFilterPreviewLogic
+ setReleasesViewMode: (viewMode: IssueReleasesViewMode) => {
+ viewMode: IssueReleasesViewMode
+ } // issueFilterPreviewLogic
+ addPropertyFilter: (
+ key: string,
+ value: boolean | number | string | null,
+ operator?: PropertyOperator | undefined,
+ openConfig?: boolean | undefined,
+ replaceExisting?: boolean | undefined
+ ) => {
+ key: string
+ openConfig: boolean
+ operator: PropertyOperator
+ replaceExisting: boolean
+ value: boolean | number | string | null
+ } // issueFiltersLogic
+ setDateRange: (
+ dateRange: DateRange,
+ fromPreview?: boolean | undefined
+ ) => {
+ dateRange: DateRange
+ fromPreview: boolean
+ } // issueFiltersLogic
+ setFilterGroup: (
+ filterGroup: UniversalFiltersGroup,
+ filterAddedFromPreview?: number | undefined
+ ) => {
+ filterAddedFromPreview: number
+ filterGroup: UniversalFiltersGroup
+ } // issueFiltersLogic
+ setFilterTestAccounts: (filterTestAccounts: boolean) => {
+ filterTestAccounts: boolean
+ } // issueFiltersLogic
+ loadReleases: () => {
+ value: true
+ }
+ loadReleasesFailure: (
+ error: string,
+ errorObject?: any
+ ) => {
+ error: string
+ errorObject?: any
+ }
+ loadReleasesSuccess: (
+ releases: ErrorTrackingReleasesQueryResponse,
+ payload?: {
+ value: true
+ }
+ ) => {
+ releases: ErrorTrackingReleasesQueryResponse
+ payload?: {
+ value: true
+ }
+ }
+ selectNamespace: (namespace: string | null) => {
+ namespace: string | null
+ }
+ selectStrip: (strip: IssueReleaseStrip) => {
+ strip: IssueReleaseStrip
+ }
+}
+
+// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
+export interface issueReleasesLogicMeta {
+ key: string
+ __keaTypeGenInternalSelectorTypes: {
+ selectedNamespace: (filterGroup: UniversalFiltersGroup) => string | null
+ }
+}
+
+export type issueReleasesLogicType = MakeLogicType<
+ issueReleasesLogicValues,
+ issueReleasesLogicActions,
+ IssueReleasesLogicProps,
+ issueReleasesLogicMeta
+>
+
+export const issueReleasesLogic = kea<issueReleasesLogicType>([
+ props({} as IssueReleasesLogicProps),
+ key(({ issueId }: IssueReleasesLogicProps) => issueId),
+ path((key) => ['products', 'error_tracking', 'components', 'IssueReleases', 'issueReleasesLogic', key]),
+ connect(() => ({
+ values: [
+ issueFiltersLogic({ logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY }),
+ ['dateRange', 'filterGroup', 'filterTestAccounts'],
+ issueFilterPreviewLogic,
+ ['releasesViewMode'],
+ ],
+ actions: [
+ issueFiltersLogic({ logicKey: ERROR_TRACKING_ISSUE_SCENE_LOGIC_KEY }),
+ ['addPropertyFilter', 'setDateRange', 'setFilterGroup', 'setFilterTestAccounts'],
+ issueFilterPreviewLogic,
+ ['setReleasesViewMode', 'applyPropertyFilters', 'clearPropertyFilter'],
+ ],
+ })),
+ actions({
+ loadReleases: true,
+ selectNamespace: (namespace: string | null) => ({ namespace }),
+ selectStrip: (strip: IssueReleaseStrip) => ({ strip }),
+ }),
+ loaders(({ props, values }) => ({
+ releases: [
+ null as ErrorTrackingReleasesQueryResponse | null,
+ {
+ loadReleases: async (_: { value: true }, breakpoint) => {
+ await breakpoint(100)
+ // Read connected values before the request because the filters logic may unmount while it runs.
+ const { dateRange, filterGroup, filterTestAccounts, releasesViewMode } = values
+ const stacked = releasesViewMode === 'stacked'
+ const response = (await api.query(
+ errorTrackingReleasesQuery({
+ issueId: props.issueId,
+ dateRange,
+ filterGroup,
+ filterTestAccounts,
+ maxReleases: stacked ? MAX_STACKED_RELEASES : MAX_VISIBLE_RELEASES,
+ orderBy: stacked ? 'occurrences' : 'latest',
+ }),
+ { refresh: 'blocking' }
+ )) as ErrorTrackingReleasesQueryResponse
+ breakpoint()
+ return response
+ },
+ },
+ ],
+ })),
+ reducers({
+ releasesError: [
+ null as string | null,
+ {
+ loadReleases: () => null,
+ loadReleasesSuccess: () => null,
+ loadReleasesFailure: (_, { error }) => error,
+ },
+ ],
+ }),
+ selectors({
+ // The `$app_namespace` chip is the only source of truth, so the picker and the chip never disagree.
+ selectedNamespace: [
+ (s) => [s.filterGroup],
+ (filterGroup: UniversalFiltersGroup): string | null => selectedAppNamespace(filterGroup),
+ ],
+ }),
+ listeners(({ actions }) => ({
+ selectStrip: ({ strip }) => {
+ const filters = releasePropertyFilters(strip)
+ if (filters.length > 0) {
+ actions.applyPropertyFilters(filters)
+ }
+ },
+ selectNamespace: ({ namespace }) => {
+ if (namespace) {
+ actions.applyPropertyFilters([
+ { key: '$app_namespace', value: namespace, operator: PropertyOperator.Exact },
+ ])
+ } else {
+ actions.clearPropertyFilter('$app_namespace')
+ }
+ },
+ addPropertyFilter: () => actions.loadReleases(),
+ setDateRange: () => actions.loadReleases(),
+ setFilterGroup: () => actions.loadReleases(),
+ setFilterTestAccounts: () => actions.loadReleases(),
+ setReleasesViewMode: () => actions.loadReleases(),
+ })),
+ afterMount(({ actions }) => {
+ actions.loadReleases()
+ }),
+])
diff --git a/products/error_tracking/frontend/queries.ts b/products/error_tracking/frontend/queries.ts
index 31ea1dd87e60..1159fc7cf552 100644
--- a/products/error_tracking/frontend/queries.ts
+++ b/products/error_tracking/frontend/queries.ts
@@ -10,6 +10,8 @@ import {
ErrorTrackingPendingFingerprintIssueStateUpdate,
ErrorTrackingQuery,
ErrorTrackingQueryIssueSeverity,
+ ErrorTrackingReleasesOrderBy,
+ ErrorTrackingReleasesQuery,
EventsQuery,
InsightVizNode,
NodeKind,
@@ -29,6 +31,7 @@ import {
} from '~/types'
import { LIMIT_ITEMS } from './components/Breakdowns/consts'
+import { RELEASE_TIMELINE_RESOLUTION } from './components/IssueReleases/issueReleases'
import {
ERROR_TRACKING_DETAILS_RESOLUTION,
ERROR_TRACKING_LISTING_RESOLUTION,
@@ -364,3 +367,34 @@ export const errorTrackingBreakdownsQuery = ({
},
})
}
+
+export const errorTrackingReleasesQuery = ({
+ issueId,
+ dateRange,
+ filterGroup,
+ filterTestAccounts,
+ appNamespace,
+ maxReleases,
+ orderBy,
+}: {
+ issueId: string
+ dateRange: DateRange
+ filterGroup: UniversalFiltersGroup
+ filterTestAccounts: boolean
+ appNamespace?: string
+ maxReleases: number
+ orderBy: ErrorTrackingReleasesOrderBy
+}): ErrorTrackingReleasesQuery => {
+ return setLatestVersionsOnQuery({
+ kind: NodeKind.ErrorTrackingReleasesQuery,
+ issueId,
+ dateRange,
+ filterGroup: filterGroup as PropertyGroupFilter,
+ filterTestAccounts,
+ appNamespace,
+ maxReleases,
+ orderBy,
+ resolution: RELEASE_TIMELINE_RESOLUTION,
+ tags: { productKey: ProductKey.ERROR_TRACKING },
+ })
+}
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index a07e5b63dfc3..245df3f12315 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -31155,6 +31155,17 @@ export namespace Schemas {
cohort: ErrorTrackingIssueCohortRead | null;
}
+ export interface ErrorTrackingIssueRelease {
+ build?: string | null;
+ /** Occurrences per bucket, aligned with the response's `buckets`. */
+ counts: number[];
+ first_seen?: string | null;
+ last_seen?: string | null;
+ namespace?: string | null;
+ total: number;
+ version?: string | null;
+ }
+
/**
* * `low` - low
* * `medium` - medium
@@ -31462,6 +31473,14 @@ export namespace Schemas {
metadata?: ErrorTrackingReleaseCreateRequestMetadata;
}
+ export interface ErrorTrackingReleaseSeries {
+ /** Occurrences per bucket, aligned with the response's `buckets`. */
+ counts: number[];
+ first_seen?: string | null;
+ last_seen?: string | null;
+ total: number;
+ }
+
/**
* Free-form metadata object. Omit to preserve the current value.
* @nullable
@@ -31492,6 +31511,76 @@ export namespace Schemas {
metadata?: ErrorTrackingReleaseUpdateRequestMetadata;
}
+ export type ErrorTrackingReleasesOrderBy = typeof ErrorTrackingReleasesOrderBy[keyof typeof ErrorTrackingReleasesOrderBy];
+
+
+ export const ErrorTrackingReleasesOrderBy = {
+ Latest: 'latest',
+ Occurrences: 'occurrences',
+ } as const;
+
+ export interface ErrorTrackingReleasesQueryResponse {
+ bucket_seconds: number;
+ /** ISO start of each bucket. The first one can start before `date_from`. */
+ buckets: string[];
+ date_from: string;
+ date_to: string;
+ /** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
+ error?: string | null;
+ /** Generated HogQL query. */
+ hogql?: string | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Every app namespace in the range, regardless of `appNamespace`. */
+ namespaces: string[];
+ /** Releases past `maxReleases`, summed. */
+ other: ErrorTrackingReleaseSeries | null;
+ other_release_count: number;
+ /** Query status indicates whether next to the provided data, a query is still running. */
+ query_status?: QueryStatus | null;
+ /** Distinct releases in the range for the selected app, before folding. */
+ release_count: number;
+ /** Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds. */
+ release_count_truncated: boolean;
+ /** The resolved previous/comparison period date range, when comparing against another period */
+ resolved_compare_date_range?: ResolvedDateRangeResponse | null;
+ /** The date range used for the query */
+ resolved_date_range?: ResolvedDateRangeResponse | null;
+ /** The releases returned on their own, in the requested order. */
+ results: ErrorTrackingIssueRelease[];
+ /** Measured timings for different parts of the query generation process */
+ timings?: QueryTiming[] | null;
+ total: number;
+ /** Exceptions without an app namespace or version. */
+ unattributed: ErrorTrackingReleaseSeries | null;
+ /** Connector-synced data warehouse sources referenced by this query, if any. */
+ used_data_warehouse_sources?: DataWarehouseSourceUsage[] | null;
+ /** Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access. */
+ warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
+ }
+
+ export interface ErrorTrackingReleasesQuery {
+ /** Only count exceptions from this app namespace. */
+ appNamespace?: string | null;
+ dateRange?: DateRange | null;
+ filterGroup?: PropertyGroupFilter | null;
+ filterTestAccounts?: boolean | null;
+ issueId: string;
+ kind?: 'ErrorTrackingReleasesQuery';
+ /** How many releases to return on their own; the rest fold into `other`. */
+ maxReleases?: number | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** `latest` puts the release that first appeared most recently in the range on top, `occurrences` orders by volume. */
+ orderBy?: ErrorTrackingReleasesOrderBy | null;
+ /** Number of time buckets across the date range. */
+ resolution?: number | null;
+ response?: ErrorTrackingReleasesQueryResponse | null;
+ tags?: QueryLogTags | null;
+ /** version of the node, used for schema migrations */
+ version?: number | null;
+ }
+
export interface ErrorTrackingSettings {
/**
* Maximum number of exception events ingested per bucket for the entire project. Null removes the limit.
@@ -44558,7 +44647,7 @@ export namespace Schemas {
query: string;
response?: HogQLMetadataResponse | null;
/** Query within which "expr" and "template" are validated. Defaults to "select * from events" */
- sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
+ sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
tags?: QueryLogTags | null;
/** Variables to be subsituted into the query */
variables?: HogQLMetadataVariables;
@@ -44584,7 +44673,7 @@ export namespace Schemas {
query: string;
response?: HogQLAutocompleteResponse | null;
/** Query in whose context to validate. */
- sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
+ sourceQuery?: EventsNode | ActionsNode | PersonsNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | CalendarHeatmapQuery | RecordingsQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | null;
/** Start position of the editor word */
startPosition: number;
tags?: QueryLogTags | null;
@@ -70000,7 +70089,7 @@ export namespace Schemas {
* ```
*
* For more details on HogQL queries, see the [PostHog HogQL documentation](/docs/hogql#api-access). */
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
/** Whether results should be calculated sync or async, and how much to rely on the cache:
* - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache
* - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache
@@ -70350,6 +70439,46 @@ export namespace Schemas {
}
export interface QueryResponseAlternative16 {
+ bucket_seconds: number;
+ /** ISO start of each bucket. The first one can start before `date_from`. */
+ buckets: string[];
+ date_from: string;
+ date_to: string;
+ /** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
+ error?: string | null;
+ /** Generated HogQL query. */
+ hogql?: string | null;
+ /** Modifiers used when performing the query */
+ modifiers?: HogQLQueryModifiers | null;
+ /** Every app namespace in the range, regardless of `appNamespace`. */
+ namespaces: string[];
+ /** Releases past `maxReleases`, summed. */
+ other: ErrorTrackingReleaseSeries | null;
+ other_release_count: number;
+ /** Query status indicates whether next to the provided data, a query is still running. */
+ query_status?: QueryStatus | null;
+ /** Distinct releases in the range for the selected app, before folding. */
+ release_count: number;
+ /** Set when the query hit its row cap, so `release_count`, `other` and `total` are lower bounds. */
+ release_count_truncated: boolean;
+ /** The resolved previous/comparison period date range, when comparing against another period */
+ resolved_compare_date_range?: ResolvedDateRangeResponse | null;
+ /** The date range used for the query */
+ resolved_date_range?: ResolvedDateRangeResponse | null;
+ /** The releases returned on their own, in the requested order. */
+ results: ErrorTrackingIssueRelease[];
+ /** Measured timings for different parts of the query generation process */
+ timings?: QueryTiming[] | null;
+ total: number;
+ /** Exceptions without an app namespace or version. */
+ unattributed: ErrorTrackingReleaseSeries | null;
+ /** Connector-synced data warehouse sources referenced by this query, if any. */
+ used_data_warehouse_sources?: DataWarehouseSourceUsage[] | null;
+ /** Warnings about data warehouse sources referenced by the query whose latest sync failed, is paused, hit a billing limit, or is otherwise stale. Results may not reflect current source data. Accumulated across every HogQL execution that contributes to this response — so insights backed by warehouse tables (Trends, Funnels, etc.) receive the same warnings as raw HogQL queries. Also carries access control warnings when a system-table query filters out objects the user can't access. */
+ warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
+ }
+
+ export interface QueryResponseAlternative17 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70375,19 +70504,19 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative17CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative18CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative17InsightItemItem = { [key: string]: unknown };
+ export type QueryResponseAlternative18InsightItemItem = { [key: string]: unknown };
- export type QueryResponseAlternative17Probability = {[key: string]: number};
+ export type QueryResponseAlternative18Probability = {[key: string]: number};
- export interface QueryResponseAlternative17 {
- credible_intervals: QueryResponseAlternative17CredibleIntervals;
+ export interface QueryResponseAlternative18 {
+ credible_intervals: QueryResponseAlternative18CredibleIntervals;
expected_loss: number;
funnels_query?: FunnelsQuery | null;
- insight: QueryResponseAlternative17InsightItemItem[][];
+ insight: QueryResponseAlternative18InsightItemItem[][];
kind?: 'ExperimentFunnelsQuery';
- probability: QueryResponseAlternative17Probability;
+ probability: QueryResponseAlternative18Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -70396,20 +70525,20 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative18CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative19CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative18InsightItem = { [key: string]: unknown };
+ export type QueryResponseAlternative19InsightItem = { [key: string]: unknown };
- export type QueryResponseAlternative18Probability = {[key: string]: number};
+ export type QueryResponseAlternative19Probability = {[key: string]: number};
- export interface QueryResponseAlternative18 {
+ export interface QueryResponseAlternative19 {
count_query?: TrendsQuery | null;
- credible_intervals: QueryResponseAlternative18CredibleIntervals;
+ credible_intervals: QueryResponseAlternative19CredibleIntervals;
exposure_query?: TrendsQuery | null;
- insight: QueryResponseAlternative18InsightItem[];
+ insight: QueryResponseAlternative19InsightItem[];
kind?: 'ExperimentTrendsQuery';
p_value: number;
- probability: QueryResponseAlternative18Probability;
+ probability: QueryResponseAlternative19Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -70418,26 +70547,26 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative19CredibleIntervals = {[key: string]: number[]} | null;
+ export type QueryResponseAlternative20CredibleIntervals = {[key: string]: number[]} | null;
- export type QueryResponseAlternative19Insight = { [key: string]: unknown }[] | null;
+ export type QueryResponseAlternative20Insight = { [key: string]: unknown }[] | null;
- export type QueryResponseAlternative19Probability = {[key: string]: number} | null;
+ export type QueryResponseAlternative20Probability = {[key: string]: number} | null;
- export interface QueryResponseAlternative19 {
+ export interface QueryResponseAlternative20 {
baseline?: ExperimentStatsBaseValidated | null;
/** Results grouped by breakdown value. When present, baseline and variant_results contain aggregated data. */
breakdown_results?: ExperimentBreakdownResult[] | null;
clickhouse_sql?: string | null;
- credible_intervals?: QueryResponseAlternative19CredibleIntervals;
+ credible_intervals?: QueryResponseAlternative20CredibleIntervals;
hogql?: string | null;
- insight?: QueryResponseAlternative19Insight;
+ insight?: QueryResponseAlternative20Insight;
/** Whether exposures were served from the precomputation system */
is_precomputed?: boolean | null;
kind?: 'ExperimentQuery';
metric?: ExperimentMeanMetric | ExperimentFunnelMetric | ExperimentRatioMetric | ExperimentRetentionMetric | null;
p_value?: number | null;
- probability?: QueryResponseAlternative19Probability;
+ probability?: QueryResponseAlternative20Probability;
significance_code?: ExperimentSignificanceCode | null;
significant?: boolean | null;
stats_version?: number | null;
@@ -70447,20 +70576,20 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative20TotalExposures = {[key: string]: number};
+ export type QueryResponseAlternative21TotalExposures = {[key: string]: number};
- export interface QueryResponseAlternative20 {
+ export interface QueryResponseAlternative21 {
bias_risk?: BiasRisk | null;
date_range: DateRange;
kind?: 'ExperimentExposureQuery';
sample_ratio_mismatch?: SampleRatioMismatch | null;
timeseries: ExperimentExposureTimeSeries[];
- total_exposures: QueryResponseAlternative20TotalExposures;
+ total_exposures: QueryResponseAlternative21TotalExposures;
/** Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics. */
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative21 {
+ export interface QueryResponseAlternative22 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -70485,7 +70614,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative22 {
+ export interface QueryResponseAlternative23 {
dateFrom?: string | null;
dateTo?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -70511,7 +70640,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative23 {
+ export interface QueryResponseAlternative24 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70542,7 +70671,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative24 {
+ export interface QueryResponseAlternative25 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70570,7 +70699,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative25 {
+ export interface QueryResponseAlternative26 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70597,7 +70726,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative27 {
+ export interface QueryResponseAlternative28 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70626,7 +70755,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative28 {
+ export interface QueryResponseAlternative29 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -70653,7 +70782,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative29 {
+ export interface QueryResponseAlternative30 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -70678,15 +70807,15 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative30Data = { [key: string]: unknown };
+ export type QueryResponseAlternative31Data = { [key: string]: unknown };
- export interface QueryResponseAlternative30 {
- data: QueryResponseAlternative30Data;
+ export interface QueryResponseAlternative31 {
+ data: QueryResponseAlternative31Data;
error?: ExternalQueryError | null;
status: ExternalQueryStatus;
}
- export interface QueryResponseAlternative31 {
+ export interface QueryResponseAlternative32 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -70710,7 +70839,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative32 {
+ export interface QueryResponseAlternative33 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70738,9 +70867,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative33Results = {[key: string]: MarketingAnalyticsItem};
+ export type QueryResponseAlternative34Results = {[key: string]: MarketingAnalyticsItem};
- export interface QueryResponseAlternative33 {
+ export interface QueryResponseAlternative34 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -70753,7 +70882,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative33Results;
+ results: QueryResponseAlternative34Results;
samplingRate?: SamplingRate | null;
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
@@ -70763,7 +70892,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative34 {
+ export interface QueryResponseAlternative35 {
/** Whether this result counted a repeat converter's every conversion, after resolving the query's null against the goal's math. The rate columns are a true share only when this is false, so the table reads it to label them. */
allowsMultipleConversionsPerVisitor: boolean;
/** The team's configured attribution window, for the tooltips. */
@@ -70800,7 +70929,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative35 {
+ export interface QueryResponseAlternative36 {
/** Conversions with at least one in-window touchpoint. The share denominator — deliberately unfiltered by min/maxTouchpoints so shares stay comparable across filter values. */
attributedConversions: number;
/** The attribution window actually used, for the tooltips. */
@@ -70833,7 +70962,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative36 {
+ export interface QueryResponseAlternative37 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70861,7 +70990,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative37 {
+ export interface QueryResponseAlternative38 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70890,7 +71019,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative38 {
+ export interface QueryResponseAlternative39 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70918,7 +71047,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative39 {
+ export interface QueryResponseAlternative40 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -70946,7 +71075,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative40 {
+ export interface QueryResponseAlternative41 {
/** Executed ClickHouse query */
clickhouse?: string | null;
/** Returned columns */
@@ -70983,7 +71112,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative41 {
+ export interface QueryResponseAlternative42 {
dateFrom?: string | null;
dateTo?: string | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -71009,7 +71138,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative42 {
+ export interface QueryResponseAlternative43 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71040,7 +71169,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative43 {
+ export interface QueryResponseAlternative44 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71068,7 +71197,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative44 {
+ export interface QueryResponseAlternative45 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71095,7 +71224,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative45 {
+ export interface QueryResponseAlternative46 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71124,7 +71253,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative46 {
+ export interface QueryResponseAlternative47 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71151,7 +71280,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative47 {
+ export interface QueryResponseAlternative48 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71178,7 +71307,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative48 {
+ export interface QueryResponseAlternative49 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71205,7 +71334,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative49 {
+ export interface QueryResponseAlternative50 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71233,9 +71362,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative50Results = {[key: string]: MarketingAnalyticsItem};
+ export type QueryResponseAlternative51Results = {[key: string]: MarketingAnalyticsItem};
- export interface QueryResponseAlternative50 {
+ export interface QueryResponseAlternative51 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71248,7 +71377,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative50Results;
+ results: QueryResponseAlternative51Results;
samplingRate?: SamplingRate | null;
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
@@ -71258,7 +71387,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative51 {
+ export interface QueryResponseAlternative52 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71286,7 +71415,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative52 {
+ export interface QueryResponseAlternative53 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71312,19 +71441,19 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative54CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative55CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative54InsightItemItem = { [key: string]: unknown };
+ export type QueryResponseAlternative55InsightItemItem = { [key: string]: unknown };
- export type QueryResponseAlternative54Probability = {[key: string]: number};
+ export type QueryResponseAlternative55Probability = {[key: string]: number};
- export interface QueryResponseAlternative54 {
- credible_intervals: QueryResponseAlternative54CredibleIntervals;
+ export interface QueryResponseAlternative55 {
+ credible_intervals: QueryResponseAlternative55CredibleIntervals;
expected_loss: number;
funnels_query?: FunnelsQuery | null;
- insight: QueryResponseAlternative54InsightItemItem[][];
+ insight: QueryResponseAlternative55InsightItemItem[][];
kind?: 'ExperimentFunnelsQuery';
- probability: QueryResponseAlternative54Probability;
+ probability: QueryResponseAlternative55Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -71333,20 +71462,20 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export type QueryResponseAlternative55CredibleIntervals = {[key: string]: number[]};
+ export type QueryResponseAlternative56CredibleIntervals = {[key: string]: number[]};
- export type QueryResponseAlternative55InsightItem = { [key: string]: unknown };
+ export type QueryResponseAlternative56InsightItem = { [key: string]: unknown };
- export type QueryResponseAlternative55Probability = {[key: string]: number};
+ export type QueryResponseAlternative56Probability = {[key: string]: number};
- export interface QueryResponseAlternative55 {
+ export interface QueryResponseAlternative56 {
count_query?: TrendsQuery | null;
- credible_intervals: QueryResponseAlternative55CredibleIntervals;
+ credible_intervals: QueryResponseAlternative56CredibleIntervals;
exposure_query?: TrendsQuery | null;
- insight: QueryResponseAlternative55InsightItem[];
+ insight: QueryResponseAlternative56InsightItem[];
kind?: 'ExperimentTrendsQuery';
p_value: number;
- probability: QueryResponseAlternative55Probability;
+ probability: QueryResponseAlternative56Probability;
significance_code: ExperimentSignificanceCode;
significant: boolean;
stats_version?: number | null;
@@ -71355,7 +71484,7 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative56 {
+ export interface QueryResponseAlternative57 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71381,7 +71510,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative58 {
+ export interface QueryResponseAlternative59 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71408,7 +71537,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative59 {
+ export interface QueryResponseAlternative60 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71438,7 +71567,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative60 {
+ export interface QueryResponseAlternative61 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore: boolean;
@@ -71466,9 +71595,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative61ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative62ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative61 {
+ export interface QueryResponseAlternative62 {
boxplot_data?: BoxPlotDatum[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71484,7 +71613,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative61ResultsItem[];
+ results: QueryResponseAlternative62ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -71493,7 +71622,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative62 {
+ export interface QueryResponseAlternative63 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71517,7 +71646,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative63 {
+ export interface QueryResponseAlternative64 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71539,7 +71668,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative64 {
+ export interface QueryResponseAlternative65 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71561,7 +71690,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative65 {
+ export interface QueryResponseAlternative66 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71583,9 +71712,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative66ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative67ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative66 {
+ export interface QueryResponseAlternative67 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71598,7 +71727,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative66ResultsItem[];
+ results: QueryResponseAlternative67ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -71607,7 +71736,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative68 {
+ export interface QueryResponseAlternative69 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71634,14 +71763,14 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative69Tables = {[key: string]: DatabaseSchemaPostHogTable | DatabaseSchemaSystemTable | DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable | DatabaseSchemaManagedViewTable | DatabaseSchemaBatchExportTable | DatabaseSchemaMaterializedViewTable | DatabaseSchemaEndpointTable};
+ export type QueryResponseAlternative70Tables = {[key: string]: DatabaseSchemaPostHogTable | DatabaseSchemaSystemTable | DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable | DatabaseSchemaManagedViewTable | DatabaseSchemaBatchExportTable | DatabaseSchemaMaterializedViewTable | DatabaseSchemaEndpointTable};
- export interface QueryResponseAlternative69 {
+ export interface QueryResponseAlternative70 {
joins: DataWarehouseViewLink[];
- tables: QueryResponseAlternative69Tables;
+ tables: QueryResponseAlternative70Tables;
}
- export interface QueryResponseAlternative70 {
+ export interface QueryResponseAlternative71 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
has_next: boolean;
@@ -71666,7 +71795,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative71 {
+ export interface QueryResponseAlternative72 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71694,7 +71823,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative72 {
+ export interface QueryResponseAlternative73 {
count: number;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71717,7 +71846,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative73 {
+ export interface QueryResponseAlternative74 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71739,7 +71868,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative74 {
+ export interface QueryResponseAlternative75 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71761,7 +71890,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative75 {
+ export interface QueryResponseAlternative76 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -71788,7 +71917,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative76 {
+ export interface QueryResponseAlternative77 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: AggregatedSpanRow[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -71812,7 +71941,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative77 {
+ export interface QueryResponseAlternative78 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: SpanTreeNode[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -71836,7 +71965,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative78 {
+ export interface QueryResponseAlternative79 {
/** Result rows for the comparison period when `compareFilter.compare` is true. */
compare?: AttributeBreakdownRow[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
@@ -71860,13 +71989,13 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative79 {
+ export interface QueryResponseAlternative80 {
questions: string[];
/** Data warehouse sync warnings — see AnalyticsQueryResponseBase.warnings for semantics. */
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative80 {
+ export interface QueryResponseAlternative81 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -71891,7 +72020,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative81 {
+ export interface QueryResponseAlternative82 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore?: boolean | null;
@@ -71916,7 +72045,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative82 {
+ export interface QueryResponseAlternative83 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -71938,7 +72067,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative83 {
+ export interface QueryResponseAlternative84 {
columns?: string[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -71964,7 +72093,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative86 {
+ export interface QueryResponseAlternative87 {
/** Timestamp of the newer trace */
newerTimestamp?: string | null;
/** ID of the newer trace (chronologically after current) */
@@ -71979,7 +72108,7 @@ export namespace Schemas {
warnings?: DataWarehouseSyncWarning[] | null;
}
- export interface QueryResponseAlternative87 {
+ export interface QueryResponseAlternative88 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72001,7 +72130,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative88 {
+ export interface QueryResponseAlternative89 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72023,7 +72152,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative89 {
+ export interface QueryResponseAlternative90 {
columns: unknown[];
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -72053,7 +72182,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative90 {
+ export interface QueryResponseAlternative91 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
hasMore: boolean;
@@ -72081,7 +72210,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative91 {
+ export interface QueryResponseAlternative92 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72103,7 +72232,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative92 {
+ export interface QueryResponseAlternative93 {
columns?: unknown[] | null;
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
@@ -72130,9 +72259,9 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative93ResultsItem = { [key: string]: unknown };
+ export type QueryResponseAlternative94ResultsItem = { [key: string]: unknown };
- export interface QueryResponseAlternative93 {
+ export interface QueryResponseAlternative94 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72145,7 +72274,7 @@ export namespace Schemas {
resolved_compare_date_range?: ResolvedDateRangeResponse | null;
/** The date range used for the query */
resolved_date_range?: ResolvedDateRangeResponse | null;
- results: QueryResponseAlternative93ResultsItem[];
+ results: QueryResponseAlternative94ResultsItem[];
/** Measured timings for different parts of the query generation process */
timings?: QueryTiming[] | null;
/** Connector-synced data warehouse sources referenced by this query, if any. */
@@ -72154,7 +72283,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative94 {
+ export interface QueryResponseAlternative95 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72176,7 +72305,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative95 {
+ export interface QueryResponseAlternative96 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72198,7 +72327,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative96 {
+ export interface QueryResponseAlternative97 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72220,7 +72349,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative97 {
+ export interface QueryResponseAlternative98 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72242,7 +72371,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative98 {
+ export interface QueryResponseAlternative99 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72264,7 +72393,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative99 {
+ export interface QueryResponseAlternative100 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72286,7 +72415,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative100 {
+ export interface QueryResponseAlternative101 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72309,7 +72438,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative101 {
+ export interface QueryResponseAlternative102 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72331,7 +72460,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative102 {
+ export interface QueryResponseAlternative103 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72353,7 +72482,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative103 {
+ export interface QueryResponseAlternative104 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72375,7 +72504,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative104 {
+ export interface QueryResponseAlternative105 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72397,7 +72526,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative105 {
+ export interface QueryResponseAlternative106 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72419,7 +72548,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative106 {
+ export interface QueryResponseAlternative107 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72441,7 +72570,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative107 {
+ export interface QueryResponseAlternative108 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72463,7 +72592,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative108 {
+ export interface QueryResponseAlternative109 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72485,7 +72614,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative109 {
+ export interface QueryResponseAlternative110 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72507,7 +72636,7 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export interface QueryResponseAlternative110 {
+ export interface QueryResponseAlternative111 {
/** Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise. */
error?: string | null;
/** Generated HogQL query. */
@@ -72529,18 +72658,18 @@ export namespace Schemas {
warnings?: (DataWarehouseSyncWarning | AccessControlFilterWarning)[] | null;
}
- export type QueryResponseAlternative = { [key: string]: unknown } | QueryResponseAlternative1 | QueryResponseAlternative2 | QueryResponseAlternative3 | QueryResponseAlternative4 | QueryResponseAlternative5 | QueryResponseAlternative6 | QueryResponseAlternative7 | QueryResponseAlternative8 | QueryResponseAlternative9 | QueryResponseAlternative10 | QueryResponseAlternative11 | QueryResponseAlternative12 | QueryResponseAlternative13 | QueryResponseAlternative14 | QueryResponseAlternative15 | QueryResponseAlternative16 | QueryResponseAlternative17 | QueryResponseAlternative18 | QueryResponseAlternative19 | QueryResponseAlternative20 | QueryResponseAlternative21 | QueryResponseAlternative22 | QueryResponseAlternative23 | QueryResponseAlternative24 | QueryResponseAlternative25 | QueryResponseAlternative27 | QueryResponseAlternative28 | QueryResponseAlternative29 | QueryResponseAlternative30 | QueryResponseAlternative31 | QueryResponseAlternative32 | QueryResponseAlternative33 | QueryResponseAlternative34 | QueryResponseAlternative35 | QueryResponseAlternative36 | unknown | QueryResponseAlternative37 | QueryResponseAlternative38 | QueryResponseAlternative39 | QueryResponseAlternative40 | QueryResponseAlternative41 | QueryResponseAlternative42 | QueryResponseAlternative43 | QueryResponseAlternative44 | QueryResponseAlternative45 | QueryResponseAlternative46 | QueryResponseAlternative47 | QueryResponseAlternative48 | QueryResponseAlternative49 | QueryResponseAlternative50 | QueryResponseAlternative51 | QueryResponseAlternative52 | QueryResponseAlternative54 | QueryResponseAlternative55 | QueryResponseAlternative56 | QueryResponseAlternative58 | QueryResponseAlternative59 | QueryResponseAlternative60 | QueryResponseAlternative61 | QueryResponseAlternative62 | QueryResponseAlternative63 | QueryResponseAlternative64 | QueryResponseAlternative65 | QueryResponseAlternative66 | QueryResponseAlternative68 | QueryResponseAlternative69 | QueryResponseAlternative70 | QueryResponseAlternative71 | QueryResponseAlternative72 | QueryResponseAlternative73 | QueryResponseAlternative74 | QueryResponseAlternative75 | QueryResponseAlternative76 | QueryResponseAlternative77 | QueryResponseAlternative78 | QueryResponseAlternative79 | QueryResponseAlternative80 | QueryResponseAlternative81 | QueryResponseAlternative82 | QueryResponseAlternative83 | QueryResponseAlternative86 | QueryResponseAlternative87 | QueryResponseAlternative88 | QueryResponseAlternative89 | QueryResponseAlternative90 | QueryResponseAlternative91 | QueryResponseAlternative92 | QueryResponseAlternative93 | QueryResponseAlternative94 | QueryResponseAlternative95 | QueryResponseAlternative96 | QueryResponseAlternative97 | QueryResponseAlternative98 | QueryResponseAlternative99 | QueryResponseAlternative100 | QueryResponseAlternative101 | QueryResponseAlternative102 | QueryResponseAlternative103 | QueryResponseAlternative104 | QueryResponseAlternative105 | QueryResponseAlternative106 | QueryResponseAlternative107 | QueryResponseAlternative108 | QueryResponseAlternative109 | QueryResponseAlternative110;
+ export type QueryResponseAlternative = { [key: string]: unknown } | QueryResponseAlternative1 | QueryResponseAlternative2 | QueryResponseAlternative3 | QueryResponseAlternative4 | QueryResponseAlternative5 | QueryResponseAlternative6 | QueryResponseAlternative7 | QueryResponseAlternative8 | QueryResponseAlternative9 | QueryResponseAlternative10 | QueryResponseAlternative11 | QueryResponseAlternative12 | QueryResponseAlternative13 | QueryResponseAlternative14 | QueryResponseAlternative15 | QueryResponseAlternative16 | QueryResponseAlternative17 | QueryResponseAlternative18 | QueryResponseAlternative19 | QueryResponseAlternative20 | QueryResponseAlternative21 | QueryResponseAlternative22 | QueryResponseAlternative23 | QueryResponseAlternative24 | QueryResponseAlternative25 | QueryResponseAlternative26 | QueryResponseAlternative28 | QueryResponseAlternative29 | QueryResponseAlternative30 | QueryResponseAlternative31 | QueryResponseAlternative32 | QueryResponseAlternative33 | QueryResponseAlternative34 | QueryResponseAlternative35 | QueryResponseAlternative36 | QueryResponseAlternative37 | unknown | QueryResponseAlternative38 | QueryResponseAlternative39 | QueryResponseAlternative40 | QueryResponseAlternative41 | QueryResponseAlternative42 | QueryResponseAlternative43 | QueryResponseAlternative44 | QueryResponseAlternative45 | QueryResponseAlternative46 | QueryResponseAlternative47 | QueryResponseAlternative48 | QueryResponseAlternative49 | QueryResponseAlternative50 | QueryResponseAlternative51 | QueryResponseAlternative52 | QueryResponseAlternative53 | QueryResponseAlternative55 | QueryResponseAlternative56 | QueryResponseAlternative57 | QueryResponseAlternative59 | QueryResponseAlternative60 | QueryResponseAlternative61 | QueryResponseAlternative62 | QueryResponseAlternative63 | QueryResponseAlternative64 | QueryResponseAlternative65 | QueryResponseAlternative66 | QueryResponseAlternative67 | QueryResponseAlternative69 | QueryResponseAlternative70 | QueryResponseAlternative71 | QueryResponseAlternative72 | QueryResponseAlternative73 | QueryResponseAlternative74 | QueryResponseAlternative75 | QueryResponseAlternative76 | QueryResponseAlternative77 | QueryResponseAlternative78 | QueryResponseAlternative79 | QueryResponseAlternative80 | QueryResponseAlternative81 | QueryResponseAlternative82 | QueryResponseAlternative83 | QueryResponseAlternative84 | QueryResponseAlternative87 | QueryResponseAlternative88 | QueryResponseAlternative89 | QueryResponseAlternative90 | QueryResponseAlternative91 | QueryResponseAlternative92 | QueryResponseAlternative93 | QueryResponseAlternative94 | QueryResponseAlternative95 | QueryResponseAlternative96 | QueryResponseAlternative97 | QueryResponseAlternative98 | QueryResponseAlternative99 | QueryResponseAlternative100 | QueryResponseAlternative101 | QueryResponseAlternative102 | QueryResponseAlternative103 | QueryResponseAlternative104 | QueryResponseAlternative105 | QueryResponseAlternative106 | QueryResponseAlternative107 | QueryResponseAlternative108 | QueryResponseAlternative109 | QueryResponseAlternative110 | QueryResponseAlternative111;
export interface QueryStatusResponse {
query_status: QueryStatus;
}
export interface QueryUpgradeRequest {
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
}
export interface QueryUpgradeResponse {
- query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
+ query: EventsNode | ActionsNode | PersonsNode | DataWarehouseNode | FunnelsDataWarehouseNode | LifecycleDataWarehouseNode | EventsQuery | SessionsQuery | ActorsQuery | GroupsQuery | InsightActorsQuery | InsightActorsQueryOptions | SessionsTimelineQuery | HogQuery | HogQLQuery | HogQLMetadata | HogQLAutocomplete | SessionAttributionExplorerQuery | ErrorTrackingQuery | ErrorTrackingSimilarIssuesQuery | ErrorTrackingFingerprintProjectionQuery | ErrorTrackingBreakdownsQuery | ErrorTrackingReleasesQuery | ErrorTrackingIssueCorrelationQuery | ExperimentFunnelsQuery | ExperimentTrendsQuery | ExperimentQuery | ExperimentExposureQuery | DocumentSimilarityQuery | WebOverviewQuery | WebStatsTableQuery | WebExternalClicksTableQuery | WebBotsTableQuery | WebAgentAnalyticsQuery | WebGoalsQuery | WebVitalsQuery | WebVitalsPathBreakdownQuery | WebPageURLSearchQuery | WebAnalyticsExternalSummaryQuery | WebNotableChangesQuery | MarketingAnalyticsTableQuery | MarketingAnalyticsAggregatedQuery | MarketingAnalyticsAttributionQuery | MarketingAnalyticsAttributionPathsQuery | NonIntegratedConversionsTableQuery | DataVisualizationNode | DataTableNode | SavedInsightNode | InsightVizNode | TrendsQuery | FunnelsQuery | RetentionQuery | PathsQuery | PathsV2Query | StickinessQuery | LifecycleQuery | FunnelCorrelationQuery | DatabaseSchemaQuery | RecordingsQuery | LogsQuery | LogAttributesQuery | LogValuesQuery | MetricsQuery | TraceSpansQuery | TraceSpansAggregationQuery | TraceSpansTreeQuery | TraceSpansAttributeBreakdownQuery | SuggestedQuestionsQuery | TeamTaxonomyQuery | EventTaxonomyQuery | ActorsPropertyTaxonomyQuery | TracesQuery | TraceQuery | SessionQuery | TraceNeighborsQuery | VectorSearchQuery | UsageMetricsQuery | AccountsQuery | AccountsTableQuery | EndpointsUsageOverviewQuery | EndpointsUsageTableQuery | EndpointsUsageTrendsQuery | MCPToolCallBreakdownQuery | MCPToolCallsAndErrorsQuery | MCPHarnessBreakdownQuery | MCPToolTopUsersQuery | MCPToolFailuresQuery | MCPToolFailureOccurrencesQuery | MCPToolStatsQuery | MCPToolDailyStatsQuery | MCPToolQualityRowsQuery | MCPToolQualityDailyStatsQuery | MCPToolCategoryCountsQuery | MCPToolCategoriesQuery | MCPToolCategoryMapQuery | MCPToolDescriptionsQuery | MCPToolSampleIntentsQuery | MCPToolNeighborsQuery | PropertyValuesQuery;
}
export interface QuotaResourceLimit {