Add settings toggle for Focus DAU ping
Categories
(Focus :: General, enhancement, P1)
Tracking
(firefox135 wontfix, firefox136 fixed)
People
(Reporter: polly, Assigned: polly)
References
Details
Attachments
(9 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
|
Details | Review | |
|
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
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
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 part is not actionable as yet.
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
Usage.profileId.generateAndSet()and save the returned dau id string in a Preference - on subsequent launches of the app:
-- if upload is enabled, retrieve the DAU id value from the preference and callUsage.profileId.set(id)
-- if upload is disabled, unset the DAU id
When the DAU checkbox is toggled:
- ON: generate and set the dau id & store in preference
- OFF: unset the dau id
NB unsetting the dau id is achieved by setting the UUID to a canary value: Usage.profileId.set('beefbeef-beef-beef-beef-beeefbeefbee')
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Comment 4•1 year ago
|
||
Backed out for causing failures at GleanMetricsServiceTest.
Backout link: https://hg.mozilla.org/integration/autoland/rev/345b870dbfb00e3c6e34403781acfa33d009b585
Push where failures started: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&selectedTaskRun=BgPBBTFnTdaCiimAJczgVQ.0&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=439155a1048e432785f4ee77eb510e27591ab218
Failure log: https://treeherder.mozilla.org/logviewer?job_id=484238827&repo=autoland&lineNumber=6779
Comment 6•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 7•1 year ago
|
||
reopening because the ping is in but the switch part still needs doing
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 8•10 months ago
|
||
Updated•10 months ago
|
| Assignee | ||
Comment 9•10 months ago
|
||
Set values for duration, os, os version, app display version and app channel.
Also pulled out the glean specific calls behind an interface for easier unit testing of the lifecycle observer actions.
| Assignee | ||
Comment 10•10 months ago
|
||
This adds a new "daily usage ping" switch to the settings page and uses it to control whether or not the daily usage ping is sent. (Previously, the main telemetry switch was used.) The new switch's state defaults to the value of the main telemetry switch.
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
| Assignee | ||
Comment 11•10 months ago
|
||
This means the usage profile id will be set and unset when the usage reporting switch is toggled on and off.
Updated•10 months ago
|
| Assignee | ||
Comment 12•10 months ago
|
||
| Assignee | ||
Comment 13•10 months ago
|
||
This has now been replaced by the daily usage ping.
| Assignee | ||
Comment 14•10 months ago
|
||
We want to look at the daily usage ping switch and not the old telemetry switch or the studies
| Assignee | ||
Comment 15•10 months ago
|
||
Rename method, explain a bit more about the canary value in comments.
Comment 16•10 months ago
|
||
Comment 17•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/dca1626f36a0
https://hg.mozilla.org/mozilla-central/rev/4d2054fbaad3
https://hg.mozilla.org/mozilla-central/rev/4e3c8926f214
https://hg.mozilla.org/mozilla-central/rev/6f462603a57a
https://hg.mozilla.org/mozilla-central/rev/4678448e8be6
https://hg.mozilla.org/mozilla-central/rev/5621f33e354b
https://hg.mozilla.org/mozilla-central/rev/190dbb7e0dce
https://hg.mozilla.org/mozilla-central/rev/53a5a50b2962
Updated•10 months ago
|
Description
•