Merge pull request #278 from mozilla/record-incompat-addons-event-272

fix #272: add event telemetry for incompat addons
This commit is contained in:
Jared Hirsch 2017-02-27 14:00:28 -08:00 committed by GitHub
commit 5d3913ed3f
2 changed files with 16 additions and 1 deletions

View file

@ -169,6 +169,15 @@ of a `testpilottest` telemetry ping for each scenario.
}
```
* When a user encounters the disabled "move" feature because of incompatible add-ons
```js
{
"uuid": <uuid>,
"event": "incompatible-addons-detected"
}
```
### A Redshift schema for the payload:
```lua

View file

@ -505,7 +505,13 @@ const ContainerService = {
return new Promise(resolve => {
AddonManager.getAddonsByIDs(INCOMPATIBLE_ADDON_IDS, (addons) => {
addons = addons.filter((a) => a && a.isActive);
resolve(addons.length !== 0);
const incompatibleAddons = addons.length !== 0;
if (incompatibleAddons) {
this.sendTelemetryPayload({
"event": "incompatible-addons-detected"
});
}
resolve(incompatibleAddons);
});
});
},