Add optoutstudies pref to clients_daily (#3291)

This commit is contained in:
Rebecca BurWei 2022-10-24 18:39:01 -05:00 коммит произвёл GitHub
Родитель 2a2a14d9e1
Коммит 1e43c1601b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -1792,6 +1792,9 @@ fields:
- mode: NULLABLE
name: user_pref_browser_newtabpage_enabled
type: STRING
- mode: NULLABLE
name: user_pref_app_shield_optoutstudies_enabled
type: STRING
- fields:
- mode: NULLABLE
name: key

Просмотреть файл

@ -626,6 +626,9 @@ clients_summary AS (
ARRAY_AGG(IF(key = 'browser.newtabpage.enabled', value, NULL) IGNORE NULLS)[
SAFE_OFFSET(0)
] AS user_pref_browser_newtabpage_enabled,
ARRAY_AGG(IF(key = 'app.shield.optoutstudies.enabled', value, NULL) IGNORE NULLS)[
SAFE_OFFSET(0)
] AS user_pref_app_shield_optoutstudies_enabled,
FROM
UNNEST(environment.settings.user_prefs)
).*
@ -1324,6 +1327,9 @@ aggregates AS (
mozfun.stats.mode_last(
ARRAY_AGG(user_pref_browser_newtabpage_enabled ORDER BY submission_timestamp)
) AS user_pref_browser_newtabpage_enabled,
mozfun.stats.mode_last(
ARRAY_AGG(user_pref_app_shield_optoutstudies_enabled ORDER BY submission_timestamp)
) AS user_pref_app_shield_optoutstudies_enabled,
-- We use last seen value rather than mode_last for all Firefox Suggest-related
-- pref values to ensure all values represent the same ping.
ARRAY_AGG(user_pref_browser_urlbar_suggest_quicksuggest ORDER BY submission_timestamp DESC)[

Просмотреть файл

@ -1777,6 +1777,9 @@ fields:
- mode: NULLABLE
name: user_pref_browser_newtabpage_enabled
type: STRING
- mode: NULLABLE
name: user_pref_app_shield_optoutstudies_enabled
type: STRING
- fields:
- mode: NULLABLE
name: key

Просмотреть файл

@ -1517,6 +1517,9 @@ fields:
- mode: NULLABLE
name: user_pref_browser_newtabpage_enabled
type: STRING
- mode: NULLABLE
name: user_pref_app_shield_optoutstudies_enabled
type: STRING
- fields:
- mode: NULLABLE
name: key

Просмотреть файл

@ -1581,6 +1581,9 @@ fields:
- mode: NULLABLE
name: user_pref_browser_newtabpage_enabled
type: STRING
- mode: NULLABLE
name: user_pref_app_shield_optoutstudies_enabled
type: STRING
- fields:
- mode: NULLABLE
name: key

Просмотреть файл

@ -1563,6 +1563,9 @@ fields:
- mode: NULLABLE
name: user_pref_browser_newtabpage_enabled
type: STRING
- mode: NULLABLE
name: user_pref_app_shield_optoutstudies_enabled
type: STRING
- fields:
- mode: NULLABLE
name: key