In searchengine-devtools, always show a telemetry id, not 'undefined'
Categories
(Firefox :: Search, task, P2)
Tracking
()
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.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
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).
Assignee | ||
Comment 2•5 years ago
|
||
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.
Comment 4•5 years ago
|
||
bugherder |
Assignee | ||
Comment 5•5 years ago
|
||
Should have left this open whilst we land the github part.
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Thank you
Updated•5 years ago
|
Updated•5 years ago
|
Description
•