fix #272: add event telemetry for incompat addons

This commit is contained in:
groovecoder 2017-02-27 15:37:04 -06:00
parent ad3c227150
commit 4db04e1df5
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: ### A Redshift schema for the payload:
```lua ```lua

View file

@ -500,7 +500,13 @@ const ContainerService = {
return new Promise(resolve => { return new Promise(resolve => {
AddonManager.getAddonsByIDs(INCOMPATIBLE_ADDON_IDS, (addons) => { AddonManager.getAddonsByIDs(INCOMPATIBLE_ADDON_IDS, (addons) => {
addons = addons.filter((a) => a && a.isActive); 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);
}); });
}); });
}, },