-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use an experiment, rather than a flag, for the last scan date #4443
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This approach lgtm, if we go this way it means that we are going all-in on Nimbus experiments and not doing a gradual transition.
So new features need to decide if they are using feature flags (which will be deprecated, I could do make that explicit in #4438) or if they are using Nimbus experiment. There's some overhead to set up a roll-out or experiment, but maybe you're right and it'd be best to go all-in and not try to combine these systems.
One question I have is how do we test this locally? Could be have a local
environment in nimbus.yaml
which would let us set the defaults maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Very cool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I just double-checked and noticed that you didn't pull over the https://dictionary.telemetry.mozilla.org/apps/mdn_yari/metrics/glean_client_annotation_experimentation_id change - we need to switch to using the experimentationId
argument to Glean.initialize()
.
Right now the PageLoadEvent
sets it as user_id
, but we don't want it in the payload and we need it to be set for all events not just this one.
I reverted it from my branch but you can still find the code I used in 779f6e2 (e.g.
blurts-server/src/app/hooks/useGlean.ts
Line 45 in 779f6e2
experimentationId, |
Thanks @rhelmer, good catch. The commit you linked was empty, but I think the right one is 4705929#diff-a90f1e99ca381caeb8fe87186b6c8aa0afeb082d4d108c3231710d23d2238c0f? I incorporated those changes in 1519b6b. I'm not sure what you mean by
Do you mean updating every call to I also went ahead and renamed |
I've been discussing with DS what to do with this, I think we're going to use The |
9fa38fb
to
b13ca39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving to get it out of the queue, but I feel like I've reviewed the same couple of strings a few time over the last week?
Sorry @flodolo, that happens when I base a PR on a different PR. As the original PR gets rebased and then merged into |
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
This allows them to be used to select experiment cohors. Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
Co-authored-by: Robert Helmer <rhelmer@mozilla.com>
73f52e5
to
ed04f71
Compare
References:
Jira: MNTOR-3094
Description
This builds on #4407, but replaces the feature flag by an experiment.
It incorporates changes from #4438 to determine the
experimentationId
(but to limit the number of changes in this PR, I didn't rename the function yet fromgetUserId
). However, in contrast to that PR, it doesn't repurpose our feature flag code, but avoids it altogether. The idea is that we'd fully remove our feature flag infrastructure in favour of experiments - and to see the experiments locally, you'd set thedefault
value innimbus.yml
. That makes sure we have a single source of truth, i.e. the experiment, without losing strict typing.How to test
Enable the
last-scan-date
experiment innimbus.yml
via itsdefault
value. The last scan date should be displayed like it used to be with the flag.Checklist (Definition of Done)