Skip to content

Commit a288e75

Browse files
committed
fix: remove versions from performance browsers
1 parent d68091d commit a288e75

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

apps/api/src/query/builders/performance.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const PerformanceBuilders: Record<string, SimpleQueryConfig> = {
2929
performance_by_browser: {
3030
table: Analytics.events,
3131
fields: [
32-
"CONCAT(browser_name, ' ', browser_version) as name",
32+
'browser_name as name',
3333
'COUNT(DISTINCT anonymous_id) as visitors',
3434
'AVG(CASE WHEN load_time > 0 THEN load_time ELSE NULL END) as avg_load_time',
3535
'quantile(0.50)(CASE WHEN load_time > 0 THEN load_time ELSE NULL END) as p50_load_time',
@@ -41,11 +41,9 @@ export const PerformanceBuilders: Record<string, SimpleQueryConfig> = {
4141
where: [
4242
"event_name = 'screen_view'",
4343
"browser_name != ''",
44-
"browser_version != ''",
45-
'browser_version IS NOT NULL',
4644
'load_time > 0',
4745
],
48-
groupBy: ['browser_name', 'browser_version'],
46+
groupBy: ['browser_name'],
4947
orderBy: 'p50_load_time DESC',
5048
limit: 100,
5149
timeField: 'time',
@@ -174,7 +172,7 @@ export const PerformanceBuilders: Record<string, SimpleQueryConfig> = {
174172
web_vitals_by_browser: {
175173
table: Analytics.web_vitals,
176174
fields: [
177-
"CONCAT(browser_name, ' ', browser_version) as name",
175+
'browser_name as name',
178176
'COUNT(DISTINCT anonymous_id) as visitors',
179177
'AVG(CASE WHEN fcp > 0 THEN fcp ELSE NULL END) as avg_fcp',
180178
'quantile(0.50)(CASE WHEN fcp > 0 THEN fcp ELSE NULL END) as p50_fcp',
@@ -188,10 +186,8 @@ export const PerformanceBuilders: Record<string, SimpleQueryConfig> = {
188186
],
189187
where: [
190188
"browser_name != ''",
191-
"browser_version != ''",
192-
'browser_version IS NOT NULL',
193189
],
194-
groupBy: ['browser_name', 'browser_version'],
190+
groupBy: ['browser_name'],
195191
orderBy: 'p50_lcp DESC',
196192
limit: 100,
197193
timeField: 'timestamp',

0 commit comments

Comments
 (0)