{"action":"created","comment":{"url":"https://api.github.com/repos/JDrit/profiles/pulls/comments/77723618","id":77723618,"diff_hunk":"@@ -167,9 +167,9 @@ def me\n             @positions = get_positions(ldap_conn, @user[\"dn\"][0], @groups)\n \n             status = [\n-                @user[\"active\"] != nil && @user[\"active\"][0] != nil && @user[\"active\"][0][0] == \"1\" ? :active : :not_active,\n-                @user[\"alumni\"] != nil && @user[\"alumni\"][0] != nil && @user[\"alumni\"][0][0] == \"1\" ? :alumni : :not_alumni, \n-                @user[\"onfloor\"] != nil && @user[\"onfloor\"][0] != nil && @user[\"onfloor\"][0][0] == \"1\" ? :onfloor : :offfloor]\n+                groups.include? \"active\" ? :active : :not_active,\n+                groups.include? \"current_student\" ? :current_student : :alumni,","path":"app/controllers/users_controller.rb","position":8,"original_position":8,"commit_id":"a993bf21e9e02891a0946dafb684209bc7eb1cb1","original_commit_id":"a993bf21e9e02891a0946dafb684209bc7eb1cb1","user":{"login":"JDrit","id":2280727,"avatar_url":"https://avatars.githubusercontent.com/u/2280727?v=3","gravatar_id":"","url":"https://api.github.com/users/JDrit","html_url":"https://github.com/JDrit","followers_url":"https://api.github.com/users/JDrit/followers","following_url":"https://api.github.com/users/JDrit/following{/other_user}","gists_url":"https://api.github.com/users/JDrit/gists{/gist_id}","starred_url":"https://api.github.com/users/JDrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDrit/subscriptions","organizations_url":"https://api.github.com/users/JDrit/orgs","repos_url":"https://api.github.com/users/JDrit/repos","events_url":"https://api.github.com/users/JDrit/events{/privacy}","received_events_url":"https://api.github.com/users/JDrit/received_events","type":"User","site_admin":false},"body":"should need the @ sign in front of group","created_at":"2016-09-06T21:39:01Z","updated_at":"2016-09-06T21:39:01Z","html_url":"https://github.com/JDrit/profiles/pull/40#discussion_r77723618","pull_request_url":"https://api.github.com/repos/JDrit/profiles/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/JDrit/profiles/pulls/comments/77723618"},"html":{"href":"https://github.com/JDrit/profiles/pull/40#discussion_r77723618"},"pull_request":{"href":"https://api.github.com/repos/JDrit/profiles/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/JDrit/profiles/pulls/40","id":83447331,"html_url":"https://github.com/JDrit/profiles/pull/40","diff_url":"https://github.com/JDrit/profiles/pull/40.diff","patch_url":"https://github.com/JDrit/profiles/pull/40.patch","issue_url":"https://api.github.com/repos/JDrit/profiles/issues/40","number":40,"state":"open","locked":false,"title":"Switch to groups for membership status","user":{"login":"liam-middlebrook","id":3920942,"avatar_url":"https://avatars.githubusercontent.com/u/3920942?v=3","gravatar_id":"","url":"https://api.github.com/users/liam-middlebrook","html_url":"https://github.com/liam-middlebrook","followers_url":"https://api.github.com/users/liam-middlebrook/followers","following_url":"https://api.github.com/users/liam-middlebrook/following{/other_user}","gists_url":"https://api.github.com/users/liam-middlebrook/gists{/gist_id}","starred_url":"https://api.github.com/users/liam-middlebrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liam-middlebrook/subscriptions","organizations_url":"https://api.github.com/users/liam-middlebrook/orgs","repos_url":"https://api.github.com/users/liam-middlebrook/repos","events_url":"https://api.github.com/users/liam-middlebrook/events{/privacy}","received_events_url":"https://api.github.com/users/liam-middlebrook/received_events","type":"User","site_admin":false},"body":"Update possible enumerations of membership status to reflect ldap\r\ngroupings better.","created_at":"2016-08-31T12:57:58Z","updated_at":"2016-09-06T21:39:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e384694e2f1cdb222d5e61d4e2e102ecf994648","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JDrit/profiles/pulls/40/commits","review_comments_url":"https://api.github.com/repos/JDrit/profiles/pulls/40/comments","review_comment_url":"https://api.github.com/repos/JDrit/profiles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JDrit/profiles/issues/40/comments","statuses_url":"https://api.github.com/repos/JDrit/profiles/statuses/a993bf21e9e02891a0946dafb684209bc7eb1cb1","head":{"label":"liam-middlebrook:group-changes","ref":"group-changes","sha":"a993bf21e9e02891a0946dafb684209bc7eb1cb1","user":{"login":"liam-middlebrook","id":3920942,"avatar_url":"https://avatars.githubusercontent.com/u/3920942?v=3","gravatar_id":"","url":"https://api.github.com/users/liam-middlebrook","html_url":"https://github.com/liam-middlebrook","followers_url":"https://api.github.com/users/liam-middlebrook/followers","following_url":"https://api.github.com/users/liam-middlebrook/following{/other_user}","gists_url":"https://api.github.com/users/liam-middlebrook/gists{/gist_id}","starred_url":"https://api.github.com/users/liam-middlebrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liam-middlebrook/subscriptions","organizations_url":"https://api.github.com/users/liam-middlebrook/orgs","repos_url":"https://api.github.com/users/liam-middlebrook/repos","events_url":"https://api.github.com/users/liam-middlebrook/events{/privacy}","received_events_url":"https://api.github.com/users/liam-middlebrook/received_events","type":"User","site_admin":false},"repo":{"id":66754446,"name":"profiles","full_name":"liam-middlebrook/profiles","owner":{"login":"liam-middlebrook","id":3920942,"avatar_url":"https://avatars.githubusercontent.com/u/3920942?v=3","gravatar_id":"","url":"https://api.github.com/users/liam-middlebrook","html_url":"https://github.com/liam-middlebrook","followers_url":"https://api.github.com/users/liam-middlebrook/followers","following_url":"https://api.github.com/users/liam-middlebrook/following{/other_user}","gists_url":"https://api.github.com/users/liam-middlebrook/gists{/gist_id}","starred_url":"https://api.github.com/users/liam-middlebrook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liam-middlebrook/subscriptions","organizations_url":"https://api.github.com/users/liam-middlebrook/orgs","repos_url":"https://api.github.com/users/liam-middlebrook/repos","events_url":"https://api.github.com/users/liam-middlebrook/events{/privacy}","received_events_url":"https://api.github.com/users/liam-middlebrook/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liam-middlebrook/profiles","description":"CSH LDAP Profiles","fork":true,"url":"https://api.github.com/repos/liam-middlebrook/profiles","forks_url":"https://api.github.com/repos/liam-middlebrook/profiles/forks","keys_url":"https://api.github.com/repos/liam-middlebrook/profiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liam-middlebrook/profiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liam-middlebrook/profiles/teams","hooks_url":"https://api.github.com/repos/liam-middlebrook/profiles/hooks","issue_events_url":"https://api.github.com/repos/liam-middlebrook/profiles/issues/events{/number}","events_url":"https://api.github.com/repos/liam-middlebrook/profiles/events","assignees_url":"https://api.github.com/repos/liam-middlebrook/profiles/assignees{/user}","branches_url":"https://api.github.com/repos/liam-middlebrook/profiles/branches{/branch}","tags_url":"https://api.github.com/repos/liam-middlebrook/profiles/tags","blobs_url":"https://api.github.com/repos/liam-middlebrook/profiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liam-middlebrook/profiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liam-middlebrook/profiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/liam-middlebrook/profiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liam-middlebrook/profiles/statuses/{sha}","languages_url":"https://api.github.com/repos/liam-middlebrook/profiles/languages","stargazers_url":"https://api.github.com/repos/liam-middlebrook/profiles/stargazers","contributors_url":"https://api.github.com/repos/liam-middlebrook/profiles/contributors","subscribers_url":"https://api.github.com/repos/liam-middlebrook/profiles/subscribers","subscription_url":"https://api.github.com/repos/liam-middlebrook/profiles/subscription","commits_url":"https://api.github.com/repos/liam-middlebrook/profiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/liam-middlebrook/profiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/liam-middlebrook/profiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/liam-middlebrook/profiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/liam-middlebrook/profiles/contents/{+path}","compare_url":"https://api.github.com/repos/liam-middlebrook/profiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liam-middlebrook/profiles/merges","archive_url":"https://api.github.com/repos/liam-middlebrook/profiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liam-middlebrook/profiles/downloads","issues_url":"https://api.github.com/repos/liam-middlebrook/profiles/issues{/number}","pulls_url":"https://api.github.com/repos/liam-middlebrook/profiles/pulls{/number}","milestones_url":"https://api.github.com/repos/liam-middlebrook/profiles/milestones{/number}","notifications_url":"https://api.github.com/repos/liam-middlebrook/profiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liam-middlebrook/profiles/labels{/name}","releases_url":"https://api.github.com/repos/liam-middlebrook/profiles/releases{/id}","deployments_url":"https://api.github.com/repos/liam-middlebrook/profiles/deployments","created_at":"2016-08-28T07:01:24Z","updated_at":"2016-08-28T07:01:26Z","pushed_at":"2016-08-31T12:57:48Z","git_url":"git://github.com/liam-middlebrook/profiles.git","ssh_url":"git@github.com:liam-middlebrook/profiles.git","clone_url":"https://github.com/liam-middlebrook/profiles.git","svn_url":"https://github.com/liam-middlebrook/profiles","homepage":null,"size":485,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"JDrit:master","ref":"master","sha":"70c7bc752b9bcab401dc48931b410d4f6bcce0f7","user":{"login":"JDrit","id":2280727,"avatar_url":"https://avatars.githubusercontent.com/u/2280727?v=3","gravatar_id":"","url":"https://api.github.com/users/JDrit","html_url":"https://github.com/JDrit","followers_url":"https://api.github.com/users/JDrit/followers","following_url":"https://api.github.com/users/JDrit/following{/other_user}","gists_url":"https://api.github.com/users/JDrit/gists{/gist_id}","starred_url":"https://api.github.com/users/JDrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDrit/subscriptions","organizations_url":"https://api.github.com/users/JDrit/orgs","repos_url":"https://api.github.com/users/JDrit/repos","events_url":"https://api.github.com/users/JDrit/events{/privacy}","received_events_url":"https://api.github.com/users/JDrit/received_events","type":"User","site_admin":false},"repo":{"id":17468290,"name":"profiles","full_name":"JDrit/profiles","owner":{"login":"JDrit","id":2280727,"avatar_url":"https://avatars.githubusercontent.com/u/2280727?v=3","gravatar_id":"","url":"https://api.github.com/users/JDrit","html_url":"https://github.com/JDrit","followers_url":"https://api.github.com/users/JDrit/followers","following_url":"https://api.github.com/users/JDrit/following{/other_user}","gists_url":"https://api.github.com/users/JDrit/gists{/gist_id}","starred_url":"https://api.github.com/users/JDrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDrit/subscriptions","organizations_url":"https://api.github.com/users/JDrit/orgs","repos_url":"https://api.github.com/users/JDrit/repos","events_url":"https://api.github.com/users/JDrit/events{/privacy}","received_events_url":"https://api.github.com/users/JDrit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JDrit/profiles","description":"CSH LDAP Profiles","fork":false,"url":"https://api.github.com/repos/JDrit/profiles","forks_url":"https://api.github.com/repos/JDrit/profiles/forks","keys_url":"https://api.github.com/repos/JDrit/profiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JDrit/profiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JDrit/profiles/teams","hooks_url":"https://api.github.com/repos/JDrit/profiles/hooks","issue_events_url":"https://api.github.com/repos/JDrit/profiles/issues/events{/number}","events_url":"https://api.github.com/repos/JDrit/profiles/events","assignees_url":"https://api.github.com/repos/JDrit/profiles/assignees{/user}","branches_url":"https://api.github.com/repos/JDrit/profiles/branches{/branch}","tags_url":"https://api.github.com/repos/JDrit/profiles/tags","blobs_url":"https://api.github.com/repos/JDrit/profiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JDrit/profiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JDrit/profiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/JDrit/profiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JDrit/profiles/statuses/{sha}","languages_url":"https://api.github.com/repos/JDrit/profiles/languages","stargazers_url":"https://api.github.com/repos/JDrit/profiles/stargazers","contributors_url":"https://api.github.com/repos/JDrit/profiles/contributors","subscribers_url":"https://api.github.com/repos/JDrit/profiles/subscribers","subscription_url":"https://api.github.com/repos/JDrit/profiles/subscription","commits_url":"https://api.github.com/repos/JDrit/profiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/JDrit/profiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/JDrit/profiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/JDrit/profiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/JDrit/profiles/contents/{+path}","compare_url":"https://api.github.com/repos/JDrit/profiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JDrit/profiles/merges","archive_url":"https://api.github.com/repos/JDrit/profiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JDrit/profiles/downloads","issues_url":"https://api.github.com/repos/JDrit/profiles/issues{/number}","pulls_url":"https://api.github.com/repos/JDrit/profiles/pulls{/number}","milestones_url":"https://api.github.com/repos/JDrit/profiles/milestones{/number}","notifications_url":"https://api.github.com/repos/JDrit/profiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JDrit/profiles/labels{/name}","releases_url":"https://api.github.com/repos/JDrit/profiles/releases{/id}","deployments_url":"https://api.github.com/repos/JDrit/profiles/deployments","created_at":"2014-03-06T06:23:26Z","updated_at":"2016-01-24T21:19:31Z","pushed_at":"2016-08-31T12:57:58Z","git_url":"git://github.com/JDrit/profiles.git","ssh_url":"git@github.com:JDrit/profiles.git","clone_url":"https://github.com/JDrit/profiles.git","svn_url":"https://github.com/JDrit/profiles","homepage":null,"size":483,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JDrit/profiles/pulls/40"},"html":{"href":"https://github.com/JDrit/profiles/pull/40"},"issue":{"href":"https://api.github.com/repos/JDrit/profiles/issues/40"},"comments":{"href":"https://api.github.com/repos/JDrit/profiles/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/JDrit/profiles/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/JDrit/profiles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JDrit/profiles/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/JDrit/profiles/statuses/a993bf21e9e02891a0946dafb684209bc7eb1cb1"}}}}
{"actor":{"display_login":"JDrit"}}