{"action":"created","comment":{"url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/comments/51023899","id":51023899,"diff_hunk":"@@ -0,0 +1,51 @@\n+WebIndexData = new Mongo.Collection('webindex_data');\n+\n+Settings = {\n+  downloadInterval: moment.duration({ minutes: 15 }).asMilliseconds(),\n+  feedUrl: 'http://thewebindex.org/wp-content/uploads/2012/05/Web_Index_JSON_data_20141.js',\n+  limit: 10,\n+  map: {\n+    width: 450,\n+    height: 270,\n+    scale: 110,\n+    squash: 0.90,\n+    bumpDown: 30,\n+    bumpLeft: 30\n+  }\n+};\n+\n+WebIndexWidget = function(doc) { Widget.call(this, doc); };\n+WebIndexWidget.prototype = Object.create(Widget.prototype);\n+WebIndexWidget.prototype.constructor = WebIndexWidget;\n+\n+WebIndex = {\n+  widget: {\n+    name: 'Web Index',\n+    description: 'Shows measures of the Web’s contribution to social, economic and political progress in countries across the world.',\n+    url: 'http://thewebindex.org/data/',\n+    dimensions: { width: 3, height: 2 },\n+    category: 'access',\n+    typeIcon: 'globe',\n+    constructor: WebIndexWidget\n+  },\n+  org: {\n+    name: 'World Wide Web Foundation',\n+    shortName: 'Web Index',\n+    url: 'http://thewebindex.org/'\n+  },\n+  metrics: [","path":"packages/webindex/webindex.js","position":36,"original_position":36,"commit_id":"c497c8e6eaf09dd30573f36976eeb86533b71ad6","original_commit_id":"c497c8e6eaf09dd30573f36976eeb86533b71ad6","user":{"login":"jdcc","id":735017,"avatar_url":"https://avatars.githubusercontent.com/u/735017?v=3","gravatar_id":"","url":"https://api.github.com/users/jdcc","html_url":"https://github.com/jdcc","followers_url":"https://api.github.com/users/jdcc/followers","following_url":"https://api.github.com/users/jdcc/following{/other_user}","gists_url":"https://api.github.com/users/jdcc/gists{/gist_id}","starred_url":"https://api.github.com/users/jdcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdcc/subscriptions","organizations_url":"https://api.github.com/users/jdcc/orgs","repos_url":"https://api.github.com/users/jdcc/repos","events_url":"https://api.github.com/users/jdcc/events{/privacy}","received_events_url":"https://api.github.com/users/jdcc/received_events","type":"User","site_admin":false},"body":"This is kind of a weird place for this. The WebIndex object is what the dashboard uses to add the widget to the registry, so the `widget` and `org` keys are special. This is also the only object exposed from the package to the outside app. Is there a reason the outside app would need access to this, or can it just go in the widget's own `Settings` object?","created_at":"2016-01-27T18:09:50Z","updated_at":"2016-01-27T18:09:50Z","html_url":"https://github.com/berkmancenter/internet_dashboard/pull/9#discussion_r51023899","pull_request_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/comments/51023899"},"html":{"href":"https://github.com/berkmancenter/internet_dashboard/pull/9#discussion_r51023899"},"pull_request":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9","id":56928868,"html_url":"https://github.com/berkmancenter/internet_dashboard/pull/9","diff_url":"https://github.com/berkmancenter/internet_dashboard/pull/9.diff","patch_url":"https://github.com/berkmancenter/internet_dashboard/pull/9.patch","issue_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues/9","number":9,"state":"closed","locked":false,"title":"Webindex","user":{"login":"brainheart","id":860442,"avatar_url":"https://avatars.githubusercontent.com/u/860442?v=3","gravatar_id":"","url":"https://api.github.com/users/brainheart","html_url":"https://github.com/brainheart","followers_url":"https://api.github.com/users/brainheart/followers","following_url":"https://api.github.com/users/brainheart/following{/other_user}","gists_url":"https://api.github.com/users/brainheart/gists{/gist_id}","starred_url":"https://api.github.com/users/brainheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainheart/subscriptions","organizations_url":"https://api.github.com/users/brainheart/orgs","repos_url":"https://api.github.com/users/brainheart/repos","events_url":"https://api.github.com/users/brainheart/events{/privacy}","received_events_url":"https://api.github.com/users/brainheart/received_events","type":"User","site_admin":false},"body":"Basic WebIndex chlorepleth map widget","created_at":"2016-01-22T19:14:23Z","updated_at":"2016-01-27T18:09:50Z","closed_at":"2016-01-22T22:07:51Z","merged_at":"2016-01-22T22:07:50Z","merge_commit_sha":"90bf6c7cceca519efd2c66a19456cb6c15bd0b1a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9/commits","review_comments_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9/comments","review_comment_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues/9/comments","statuses_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/statuses/c497c8e6eaf09dd30573f36976eeb86533b71ad6","head":{"label":"brainheart:webindex","ref":"webindex","sha":"c497c8e6eaf09dd30573f36976eeb86533b71ad6","user":{"login":"brainheart","id":860442,"avatar_url":"https://avatars.githubusercontent.com/u/860442?v=3","gravatar_id":"","url":"https://api.github.com/users/brainheart","html_url":"https://github.com/brainheart","followers_url":"https://api.github.com/users/brainheart/followers","following_url":"https://api.github.com/users/brainheart/following{/other_user}","gists_url":"https://api.github.com/users/brainheart/gists{/gist_id}","starred_url":"https://api.github.com/users/brainheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainheart/subscriptions","organizations_url":"https://api.github.com/users/brainheart/orgs","repos_url":"https://api.github.com/users/brainheart/repos","events_url":"https://api.github.com/users/brainheart/events{/privacy}","received_events_url":"https://api.github.com/users/brainheart/received_events","type":"User","site_admin":false},"repo":{"id":49742964,"name":"internet_dashboard","full_name":"brainheart/internet_dashboard","owner":{"login":"brainheart","id":860442,"avatar_url":"https://avatars.githubusercontent.com/u/860442?v=3","gravatar_id":"","url":"https://api.github.com/users/brainheart","html_url":"https://github.com/brainheart","followers_url":"https://api.github.com/users/brainheart/followers","following_url":"https://api.github.com/users/brainheart/following{/other_user}","gists_url":"https://api.github.com/users/brainheart/gists{/gist_id}","starred_url":"https://api.github.com/users/brainheart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainheart/subscriptions","organizations_url":"https://api.github.com/users/brainheart/orgs","repos_url":"https://api.github.com/users/brainheart/repos","events_url":"https://api.github.com/users/brainheart/events{/privacy}","received_events_url":"https://api.github.com/users/brainheart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brainheart/internet_dashboard","description":"A dashboard with various internet-y widgets","fork":true,"url":"https://api.github.com/repos/brainheart/internet_dashboard","forks_url":"https://api.github.com/repos/brainheart/internet_dashboard/forks","keys_url":"https://api.github.com/repos/brainheart/internet_dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brainheart/internet_dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brainheart/internet_dashboard/teams","hooks_url":"https://api.github.com/repos/brainheart/internet_dashboard/hooks","issue_events_url":"https://api.github.com/repos/brainheart/internet_dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/brainheart/internet_dashboard/events","assignees_url":"https://api.github.com/repos/brainheart/internet_dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/brainheart/internet_dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/brainheart/internet_dashboard/tags","blobs_url":"https://api.github.com/repos/brainheart/internet_dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brainheart/internet_dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brainheart/internet_dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/brainheart/internet_dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brainheart/internet_dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/brainheart/internet_dashboard/languages","stargazers_url":"https://api.github.com/repos/brainheart/internet_dashboard/stargazers","contributors_url":"https://api.github.com/repos/brainheart/internet_dashboard/contributors","subscribers_url":"https://api.github.com/repos/brainheart/internet_dashboard/subscribers","subscription_url":"https://api.github.com/repos/brainheart/internet_dashboard/subscription","commits_url":"https://api.github.com/repos/brainheart/internet_dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/brainheart/internet_dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/brainheart/internet_dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/brainheart/internet_dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/brainheart/internet_dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/brainheart/internet_dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brainheart/internet_dashboard/merges","archive_url":"https://api.github.com/repos/brainheart/internet_dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brainheart/internet_dashboard/downloads","issues_url":"https://api.github.com/repos/brainheart/internet_dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/brainheart/internet_dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/brainheart/internet_dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/brainheart/internet_dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brainheart/internet_dashboard/labels{/name}","releases_url":"https://api.github.com/repos/brainheart/internet_dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/brainheart/internet_dashboard/deployments","created_at":"2016-01-15T20:23:11Z","updated_at":"2016-01-15T20:23:12Z","pushed_at":"2016-01-22T15:23:29Z","git_url":"git://github.com/brainheart/internet_dashboard.git","ssh_url":"git@github.com:brainheart/internet_dashboard.git","clone_url":"https://github.com/brainheart/internet_dashboard.git","svn_url":"https://github.com/brainheart/internet_dashboard","homepage":null,"size":1944,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"berkmancenter:dev","ref":"dev","sha":"32331e3f475253ece7b8c8139874aa1b69a63818","user":{"login":"berkmancenter","id":131221,"avatar_url":"https://avatars.githubusercontent.com/u/131221?v=3","gravatar_id":"","url":"https://api.github.com/users/berkmancenter","html_url":"https://github.com/berkmancenter","followers_url":"https://api.github.com/users/berkmancenter/followers","following_url":"https://api.github.com/users/berkmancenter/following{/other_user}","gists_url":"https://api.github.com/users/berkmancenter/gists{/gist_id}","starred_url":"https://api.github.com/users/berkmancenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkmancenter/subscriptions","organizations_url":"https://api.github.com/users/berkmancenter/orgs","repos_url":"https://api.github.com/users/berkmancenter/repos","events_url":"https://api.github.com/users/berkmancenter/events{/privacy}","received_events_url":"https://api.github.com/users/berkmancenter/received_events","type":"Organization","site_admin":false},"repo":{"id":37269831,"name":"internet_dashboard","full_name":"berkmancenter/internet_dashboard","owner":{"login":"berkmancenter","id":131221,"avatar_url":"https://avatars.githubusercontent.com/u/131221?v=3","gravatar_id":"","url":"https://api.github.com/users/berkmancenter","html_url":"https://github.com/berkmancenter","followers_url":"https://api.github.com/users/berkmancenter/followers","following_url":"https://api.github.com/users/berkmancenter/following{/other_user}","gists_url":"https://api.github.com/users/berkmancenter/gists{/gist_id}","starred_url":"https://api.github.com/users/berkmancenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkmancenter/subscriptions","organizations_url":"https://api.github.com/users/berkmancenter/orgs","repos_url":"https://api.github.com/users/berkmancenter/repos","events_url":"https://api.github.com/users/berkmancenter/events{/privacy}","received_events_url":"https://api.github.com/users/berkmancenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/berkmancenter/internet_dashboard","description":"A dashboard with various internet-y widgets","fork":false,"url":"https://api.github.com/repos/berkmancenter/internet_dashboard","forks_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/forks","keys_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/teams","hooks_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/hooks","issue_events_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/events","assignees_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/tags","blobs_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/languages","stargazers_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/stargazers","contributors_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/contributors","subscribers_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/subscribers","subscription_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/subscription","commits_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/merges","archive_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/downloads","issues_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/labels{/name}","releases_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/berkmancenter/internet_dashboard/deployments","created_at":"2015-06-11T15:34:09Z","updated_at":"2015-09-20T09:06:14Z","pushed_at":"2016-01-27T17:21:55Z","git_url":"git://github.com/berkmancenter/internet_dashboard.git","ssh_url":"git@github.com:berkmancenter/internet_dashboard.git","clone_url":"https://github.com/berkmancenter/internet_dashboard.git","svn_url":"https://github.com/berkmancenter/internet_dashboard","homepage":null,"size":1951,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9"},"html":{"href":"https://github.com/berkmancenter/internet_dashboard/pull/9"},"issue":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues/9"},"comments":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/berkmancenter/internet_dashboard/statuses/c497c8e6eaf09dd30573f36976eeb86533b71ad6"}}}}