Skip to content

Commit

Permalink
Fix CI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alekhyamoz committed Dec 23, 2024
1 parent 34e8b9d commit 5a626ab
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ labels:
table_type: aggregate
shredder_mitigation: true
scheduling:
dag_name: bqetl_fx_cert_error_dashboard
dag_name: bqetl_fx_cert_error_privacy_dashboard
bigquery:
time_partitioning:
type: day
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
SELECT
DATE(submission_timestamp) AS submission_date,
normalized_country_code,
SUM(payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_added) / COUNT(
DISTINCT client_id
) AS bookmarks_added_per_dau,
SUM(
payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_opened
) / COUNT(DISTINCT client_id) AS bookmarks_opened_per_dau
submission_date,
normalized_channel,
COUNT(DISTINCT client_id) AS nbr_unique_users
FROM
`moz-fx-data-shared-prod.telemetry.main_1pct`
`mozdata.telemetry.events`
WHERE
DATE(submission_timestamp) = @submission_date
AND SUBSTR(application.version, 0, 2) >= '84'
AND normalized_channel = 'release'
event_category = 'security.ui.certerror'
AND event_object = 'aboutcerterror'
AND event_method = 'load'
AND submission_date = @submission_date
GROUP BY
submission_date,
normalized_country_code
1,
2
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ fields:
type: DATE
description: Submission Date
- mode: NULLABLE
name: normalized_country_code
name: normalized_channel
type: STRING
description: Normalized Country Code
- name: bookmarks_added_per_dau
type: FLOAT
description: Normalized Channel
- name: nbr_unique_users
type: INTEGER
mode: NULLABLE
description: Bookmarks Added per DAU
- name: bookmarks_opened_per_dau
type: FLOAT
mode: NULLABLE
description: Bookmarks Opened per DAU
description: Number of Unique users (distinct client ids)

Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
friendly_name: Firefox Health Indicator - Bookmarks By Country
friendly_name: Firefox Cert Error Dashboard - Unique users by os
description: |-
Please provide a description for the query
Unique users experiencing cert error page per day per os
owners:
- kwindau@mozilla.com
- akommasani@mozilla.com
labels:
incremental: true
owner1: kwindau
owner1: akommasani
table_type: aggregate
shredder_mitigation: true
scheduling:
dag_name: bqetl_fx_health_ind_dashboard
dag_name: bqetl_fx_cert_error_privacy_dashboard
bigquery:
time_partitioning:
type: day
field: submission_date
require_partition_filter: false
expiration_days: null
range_partitioning: null
clustering:
fields:
- normalized_country_code
references: {}
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
SELECT
DATE(submission_timestamp) AS submission_date,
normalized_country_code,
SUM(payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_added) / COUNT(
DISTINCT client_id
) AS bookmarks_added_per_dau,
SUM(
payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_opened
) / COUNT(DISTINCT client_id) AS bookmarks_opened_per_dau
submission_date,
normalized_channel,
COUNT(DISTINCT client_id) AS nbr_unique_users
FROM
`moz-fx-data-shared-prod.telemetry.main_1pct`
`mozdata.telemetry.events`
WHERE
DATE(submission_timestamp) = @submission_date
AND SUBSTR(application.version, 0, 2) >= '84'
AND normalized_channel = 'release'
event_category = 'security.ui.certerror'
AND event_object = 'aboutcerterror'
AND event_method = 'load'
AND submission_date = @submission_date
GROUP BY
submission_date,
normalized_country_code
1,
2
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ fields:
type: DATE
description: Submission Date
- mode: NULLABLE
name: normalized_channel
name: os
type: STRING
description: Normalized Channel
description: OS
- name: nbr_unique_users
type: INTEGER
mode: NULLABLE
description: Unique users (distinct client ids)
description: Number of Unique users (distinct client ids)
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
SELECT
DATE(submission_timestamp) AS submission_date,
normalized_country_code,
SUM(payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_added) / COUNT(
DISTINCT client_id
) AS bookmarks_added_per_dau,
SUM(
payload.processes.parent.scalars.browser_engagement_bookmarks_toolbar_bookmark_opened
) / COUNT(DISTINCT client_id) AS bookmarks_opened_per_dau
event_object,
submission_date,
COUNT(*) AS nbr_events,
COUNT(DISTINCT client_id) AS nbr_distinct_users,
FROM
`moz-fx-data-shared-prod.telemetry.main_1pct`
`moz-fx-data-shared-prod.telemetry.events`
WHERE
DATE(submission_timestamp) = @submission_date
AND SUBSTR(application.version, 0, 2) >= '84'
AND normalized_channel = 'release'
event_category = 'security.ui.protectionspopup'
AND submission_date = @submission_date
GROUP BY
submission_date,
normalized_country_code
event_object
ORDER BY
submission_date
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ fields:
type: DATE
description: Submission Date
- mode: NULLABLE
name: normalized_country_code
name: event_object
type: STRING
description: Normalized Country Code
- name: bookmarks_added_per_dau
type: FLOAT
mode: NULLABLE
description: Bookmarks Added per DAU
- name: bookmarks_opened_per_dau
type: FLOAT
description: Submission Date
- mode: NULLABLE
name: nbr_events
type: INTEGER
description: Number of events
- name: nbr_distinct_users
type: INTEGER
mode: NULLABLE
description: Bookmarks Opened per DAU
description: Number of distinct users

0 comments on commit 5a626ab

Please sign in to comment.