Refactor last time review prompt shown trigger to use Nimbus
Categories
(Firefox for Android :: Experimentation and Telemetry, task)
Tracking
()
People
(Reporter: mkozinski, Assigned: mkozinski)
References
Details
(Whiteboard: [fxdroid][group2])
Attachments
(6 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-release+
|
Details | Review |
Since we're evaluating all the other review prompt triggers with JEXL expressions, let's refactor the "hasn’t been shown in the last 4 months" criteria to also use this approach:
- Instead of updating
settings.lastReviewPromptTimeInMilliswhen prompt is shown, record a newreview_prompt_shownevent in Nimbus, by callingContext.recordEventInNimbus("review_prompt_shown")(or directlynimbus.events.recordEvent("review_prompt_shown")if context isn't available). - Then evaluate the criteria with this JEXL expression:
'review_prompt_shown'|eventLastSeen('Weeks') > 16.
(A month is tracked in Nimbus as a 28-day bucket, so converting it to 4 weeks doesn't change the semantics. Because of how buckets are advanced, using a monthly bucket can be almost an entire month off, so using weeks gives us better precision (means we might wait for 4 months and almost a week, instead of almost 5 months). This is why I opted for 16 weeks instead of 4 months.)
Updated•1 year ago
|
| Assignee | ||
Updated•11 months ago
|
| Assignee | ||
Comment 1•11 months ago
|
||
| Assignee | ||
Comment 2•11 months ago
|
||
| Assignee | ||
Comment 3•11 months ago
|
||
Comment 5•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4ba97f47caf8
https://hg.mozilla.org/mozilla-central/rev/38667c22386d
https://hg.mozilla.org/mozilla-central/rev/5a51a0ffbf17
Comment 6•10 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D264050
Updated•10 months ago
|
Comment 7•10 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D264051
Updated•10 months ago
|
Comment 8•10 months ago
|
||
firefox-release Uplift Approval Request
- User impact if declined: This stack is required for uplifting D267229
D267229 is needed to help an incident where our play store ratings have fallen the past few days. It keeps legacy review prompt behavior if the nimbus flag for the custom review prompt is disabled
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: N/A
- Risk associated with taking this patch: low
- Explanation of risk level: These are minor changes to the review prompt feature.
- String changes made/needed: No
- Is Android affected?: yes
Comment 9•10 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D264052
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Comment 10•10 months ago
|
||
| uplift | ||
Description
•