Closed
Bug 1930036
Opened 4 months ago
Closed 1 month ago
[Search Consolidation] Create a class to parse the results of SearchEngineSelector API
Categories
(Fenix :: Search, task)
Tracking
(firefox137 fixed)
RESOLVED
FIXED
137 Branch
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: skhan, Assigned: harrisono)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [fxdroid][group3][search-consolidation])
Attachments
(1 file)
Android needs to parse these results which come back from the SearchEngineSelector API as an object called RefinedSearchConfig
. These results contain the ordered list of search engines for the specific SearchUserEnvironment
that was sent to this API from consumer side.
Need to create this top level object .
pub struct RefinedSearchConfig {
pub engines: Vec<SearchEngineDefinition>,
pub app_default_engine_id: String,
pub app_default_private_engine_id: Option<String>,
}
and the associated classes namely SearchEngineDefinition
pub struct SearchEngineDefinition {
pub aliases: Vec<String>,
pub classification: SearchEngineClassification,
pub identifier: String,
pub name: String,
pub partner_code: Option<String>,
pub telemetry_suffix: Option<String>,
pub urls: SearchEngineUrls,
pub order_hint: Option<u8>,
}
and SearchEngineUrls
pub struct SearchEngineUrls {
pub search: SearchEngineUrl,
pub suggestions: Option<SearchEngineUrl>,
pub trending: Option<SearchEngineUrl>,
}
Updated•4 months ago
|
Assignee | ||
Updated•2 months ago
|
Assignee: nobody → hoglesby
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•2 months ago
|
||
Updated•1 month ago
|
Attachment #9460268 -
Attachment description: WIP: Bug 1930036 - Add parsed objects from `SearchEngineSelector` API to android-components → WIP: Bug 1930036 - Add data objects for SearchEngineSelector API
Updated•1 month ago
|
Attachment #9460268 -
Attachment description: WIP: Bug 1930036 - Add data objects for SearchEngineSelector API → Bug 1930036 - Add data objects for SearchEngineSelector API
Pushed by hoglesby@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2c6d9af001e
Add data objects for SearchEngineSelector API r=android-reviewers,skhan
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox137:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•