{"action":"created","comment":{"url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/comments/66725642","id":66725642,"diff_hunk":"@@ -0,0 +1,34 @@\n+app.factory('UsersFactory', function ($http) {\n+  return {\n+    getUsers: function () {\n+      return $http.get('/api/v1/users')\n+      .then(function (res) {\n+        return res.data;\n+      });\n+    },\n+\n+    fetchUser: function(id){\n+      return $http.get('/api/v1/users/' + id)\n+      .then(function(user){\n+        return user.data;\n+      })\n+    },\n+\n+    createOrUpdateUser: function (user) {\n+      if(user.id) {\n+        return $http.get('api/v1/users/' + user.id)","path":"browser/js/common/factories/UsersFactory.js","position":19,"original_position":19,"commit_id":"6dd5d654755070664c0e2a3585ad734c4c2ba8a3","original_commit_id":"6dd5d654755070664c0e2a3585ad734c4c2ba8a3","user":{"login":"jonperrelle","id":15789641,"avatar_url":"https://avatars.githubusercontent.com/u/15789641?v=3","gravatar_id":"","url":"https://api.github.com/users/jonperrelle","html_url":"https://github.com/jonperrelle","followers_url":"https://api.github.com/users/jonperrelle/followers","following_url":"https://api.github.com/users/jonperrelle/following{/other_user}","gists_url":"https://api.github.com/users/jonperrelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonperrelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonperrelle/subscriptions","organizations_url":"https://api.github.com/users/jonperrelle/orgs","repos_url":"https://api.github.com/users/jonperrelle/repos","events_url":"https://api.github.com/users/jonperrelle/events{/privacy}","received_events_url":"https://api.github.com/users/jonperrelle/received_events","type":"User","site_admin":false},"body":"same as above.  Is the get request necessary?","created_at":"2016-06-12T19:05:46Z","updated_at":"2016-06-12T19:05:46Z","html_url":"https://github.com/thejohnbackes/scorestore/pull/96#discussion_r66725642","pull_request_url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/comments/66725642"},"html":{"href":"https://github.com/thejohnbackes/scorestore/pull/96#discussion_r66725642"},"pull_request":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96","id":73475794,"html_url":"https://github.com/thejohnbackes/scorestore/pull/96","diff_url":"https://github.com/thejohnbackes/scorestore/pull/96.diff","patch_url":"https://github.com/thejohnbackes/scorestore/pull/96.patch","issue_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues/96","number":96,"state":"open","locked":false,"title":"Admin dashboard","user":{"login":"geoffbass","id":7143173,"avatar_url":"https://avatars.githubusercontent.com/u/7143173?v=3","gravatar_id":"","url":"https://api.github.com/users/geoffbass","html_url":"https://github.com/geoffbass","followers_url":"https://api.github.com/users/geoffbass/followers","following_url":"https://api.github.com/users/geoffbass/following{/other_user}","gists_url":"https://api.github.com/users/geoffbass/gists{/gist_id}","starred_url":"https://api.github.com/users/geoffbass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geoffbass/subscriptions","organizations_url":"https://api.github.com/users/geoffbass/orgs","repos_url":"https://api.github.com/users/geoffbass/repos","events_url":"https://api.github.com/users/geoffbass/events{/privacy}","received_events_url":"https://api.github.com/users/geoffbass/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-11T19:07:49Z","updated_at":"2016-06-12T19:05:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62c344339e82667c92f111091db54f47e8583fbe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96/commits","review_comments_url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96/comments","review_comment_url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues/96/comments","statuses_url":"https://api.github.com/repos/thejohnbackes/scorestore/statuses/6dd5d654755070664c0e2a3585ad734c4c2ba8a3","head":{"label":"thejohnbackes:admin_dashboard","ref":"admin_dashboard","sha":"6dd5d654755070664c0e2a3585ad734c4c2ba8a3","user":{"login":"thejohnbackes","id":13596692,"avatar_url":"https://avatars.githubusercontent.com/u/13596692?v=3","gravatar_id":"","url":"https://api.github.com/users/thejohnbackes","html_url":"https://github.com/thejohnbackes","followers_url":"https://api.github.com/users/thejohnbackes/followers","following_url":"https://api.github.com/users/thejohnbackes/following{/other_user}","gists_url":"https://api.github.com/users/thejohnbackes/gists{/gist_id}","starred_url":"https://api.github.com/users/thejohnbackes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejohnbackes/subscriptions","organizations_url":"https://api.github.com/users/thejohnbackes/orgs","repos_url":"https://api.github.com/users/thejohnbackes/repos","events_url":"https://api.github.com/users/thejohnbackes/events{/privacy}","received_events_url":"https://api.github.com/users/thejohnbackes/received_events","type":"User","site_admin":false},"repo":{"id":60540535,"name":"scorestore","full_name":"thejohnbackes/scorestore","owner":{"login":"thejohnbackes","id":13596692,"avatar_url":"https://avatars.githubusercontent.com/u/13596692?v=3","gravatar_id":"","url":"https://api.github.com/users/thejohnbackes","html_url":"https://github.com/thejohnbackes","followers_url":"https://api.github.com/users/thejohnbackes/followers","following_url":"https://api.github.com/users/thejohnbackes/following{/other_user}","gists_url":"https://api.github.com/users/thejohnbackes/gists{/gist_id}","starred_url":"https://api.github.com/users/thejohnbackes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejohnbackes/subscriptions","organizations_url":"https://api.github.com/users/thejohnbackes/orgs","repos_url":"https://api.github.com/users/thejohnbackes/repos","events_url":"https://api.github.com/users/thejohnbackes/events{/privacy}","received_events_url":"https://api.github.com/users/thejohnbackes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thejohnbackes/scorestore","description":"","fork":false,"url":"https://api.github.com/repos/thejohnbackes/scorestore","forks_url":"https://api.github.com/repos/thejohnbackes/scorestore/forks","keys_url":"https://api.github.com/repos/thejohnbackes/scorestore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thejohnbackes/scorestore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thejohnbackes/scorestore/teams","hooks_url":"https://api.github.com/repos/thejohnbackes/scorestore/hooks","issue_events_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues/events{/number}","events_url":"https://api.github.com/repos/thejohnbackes/scorestore/events","assignees_url":"https://api.github.com/repos/thejohnbackes/scorestore/assignees{/user}","branches_url":"https://api.github.com/repos/thejohnbackes/scorestore/branches{/branch}","tags_url":"https://api.github.com/repos/thejohnbackes/scorestore/tags","blobs_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/refs{/sha}","trees_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thejohnbackes/scorestore/statuses/{sha}","languages_url":"https://api.github.com/repos/thejohnbackes/scorestore/languages","stargazers_url":"https://api.github.com/repos/thejohnbackes/scorestore/stargazers","contributors_url":"https://api.github.com/repos/thejohnbackes/scorestore/contributors","subscribers_url":"https://api.github.com/repos/thejohnbackes/scorestore/subscribers","subscription_url":"https://api.github.com/repos/thejohnbackes/scorestore/subscription","commits_url":"https://api.github.com/repos/thejohnbackes/scorestore/commits{/sha}","git_commits_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/commits{/sha}","comments_url":"https://api.github.com/repos/thejohnbackes/scorestore/comments{/number}","issue_comment_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues/comments{/number}","contents_url":"https://api.github.com/repos/thejohnbackes/scorestore/contents/{+path}","compare_url":"https://api.github.com/repos/thejohnbackes/scorestore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thejohnbackes/scorestore/merges","archive_url":"https://api.github.com/repos/thejohnbackes/scorestore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thejohnbackes/scorestore/downloads","issues_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues{/number}","pulls_url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls{/number}","milestones_url":"https://api.github.com/repos/thejohnbackes/scorestore/milestones{/number}","notifications_url":"https://api.github.com/repos/thejohnbackes/scorestore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thejohnbackes/scorestore/labels{/name}","releases_url":"https://api.github.com/repos/thejohnbackes/scorestore/releases{/id}","deployments_url":"https://api.github.com/repos/thejohnbackes/scorestore/deployments","created_at":"2016-06-06T15:48:31Z","updated_at":"2016-06-07T17:17:47Z","pushed_at":"2016-06-11T23:11:20Z","git_url":"git://github.com/thejohnbackes/scorestore.git","ssh_url":"git@github.com:thejohnbackes/scorestore.git","clone_url":"https://github.com/thejohnbackes/scorestore.git","svn_url":"https://github.com/thejohnbackes/scorestore","homepage":null,"size":35437,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":52,"forks":1,"open_issues":52,"watchers":1,"default_branch":"master"}},"base":{"label":"thejohnbackes:master","ref":"master","sha":"9db7a1b995e0d175daec3c403980a7ed57e9a58f","user":{"login":"thejohnbackes","id":13596692,"avatar_url":"https://avatars.githubusercontent.com/u/13596692?v=3","gravatar_id":"","url":"https://api.github.com/users/thejohnbackes","html_url":"https://github.com/thejohnbackes","followers_url":"https://api.github.com/users/thejohnbackes/followers","following_url":"https://api.github.com/users/thejohnbackes/following{/other_user}","gists_url":"https://api.github.com/users/thejohnbackes/gists{/gist_id}","starred_url":"https://api.github.com/users/thejohnbackes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejohnbackes/subscriptions","organizations_url":"https://api.github.com/users/thejohnbackes/orgs","repos_url":"https://api.github.com/users/thejohnbackes/repos","events_url":"https://api.github.com/users/thejohnbackes/events{/privacy}","received_events_url":"https://api.github.com/users/thejohnbackes/received_events","type":"User","site_admin":false},"repo":{"id":60540535,"name":"scorestore","full_name":"thejohnbackes/scorestore","owner":{"login":"thejohnbackes","id":13596692,"avatar_url":"https://avatars.githubusercontent.com/u/13596692?v=3","gravatar_id":"","url":"https://api.github.com/users/thejohnbackes","html_url":"https://github.com/thejohnbackes","followers_url":"https://api.github.com/users/thejohnbackes/followers","following_url":"https://api.github.com/users/thejohnbackes/following{/other_user}","gists_url":"https://api.github.com/users/thejohnbackes/gists{/gist_id}","starred_url":"https://api.github.com/users/thejohnbackes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejohnbackes/subscriptions","organizations_url":"https://api.github.com/users/thejohnbackes/orgs","repos_url":"https://api.github.com/users/thejohnbackes/repos","events_url":"https://api.github.com/users/thejohnbackes/events{/privacy}","received_events_url":"https://api.github.com/users/thejohnbackes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thejohnbackes/scorestore","description":"","fork":false,"url":"https://api.github.com/repos/thejohnbackes/scorestore","forks_url":"https://api.github.com/repos/thejohnbackes/scorestore/forks","keys_url":"https://api.github.com/repos/thejohnbackes/scorestore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thejohnbackes/scorestore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thejohnbackes/scorestore/teams","hooks_url":"https://api.github.com/repos/thejohnbackes/scorestore/hooks","issue_events_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues/events{/number}","events_url":"https://api.github.com/repos/thejohnbackes/scorestore/events","assignees_url":"https://api.github.com/repos/thejohnbackes/scorestore/assignees{/user}","branches_url":"https://api.github.com/repos/thejohnbackes/scorestore/branches{/branch}","tags_url":"https://api.github.com/repos/thejohnbackes/scorestore/tags","blobs_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/refs{/sha}","trees_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thejohnbackes/scorestore/statuses/{sha}","languages_url":"https://api.github.com/repos/thejohnbackes/scorestore/languages","stargazers_url":"https://api.github.com/repos/thejohnbackes/scorestore/stargazers","contributors_url":"https://api.github.com/repos/thejohnbackes/scorestore/contributors","subscribers_url":"https://api.github.com/repos/thejohnbackes/scorestore/subscribers","subscription_url":"https://api.github.com/repos/thejohnbackes/scorestore/subscription","commits_url":"https://api.github.com/repos/thejohnbackes/scorestore/commits{/sha}","git_commits_url":"https://api.github.com/repos/thejohnbackes/scorestore/git/commits{/sha}","comments_url":"https://api.github.com/repos/thejohnbackes/scorestore/comments{/number}","issue_comment_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues/comments{/number}","contents_url":"https://api.github.com/repos/thejohnbackes/scorestore/contents/{+path}","compare_url":"https://api.github.com/repos/thejohnbackes/scorestore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thejohnbackes/scorestore/merges","archive_url":"https://api.github.com/repos/thejohnbackes/scorestore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thejohnbackes/scorestore/downloads","issues_url":"https://api.github.com/repos/thejohnbackes/scorestore/issues{/number}","pulls_url":"https://api.github.com/repos/thejohnbackes/scorestore/pulls{/number}","milestones_url":"https://api.github.com/repos/thejohnbackes/scorestore/milestones{/number}","notifications_url":"https://api.github.com/repos/thejohnbackes/scorestore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thejohnbackes/scorestore/labels{/name}","releases_url":"https://api.github.com/repos/thejohnbackes/scorestore/releases{/id}","deployments_url":"https://api.github.com/repos/thejohnbackes/scorestore/deployments","created_at":"2016-06-06T15:48:31Z","updated_at":"2016-06-07T17:17:47Z","pushed_at":"2016-06-11T23:11:20Z","git_url":"git://github.com/thejohnbackes/scorestore.git","ssh_url":"git@github.com:thejohnbackes/scorestore.git","clone_url":"https://github.com/thejohnbackes/scorestore.git","svn_url":"https://github.com/thejohnbackes/scorestore","homepage":null,"size":35437,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":52,"forks":1,"open_issues":52,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96"},"html":{"href":"https://github.com/thejohnbackes/scorestore/pull/96"},"issue":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/issues/96"},"comments":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/thejohnbackes/scorestore/statuses/6dd5d654755070664c0e2a3585ad734c4c2ba8a3"}}}}
{"actor":{"display_login":"jonperrelle"}}