Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Bug 1812188 - Renew/remove telemetry probes expiring in 112. #28709

Merged
merged 2 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 39 additions & 33 deletions app/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,12 @@ events:
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/19959#issuecomment-882539619
- https://github.com/mozilla-mobile/fenix/pull/24409
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410276888
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 113
expires: 118
save_to_pdf_tapped:
type: event
description: |
Expand Down Expand Up @@ -1022,24 +1023,6 @@ unified_search:
- Search
- Shortcuts


experiments_default_browser:
toolbar_menu_clicked:
type: event
description: |
Set default browser was clicked from toolbar menu
bugs:
- https://github.com/mozilla-mobile/fenix/issues/18851
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/18982#pullrequestreview-635098629
- https://github.com/mozilla-mobile/fenix/pull/19924#issuecomment-861423789
- https://github.com/mozilla-mobile/fenix/pull/21076#issuecomment-909237275
- https://github.com/mozilla-mobile/fenix/pull/23786#issuecomment-1042331298
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
toolbar_settings:
changed_position:
type: event
Expand Down Expand Up @@ -2044,12 +2027,14 @@ customize_home:
- https://github.com/mozilla-mobile/fenix/issues/24467
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/24468
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410642835
data_sensitivity:
- interaction
lifetime: application
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
preference_toggled:
type: event
description: |
Expand Down Expand Up @@ -3708,11 +3693,12 @@ history:
- https://github.com/mozilla-mobile/fenix/issues/23694
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23695
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410276888
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
expires: 118
search_result_tapped:
type: event
description: |
Expand All @@ -3721,11 +3707,12 @@ history:
- https://github.com/mozilla-mobile/fenix/issues/23694
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23695
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410276888
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
expires: 118

recently_closed_tabs:
opened:
Expand Down Expand Up @@ -5860,11 +5847,13 @@ top_sites:
- https://github.com/mozilla-mobile/fenix/issues/23893
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23945
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410663549
data_sensitivity:
- highly_sensitive
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- Shortcuts
Expand All @@ -5879,12 +5868,14 @@ top_sites:
- https://github.com/mozilla-mobile/fenix/issues/23893
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23945
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410663549
data_sensitivity:
- technical
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
unit: integer
metadata:
tags:
Expand All @@ -5900,12 +5891,14 @@ top_sites:
- https://github.com/mozilla-mobile/fenix/issues/23893
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23945
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410663549
data_sensitivity:
- technical
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- Shortcuts
Expand All @@ -5921,12 +5914,14 @@ top_sites:
- https://github.com/mozilla-mobile/fenix/issues/23893
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23945
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410663549
data_sensitivity:
- technical
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- Shortcuts
Expand All @@ -5948,11 +5943,13 @@ top_sites:
- https://github.com/mozilla-mobile/fenix/issues/23893
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23945
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410663549
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- Shortcuts
Expand All @@ -5974,11 +5971,13 @@ top_sites:
- https://github.com/mozilla-mobile/fenix/issues/23893
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/23945
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410663549
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- Shortcuts
Expand Down Expand Up @@ -7346,11 +7345,12 @@ progressive_web_app:
- https://github.com/mozilla-mobile/fenix/pull/19924#issuecomment-861423789
- https://github.com/mozilla-mobile/fenix/pull/21076#issuecomment-909237275
- https://github.com/mozilla-mobile/fenix/pull/23783#issuecomment-1041863879
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410276888
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
expires: 118
metadata:
tags:
- PWA
Expand All @@ -7366,11 +7366,12 @@ progressive_web_app:
- https://github.com/mozilla-mobile/fenix/pull/19924#issuecomment-861423789
- https://github.com/mozilla-mobile/fenix/pull/21076#issuecomment-909237275
- https://github.com/mozilla-mobile/fenix/pull/23783#issuecomment-1041863879
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410276888
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
expires: 118
metadata:
tags:
- PWA
Expand Down Expand Up @@ -7915,11 +7916,13 @@ home_menu:
- https://github.com/mozilla-mobile/fenix/pull/19924#issuecomment-861423789
- https://github.com/mozilla-mobile/fenix/pull/21076#issuecomment-909237275
- https://github.com/mozilla-mobile/fenix/pull/23786#issuecomment-1042331298
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410675626
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- Settings
Expand All @@ -7936,11 +7939,13 @@ home_screen:
- https://github.com/mozilla-mobile/fenix/pull/19924#issuecomment-861423789
- https://github.com/mozilla-mobile/fenix/pull/21076#issuecomment-909237275
- https://github.com/mozilla-mobile/fenix/pull/23786#issuecomment-1042331298
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410681521
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
- kbrosnan@mozilla.com
expires: never
metadata:
tags:
- HomeScreen
Expand Down Expand Up @@ -8201,11 +8206,12 @@ recent_searches:
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/22176#issuecomment-956421788
- https://github.com/mozilla-mobile/fenix/pull/23786#issuecomment-1042331298
- https://github.com/mozilla-mobile/fenix/pull/28709#issuecomment-1410276888
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
expires: 118

credit_cards:
saved:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import mozilla.components.service.glean.private.NoExtras
import mozilla.components.support.base.feature.ViewBoundFeatureWrapper
import org.mozilla.fenix.GleanMetrics.Collections
import org.mozilla.fenix.GleanMetrics.Events
import org.mozilla.fenix.GleanMetrics.ExperimentsDefaultBrowser
import org.mozilla.fenix.GleanMetrics.ReaderMode
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.NavGraphDirections
Expand Down Expand Up @@ -360,7 +359,6 @@ class DefaultBrowserToolbarMenuController(
)
}
is ToolbarMenu.Item.SetDefaultBrowser -> {
ExperimentsDefaultBrowser.toolbarMenuClicked.record(NoExtras())
activity.openSetDefaultBrowserOption()
}
is ToolbarMenu.Item.RemoveFromTopSites -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import org.junit.Test
import org.junit.runner.RunWith
import org.mozilla.fenix.GleanMetrics.Collections
import org.mozilla.fenix.GleanMetrics.Events
import org.mozilla.fenix.GleanMetrics.ExperimentsDefaultBrowser
import org.mozilla.fenix.GleanMetrics.ReaderMode
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.NavGraphDirections
Expand Down Expand Up @@ -804,25 +803,6 @@ class DefaultBrowserToolbarMenuControllerTest {
verify { navController.navigate(turnOnSyncDirections, null) }
}

@Test
fun `GIVEN the default browser experiment WHEN SetDefaultBrowser menu item is pressed THEN proper metrics are recorded`() = runTest {
val item = ToolbarMenu.Item.SetDefaultBrowser

val store: BrowserStore = mockk()

val controller = createController(
scope = this,
store = store,
bookmarkTapped = { _, _ -> },
)

assertNull(ExperimentsDefaultBrowser.toolbarMenuClicked.testGetValue())

controller.handleToolbarItemInteraction(item)

assertNotNull(ExperimentsDefaultBrowser.toolbarMenuClicked.testGetValue())
}

@Suppress("LongParameterList")
private fun createController(
scope: CoroutineScope,
Expand Down