Skip to content

Commit 6b4a61e

Browse files
authored
Add targeting that excludes only windows 10 users (#15053)
To support the profiles rollout being expanded to enterprise users, this adds targeting that includes all users except Windows 10. Fixes #14706
1 parent 4db1f10 commit 6b4a61e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

experimenter/experimenter/targeting/constants.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,24 @@ def __post_init__(self):
10581058
application_choice_names=(Application.DESKTOP.name,),
10591059
)
10601060

1061+
EXCLUDE_WIN_10 = NimbusTargetingConfig(
1062+
name="All users, excluding Windows 10",
1063+
slug="all_users_no_win10",
1064+
description=(
1065+
"Mac, Linux and Windows 11 users but not Windows 10 users "
1066+
"(Windows 10 build > 22000)",
1067+
),
1068+
targeting=(
1069+
"(os.isWindows && os.windowsVersion >= 10 && "
1070+
"os.windowsBuildNumber >= 22000) || "
1071+
"os.isMac || os.isLinux"
1072+
),
1073+
desktop_telemetry="",
1074+
sticky_required=False,
1075+
is_first_run_required=False,
1076+
application_choice_names=(Application.DESKTOP.name,),
1077+
)
1078+
10611079
WIN10_NOT_WIN11 = NimbusTargetingConfig(
10621080
name="Windows 10 users but not Windows 11 users",
10631081
slug="win10_not_win11",

0 commit comments

Comments
 (0)