{"action":"closed","number":3764,"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/3764","id":82323015,"html_url":"https://github.com/theforeman/foreman/pull/3764","diff_url":"https://github.com/theforeman/foreman/pull/3764.diff","patch_url":"https://github.com/theforeman/foreman/pull/3764.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/3764","number":3764,"state":"closed","locked":false,"title":"Fixes #16238 - Speed up dashboard loading time.","user":{"login":"ohadlevy","id":20167,"avatar_url":"https://avatars.githubusercontent.com/u/20167?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadlevy","html_url":"https://github.com/ohadlevy","followers_url":"https://api.github.com/users/ohadlevy/followers","following_url":"https://api.github.com/users/ohadlevy/following{/other_user}","gists_url":"https://api.github.com/users/ohadlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadlevy/subscriptions","organizations_url":"https://api.github.com/users/ohadlevy/orgs","repos_url":"https://api.github.com/users/ohadlevy/repos","events_url":"https://api.github.com/users/ohadlevy/events{/privacy}","received_events_url":"https://api.github.com/users/ohadlevy/received_events","type":"User","site_admin":false},"body":"I've change report host to inner query and used a join, in\nmy testing, this speed up dramaticilly dashboard loading\ntime, on my setup from 60 seconds to under 10 seconds.","created_at":"2016-08-23T08:30:12Z","updated_at":"2016-08-23T13:07:04Z","closed_at":"2016-08-23T13:07:04Z","merged_at":null,"merge_commit_sha":"f360d46a7d2d7d6c0bf88a0576196ec11f5b1975","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/3764/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/3764/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/3764/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/11cd096cac936bd6991695d8a3a8c24860608d15","head":{"label":"ohadlevy:16238","ref":"16238","sha":"11cd096cac936bd6991695d8a3a8c24860608d15","user":{"login":"ohadlevy","id":20167,"avatar_url":"https://avatars.githubusercontent.com/u/20167?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadlevy","html_url":"https://github.com/ohadlevy","followers_url":"https://api.github.com/users/ohadlevy/followers","following_url":"https://api.github.com/users/ohadlevy/following{/other_user}","gists_url":"https://api.github.com/users/ohadlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadlevy/subscriptions","organizations_url":"https://api.github.com/users/ohadlevy/orgs","repos_url":"https://api.github.com/users/ohadlevy/repos","events_url":"https://api.github.com/users/ohadlevy/events{/privacy}","received_events_url":"https://api.github.com/users/ohadlevy/received_events","type":"User","site_admin":false},"repo":{"id":3503979,"name":"foreman","full_name":"ohadlevy/foreman","owner":{"login":"ohadlevy","id":20167,"avatar_url":"https://avatars.githubusercontent.com/u/20167?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadlevy","html_url":"https://github.com/ohadlevy","followers_url":"https://api.github.com/users/ohadlevy/followers","following_url":"https://api.github.com/users/ohadlevy/following{/other_user}","gists_url":"https://api.github.com/users/ohadlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadlevy/subscriptions","organizations_url":"https://api.github.com/users/ohadlevy/orgs","repos_url":"https://api.github.com/users/ohadlevy/repos","events_url":"https://api.github.com/users/ohadlevy/events{/privacy}","received_events_url":"https://api.github.com/users/ohadlevy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ohadlevy/foreman","description":"UNOFFICIAL CLONE use https://github.com/theforeman/foreman","fork":true,"url":"https://api.github.com/repos/ohadlevy/foreman","forks_url":"https://api.github.com/repos/ohadlevy/foreman/forks","keys_url":"https://api.github.com/repos/ohadlevy/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ohadlevy/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ohadlevy/foreman/teams","hooks_url":"https://api.github.com/repos/ohadlevy/foreman/hooks","issue_events_url":"https://api.github.com/repos/ohadlevy/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/ohadlevy/foreman/events","assignees_url":"https://api.github.com/repos/ohadlevy/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/ohadlevy/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/ohadlevy/foreman/tags","blobs_url":"https://api.github.com/repos/ohadlevy/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ohadlevy/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ohadlevy/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/ohadlevy/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ohadlevy/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/ohadlevy/foreman/languages","stargazers_url":"https://api.github.com/repos/ohadlevy/foreman/stargazers","contributors_url":"https://api.github.com/repos/ohadlevy/foreman/contributors","subscribers_url":"https://api.github.com/repos/ohadlevy/foreman/subscribers","subscription_url":"https://api.github.com/repos/ohadlevy/foreman/subscription","commits_url":"https://api.github.com/repos/ohadlevy/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/ohadlevy/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/ohadlevy/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/ohadlevy/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/ohadlevy/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/ohadlevy/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ohadlevy/foreman/merges","archive_url":"https://api.github.com/repos/ohadlevy/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ohadlevy/foreman/downloads","issues_url":"https://api.github.com/repos/ohadlevy/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/ohadlevy/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/ohadlevy/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/ohadlevy/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ohadlevy/foreman/labels{/name}","releases_url":"https://api.github.com/repos/ohadlevy/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/ohadlevy/foreman/deployments","created_at":"2012-02-21T13:17:51Z","updated_at":"2014-11-28T20:42:51Z","pushed_at":"2016-08-23T08:30:03Z","git_url":"git://github.com/ohadlevy/foreman.git","ssh_url":"git@github.com:ohadlevy/foreman.git","clone_url":"https://github.com/ohadlevy/foreman.git","svn_url":"https://github.com/ohadlevy/foreman","homepage":"http://theforeman.org","size":33737,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":7,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"8563088e6846876ea70ffd0a55c768feab01a589","user":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":258750,"name":"foreman","full_name":"theforeman/foreman","owner":{"login":"theforeman","id":1439844,"avatar_url":"https://avatars.githubusercontent.com/u/1439844?v=3","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theforeman/foreman","description":"an application that automates the lifecycle of servers ","fork":false,"url":"https://api.github.com/repos/theforeman/foreman","forks_url":"https://api.github.com/repos/theforeman/foreman/forks","keys_url":"https://api.github.com/repos/theforeman/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman/events","assignees_url":"https://api.github.com/repos/theforeman/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman/merges","archive_url":"https://api.github.com/repos/theforeman/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2016-08-23T00:49:08Z","pushed_at":"2016-08-23T13:07:03Z","git_url":"git://github.com/theforeman/foreman.git","ssh_url":"git@github.com:theforeman/foreman.git","clone_url":"https://github.com/theforeman/foreman.git","svn_url":"https://github.com/theforeman/foreman","homepage":"http://theforeman.org","size":69318,"stargazers_count":1070,"watchers_count":1070,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":543,"mirror_url":null,"open_issues_count":87,"forks":543,"open_issues":87,"watchers":1070,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3764"},"html":{"href":"https://github.com/theforeman/foreman/pull/3764"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3764"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3764/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3764/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3764/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/11cd096cac936bd6991695d8a3a8c24860608d15"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":5,"review_comments":0,"commits":1,"additions":4,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"tbrisker"}}