Closed Bug 1658274 Opened 4 years ago Closed 4 years ago

Only send `install_stats` event when the add-on is installed (for the first time)

Categories

(Toolkit :: Add-ons Manager, defect)

defect

Tracking

()

VERIFIED FIXED
81 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox79 --- unaffected
firefox80 --- verified
firefox81 --- verified

People

(Reporter: willdurand, Assigned: rpl)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

We introduced a new install_stats event in Bug 1653020. This event should only be sent when an add-on is installed but the very first telemetry data shows that we're also sending it on add-on updates. We should not send this event in such a case.

We should check the install.existingAddon prop in AddonManager.recordInstallStatsEvent().

STR:

  1. install an add-on from AMO, ideally not the latest version. There should be an install_stats event in about:telemetry
  2. "Force update" this add-on, there should be no new install_stats event
Assignee: nobody → lgreco
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1653020

Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/2d30adfe2f27
Do not record install_stats telemetry event on installs related to addon updates. r=mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Comment on attachment 9169137 [details]
Bug 1658274 - Do not record install_stats telemetry event on installs related to addon updates. r?mixedpuppy!

Beta/Release Uplift Approval Request

  • User impact if declined: Without this patch, we wouldn't be able to collect the right add-on installation statistics for AMO. The change in Bug 1653020 was recording the install_stats also for addon updates, but it was meant to only be recorded for new installations.

Bug 1653020 has been uplifted to 80 Beta, and so we would like to uplift this follow up fix to avoid to collect the install_stats on addon updates from Firefox 80.

  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: The fix is covered by an automated test, but given that we do already have a quite short STR in comment 0 to verify this, it would be good to also QE verify it.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The fix is quite small (just avoids to record the event when the addon install object is related to an addon update) and it is covered by some new assertion added to the test case that covers this event.
  • String changes made/needed:
Attachment #9169137 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]
Flags: in-testsuite+

Comment on attachment 9169137 [details]
Bug 1658274 - Do not record install_stats telemetry event on installs related to addon updates. r?mixedpuppy!

approved for 80.0b7

Attachment #9169137 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Reproduced the initial issue using an old Nightly 81.0a1 (build id: 20200806215439) using Windows 10. After add-on update there are 2 install_stats method events in about:telemetry.
Verified - Fixed in latest Nightly 81.0a1 (build id: 20200810213634). There is just the initial install_stats event in about:telemetry after updating the add-on.

Verified - Fixed in latest Beta 80.0b7 (build id: 20200811133449). There is just the initial install_stats event in about:telemetry after updating the add-on.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: