Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions experimenter/experimenter/targeting/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,49 @@ def __post_init__(self):
application_choice_names=(Application.DESKTOP.name,),
)

WINDOWS_10_PLUS_BG_TASK_NOTIFICATION_LAPSED_USER_CFR_ENABLED = NimbusTargetingConfig(
name="Lapsed users background task notification (recommendations enabled)",
slug="background_task_notification_lapsed_user_cfr_enabled",
description=(
"Windows 10+ users with 0 days of activity in the past 28 days "
"who are running a background task and have not disabled "
"'Recommend extensions as you browse' or "
"'Recommend features as you browse'"
),
targeting="""
(
(
os.isWindows
&&
(os.windowsVersion >= 10)
)
&&
(
((defaultProfile|keys)|length == 0)
||
(defaultProfile.userMonthlyActivity|length == 0)
)
&&
isBackgroundTaskMode
&&
'browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features'|preferenceValue
&&
'browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons'|preferenceValue
)
""",
desktop_telemetry="",
sticky_required=True,
is_first_run_required=False,
application_choice_names=(Application.DESKTOP.name,),
)

NEWTAB_SPONSORED_TOPSITES_ENABLED = NimbusTargetingConfig(
name="Newtab has Sponsored TopSites enabled ",
slug="newtab_sponsored_topsites_enabled",
description="Users with Sponsored TopSites enabled on the newtab",
targeting="""
'browser.newtabpage.activity-stream.showSponsoredTopSites'|preferenceValue
""",
Comment thread
halemu marked this conversation as resolved.
WINDOWS_10_BACKGROUND_TASK_NOTIFICATION_ONE_YEAR = NimbusTargetingConfig(
name="Lapsed users background task notification for up to a year",
slug="background_task_notification_one_year",
Expand Down
Loading