{"action":"closed","number":4587,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4587","id":46391313,"html_url":"https://github.com/ManageIQ/manageiq/pull/4587","diff_url":"https://github.com/ManageIQ/manageiq/pull/4587.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/4587.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4587","number":4587,"state":"closed","locked":false,"title":"Removed SQL queries from the dashboard controller before_action chain","user":{"login":"skateman","id":649130,"avatar_url":"https://avatars.githubusercontent.com/u/649130?v=3","gravatar_id":"","url":"https://api.github.com/users/skateman","html_url":"https://github.com/skateman","followers_url":"https://api.github.com/users/skateman/followers","following_url":"https://api.github.com/users/skateman/following{/other_user}","gists_url":"https://api.github.com/users/skateman/gists{/gist_id}","starred_url":"https://api.github.com/users/skateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skateman/subscriptions","organizations_url":"https://api.github.com/users/skateman/orgs","repos_url":"https://api.github.com/users/skateman/repos","events_url":"https://api.github.com/users/skateman/events{/privacy}","received_events_url":"https://api.github.com/users/skateman/received_events","type":"User","site_admin":false},"body":"It is not really necessary to go into the database to search for a user with NULL as an id.","created_at":"2015-09-30T11:44:55Z","updated_at":"2015-09-30T17:51:45Z","closed_at":"2015-09-30T17:51:45Z","merged_at":"2015-09-30T17:51:45Z","merge_commit_sha":"76c562e0de6288b0deca4edb3680bbe0c0594ab2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4587/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4587/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4587/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/5e648e3625a60057e083a4d8123dfe163799a16d","head":{"label":"skateman:optimize-login","ref":"optimize-login","sha":"5e648e3625a60057e083a4d8123dfe163799a16d","user":{"login":"skateman","id":649130,"avatar_url":"https://avatars.githubusercontent.com/u/649130?v=3","gravatar_id":"","url":"https://api.github.com/users/skateman","html_url":"https://github.com/skateman","followers_url":"https://api.github.com/users/skateman/followers","following_url":"https://api.github.com/users/skateman/following{/other_user}","gists_url":"https://api.github.com/users/skateman/gists{/gist_id}","starred_url":"https://api.github.com/users/skateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skateman/subscriptions","organizations_url":"https://api.github.com/users/skateman/orgs","repos_url":"https://api.github.com/users/skateman/repos","events_url":"https://api.github.com/users/skateman/events{/privacy}","received_events_url":"https://api.github.com/users/skateman/received_events","type":"User","site_admin":false},"repo":{"id":24141268,"name":"manageiq","full_name":"skateman/manageiq","owner":{"login":"skateman","id":649130,"avatar_url":"https://avatars.githubusercontent.com/u/649130?v=3","gravatar_id":"","url":"https://api.github.com/users/skateman","html_url":"https://github.com/skateman","followers_url":"https://api.github.com/users/skateman/followers","following_url":"https://api.github.com/users/skateman/following{/other_user}","gists_url":"https://api.github.com/users/skateman/gists{/gist_id}","starred_url":"https://api.github.com/users/skateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skateman/subscriptions","organizations_url":"https://api.github.com/users/skateman/orgs","repos_url":"https://api.github.com/users/skateman/repos","events_url":"https://api.github.com/users/skateman/events{/privacy}","received_events_url":"https://api.github.com/users/skateman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skateman/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/skateman/manageiq","forks_url":"https://api.github.com/repos/skateman/manageiq/forks","keys_url":"https://api.github.com/repos/skateman/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skateman/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skateman/manageiq/teams","hooks_url":"https://api.github.com/repos/skateman/manageiq/hooks","issue_events_url":"https://api.github.com/repos/skateman/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/skateman/manageiq/events","assignees_url":"https://api.github.com/repos/skateman/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/skateman/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/skateman/manageiq/tags","blobs_url":"https://api.github.com/repos/skateman/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skateman/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skateman/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/skateman/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skateman/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/skateman/manageiq/languages","stargazers_url":"https://api.github.com/repos/skateman/manageiq/stargazers","contributors_url":"https://api.github.com/repos/skateman/manageiq/contributors","subscribers_url":"https://api.github.com/repos/skateman/manageiq/subscribers","subscription_url":"https://api.github.com/repos/skateman/manageiq/subscription","commits_url":"https://api.github.com/repos/skateman/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/skateman/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/skateman/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/skateman/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/skateman/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/skateman/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skateman/manageiq/merges","archive_url":"https://api.github.com/repos/skateman/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skateman/manageiq/downloads","issues_url":"https://api.github.com/repos/skateman/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/skateman/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/skateman/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/skateman/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skateman/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/skateman/manageiq/releases{/id}","created_at":"2014-09-17T11:05:15Z","updated_at":"2015-05-07T08:47:07Z","pushed_at":"2015-09-30T16:09:16Z","git_url":"git://github.com/skateman/manageiq.git","ssh_url":"git@github.com:skateman/manageiq.git","clone_url":"https://github.com/skateman/manageiq.git","svn_url":"https://github.com/skateman/manageiq","homepage":"manageiq.org","size":86423,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"24351dff45bf65a26674f10efea2cc21d4e4b13a","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Cloud Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","created_at":"2014-06-13T02:31:26Z","updated_at":"2015-09-30T14:31:51Z","pushed_at":"2015-09-30T17:51:45Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":168010,"stargazers_count":154,"watchers_count":154,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":160,"mirror_url":null,"open_issues_count":428,"forks":160,"open_issues":428,"watchers":154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4587"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/4587"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/4587"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/4587/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4587/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4587/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/5e648e3625a60057e083a4d8123dfe163799a16d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"comments":7,"review_comments":0,"commits":1,"additions":17,"deletions":18,"changed_files":6}}