mozilla / self-repair-server

This project is now EOL, replaced by Normandy Recipe Server.
6 stars 11 forks source link

Tour has more personinfo target. Use them. #203

Closed gregglind closed 9 years ago

gregglind commented 9 years ago

per: https://bugzilla.mozilla.org/show_bug.cgi?id=1190910

gregglind commented 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
  }
}
gregglind commented 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
  }
}
gregglind commented 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
  }
}
gregglind commented 9 years ago

Plan is for now to cram these new fields into 'extras'

gregglind commented 9 years ago
{
  "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
}
gregglind commented 9 years ago
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
gregglind commented 9 years ago

Some data notes:

  1. all plugin appearing are 'active', or 'ask to activate'. Inactive addons won't appear (in navigator.plugins)
  2. flashVersion is undefined if no flash (and does /flash/i.test() on the list of plugin names. Could be noisy).
gregglind commented 9 years ago

(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.)

gregglind commented 9 years ago
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");