-
Notifications
You must be signed in to change notification settings - Fork 1.3k
For #2706: Refactor Glean to reduce errors #4753
Conversation
cb85860
to
0a4e30a
Compare
This comment has been minimized.
This comment has been minimized.
app/src/main/java/org/mozilla/fenix/components/metrics/Metrics.kt
Outdated
Show resolved
Hide resolved
get() = null | ||
} | ||
|
||
// TODO: Can we get rid of string mapping here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for string mapping here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pattern matching the Fact
which is from A-C converting it to an Event. So no need to change anything here. Tests wouldn't hurt though :D
app/src/main/java/org/mozilla/fenix/onboarding/FenixOnboarding.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/mozilla/fenix/components/metrics/LeanplumMetricsService.kt
Outdated
Show resolved
Hide resolved
// Don't track other events with Glean | ||
else -> null | ||
// Don't record other events in Glean: | ||
is Event.AddBookmark -> { null } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I don't think we need brackets around null here
app/src/main/java/org/mozilla/fenix/components/metrics/LeanplumMetricsService.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/mozilla/fenix/components/metrics/Metrics.kt
Outdated
Show resolved
Hide resolved
get() = null | ||
} | ||
|
||
// TODO: Can we get rid of string mapping here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pattern matching the Fact
which is from A-C converting it to an Event. So no need to change anything here. Tests wouldn't hurt though :D
app/src/main/java/org/mozilla/fenix/onboarding/FenixOnboarding.kt
Outdated
Show resolved
Hide resolved
Can we get a data review for the new metrics (if there wasn't one already?) :) |
Only new event we're adding is Request for data collection review formAll questions are mandatory. You must receive review from a data steward peer on your responses to these questions before shipping new data collection.
Until 03/01/2020
|
@@ -23,7 +22,9 @@ class FenixOnboarding(context: Context) { | |||
|
|||
fun finish() { | |||
onboardingPrefs.onboardedVersion = CURRENT_ONBOARDING_VERSION | |||
metrics.track(Event.DismissedOnboarding) | |||
|
|||
// To be fixed in #4824 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentionally leaving this here. Hoping I can pull this in this sprint.
There was a problem hiding this 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)
Instructions: Data Stewards will review a request for data collection and endorse responses to each question.
-
Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?
Yes, with metrics.yaml and metrics.md -
Is there a control mechanism that allows the user to turn the data collection on and off?
Yes, in the Fenix settings -
If the request is for permanent data collection, is there someone who will monitor the data over time?
Has expiry, Fenix team will monitor -
Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?
All data is category 2. -
Is the data collection request for default-on or default-off?
Default on -
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 -
Is the data collection covered by the existing Firefox privacy notice?
yes -
Does there need to be a check-in in the future to determine whether to renew the data?
Has expiry. Fenix team will monitor -
Does the data collection use a third-party collection tool?
No
Pull Request checklist