Closed Bug 1799726 Opened 2 years ago Closed 2 years ago

[Thunderbird Telemetry] Add Probe to count number of oAuth accounts in profile

Categories

(Thunderbird :: Account Manager, task)

Tracking

(thunderbird_esr102+ fixed)

RESOLVED FIXED
108 Branch
Tracking Status
thunderbird_esr102 + fixed

People

(Reporter: sancus, Assigned: leftmostcat)

Details

Attachments

(3 files, 1 obsolete file)

We should add a probe to count the number of oAuth accounts along with the provider, out of the major providers that we support. This will help us determine impact and how much support is necessary in case of oAuth issues with a particular provider, which happen on a regular basis.

Assignee: nobody → leftmostcat
Status: NEW → ASSIGNED
Attached file data collection review
Attachment #9302731 - Flags: data-review?(sancus)

I wonder if we shouldn't just generalize the scope on this one a bit. It would be useful to know the distribution of authMethod in general. Also for SMTP which isn't currently accounted for in the patch.

A probe for auth method doesn't sound unreasonable, but that sounds like a separate probe/body of work. I think we definitely don't want to try to gather any details on mail servers for non-OAuth2 accounts, for one thing.

Lets file a more general auth method probe as a follow up bug, I would like to get this in as quickly as possible so we can measure the uptake on the migration in Bug 1798875.

And I agree, we definitely will not be collecting data on mail server domains, absolutely not. That would have actual PII in it.

Target Milestone: --- → 108 Branch

Comment on attachment 9302731 [details]
data collection review

Good to go.

Data Review Form:

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?

Yes, in the comm-central Scalars.yaml file.

  1. Is there a control mechanism that allows the user to turn the data collection on and off?

Yes, using standard Telemetry opt-out.

  1. If the request is for permanent data collection, is there someone who will monitor the data over time?

Yes, Andrei Hajdukewycz (:sancus) will.

  1. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2.

  1. Is the data collection request for default-on or default-off?

Default on for all channels, countries, and locales.

  1. Does the instrumentation include the addition of any new identifiers?

No.

  1. Is the data collection covered by the existing Thunderbird privacy notice?

Yes.

  1. Does the data collection use a third-party collection tool? If yes, escalate to legal.

No.

Attachment #9302731 - Flags: data-review?(sancus) → data-review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/a912be95f46a
add probe to count oauth2 accounts by provider. r=freaktechnik,mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Comment on attachment 9302730 [details]
Bug 1799726 - add probe to count oauth2 accounts by provider. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): N/A
User impact if declined: N/A

Testing completed (on c-c, etc.): c-c

Risk to taking this patch (and alternatives if risky):
It's very unlikely this probe would cause any issue except itself not working.

Attachment #9302730 - Flags: approval-comm-esr102?

Comment on attachment 9302730 [details]
Bug 1799726 - add probe to count oauth2 accounts by provider. r=#thunderbird-reviewers

[Triage Comment]
Approved for 102.5.0 per wsmwk via Matrix

Attachment #9302730 - Flags: approval-comm-esr102? → approval-comm-esr102+
Attached patch 1799726_esr102.patch (obsolete) — Splinter Review

Rebased to comm-esr102. Ran ESLint and browser_accountTelemetry.js tests locally w/o issues.

Attachment #9303482 - Flags: review?(martin)
Attachment #9303482 - Flags: review?(leftmostcat)
Comment on attachment 9303482 [details] [diff] [review]
1799726_esr102.patch

Review of attachment 9303482 [details] [diff] [review]:
-----------------------------------------------------------------

Looks fine to me, I assume there were conflicts while rebasing that had to be resolved?

::: mail/components/telemetry/Scalars.yaml
@@ +176,5 @@
>        - "telemetry-client-dev@thunderbird.net"
>      record_in_processes:
>        - 'main'
>  
> +

Extra new line
Attachment #9303482 - Flags: review?(martin)

(In reply to Martin Giger [:freaktechnik] from comment #11)

Looks fine to me, I assume there were conflicts while rebasing that had to
be resolved?

The account telemetry is now in MailGlue.jsm rather than nsMsg3PaneWindow.js. Once I figured that out, the rest was dealing with lazy import differences and such.

Removed extra line from Scalars.yaml.

Attachment #9303482 - Attachment is obsolete: true
Attachment #9303482 - Flags: review?(leftmostcat)

Comment on attachment 9303492 [details] [diff] [review]
1799726_esr102_v2.patch

[Triage Comment]
ESR102 version of same patch previously approved by wsmwk.

Attachment #9303492 - Flags: approval-comm-esr102+
Attachment #9302730 - Flags: approval-comm-esr102+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: