{"action":"created","comment":{"url":"https://api.github.com/repos/queue-hero/queue-hero/pulls/comments/41891870","id":41891870,"diff_hunk":"@@ -14,11 +18,46 @@\n \r\n     ajaxFactory.getVenuesAtHeroLocation(lat, long)\r\n       //will be executed if status code is 200-299\r\n-      .then(function successCallback(response) {\r\n+      .then(function(response) {\r\n         vm.locations = response.data;\r\n-        console.log(vm.locations);\r\n+        taskCache = vm.locations.slice();\r\n         populatePins();\r\n-    });\r\n+      }).then(function() {\r\n+        getAllRequests(vm.locations);\r\n+        requestCounts = $interval(getRequestCounts, 1000, 0, false);\r\n+      });\r\n+\r\n+\r\n+    function getAllRequests(locations) {\r\n+      locations.forEach(function(location) {\r\n+        ajaxFactory.getOpenRequests(location.yelpId)\r\n+          .then(function(response) {\r\n+            vm.orders[location.yelpId] = response.data;\r\n+\r\n+          }, function(response) {\r\n+            console.log(response.status);\r\n+          });\r\n+      });\r\n+\r\n+    }\r\n+\r\n+    var getRequestCounts = function(){\r\n+      var yelpIds = [];\r\n+      for(var i = 0; i < vm.locations.length; i++){\r","path":"client/src/components/hero_location/heroLocationCtrl.js","position":48,"original_position":48,"commit_id":"222536aed12296f4f42c75c101837e4673aca769","original_commit_id":"222536aed12296f4f42c75c101837e4673aca769","user":{"login":"tatsumitagawa","id":10057207,"avatar_url":"https://avatars.githubusercontent.com/u/10057207?v=3","gravatar_id":"","url":"https://api.github.com/users/tatsumitagawa","html_url":"https://github.com/tatsumitagawa","followers_url":"https://api.github.com/users/tatsumitagawa/followers","following_url":"https://api.github.com/users/tatsumitagawa/following{/other_user}","gists_url":"https://api.github.com/users/tatsumitagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/tatsumitagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatsumitagawa/subscriptions","organizations_url":"https://api.github.com/users/tatsumitagawa/orgs","repos_url":"https://api.github.com/users/tatsumitagawa/repos","events_url":"https://api.github.com/users/tatsumitagawa/events{/privacy}","received_events_url":"https://api.github.com/users/tatsumitagawa/received_events","type":"User","site_admin":false},"body":"missing space after `for` and conditional","created_at":"2015-10-13T16:41:42Z","updated_at":"2015-10-13T16:41:42Z","html_url":"https://github.com/queue-hero/queue-hero/pull/116#discussion_r41891870","pull_request_url":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/queue-hero/queue-hero/pulls/comments/41891870"},"html":{"href":"https://github.com/queue-hero/queue-hero/pull/116#discussion_r41891870"},"pull_request":{"href":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116","id":47488184,"html_url":"https://github.com/queue-hero/queue-hero/pull/116","diff_url":"https://github.com/queue-hero/queue-hero/pull/116.diff","patch_url":"https://github.com/queue-hero/queue-hero/pull/116.patch","issue_url":"https://api.github.com/repos/queue-hero/queue-hero/issues/116","number":116,"state":"open","locked":false,"title":"style(requesterCtrl): fix style to conform with guide","user":{"login":"darrinmn9","id":10646951,"avatar_url":"https://avatars.githubusercontent.com/u/10646951?v=3","gravatar_id":"","url":"https://api.github.com/users/darrinmn9","html_url":"https://github.com/darrinmn9","followers_url":"https://api.github.com/users/darrinmn9/followers","following_url":"https://api.github.com/users/darrinmn9/following{/other_user}","gists_url":"https://api.github.com/users/darrinmn9/gists{/gist_id}","starred_url":"https://api.github.com/users/darrinmn9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrinmn9/subscriptions","organizations_url":"https://api.github.com/users/darrinmn9/orgs","repos_url":"https://api.github.com/users/darrinmn9/repos","events_url":"https://api.github.com/users/darrinmn9/events{/privacy}","received_events_url":"https://api.github.com/users/darrinmn9/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-13T03:42:19Z","updated_at":"2015-10-13T16:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b12ca030916dc6b61b0134997c142b842ecf0cdb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116/commits","review_comments_url":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116/comments","review_comment_url":"https://api.github.com/repos/queue-hero/queue-hero/pulls/comments{/number}","comments_url":"https://api.github.com/repos/queue-hero/queue-hero/issues/116/comments","statuses_url":"https://api.github.com/repos/queue-hero/queue-hero/statuses/222536aed12296f4f42c75c101837e4673aca769","head":{"label":"darrinmn9:requesterDash","ref":"requesterDash","sha":"222536aed12296f4f42c75c101837e4673aca769","user":{"login":"darrinmn9","id":10646951,"avatar_url":"https://avatars.githubusercontent.com/u/10646951?v=3","gravatar_id":"","url":"https://api.github.com/users/darrinmn9","html_url":"https://github.com/darrinmn9","followers_url":"https://api.github.com/users/darrinmn9/followers","following_url":"https://api.github.com/users/darrinmn9/following{/other_user}","gists_url":"https://api.github.com/users/darrinmn9/gists{/gist_id}","starred_url":"https://api.github.com/users/darrinmn9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrinmn9/subscriptions","organizations_url":"https://api.github.com/users/darrinmn9/orgs","repos_url":"https://api.github.com/users/darrinmn9/repos","events_url":"https://api.github.com/users/darrinmn9/events{/privacy}","received_events_url":"https://api.github.com/users/darrinmn9/received_events","type":"User","site_admin":false},"repo":{"id":43170219,"name":"queue-hero","full_name":"darrinmn9/queue-hero","owner":{"login":"darrinmn9","id":10646951,"avatar_url":"https://avatars.githubusercontent.com/u/10646951?v=3","gravatar_id":"","url":"https://api.github.com/users/darrinmn9","html_url":"https://github.com/darrinmn9","followers_url":"https://api.github.com/users/darrinmn9/followers","following_url":"https://api.github.com/users/darrinmn9/following{/other_user}","gists_url":"https://api.github.com/users/darrinmn9/gists{/gist_id}","starred_url":"https://api.github.com/users/darrinmn9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrinmn9/subscriptions","organizations_url":"https://api.github.com/users/darrinmn9/orgs","repos_url":"https://api.github.com/users/darrinmn9/repos","events_url":"https://api.github.com/users/darrinmn9/events{/privacy}","received_events_url":"https://api.github.com/users/darrinmn9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/darrinmn9/queue-hero","description":"Find your hero","fork":true,"url":"https://api.github.com/repos/darrinmn9/queue-hero","forks_url":"https://api.github.com/repos/darrinmn9/queue-hero/forks","keys_url":"https://api.github.com/repos/darrinmn9/queue-hero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/darrinmn9/queue-hero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/darrinmn9/queue-hero/teams","hooks_url":"https://api.github.com/repos/darrinmn9/queue-hero/hooks","issue_events_url":"https://api.github.com/repos/darrinmn9/queue-hero/issues/events{/number}","events_url":"https://api.github.com/repos/darrinmn9/queue-hero/events","assignees_url":"https://api.github.com/repos/darrinmn9/queue-hero/assignees{/user}","branches_url":"https://api.github.com/repos/darrinmn9/queue-hero/branches{/branch}","tags_url":"https://api.github.com/repos/darrinmn9/queue-hero/tags","blobs_url":"https://api.github.com/repos/darrinmn9/queue-hero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/darrinmn9/queue-hero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/darrinmn9/queue-hero/git/refs{/sha}","trees_url":"https://api.github.com/repos/darrinmn9/queue-hero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/darrinmn9/queue-hero/statuses/{sha}","languages_url":"https://api.github.com/repos/darrinmn9/queue-hero/languages","stargazers_url":"https://api.github.com/repos/darrinmn9/queue-hero/stargazers","contributors_url":"https://api.github.com/repos/darrinmn9/queue-hero/contributors","subscribers_url":"https://api.github.com/repos/darrinmn9/queue-hero/subscribers","subscription_url":"https://api.github.com/repos/darrinmn9/queue-hero/subscription","commits_url":"https://api.github.com/repos/darrinmn9/queue-hero/commits{/sha}","git_commits_url":"https://api.github.com/repos/darrinmn9/queue-hero/git/commits{/sha}","comments_url":"https://api.github.com/repos/darrinmn9/queue-hero/comments{/number}","issue_comment_url":"https://api.github.com/repos/darrinmn9/queue-hero/issues/comments{/number}","contents_url":"https://api.github.com/repos/darrinmn9/queue-hero/contents/{+path}","compare_url":"https://api.github.com/repos/darrinmn9/queue-hero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/darrinmn9/queue-hero/merges","archive_url":"https://api.github.com/repos/darrinmn9/queue-hero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/darrinmn9/queue-hero/downloads","issues_url":"https://api.github.com/repos/darrinmn9/queue-hero/issues{/number}","pulls_url":"https://api.github.com/repos/darrinmn9/queue-hero/pulls{/number}","milestones_url":"https://api.github.com/repos/darrinmn9/queue-hero/milestones{/number}","notifications_url":"https://api.github.com/repos/darrinmn9/queue-hero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/darrinmn9/queue-hero/labels{/name}","releases_url":"https://api.github.com/repos/darrinmn9/queue-hero/releases{/id}","created_at":"2015-09-25T19:05:44Z","updated_at":"2015-09-25T22:35:27Z","pushed_at":"2015-10-13T09:00:31Z","git_url":"git://github.com/darrinmn9/queue-hero.git","ssh_url":"git@github.com:darrinmn9/queue-hero.git","clone_url":"https://github.com/darrinmn9/queue-hero.git","svn_url":"https://github.com/darrinmn9/queue-hero","homepage":null,"size":2571,"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":"dev"}},"base":{"label":"queue-hero:dev","ref":"dev","sha":"380a16898d87d15abeccede90efd6288af6db4ae","user":{"login":"queue-hero","id":14841463,"avatar_url":"https://avatars.githubusercontent.com/u/14841463?v=3","gravatar_id":"","url":"https://api.github.com/users/queue-hero","html_url":"https://github.com/queue-hero","followers_url":"https://api.github.com/users/queue-hero/followers","following_url":"https://api.github.com/users/queue-hero/following{/other_user}","gists_url":"https://api.github.com/users/queue-hero/gists{/gist_id}","starred_url":"https://api.github.com/users/queue-hero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/queue-hero/subscriptions","organizations_url":"https://api.github.com/users/queue-hero/orgs","repos_url":"https://api.github.com/users/queue-hero/repos","events_url":"https://api.github.com/users/queue-hero/events{/privacy}","received_events_url":"https://api.github.com/users/queue-hero/received_events","type":"Organization","site_admin":false},"repo":{"id":43168757,"name":"queue-hero","full_name":"queue-hero/queue-hero","owner":{"login":"queue-hero","id":14841463,"avatar_url":"https://avatars.githubusercontent.com/u/14841463?v=3","gravatar_id":"","url":"https://api.github.com/users/queue-hero","html_url":"https://github.com/queue-hero","followers_url":"https://api.github.com/users/queue-hero/followers","following_url":"https://api.github.com/users/queue-hero/following{/other_user}","gists_url":"https://api.github.com/users/queue-hero/gists{/gist_id}","starred_url":"https://api.github.com/users/queue-hero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/queue-hero/subscriptions","organizations_url":"https://api.github.com/users/queue-hero/orgs","repos_url":"https://api.github.com/users/queue-hero/repos","events_url":"https://api.github.com/users/queue-hero/events{/privacy}","received_events_url":"https://api.github.com/users/queue-hero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/queue-hero/queue-hero","description":"Find your hero","fork":false,"url":"https://api.github.com/repos/queue-hero/queue-hero","forks_url":"https://api.github.com/repos/queue-hero/queue-hero/forks","keys_url":"https://api.github.com/repos/queue-hero/queue-hero/keys{/key_id}","collaborators_url":"https://api.github.com/repos/queue-hero/queue-hero/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/queue-hero/queue-hero/teams","hooks_url":"https://api.github.com/repos/queue-hero/queue-hero/hooks","issue_events_url":"https://api.github.com/repos/queue-hero/queue-hero/issues/events{/number}","events_url":"https://api.github.com/repos/queue-hero/queue-hero/events","assignees_url":"https://api.github.com/repos/queue-hero/queue-hero/assignees{/user}","branches_url":"https://api.github.com/repos/queue-hero/queue-hero/branches{/branch}","tags_url":"https://api.github.com/repos/queue-hero/queue-hero/tags","blobs_url":"https://api.github.com/repos/queue-hero/queue-hero/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/queue-hero/queue-hero/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/queue-hero/queue-hero/git/refs{/sha}","trees_url":"https://api.github.com/repos/queue-hero/queue-hero/git/trees{/sha}","statuses_url":"https://api.github.com/repos/queue-hero/queue-hero/statuses/{sha}","languages_url":"https://api.github.com/repos/queue-hero/queue-hero/languages","stargazers_url":"https://api.github.com/repos/queue-hero/queue-hero/stargazers","contributors_url":"https://api.github.com/repos/queue-hero/queue-hero/contributors","subscribers_url":"https://api.github.com/repos/queue-hero/queue-hero/subscribers","subscription_url":"https://api.github.com/repos/queue-hero/queue-hero/subscription","commits_url":"https://api.github.com/repos/queue-hero/queue-hero/commits{/sha}","git_commits_url":"https://api.github.com/repos/queue-hero/queue-hero/git/commits{/sha}","comments_url":"https://api.github.com/repos/queue-hero/queue-hero/comments{/number}","issue_comment_url":"https://api.github.com/repos/queue-hero/queue-hero/issues/comments{/number}","contents_url":"https://api.github.com/repos/queue-hero/queue-hero/contents/{+path}","compare_url":"https://api.github.com/repos/queue-hero/queue-hero/compare/{base}...{head}","merges_url":"https://api.github.com/repos/queue-hero/queue-hero/merges","archive_url":"https://api.github.com/repos/queue-hero/queue-hero/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/queue-hero/queue-hero/downloads","issues_url":"https://api.github.com/repos/queue-hero/queue-hero/issues{/number}","pulls_url":"https://api.github.com/repos/queue-hero/queue-hero/pulls{/number}","milestones_url":"https://api.github.com/repos/queue-hero/queue-hero/milestones{/number}","notifications_url":"https://api.github.com/repos/queue-hero/queue-hero/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/queue-hero/queue-hero/labels{/name}","releases_url":"https://api.github.com/repos/queue-hero/queue-hero/releases{/id}","created_at":"2015-09-25T18:38:19Z","updated_at":"2015-10-01T19:24:13Z","pushed_at":"2015-10-13T09:00:56Z","git_url":"git://github.com/queue-hero/queue-hero.git","ssh_url":"git@github.com:queue-hero/queue-hero.git","clone_url":"https://github.com/queue-hero/queue-hero.git","svn_url":"https://github.com/queue-hero/queue-hero","homepage":null,"size":3326,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116"},"html":{"href":"https://github.com/queue-hero/queue-hero/pull/116"},"issue":{"href":"https://api.github.com/repos/queue-hero/queue-hero/issues/116"},"comments":{"href":"https://api.github.com/repos/queue-hero/queue-hero/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/queue-hero/queue-hero/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/queue-hero/queue-hero/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/queue-hero/queue-hero/statuses/222536aed12296f4f42c75c101837e4673aca769"}}}}