Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

2493 reauth flow toolbar #2780

Merged

Conversation

severinrudie
Copy link
Contributor

Checklist

  • Confirm the acceptance criteria is fully satisfied in the issue(s) this PR will close
  • Add thorough tests or an explanation of why it does not
  • Add a CHANGELOG entry if applicable
  • Add QA labels on the associated issue (not this PR; qa-ready or qa-notneeded)

@severinrudie
Copy link
Contributor Author

severinrudie commented Sep 3, 2019

@liuche

Request for data collection review form

  1. What questions will you answer with this data?
  • How many users are in a “fax needs reauth” state at any given time?
  1. Why does Mozilla need to answer these questions? Are there benefits for users? Do we need this information to address product or business requirements?
  • To determine how many people remain in this state. In part, this will help answer how annoying it is to reauth on FFTV
  1. What alternative methods did you consider to answer these questions? Why were they not sufficient?
  • This is the only way to determine this information.
  1. Can current instrumentation answer these questions?
  • No telemetry currently exists to answer these questions.
  1. List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories on the Mozilla wiki.
Measurement Description Data Collection Category Tracking Bug #
Whenever a users FxA state changes, send whether or not they need to reauthenticate 2 Issue 2493
Reauthenticate button clicks 2 Issue 2493
  1. How long will this data be collected?
  1. What populations will you measure?
  • All users with telemetry enabled, on release channel.
  1. If this data collection is default on, what is the opt-out mechanism for users?
  • There is an option in settings to stop sending usage data.
  1. Please provide a general description of how you will analyze this data.
  • The data will be analyzed through Redash queries and dashboards.
  1. Where do you intend to share the results of your analysis?
  • On Redash and with mobile teams.

@severinrudie severinrudie requested review from mcomella and removed request for liuche September 3, 2019 21:13
@mcomella mcomella requested a review from liuche September 3, 2019 21:30
@mcomella
Copy link
Contributor

mcomella commented Sep 3, 2019

@liuche please data review #2780 (comment)

Copy link
Contributor

@mcomella mcomella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned that we have the potential to block the main thread: let's discuss.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@mcomella mcomella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm w/ nits.

app/src/main/java/org/mozilla/tv/firefox/fxa/FxaRepo.kt Outdated Show resolved Hide resolved
docs/telemetry.md Outdated Show resolved Hide resolved
app/src/main/java/org/mozilla/tv/firefox/fxa/FxaRepo.kt Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Sep 3, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@12ec1a0). Click here to learn what that means.
The diff coverage is 45%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2780   +/-   ##
=========================================
  Coverage          ?   52.71%           
  Complexity        ?      467           
=========================================
  Files             ?      117           
  Lines             ?     3428           
  Branches          ?      446           
=========================================
  Hits              ?     1807           
  Misses            ?     1473           
  Partials          ?      148
Impacted Files Coverage Δ Complexity Δ
...fox/navigationoverlay/NavigationOverlayFragment.kt 66.97% <0%> (ø) 27 <0> (?)
...ox/navigationoverlay/NavigationOverlayViewModel.kt 48.93% <0%> (ø) 8 <0> (?)
...rc/main/java/org/mozilla/tv/firefox/fxa/FxaRepo.kt 91.86% <100%> (ø) 6 <1> (?)
...zilla/tv/firefox/telemetry/TelemetryIntegration.kt 22.54% <75%> (ø) 15 <1> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12ec1a0...2e97cbb. Read the comment docs.

It was noticed that we had no good guarantee about when our settings ping would be sent (especially after we eventually migrate to Glean), meaning we could miss important information. For example, if sent on startup, 0% of users would be authenticated because the call would not yet be completed. Instead we chose to send all FxA state changes, but to narrow them down to 'Needs Reauth == true/false', to be as lean as possible.

We are also debouncing this ping, to cut down on redundant information. See FxaRepo#setupTelemetry for details
This had not yet been merged to master.
Copy link
Contributor

@liuche liuche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data Review Form (to be filled by Data Stewards)

  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 telemetry.md

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

Yes, FFTV data settings

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

@athomasmoz will monitor, and we will check in every 6mo

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

Type 2, Type 1: interaction with the Accounts button, as well as the account state

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

Default on

  1. Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?

No, click event and boolean of account state

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

Yes

  1. Does there need to be a check-in in the future to determine whether to renew the data? (Yes/No) (If yes, set a todo reminder or file a bug if appropriate)**

6mo

  1. Does the data collection use a third-party collection tool?

No

@@ -104,6 +106,8 @@ This value existed from v3.2+, but is intended for removal. For versions after v

(***)The tile_id is only collected for bundled tiles.

(****)This probe is sent any time the user's FxA sign in state changes (debounced to avoid sending redundant pings). `boolean` will be `true` if the user requires reauthentication, or `false` otherwise
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be more clear if we list what states could lead to false - though that could also change. Maybe explain it's FxA states, which include X, Y, Z?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh whoops, I merged before I noticed this. I'll open a small PR to make that change and tag you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #2795

@severinrudie severinrudie merged commit c3353d0 into mozilla-mobile:master Sep 4, 2019
@severinrudie severinrudie deleted the 2493-reauth-flow-toolbar branch September 4, 2019 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants