Commit c106d892 authored by ValentinTimisica's avatar ValentinTimisica Committed by Jeff Boek
Browse files

For #7751: Remove 'SearchWithCustomEngine' telemetry event

parent 3a129291
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -1684,17 +1684,6 @@ user_specified_search_engines:
    notification_emails:
      - fenix-core@mozilla.com
    expires: "2020-03-01"
  search_with_custom_engine:
    type: event
    description: >
      A user performed a search with a custom search engine
    bugs:
      - https://github.com/mozilla-mobile/fenix/issues/5586
    data_reviews:
      - https://github.com/mozilla-mobile/fenix/pull/6918
    notification_emails:
      - fenix-core@mozilla.com
    expires: "2020-03-01"

search_suggestions:
  enable_in_private:
+0 −3
Original line number Diff line number Diff line
@@ -459,9 +459,6 @@ private val Event.wrapper: EventWrapper<*>?
        is Event.CustomEngineDeleted -> EventWrapper<NoExtraKeys>(
            { UserSpecifiedSearchEngines.customEngineDeleted.record(it) }
        )
        is Event.SearchWithCustomEngine -> EventWrapper<NoExtraKeys>(
            { UserSpecifiedSearchEngines.searchWithCustomEngine.record(it) }
        )
        // Don't record other events in Glean:
        is Event.AddBookmark -> null
        is Event.OpenedBookmark -> null
+0 −1
Original line number Diff line number Diff line
@@ -139,7 +139,6 @@ sealed class Event {
    object ViewLoginPassword : Event()
    object CustomEngineAdded : Event()
    object CustomEngineDeleted : Event()
    object SearchWithCustomEngine : Event()
    object PrivateBrowsingShowSearchSuggestions : Event()

    // Interaction events with extras
+0 −23
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ import org.mozilla.fenix.components.metrics.Event.PerformedSearch.SearchAccessPo
import org.mozilla.fenix.components.metrics.Event.PerformedSearch.SearchAccessPoint.NONE
import org.mozilla.fenix.components.metrics.Event.PerformedSearch.SearchAccessPoint.SUGGESTION
import org.mozilla.fenix.components.metrics.MetricsUtils
import org.mozilla.fenix.components.searchengine.CustomSearchEngineStore
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.metrics
import org.mozilla.fenix.ext.nav
@@ -72,13 +71,6 @@ class DefaultSearchController(
            }

            event?.let { context.metrics.track(it) }
            if (CustomSearchEngineStore.isCustomSearchEngine(
                    context,
                    store.state.searchEngineSource.searchEngine.identifier
                )
            ) {
                context.components.analytics.metrics.track(Event.SearchWithCustomEngine)
            }
        }
    }

@@ -107,13 +99,6 @@ class DefaultSearchController(
        )

        context.metrics.track(Event.EnteredUrl(false))
        if (CustomSearchEngineStore.isCustomSearchEngine(
                context,
                store.state.searchEngineSource.searchEngine.identifier
            )
        ) {
            context.components.analytics.metrics.track(Event.SearchWithCustomEngine)
        }
    }

    override fun handleSearchTermsTapped(searchTerms: String) {
@@ -138,14 +123,6 @@ class DefaultSearchController(
            )
        }
        event?.let { context.metrics.track(it) }

        if (CustomSearchEngineStore.isCustomSearchEngine(
                context,
                store.state.searchEngineSource.searchEngine.identifier
            )
        ) {
            context.components.analytics.metrics.track(Event.SearchWithCustomEngine)
        }
    }

    override fun handleSearchShortcutEngineSelected(searchEngine: SearchEngine) {
+0 −1
Original line number Diff line number Diff line
@@ -158,7 +158,6 @@ The following metrics are added to the ping:
| tracking_protection.panel_settings |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user opened tracking protection settings from the panel.  |[1](https://github.com/mozilla-mobile/fenix/pull/5414#issuecomment-532847188)||2020-03-01 |
| user_specified_search_engines.custom_engine_added |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user added a new custom search engine  |[1](https://github.com/mozilla-mobile/fenix/pull/6918)||2020-03-01 |
| user_specified_search_engines.custom_engine_deleted |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user deleted a custom search engine  |[1](https://github.com/mozilla-mobile/fenix/pull/6918)||2020-03-01 |
| user_specified_search_engines.search_with_custom_engine |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A user performed a search with a custom search engine  |[1](https://github.com/mozilla-mobile/fenix/pull/6918)||2020-03-01 |

## metrics
This is a built-in ping that is assembled out of the box by the Glean SDK.