{"action":"created","comment":{"url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/comments/73767590","id":73767590,"diff_hunk":"@@ -3,9 +3,10 @@ class GroveMonitorPresenter\n   def initialize(grove)\n     @absent_students = grove.students.absent\n     @lost_students = grove.students.lost\n+\n     @locations = {}\n     grove.locations.each do |location|\n-      @locations[location.name] = grove.students.location(location.name) || []\n+      @locations[location.name] = grove.students.location(location.name).reject(&:nil?)\n     end\n   end\n end","path":"app/presenters/grove_monitor_presenter.rb","position":11,"original_position":11,"commit_id":"e0722a8ab8c4925e2dc2e0aff34262242fe79fa6","original_commit_id":"e0722a8ab8c4925e2dc2e0aff34262242fe79fa6","user":{"login":"erinnachen","id":12789537,"avatar_url":"https://avatars.githubusercontent.com/u/12789537?v=3","gravatar_id":"","url":"https://api.github.com/users/erinnachen","html_url":"https://github.com/erinnachen","followers_url":"https://api.github.com/users/erinnachen/followers","following_url":"https://api.github.com/users/erinnachen/following{/other_user}","gists_url":"https://api.github.com/users/erinnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/erinnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinnachen/subscriptions","organizations_url":"https://api.github.com/users/erinnachen/orgs","repos_url":"https://api.github.com/users/erinnachen/repos","events_url":"https://api.github.com/users/erinnachen/events{/privacy}","received_events_url":"https://api.github.com/users/erinnachen/received_events","type":"User","site_admin":false},"body":"We probably don't need this presenter anymore.","created_at":"2016-08-05T22:19:33Z","updated_at":"2016-08-05T22:19:33Z","html_url":"https://github.com/rootselementary/check_in_tool_rails/pull/29#discussion_r73767590","pull_request_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/comments/73767590"},"html":{"href":"https://github.com/rootselementary/check_in_tool_rails/pull/29#discussion_r73767590"},"pull_request":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29","id":79465988,"html_url":"https://github.com/rootselementary/check_in_tool_rails/pull/29","diff_url":"https://github.com/rootselementary/check_in_tool_rails/pull/29.diff","patch_url":"https://github.com/rootselementary/check_in_tool_rails/pull/29.patch","issue_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/29","number":29,"state":"open","locked":false,"title":"Mark students absent or present from Grove Monitor","user":{"login":"brianrip","id":11996534,"avatar_url":"https://avatars.githubusercontent.com/u/11996534?v=3","gravatar_id":"","url":"https://api.github.com/users/brianrip","html_url":"https://github.com/brianrip","followers_url":"https://api.github.com/users/brianrip/followers","following_url":"https://api.github.com/users/brianrip/following{/other_user}","gists_url":"https://api.github.com/users/brianrip/gists{/gist_id}","starred_url":"https://api.github.com/users/brianrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianrip/subscriptions","organizations_url":"https://api.github.com/users/brianrip/orgs","repos_url":"https://api.github.com/users/brianrip/repos","events_url":"https://api.github.com/users/brianrip/events{/privacy}","received_events_url":"https://api.github.com/users/brianrip/received_events","type":"User","site_admin":false},"body":"Functionality for a teach to manually mark a student as either absent or present from the grove monitor.\r\n\r\n- Possible refactoring of conditional in view and controller. \r\n- Time to seed development with locations?","created_at":"2016-07-30T19:36:35Z","updated_at":"2016-08-05T22:19:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5780b227bc4288037f0e7e2801ddb878a63c475e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29/commits","review_comments_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29/comments","review_comment_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/29/comments","statuses_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/statuses/e0722a8ab8c4925e2dc2e0aff34262242fe79fa6","head":{"label":"rootselementary:mark-student-absent","ref":"mark-student-absent","sha":"e0722a8ab8c4925e2dc2e0aff34262242fe79fa6","user":{"login":"rootselementary","id":20194705,"avatar_url":"https://avatars.githubusercontent.com/u/20194705?v=3","gravatar_id":"","url":"https://api.github.com/users/rootselementary","html_url":"https://github.com/rootselementary","followers_url":"https://api.github.com/users/rootselementary/followers","following_url":"https://api.github.com/users/rootselementary/following{/other_user}","gists_url":"https://api.github.com/users/rootselementary/gists{/gist_id}","starred_url":"https://api.github.com/users/rootselementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootselementary/subscriptions","organizations_url":"https://api.github.com/users/rootselementary/orgs","repos_url":"https://api.github.com/users/rootselementary/repos","events_url":"https://api.github.com/users/rootselementary/events{/privacy}","received_events_url":"https://api.github.com/users/rootselementary/received_events","type":"Organization","site_admin":false},"repo":{"id":62669821,"name":"check_in_tool_rails","full_name":"rootselementary/check_in_tool_rails","owner":{"login":"rootselementary","id":20194705,"avatar_url":"https://avatars.githubusercontent.com/u/20194705?v=3","gravatar_id":"","url":"https://api.github.com/users/rootselementary","html_url":"https://github.com/rootselementary","followers_url":"https://api.github.com/users/rootselementary/followers","following_url":"https://api.github.com/users/rootselementary/following{/other_user}","gists_url":"https://api.github.com/users/rootselementary/gists{/gist_id}","starred_url":"https://api.github.com/users/rootselementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootselementary/subscriptions","organizations_url":"https://api.github.com/users/rootselementary/orgs","repos_url":"https://api.github.com/users/rootselementary/repos","events_url":"https://api.github.com/users/rootselementary/events{/privacy}","received_events_url":"https://api.github.com/users/rootselementary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rootselementary/check_in_tool_rails","description":null,"fork":false,"url":"https://api.github.com/repos/rootselementary/check_in_tool_rails","forks_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/forks","keys_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/teams","hooks_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/hooks","issue_events_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/events{/number}","events_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/events","assignees_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/assignees{/user}","branches_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/branches{/branch}","tags_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/tags","blobs_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/languages","stargazers_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/stargazers","contributors_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/contributors","subscribers_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/subscribers","subscription_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/subscription","commits_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/contents/{+path}","compare_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/merges","archive_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/downloads","issues_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues{/number}","pulls_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/labels{/name}","releases_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/releases{/id}","deployments_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/deployments","created_at":"2016-07-05T21:09:07Z","updated_at":"2016-07-11T04:08:05Z","pushed_at":"2016-08-05T22:17:41Z","git_url":"git://github.com/rootselementary/check_in_tool_rails.git","ssh_url":"git@github.com:rootselementary/check_in_tool_rails.git","clone_url":"https://github.com/rootselementary/check_in_tool_rails.git","svn_url":"https://github.com/rootselementary/check_in_tool_rails","homepage":"http://roots-elementary-rails.herokuapp.com/","size":1458,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"rootselementary:master","ref":"master","sha":"84c8d100fad4a6f26b251ff551cb7eb39e9016b6","user":{"login":"rootselementary","id":20194705,"avatar_url":"https://avatars.githubusercontent.com/u/20194705?v=3","gravatar_id":"","url":"https://api.github.com/users/rootselementary","html_url":"https://github.com/rootselementary","followers_url":"https://api.github.com/users/rootselementary/followers","following_url":"https://api.github.com/users/rootselementary/following{/other_user}","gists_url":"https://api.github.com/users/rootselementary/gists{/gist_id}","starred_url":"https://api.github.com/users/rootselementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootselementary/subscriptions","organizations_url":"https://api.github.com/users/rootselementary/orgs","repos_url":"https://api.github.com/users/rootselementary/repos","events_url":"https://api.github.com/users/rootselementary/events{/privacy}","received_events_url":"https://api.github.com/users/rootselementary/received_events","type":"Organization","site_admin":false},"repo":{"id":62669821,"name":"check_in_tool_rails","full_name":"rootselementary/check_in_tool_rails","owner":{"login":"rootselementary","id":20194705,"avatar_url":"https://avatars.githubusercontent.com/u/20194705?v=3","gravatar_id":"","url":"https://api.github.com/users/rootselementary","html_url":"https://github.com/rootselementary","followers_url":"https://api.github.com/users/rootselementary/followers","following_url":"https://api.github.com/users/rootselementary/following{/other_user}","gists_url":"https://api.github.com/users/rootselementary/gists{/gist_id}","starred_url":"https://api.github.com/users/rootselementary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rootselementary/subscriptions","organizations_url":"https://api.github.com/users/rootselementary/orgs","repos_url":"https://api.github.com/users/rootselementary/repos","events_url":"https://api.github.com/users/rootselementary/events{/privacy}","received_events_url":"https://api.github.com/users/rootselementary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rootselementary/check_in_tool_rails","description":null,"fork":false,"url":"https://api.github.com/repos/rootselementary/check_in_tool_rails","forks_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/forks","keys_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/teams","hooks_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/hooks","issue_events_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/events{/number}","events_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/events","assignees_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/assignees{/user}","branches_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/branches{/branch}","tags_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/tags","blobs_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/languages","stargazers_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/stargazers","contributors_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/contributors","subscribers_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/subscribers","subscription_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/subscription","commits_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/contents/{+path}","compare_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/merges","archive_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/downloads","issues_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues{/number}","pulls_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/labels{/name}","releases_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/releases{/id}","deployments_url":"https://api.github.com/repos/rootselementary/check_in_tool_rails/deployments","created_at":"2016-07-05T21:09:07Z","updated_at":"2016-07-11T04:08:05Z","pushed_at":"2016-08-05T22:17:41Z","git_url":"git://github.com/rootselementary/check_in_tool_rails.git","ssh_url":"git@github.com:rootselementary/check_in_tool_rails.git","clone_url":"https://github.com/rootselementary/check_in_tool_rails.git","svn_url":"https://github.com/rootselementary/check_in_tool_rails","homepage":"http://roots-elementary-rails.herokuapp.com/","size":1458,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29"},"html":{"href":"https://github.com/rootselementary/check_in_tool_rails/pull/29"},"issue":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/29"},"comments":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/rootselementary/check_in_tool_rails/statuses/e0722a8ab8c4925e2dc2e0aff34262242fe79fa6"}}}}
{"actor":{"display_login":"erinnachen"}}