Closed Bug 706797 Opened 13 years ago Closed 13 years ago

Make AddonRepository.getAddonsByIDs() not send performance data

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 11.0

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #682356 +++

Currently, the AddonRepository APIs for searching (specifically getAddonsByIDs()) automatically send performance metrics to the server.

Per discussion in bug 534956 (implementing add-on sync), having Sync query these APIs will have the undesired effect of skewing the metrics data.

AddonRepository.getAddonsByIDs() should be modified so that it optionally doesn't send performance data as part of the request and Sync can call it without skewing metrics data.

The attached patch adds an argument to getAddonsByIDs() to control sending of performance data. Patch notes:

* I purposefully made the API backwards compatible. Typically callbacks are passed last. I didn't want to go down the refactor hole.
* Note that the lack of an argument defaults to a true value.
* Is the '=== undefined' a suitable replacement for checking the length of the arguments pseudo-array?
* I still need to write the additional tests.
No longer blocks: 534956
Attached patch The fixSplinter Review
Ports the change from bug 682356
Attachment #578266 - Flags: review?(mconley)
Comment on attachment 578266 [details] [diff] [review]
The fix

Looks good to me - thanks,

-Mike
Attachment #578266 - Flags: review?(mconley) → review+
Checked in: http://hg.mozilla.org/comm-central/rev/2ffa45bc67d2
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 11.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: