Closed Bug 1921220 Opened 1 year ago Closed 1 year ago

Add settings toggle for Fenix DAU ping

Categories

(Firefox for Android :: Settings, enhancement, P1)

Desktop
All
enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox135 --- wontfix
firefox136 --- fixed

People

(Reporter: Gijs, Assigned: zmckenney)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

For the additional DAU ping we will want a separate settings toggle that controls whether it is uploaded.

When we add this, we must make sure that for any users that have already disabled telemetry, the new ping is also disabled.

Content design for this work has not been finalized so this is not actionable as yet.

Whiteboard: [fidefe-tos]

Adding a link to a Jira clone of this bug simply for task tracking purposes. The majority of conversation should happen here in Bugzilla.

The severity field is not set for this bug.
:royang, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(royang)
Blocks: 1923902

:gijs, this issue seems to be a task. Is this issue a defect? Thanks

Flags: needinfo?(royang) → needinfo?(gijskruitbosch+bugs)

(In reply to Roger Yang [:royang] from comment #3)

:gijs, this issue seems to be a task. Is this issue a defect? Thanks

It's either a defect or enhancement, as the end result is user-visible (unlike tasks). 302 to Polly on her preferences for how to grade this.

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(polly)
Type: defect → enhancement
Flags: needinfo?(polly)

:D nice 302-ing!
i think it's probably an enhancement, but will not fight anyone who disagrees

Depends on: 1923842
Summary: Add settings toggle for DAU ping → Add settings toggle for Fenix DAU ping
No longer blocks: 1923902
Severity: -- → N/A
Priority: -- → P1

Jan-Erik has suggested a way forward for this. In summary:
Client apps will need to generate and store a new dau_id for the lifetime of the app.

Steps:

  • add a new usage:profile_id metric to fenix/app/metrics.yaml ("the dau id")
  • on first launch of the app when Glean is initialised, call Dau.id.generateAndSet() and save the returned usage profile id string in a Preference
  • on subsequent launches of the app:
    -- if upload is enabled, retrieve the usage profile id value from the preference and call Dau.id.set(dauId)
    -- if upload is disabled, unset the usage profile id

When the daily usage ping switch is toggled:

  • ON: generate and set the usage profile id & store in preference
  • OFF: unset the usage profile id

NB unsetting the usage profile id is achieved by setting the UUID to a canary value: Dau.id.set('beefbeef-beef-beef-beef-beeefbeefbee')

link to new ui designs for settings page now signed off by legal! :tada:
NB the ui designs don't show the "Automatically submit crash reports" switch, which was added recently, but it is intended to be on the screen above the "Studies" link.

Blocks: 1928975
Assignee: nobody → zmckenney
Attachment #9437966 - Attachment description: WIP: Bug 1921220 - add glean usage profile id. → Bug 1921220 - add glean usage profile id.
Attachment #9437966 - Attachment description: Bug 1921220 - add glean usage profile id. → Bug 1921220: add glean usage profile id.
See Also: → 1923902
Group: mozilla-employee-confidential
Pushed by pmceldowney@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c268ce25bdd1 add glean usage profile id. r=android-reviewers,data-stewards,TravisLong,tthibaud
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

reopening because the ping is in but the switch part still needs doing

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

NB the daily usage ping switch and "learn more" link should follow the style of the existing settings on the page. We are adding content, not changing any existing settings styles (some early designs show these somewhat differently to the current ones).
Please see attached mock up.

Attachment #9443460 - Attachment description: WIP: Bug 1921220: add switch for glean daily usage ping → Bug 1921220: add switch for glean daily usage ping
Attachment #9443460 - Attachment description: Bug 1921220: add switch for glean daily usage ping → WIP: Bug 1921220: add switch for glean daily usage ping
Attachment #9443460 - Attachment description: WIP: Bug 1921220: add switch for glean daily usage ping → Bug 1921220: add switch for glean daily usage ping
Attachment #9459660 - Attachment description: WIP: Bug 1921220: ui tests for glean daily usage ping switch → Bug 1921220: add more ui & jvm tests for glean daily usage ping switch
Pushed by pmceldowney@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c5eeacc3778 add switch for glean daily usage ping r=android-reviewers,tthibaud
Pushed by pmceldowney@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f363ed147d13 add more ui & jvm tests for glean daily usage ping switch r=android-reviewers,tthibaud,sfamisa
Pushed by pmceldowney@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c6a0b0495b40 move usage profile id into new separate usage reporting service r=android-reviewers,boek
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: 135 Branch → 136 Branch

Do we need this on Beta? Please nominate if so.

Flags: needinfo?(zmckenney)

no, i don't think this should go to beta - it's going through QA rn and i think the plan is for a bunch of related stuff to land in 136.
thanks for checking though :)

Flags: needinfo?(zmckenney)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: