Closed Bug 1622864 Opened 5 years ago Closed 5 years ago

In searchengine-devtools, always show a telemetry id, not 'undefined'

Categories

(Firefox :: Search, task, P2)

task
Points:
3

Tracking

()

RESOLVED FIXED
Firefox 76
Iteration:
76.2 - Mar 23 - Apr 5
Tracking Status
firefox76 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The current 'undefined' value for a telemetry ID is where a search engine does not explicitly have a telemetry ID defined.

However, in such cases we fall back to the short name, which is the first part of the WebExtension ID.

We should list that in the table to make it explicit and clear what the telemetry ID will be reported as.

Iteration: --- → 76.2 - Mar 23 - Apr 5

makeEngineFromConfig currently initialises SearchEngine with the full name which is then sanitized, only for it to be overriden when calling _initFromMetadata. Being able to pass shortName directly, makes it clearer as to what is happening.

By being explicit about if we're passing shortName or the display name, we can avoid the awkward sanitizeName option.

Also updating the schema to provide validation of the WebExtension Id so that we have the format we expect there (which shortName is based on).

Bumping to a 3, as I'm including work that I could have split to an extra bug, but seemed to make sense to include here as I spent time working out what was going on in order to do the searchengine-devtools patch.

@Dale: https://github.com/mozilla/searchengine-devtools/pull/4 is the PR to do the telemetryId improvement.

Points: 2 → 3
Flags: needinfo?(dharvey)
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/692660018507 Avoid sanitizing a name for app-provided engines, and clarify the WebExtension id in the search engine schema. r=daleharvey
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76

Should have left this open whilst we land the github part.

Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---

and reviewed

Flags: needinfo?(dharvey)

Thank you

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: