For #20513: Use UrlMetricType for search engine submission url.

upstream-sync
mcarare 2 years ago committed by mergify[bot]
parent d0f08b83d4
commit 00280d3b65

@ -1834,11 +1834,11 @@ search.default_engine:
- android-probes@mozilla.com
- erichards@mozilla.com
expires: never
submission_url:
type: string
search_url:
type: url
lifetime: application
description: |
If the search engine is pre-loaded with Fenix this value will be he base
If the search engine is pre-loaded with Fenix this value will be the base
URL we use to build the search query for the search engine. For example:
https://mysearchengine.com/?query=%s. If it's a custom search engine
(defined: https://github.com/mozilla-mobile/fenix/issues/1607) the value
@ -1847,6 +1847,7 @@ search.default_engine:
- metrics
bugs:
- https://github.com/mozilla-mobile/fenix/issues/800
- https://github.com/mozilla-mobile/fenix/issues/20513
data_reviews:
- https://github.com/mozilla-mobile/fenix/pull/1606
- https://github.com/mozilla-mobile/fenix/pull/5216

@ -647,7 +647,7 @@ open class FenixApplication : LocaleAwareApplication(), Provider {
SearchDefaultEngine.apply {
code.set(searchEngine.id)
name.set(searchEngine.name)
submissionUrl.set(searchEngine.buildSearchUrl(""))
searchUrl.set(searchEngine.buildSearchUrl(""))
}
}
}

@ -185,6 +185,6 @@ class FenixApplicationTest {
// not mock most of the objects telemetry is collected from.
assertFalse(SearchDefaultEngine.code.testHasValue())
assertFalse(SearchDefaultEngine.name.testHasValue())
assertFalse(SearchDefaultEngine.submissionUrl.testHasValue())
assertFalse(SearchDefaultEngine.searchUrl.testHasValue())
}
}

Loading…
Cancel
Save