{"action":"created","comment":{"url":"https://api.github.com/repos/valleyjo/orgman/pulls/comments/25208451","id":25208451,"diff_hunk":"@@ -21,22 +21,26 @@ class User < ActiveRecord::Base\n \n   # Scopes #####################################################################\n \n-  scope :active,   -> { where(\"status = 'active'\").\n-                        sort_by { |u| [u.last_name, u.first_name] } }\n-  scope :alumni,   -> { where(\"status = 'alumni'\").\n-                        sort_by { |u| [u.last_name, u.first_name] } }\n-  scope :pending,  -> { where(\"status = 'pending'\").\n-                        sort_by { |u| [u.last_name, u.first_name] } }\n-  scope :inactive, -> { where(\"status = 'inactive'\").\n-                        sort_by { |u| [u.last_name, u.first_name] } }\n+  scope :active,          -> { where(\"status = 'active'\").\n+                               sort_by { |u| [u.last_name, u.first_name] } }\n+  scope :alumni,          -> { where(\"status = 'alumni'\").\n+                               sort_by { |u| [u.last_name, u.first_name] } }\n+  scope :pending,         -> { where(\"status = 'pending'\").\n+                               sort_by { |u| [u.last_name, u.first_name] } }\n+  scope :inactive,        -> { where(\"status = 'inactive'\").\n+                               sort_by { |u| [u.last_name, u.first_name] } }\n+  scope :not_pending,     -> { where.not(\"status = 'pending'\") }\n+  scope :org_chart_dummy, -> { where(\"status = 'org_chart_dummy'\") }\n+  scope :unassigned_to_org_chart, -> { where.not(status: 'pending').\n+                                       where(division: nil) }","path":"app/models/user.rb","position":23,"original_position":23,"commit_id":"66ccd5fbc0f6cc9e4b404d745d9121aa8889083a","original_commit_id":"66ccd5fbc0f6cc9e4b404d745d9121aa8889083a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Expression at 35, 61 should be on its own line.<br>Use 2 (not 37) spaces for indenting an expression spanning multiple lines.","created_at":"2015-02-23T22:16:52Z","updated_at":"2015-02-23T22:16:52Z","html_url":"https://github.com/valleyjo/orgman/pull/90#discussion_r25208451","pull_request_url":"https://api.github.com/repos/valleyjo/orgman/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/comments/25208451"},"html":{"href":"https://github.com/valleyjo/orgman/pull/90#discussion_r25208451"},"pull_request":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/valleyjo/orgman/pulls/90","id":29838637,"html_url":"https://github.com/valleyjo/orgman/pull/90","diff_url":"https://github.com/valleyjo/orgman/pull/90.diff","patch_url":"https://github.com/valleyjo/orgman/pull/90.patch","issue_url":"https://api.github.com/repos/valleyjo/orgman/issues/90","number":90,"state":"open","locked":false,"title":"Add the Org Chart","user":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"body":"Close #87.\r\n\r\nMerge this before the callout branch.","created_at":"2015-02-23T19:43:00Z","updated_at":"2015-02-23T22:16:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8dad90d03c245a81b4938e339a2a63a03850eec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/valleyjo/orgman/pulls/90/commits","review_comments_url":"https://api.github.com/repos/valleyjo/orgman/pulls/90/comments","review_comment_url":"https://api.github.com/repos/valleyjo/orgman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valleyjo/orgman/issues/90/comments","statuses_url":"https://api.github.com/repos/valleyjo/orgman/statuses/66ccd5fbc0f6cc9e4b404d745d9121aa8889083a","head":{"label":"valleyjo:av/family_tree","ref":"av/family_tree","sha":"66ccd5fbc0f6cc9e4b404d745d9121aa8889083a","user":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"repo":{"id":23852683,"name":"orgman","full_name":"valleyjo/orgman","owner":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valleyjo/orgman","description":"Org management with style :sparkles:","fork":false,"url":"https://api.github.com/repos/valleyjo/orgman","forks_url":"https://api.github.com/repos/valleyjo/orgman/forks","keys_url":"https://api.github.com/repos/valleyjo/orgman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valleyjo/orgman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valleyjo/orgman/teams","hooks_url":"https://api.github.com/repos/valleyjo/orgman/hooks","issue_events_url":"https://api.github.com/repos/valleyjo/orgman/issues/events{/number}","events_url":"https://api.github.com/repos/valleyjo/orgman/events","assignees_url":"https://api.github.com/repos/valleyjo/orgman/assignees{/user}","branches_url":"https://api.github.com/repos/valleyjo/orgman/branches{/branch}","tags_url":"https://api.github.com/repos/valleyjo/orgman/tags","blobs_url":"https://api.github.com/repos/valleyjo/orgman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valleyjo/orgman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valleyjo/orgman/git/refs{/sha}","trees_url":"https://api.github.com/repos/valleyjo/orgman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valleyjo/orgman/statuses/{sha}","languages_url":"https://api.github.com/repos/valleyjo/orgman/languages","stargazers_url":"https://api.github.com/repos/valleyjo/orgman/stargazers","contributors_url":"https://api.github.com/repos/valleyjo/orgman/contributors","subscribers_url":"https://api.github.com/repos/valleyjo/orgman/subscribers","subscription_url":"https://api.github.com/repos/valleyjo/orgman/subscription","commits_url":"https://api.github.com/repos/valleyjo/orgman/commits{/sha}","git_commits_url":"https://api.github.com/repos/valleyjo/orgman/git/commits{/sha}","comments_url":"https://api.github.com/repos/valleyjo/orgman/comments{/number}","issue_comment_url":"https://api.github.com/repos/valleyjo/orgman/issues/comments{/number}","contents_url":"https://api.github.com/repos/valleyjo/orgman/contents/{+path}","compare_url":"https://api.github.com/repos/valleyjo/orgman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valleyjo/orgman/merges","archive_url":"https://api.github.com/repos/valleyjo/orgman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valleyjo/orgman/downloads","issues_url":"https://api.github.com/repos/valleyjo/orgman/issues{/number}","pulls_url":"https://api.github.com/repos/valleyjo/orgman/pulls{/number}","milestones_url":"https://api.github.com/repos/valleyjo/orgman/milestones{/number}","notifications_url":"https://api.github.com/repos/valleyjo/orgman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valleyjo/orgman/labels{/name}","releases_url":"https://api.github.com/repos/valleyjo/orgman/releases{/id}","created_at":"2014-09-09T22:41:37Z","updated_at":"2015-02-23T19:39:14Z","pushed_at":"2015-02-23T22:16:48Z","git_url":"git://github.com/valleyjo/orgman.git","ssh_url":"git@github.com:valleyjo/orgman.git","clone_url":"https://github.com/valleyjo/orgman.git","svn_url":"https://github.com/valleyjo/orgman","homepage":"http://orgman.herokuapp.com/","size":1550,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"valleyjo:master","ref":"master","sha":"4422239f37cbd044f25ca4cf3ed29415323811f0","user":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"repo":{"id":23852683,"name":"orgman","full_name":"valleyjo/orgman","owner":{"login":"valleyjo","id":4377539,"avatar_url":"https://avatars.githubusercontent.com/u/4377539?v=3","gravatar_id":"","url":"https://api.github.com/users/valleyjo","html_url":"https://github.com/valleyjo","followers_url":"https://api.github.com/users/valleyjo/followers","following_url":"https://api.github.com/users/valleyjo/following{/other_user}","gists_url":"https://api.github.com/users/valleyjo/gists{/gist_id}","starred_url":"https://api.github.com/users/valleyjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valleyjo/subscriptions","organizations_url":"https://api.github.com/users/valleyjo/orgs","repos_url":"https://api.github.com/users/valleyjo/repos","events_url":"https://api.github.com/users/valleyjo/events{/privacy}","received_events_url":"https://api.github.com/users/valleyjo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valleyjo/orgman","description":"Org management with style :sparkles:","fork":false,"url":"https://api.github.com/repos/valleyjo/orgman","forks_url":"https://api.github.com/repos/valleyjo/orgman/forks","keys_url":"https://api.github.com/repos/valleyjo/orgman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valleyjo/orgman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valleyjo/orgman/teams","hooks_url":"https://api.github.com/repos/valleyjo/orgman/hooks","issue_events_url":"https://api.github.com/repos/valleyjo/orgman/issues/events{/number}","events_url":"https://api.github.com/repos/valleyjo/orgman/events","assignees_url":"https://api.github.com/repos/valleyjo/orgman/assignees{/user}","branches_url":"https://api.github.com/repos/valleyjo/orgman/branches{/branch}","tags_url":"https://api.github.com/repos/valleyjo/orgman/tags","blobs_url":"https://api.github.com/repos/valleyjo/orgman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valleyjo/orgman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valleyjo/orgman/git/refs{/sha}","trees_url":"https://api.github.com/repos/valleyjo/orgman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valleyjo/orgman/statuses/{sha}","languages_url":"https://api.github.com/repos/valleyjo/orgman/languages","stargazers_url":"https://api.github.com/repos/valleyjo/orgman/stargazers","contributors_url":"https://api.github.com/repos/valleyjo/orgman/contributors","subscribers_url":"https://api.github.com/repos/valleyjo/orgman/subscribers","subscription_url":"https://api.github.com/repos/valleyjo/orgman/subscription","commits_url":"https://api.github.com/repos/valleyjo/orgman/commits{/sha}","git_commits_url":"https://api.github.com/repos/valleyjo/orgman/git/commits{/sha}","comments_url":"https://api.github.com/repos/valleyjo/orgman/comments{/number}","issue_comment_url":"https://api.github.com/repos/valleyjo/orgman/issues/comments{/number}","contents_url":"https://api.github.com/repos/valleyjo/orgman/contents/{+path}","compare_url":"https://api.github.com/repos/valleyjo/orgman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valleyjo/orgman/merges","archive_url":"https://api.github.com/repos/valleyjo/orgman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valleyjo/orgman/downloads","issues_url":"https://api.github.com/repos/valleyjo/orgman/issues{/number}","pulls_url":"https://api.github.com/repos/valleyjo/orgman/pulls{/number}","milestones_url":"https://api.github.com/repos/valleyjo/orgman/milestones{/number}","notifications_url":"https://api.github.com/repos/valleyjo/orgman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valleyjo/orgman/labels{/name}","releases_url":"https://api.github.com/repos/valleyjo/orgman/releases{/id}","created_at":"2014-09-09T22:41:37Z","updated_at":"2015-02-23T19:39:14Z","pushed_at":"2015-02-23T22:16:48Z","git_url":"git://github.com/valleyjo/orgman.git","ssh_url":"git@github.com:valleyjo/orgman.git","clone_url":"https://github.com/valleyjo/orgman.git","svn_url":"https://github.com/valleyjo/orgman","homepage":"http://orgman.herokuapp.com/","size":1550,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/90"},"html":{"href":"https://github.com/valleyjo/orgman/pull/90"},"issue":{"href":"https://api.github.com/repos/valleyjo/orgman/issues/90"},"comments":{"href":"https://api.github.com/repos/valleyjo/orgman/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valleyjo/orgman/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/valleyjo/orgman/statuses/66ccd5fbc0f6cc9e4b404d745d9121aa8889083a"}}}}