Closed Bug 1619656 Opened 4 years ago Closed 4 years ago

Consider not setting the shortName of an engine to the telemetry ID

Categories

(Firefox :: Search, task, P3)

task
Points:
3

Tracking

()

RESOLVED FIXED
82 Branch
Iteration:
82.2 - Sep 7 - Sep 20
Tracking Status
firefox82 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In bug 1605164, I am adding a new field on nsISearchEngine for the telemetry ID of an engine.

Currently when we're loading engines, if the configuration has a telemetry ID specified, then we override the short name with that telemetry ID.

We should no longer need to do this, but we should also investigate it to be sure. We may be able to look towards removing short name altogether. Some things to consider:

  • Is anything still relying on short name (also via identifier) to be reported to telemetry?
  • Does short name affect anything that is cached?
  • Do we still need to use short name for various things, e.g. opensearch engines?

As part of the post-modern work, we should consider this and decide if it is something we want to do or not.

Severity: normal → N/A
Points: --- → 3

Having reviewed our existing code, I think we can remove the short name - it isn't actually used, except to generate the load path for the engine. Both the load path generation function call points have the details locally, so we don't need to store the short name for those.

I'd still like to remove Search Service's reliance on the full name at some stage, but I think that the short name is unlikely to be the best way to do that.

Assignee: nobody → standard8
Status: NEW → ASSIGNED
Iteration: --- → 82.1 - Aug 24 - Sep 6

The _shortName variable is basically redundant, and we can transfer the remaining 'identifier' handling across to the telemetry Id as they were virtually the same.

Depends on D88622

Iteration: 82.1 - Aug 24 - Sep 6 → 82.2 - Sep 7 - Sep 20
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bb3eb0d759b6
Drop the separate recording of _shortName in the search service, use the telemetry Id instead. r=daleharvey
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: