This repository has been archived by the owner on Jan 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbug-1674187-pref-holdback-study-for-quantumbar-v2-release-82-85.toml
66 lines (58 loc) · 2.54 KB
/
bug-1674187-pref-holdback-study-for-quantumbar-v2-release-82-85.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[experiment]
enrollment_query = """
SELECT
client_id,
mozfun.map.get_key(experiments, "{{experiment.normandy_slug}}") AS branch,
MIN(submission_date) AS enrollment_date,
1 AS num_enrollments
FROM `moz-fx-data-shared-prod`.telemetry.main_summary
WHERE
submission_date BETWEEN "{{experiment.start_date_str}}" AND "{{experiment.last_enrollment_date_str}}"
AND mozfun.map.get_key(experiments, "{{experiment.normandy_slug}}") IS NOT NULL
AND STARTS_WITH(app_version, "83.")
GROUP BY 1, 2
"""
start_date = "2020-11-17" # Fx 83 launch
enrollment_period = 14
reference_branch = 'holdback-group-no-update'
segments = ["regular_users_v3"]
[metrics]
weekly = ["organic_search_count", "search_count", "tagged_search_count",
"tagged_follow_on_search_count", "total_amazon_search_count",
"urlbar_amazon_search_count", "searchmode_count", "search_engagement"]
overall = ["organic_search_count", "search_count", "tagged_search_count",
"tagged_follow_on_search_count", "total_amazon_search_count",
"urlbar_amazon_search_count", "searchmode_count", "search_engagement"]
[metrics.total_amazon_search_count]
select_expression = "SUM(CASE WHEN engine like 'amazon%' then sap else 0 end)"
data_source = "search_clients_daily"
[metrics.total_amazon_search_count.statistics.bootstrap_mean]
[metrics.total_amazon_search_count.statistics.deciles]
[metrics.urlbar_amazon_search_count]
select_expression = """
SUM(CASE
WHEN source = 'alias' and engine like 'amazon%' then sap
WHEN source = 'urlbar' and engine like 'amazon%' then sap
WHEN source = 'urlbar-searchmode' and engine like 'amazon%' then sap
else 0 end)"""
data_source = "search_clients_daily"
[metrics.urlbar_amazon_search_count.statistics.bootstrap_mean]
[metrics.urlbar_amazon_search_count.statistics.deciles]
[metrics.searchmode_count]
select_expression = """
SUM(CASE
WHEN source = 'alias' then sap
WHEN source = 'urlbar-searchmode' then sap
else 0 end)"""
data_source = "search_clients_daily"
[metrics.searchmode_count.statistics.bootstrap_mean]
[metrics.searchmode_count.statistics.deciles]
[metrics.search_engagement]
select_expression = """
safe_divide((SUM(tagged_sap) + SUM(tagged_follow_on))*100.0,
SUM(organic) + SUM(tagged_sap) + SUM(tagged_follow_on))"""
data_source = "search_clients_daily"
[metrics.search_engagement.statistics.bootstrap_mean]
pre_treatments = ["remove_nulls"]
[metrics.search_engagement.statistics.deciles]
pre_treatments = ["remove_nulls"]