{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/75858755","id":75858755,"diff_hunk":"@@ -14,6 +14,16 @@ def index\n     end\n   end\n \n+  def show\n+    if @widget.present? && @widget.user == User.current\n+      render(:partial => @widget.template, :locals => @widget.data)\n+    else\n+      render_403 \"User #{User.current} attempted to access another user's widget\"","path":"app/controllers/dashboard_controller.rb","position":19,"original_position":19,"commit_id":"fc2a6eca856ebc7ddb275855016c93b89e702ec3","original_commit_id":"fc2a6eca856ebc7ddb275855016c93b89e702ec3","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [81/80]","created_at":"2016-08-23T12:54:25Z","updated_at":"2016-08-23T12:54:25Z","html_url":"https://github.com/theforeman/foreman/pull/3762#discussion_r75858755","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/3762","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/75858755"},"html":{"href":"https://github.com/theforeman/foreman/pull/3762#discussion_r75858755"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3762"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/3762","id":82205005,"html_url":"https://github.com/theforeman/foreman/pull/3762","diff_url":"https://github.com/theforeman/foreman/pull/3762.diff","patch_url":"https://github.com/theforeman/foreman/pull/3762.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/3762","number":3762,"state":"open","locked":false,"title":"Fixes #16044 - Load dashboard widgets via ajax","user":{"login":"tbrisker","id":1540531,"avatar_url":"https://avatars.githubusercontent.com/u/1540531?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrisker","html_url":"https://github.com/tbrisker","followers_url":"https://api.github.com/users/tbrisker/followers","following_url":"https://api.github.com/users/tbrisker/following{/other_user}","gists_url":"https://api.github.com/users/tbrisker/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrisker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrisker/subscriptions","organizations_url":"https://api.github.com/users/tbrisker/orgs","repos_url":"https://api.github.com/users/tbrisker/repos","events_url":"https://api.github.com/users/tbrisker/events{/privacy}","received_events_url":"https://api.github.com/users/tbrisker/received_events","type":"User","site_admin":false},"body":"This speeds up dasboard loading as widgets are loaded in the background\r\nand do not block rendering, as well as allow the dashboard to load\r\ncorrectly even if some of the widgets are broken.","created_at":"2016-08-22T14:51:08Z","updated_at":"2016-08-23T12:54:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1860869ee5c2f5aaa6966233ef3740604c635112","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/3762/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/3762/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/3762/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/fc2a6eca856ebc7ddb275855016c93b89e702ec3","head":{"label":"tbrisker:16044","ref":"16044","sha":"fc2a6eca856ebc7ddb275855016c93b89e702ec3","user":{"login":"tbrisker","id":1540531,"avatar_url":"https://avatars.githubusercontent.com/u/1540531?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrisker","html_url":"https://github.com/tbrisker","followers_url":"https://api.github.com/users/tbrisker/followers","following_url":"https://api.github.com/users/tbrisker/following{/other_user}","gists_url":"https://api.github.com/users/tbrisker/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrisker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrisker/subscriptions","organizations_url":"https://api.github.com/users/tbrisker/orgs","repos_url":"https://api.github.com/users/tbrisker/repos","events_url":"https://api.github.com/users/tbrisker/events{/privacy}","received_events_url":"https://api.github.com/users/tbrisker/received_events","type":"User","site_admin":false},"repo":{"id":22373475,"name":"foreman","full_name":"tbrisker/foreman","owner":{"login":"tbrisker","id":1540531,"avatar_url":"https://avatars.githubusercontent.com/u/1540531?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrisker","html_url":"https://github.com/tbrisker","followers_url":"https://api.github.com/users/tbrisker/followers","following_url":"https://api.github.com/users/tbrisker/following{/other_user}","gists_url":"https://api.github.com/users/tbrisker/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrisker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrisker/subscriptions","organizations_url":"https://api.github.com/users/tbrisker/orgs","repos_url":"https://api.github.com/users/tbrisker/repos","events_url":"https://api.github.com/users/tbrisker/events{/privacy}","received_events_url":"https://api.github.com/users/tbrisker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tbrisker/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/tbrisker/foreman","forks_url":"https://api.github.com/repos/tbrisker/foreman/forks","keys_url":"https://api.github.com/repos/tbrisker/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tbrisker/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tbrisker/foreman/teams","hooks_url":"https://api.github.com/repos/tbrisker/foreman/hooks","issue_events_url":"https://api.github.com/repos/tbrisker/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/tbrisker/foreman/events","assignees_url":"https://api.github.com/repos/tbrisker/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/tbrisker/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/tbrisker/foreman/tags","blobs_url":"https://api.github.com/repos/tbrisker/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tbrisker/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tbrisker/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/tbrisker/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tbrisker/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/tbrisker/foreman/languages","stargazers_url":"https://api.github.com/repos/tbrisker/foreman/stargazers","contributors_url":"https://api.github.com/repos/tbrisker/foreman/contributors","subscribers_url":"https://api.github.com/repos/tbrisker/foreman/subscribers","subscription_url":"https://api.github.com/repos/tbrisker/foreman/subscription","commits_url":"https://api.github.com/repos/tbrisker/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/tbrisker/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/tbrisker/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/tbrisker/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/tbrisker/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/tbrisker/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tbrisker/foreman/merges","archive_url":"https://api.github.com/repos/tbrisker/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tbrisker/foreman/downloads","issues_url":"https://api.github.com/repos/tbrisker/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/tbrisker/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/tbrisker/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/tbrisker/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tbrisker/foreman/labels{/name}","releases_url":"https://api.github.com/repos/tbrisker/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/tbrisker/foreman/deployments","created_at":"2014-07-29T08:48:53Z","updated_at":"2016-01-11T13:37:29Z","pushed_at":"2016-08-23T12:54:16Z","git_url":"git://github.com/tbrisker/foreman.git","ssh_url":"git@github.com:tbrisker/foreman.git","clone_url":"https://github.com/tbrisker/foreman.git","svn_url":"https://github.com/tbrisker/foreman","homepage":"http://theforeman.org","size":35705,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"15f2f2918f60ec5af84196c9c5cd026ae5654731","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-23T12:54:17Z","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":89,"forks":543,"open_issues":89,"watchers":1070,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3762"},"html":{"href":"https://github.com/theforeman/foreman/pull/3762"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3762"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3762/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3762/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3762/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/fc2a6eca856ebc7ddb275855016c93b89e702ec3"}}}}
{"actor":{"display_login":"houndci-bot"}}