restore study.name payload property
This commit is contained in:
Родитель
d8ab1bcc30
Коммит
bdd0996401
|
@ -32,6 +32,7 @@ portion of a `shield-study` telemetry ping for each scenario.
|
|||
|
||||
```js
|
||||
{
|
||||
"study": "@shield-study-privacy",
|
||||
"branch": "thirdPartyCookiesOnlyFromVisited",
|
||||
"event": "page-works",
|
||||
"originDomain": "www.redditmedia.com",
|
||||
|
@ -44,6 +45,7 @@ portion of a `shield-study` telemetry ping for each scenario.
|
|||
|
||||
```js
|
||||
{
|
||||
"study": "@shield-study-privacy",
|
||||
"branch": "thirdPartyCookiesOnlyFromVisited",
|
||||
"event": "page-problem",
|
||||
"originDomain": "www.redditmedia.com",
|
||||
|
@ -56,6 +58,7 @@ portion of a `shield-study` telemetry ping for each scenario.
|
|||
|
||||
```js
|
||||
{
|
||||
"study": "@shield-study-privacy",
|
||||
"branch": "thirdPartyCookiesOnlyFromVisited",
|
||||
"event": "breakage",
|
||||
"originDomain": "redditmedia.com",
|
||||
|
@ -68,6 +71,7 @@ portion of a `shield-study` telemetry ping for each scenario.
|
|||
|
||||
```js
|
||||
{
|
||||
"study": "@shield-study-privacy",
|
||||
"branch": "thirdPartyCookiesOnlyFromVisited",
|
||||
"event": "notes",
|
||||
"originDomain": "redditmedia.com",
|
||||
|
@ -80,6 +84,7 @@ portion of a `shield-study` telemetry ping for each scenario.
|
|||
|
||||
```
|
||||
{
|
||||
"study": "@shield-study-privacy",
|
||||
"branch": "thirdPartyCookiesOnlyFromVisited",
|
||||
"originDomain": "redditmedia.com",
|
||||
"event": "disable",
|
||||
|
@ -93,6 +98,7 @@ portion of a `shield-study` telemetry ping for each scenario.
|
|||
```lua
|
||||
local schema = {
|
||||
-- column name field type length attributes field name
|
||||
{"study", "VARCHAR", 255, nil, "Fields[payload.study]"},
|
||||
{"branch", "VARCHAR", 255, nil, "Fields[payload.branch]"},
|
||||
{"event", "VARCHAR", 255, nil, "Fields[payload.event]"},
|
||||
{"originDomain", "VARCHAR", 255, nil, "Fields[payload.originDomain]"},
|
||||
|
|
|
@ -87,6 +87,7 @@ let panel = Panel({
|
|||
|
||||
panel.port.on('hostReport', function (message) {
|
||||
let telemetryPingMessage = {
|
||||
study: study.config.name,
|
||||
branch: study.variation,
|
||||
originDomain: getDomainFromActiveTabUrl(),
|
||||
event: message.feedback,
|
||||
|
@ -103,6 +104,7 @@ function getDomainFromActiveTabUrl () {
|
|||
function reportBreakageOrNotes (message) {
|
||||
let notesSubmission = message.hasOwnProperty('notes');
|
||||
let telemetryPingMessage = {
|
||||
study: study.config.name,
|
||||
branch: study.variation,
|
||||
originDomain: getDomainFromActiveTabUrl(),
|
||||
event: 'breakage',
|
||||
|
@ -130,6 +132,7 @@ function handleHide () {
|
|||
async function disableAddon () {
|
||||
const addon = await AddonManager.getAddonByID(self.id)
|
||||
let telemetryPingMessage = {
|
||||
study: study.config.name,
|
||||
branch: study.variation,
|
||||
originDomain: getDomainFromActiveTabUrl(),
|
||||
event: 'disable',
|
||||
|
|
|
@ -9,7 +9,7 @@ const feature = require('./feature');
|
|||
const surveyUrl = 'https://qsurvey.mozilla.com/s3/shield-privset-1';
|
||||
|
||||
const studyConfig = {
|
||||
name: self.addonId,
|
||||
name: self.id,
|
||||
days: 28,
|
||||
surveyUrls: {
|
||||
'end-of-study': surveyUrl,
|
||||
|
|
Загрузка…
Ссылка в новой задаче