Closed Bug 1979885 Opened 1 year ago Closed 11 months ago

Refactor last time review prompt shown trigger to use Nimbus

Categories

(Firefox for Android :: Experimentation and Telemetry, task)

All
Android
task

Tracking

()

RESOLVED FIXED
144 Branch
Tracking Status
firefox143 --- fixed
firefox144 --- fixed

People

(Reporter: mkozinski, Assigned: mkozinski)

References

Details

(Whiteboard: [fxdroid][group2])

Attachments

(6 files)

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.lastReviewPromptTimeInMillis when prompt is shown, record a new review_prompt_shown event in Nimbus, by calling Context.recordEventInNimbus("review_prompt_shown") (or directly nimbus.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.)

Assignee: nobody → mkozinski
Status: NEW → ASSIGNED
Pushed by mkozinski@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a30a6e03476c https://hg.mozilla.org/integration/autoland/rev/4ba97f47caf8 Record an event in Nimbus instead of tracking last review prompt time manually r=android-reviewers,twhite https://github.com/mozilla-firefox/firefox/commit/16c2a3def1a1 https://hg.mozilla.org/integration/autoland/rev/38667c22386d Migrate existing last review prompt time values to a Nimbus event r=android-reviewers,twhite https://github.com/mozilla-firefox/firefox/commit/c36d2dc527b6 https://hg.mozilla.org/integration/autoland/rev/5a51a0ffbf17 Make review prompt trigger function names more consistent r=android-reviewers,twhite
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
Attachment #9517880 - Flags: approval-mozilla-release?
Attachment #9517881 - Flags: approval-mozilla-release?

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
Attachment #9517882 - Flags: approval-mozilla-release?
Attachment #9517880 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9517881 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9517882 - Flags: approval-mozilla-release? → approval-mozilla-release+
Regressions: 1992918
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: