Closed Bug 2061724 Opened 3 months ago Closed 1 month ago

Enumerations in the search engine selector should handle backwards compatibility

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng][search-config-v3])

Attachments

(1 external file)

With v2 of the search configuration, if we add a new item to one of the enumerations below, and then send the configuration to older clients, the older clients will fail to parse the configuration because they do not have a value specified for the serde processor to use - we should be annotating their default values with #[serde(other)] (as well as #[default]).

Affected enumerations:

  • SearchApplicationName
  • SearchUpdateChannel
  • SearchDeviceType
  • SearchEngineClassification

We should add tests for each of the enumerations (including JSONEngineMethod) to ensure they can be supplied random values and default correctly.

Depends on: 2063260
Blocks: 2063279
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
QA Whiteboard: [search][qa-triage-done-c160/b159]
Blocks: 2070356
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: