Closed gregglind closed 9 years ago
Working code:
let out = {}; ["appinfo",/* "availableTargets",*/ "loop","selectedSearchEngine","sync"].map( (k) => heartbeat.UITour.getConfiguration(k,(data)=>out[k]=data))
{
"appinfo": {
"defaultUpdateChannel": "aurora",
"version": "42.0a2",
"defaultBrowser": true
},
"loop": {
"gettingStartedSeen": false
},
"selectedSearchEngine": {
"searchEngineIdentifier": "yahoo"
},
"sync": {
"setup": true
}
}
Working code:
let out = {}; ["appinfo",/* "availableTargets",*/ "loop","selectedSearchEngine","sync"].map( (k) => heartbeat.UITour.getConfiguration(k,(data)=>out[k]=data))
{
"appinfo": {
"defaultUpdateChannel": "aurora",
"version": "42.0a2",
"defaultBrowser": true
},
"loop": {
"gettingStartedSeen": false
},
"selectedSearchEngine": {
"searchEngineIdentifier": "yahoo"
},
"sync": {
"setup": true
}
}
Working code:
let out = {}; ["appinfo",/* "availableTargets",*/ "loop","selectedSearchEngine","sync"].map( (k) => heartbeat.UITour.getConfiguration(k,(data)=>out[k]=data))
{
"appinfo": {
"defaultUpdateChannel": "aurora",
"version": "42.0a2",
"defaultBrowser": true
},
"loop": {
"gettingStartedSeen": false
},
"selectedSearchEngine": {
"searchEngineIdentifier": "yahoo"
},
"sync": {
"setup": true
}
}
Plan is for now to cram these new fields into 'extras'
{
"doNotTrack": "1",
"plugins": {
"Default Browser Helper": "600",
"Google Talk Plugin": "5.41.0.0",
"Google Talk Plugin Video Renderer": "5.41.0.0",
"Java Applet Plug-in": "15.0.0",
"Shockwave Flash": "19.0.0.245",
"Silverlight Plug-In": "5.1.20513.0"
},
"flashVersion": "19.0.0.245",
"updateChannel": "aurora",
"fxVersion": "42.0a2",
"locale": "en-US",
"country": "unknown",
"flags": {
"overrides": {
"locale": "en-US"
}
},
"defaultBrowser": true,
"searchEngine": "yahoo",
"syncSetup": true
}
10:57:08.849 heartbeat.phonehome.annotate().then((d) =>console.log.bind(console)(JSON.stringify(d,null,2)))
10:57:08.872 {
"person_id": "NA",
"response_version": 1,
"updated_ts": 1448729828858,
"platform": "UNK",
"channel": "aurora",
"version": "42.0a2",
"locale": "UNK",
"build_id": "-",
"partner_id": "-",
"profile_age": 0,
"profile_usage": {},
"addons": {
"addons": []
},
"extra": {
"crashes": {},
"numflows": 0,
"searchEngine": "yahoo",
"syncSetup": true,
"defaultBrowser": true,
"plugins": {
"Default Browser Helper": "600",
"Google Talk Plugin": "5.41.0.0",
"Google Talk Plugin Video Renderer": "5.41.0.0",
"Java Applet Plug-in": "15.0.0",
"Shockwave Flash": "19.0.0.245",
"Silverlight Plug-In": "5.1.20513.0"
},
"flashVersion": "19.0.0.245",
"doNotTrack": true
},
"experiment_version": "-",
"country": "unknown"
}1
Some data notes:
navigator.plugins
)/flash/i.test()
on the list of plugin names. Could be noisy).(Aggravation: to do the analysis, have to pull records from MySql, the do some transforms (python with unicode-csv probably), then pull it into R or such. A lot of grossness.)
select score,extra FROM heartbeat_answer WHERE variation_id=27 and is_test=0 AND survey_id = "heartbeat-by-user-first-impression" AND received_ts > timestamp("2015-11-28");
per: https://bugzilla.mozilla.org/show_bug.cgi?id=1190910