Skip to content

Commit d4834d4

Browse files
authored
feat(nimbus): Update advanced targeting for FX_149_TRAINHOP_2_ACTIVATION_WINDOW (#14811)
Because Users aren't being enrolled with the existing targeting This commit Updates the existing targeting to use profiles created within 1 hour instead of isFirstStartup Fixes #14807
1 parent 441ebb1 commit d4834d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

experimenter/experimenter/targeting/constants.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def __post_init__(self):
3131
NEED_DEFAULT = "!isDefaultBrowser"
3232
PROFILE28DAYS = "(currentDate|date - profileAgeCreated|date) / 86400000 >= 28"
3333
PROFILELESSTHAN28DAYS = "(currentDate|date - profileAgeCreated|date) / 86400000 < 28"
34+
PROFILELESSTHAN1HOUR = "(currentDate|date - profileAgeCreated|date) / 3600000 < 1"
3435
PROFILEMORETHAN7DAYS = "(currentDate|date - profileAgeCreated|date) / 86400000 > 7"
3536
NEW_PROFILE = "(currentDate|date - profileAgeCreated|date) / 3600000 <= 24"
3637
NEW_NON_SELECTABLE_PROFILE = f"({NEW_PROFILE}) && profileGroupProfileCount == 0"
@@ -4081,7 +4082,7 @@ def __post_init__(self):
40814082
"which includes users of Fx148"
40824083
),
40834084
targeting=(
4084-
f"isFirstStartup && os.isWindows && "
4085+
f"{PROFILELESSTHAN1HOUR} && os.isWindows && "
40854086
f"{NEW_NON_SELECTABLE_PROFILE} && "
40864087
f"{FX_149_TRAINHOP_2.targeting}"
40874088
),

0 commit comments

Comments
 (0)