For #24467 - Enable Contile setting telemetry

upstream-sync
Noah Bond 2 years ago committed by mergify[bot]
parent df702a2694
commit ccd8084dd4

@ -1551,6 +1551,21 @@ customize_home:
notification_emails:
- android-probes@mozilla.com
expires: 105
contile:
type: boolean
description: |
An indication of whether Contile is enabled to be displayed
send_in_pings:
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/24467
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/24468
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: 112
preference_toggled:
type: event
description: |
@ -1562,7 +1577,7 @@ customize_home:
toggled.
We currently track: most_visited_sites, jump_back_in,
recently_visited, recently_saved, and pocket.
recently_visited, recently_saved, pocket, and contile.
enabled:
description: "Whether or not the preference is *now* enabled"
bugs:

@ -761,6 +761,7 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
CustomizeHome.mostVisitedSites.set(settings.showTopSitesFeature)
CustomizeHome.recentlyVisited.set(settings.historyMetadataUIFeature)
CustomizeHome.pocket.set(settings.showPocketRecommendationsFeature)
CustomizeHome.contile.set(settings.showContileFeature)
}
})
}

@ -334,6 +334,7 @@ sealed class Event {
context.getString(R.string.pref_key_recent_bookmarks) to "recently_saved",
context.getString(R.string.pref_key_history_metadata_feature) to "recently_visited",
context.getString(R.string.pref_key_pocket_homescreen_recommendations) to "pocket",
context.getString(R.string.pref_key_enable_contile) to "contile",
)
override val extras: Map<Events.preferenceToggledKeys, String>

@ -140,7 +140,7 @@ class FenixApplicationTest {
every { settings.showTopSitesFeature } returns true
every { settings.historyMetadataUIFeature } returns true
every { settings.showPocketRecommendationsFeature } returns true
every { settings.showPocketRecommendationsFeature } returns true
every { settings.showContileFeature } returns true
every { settings.searchTermTabGroupsAreEnabled } returns true
every { application.reportHomeScreenMetrics(settings) } just Runs
every { settings.inactiveTabsAreEnabled } returns true

Loading…
Cancel
Save