{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/49115721","id":49115721,"diff_hunk":"@@ -0,0 +1,10 @@\n+module Pages\n+  class Widget\n+    attr_reader :name, :partial\n+\n+    def initialize(opts)\n+      opts[:name] ? @name = opts[:name] : fail(\"Widget should have a name\")","path":"app/services/pages/widget.rb","position":6,"original_position":6,"commit_id":"90c9756e5aac83d7ac46ec3da177819dccfa121d","original_commit_id":"90c9756e5aac83d7ac46ec3da177819dccfa121d","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":"should not use fail.","created_at":"2016-01-07T19:37:52Z","updated_at":"2016-01-07T19:37:52Z","html_url":"https://github.com/theforeman/foreman/pull/3023#discussion_r49115721","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/3023","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/49115721"},"html":{"href":"https://github.com/theforeman/foreman/pull/3023#discussion_r49115721"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3023"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/3023","id":55092676,"html_url":"https://github.com/theforeman/foreman/pull/3023","diff_url":"https://github.com/theforeman/foreman/pull/3023.diff","patch_url":"https://github.com/theforeman/foreman/pull/3023.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/3023","number":3023,"state":"open","locked":false,"title":"Fixes #12716 - Extensible show page for smart proxy","user":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"body":"This allows us to create extensible pages. Let me know if this is a step in the right direction.\r\n\r\nWe can register new extensible page with `add_page`. We can extend an already registered page (add more content to it) with `extend_page`. We can also extend the existing tabs with `extend_tab`. \r\nSeveral columns for page/tab can be specified and their content arranged on a page accordingly. Plugins can easily extend registered pages from within their `Engine`, there are usage examples in  services/foreman/plugin.rb ","created_at":"2016-01-05T13:47:29Z","updated_at":"2016-01-07T19:37:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24903a383a1ce1cac34707a322e09b316be2fc8a","assignee":{"login":"lzap","id":49752,"avatar_url":"https://avatars.githubusercontent.com/u/49752?v=3","gravatar_id":"","url":"https://api.github.com/users/lzap","html_url":"https://github.com/lzap","followers_url":"https://api.github.com/users/lzap/followers","following_url":"https://api.github.com/users/lzap/following{/other_user}","gists_url":"https://api.github.com/users/lzap/gists{/gist_id}","starred_url":"https://api.github.com/users/lzap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzap/subscriptions","organizations_url":"https://api.github.com/users/lzap/orgs","repos_url":"https://api.github.com/users/lzap/repos","events_url":"https://api.github.com/users/lzap/events{/privacy}","received_events_url":"https://api.github.com/users/lzap/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/3023/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/3023/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/3023/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/90c9756e5aac83d7ac46ec3da177819dccfa121d","head":{"label":"xprazak2:extend-pages","ref":"extend-pages","sha":"90c9756e5aac83d7ac46ec3da177819dccfa121d","user":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"repo":{"id":33602529,"name":"foreman","full_name":"xprazak2/foreman","owner":{"login":"xprazak2","id":2664090,"avatar_url":"https://avatars.githubusercontent.com/u/2664090?v=3","gravatar_id":"","url":"https://api.github.com/users/xprazak2","html_url":"https://github.com/xprazak2","followers_url":"https://api.github.com/users/xprazak2/followers","following_url":"https://api.github.com/users/xprazak2/following{/other_user}","gists_url":"https://api.github.com/users/xprazak2/gists{/gist_id}","starred_url":"https://api.github.com/users/xprazak2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xprazak2/subscriptions","organizations_url":"https://api.github.com/users/xprazak2/orgs","repos_url":"https://api.github.com/users/xprazak2/repos","events_url":"https://api.github.com/users/xprazak2/events{/privacy}","received_events_url":"https://api.github.com/users/xprazak2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xprazak2/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/xprazak2/foreman","forks_url":"https://api.github.com/repos/xprazak2/foreman/forks","keys_url":"https://api.github.com/repos/xprazak2/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xprazak2/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xprazak2/foreman/teams","hooks_url":"https://api.github.com/repos/xprazak2/foreman/hooks","issue_events_url":"https://api.github.com/repos/xprazak2/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/xprazak2/foreman/events","assignees_url":"https://api.github.com/repos/xprazak2/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/xprazak2/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/xprazak2/foreman/tags","blobs_url":"https://api.github.com/repos/xprazak2/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xprazak2/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xprazak2/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/xprazak2/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xprazak2/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/xprazak2/foreman/languages","stargazers_url":"https://api.github.com/repos/xprazak2/foreman/stargazers","contributors_url":"https://api.github.com/repos/xprazak2/foreman/contributors","subscribers_url":"https://api.github.com/repos/xprazak2/foreman/subscribers","subscription_url":"https://api.github.com/repos/xprazak2/foreman/subscription","commits_url":"https://api.github.com/repos/xprazak2/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/xprazak2/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/xprazak2/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/xprazak2/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/xprazak2/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/xprazak2/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xprazak2/foreman/merges","archive_url":"https://api.github.com/repos/xprazak2/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xprazak2/foreman/downloads","issues_url":"https://api.github.com/repos/xprazak2/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/xprazak2/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/xprazak2/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/xprazak2/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xprazak2/foreman/labels{/name}","releases_url":"https://api.github.com/repos/xprazak2/foreman/releases{/id}","created_at":"2015-04-08T11:23:52Z","updated_at":"2015-04-08T11:23:58Z","pushed_at":"2016-01-07T16:02:42Z","git_url":"git://github.com/xprazak2/foreman.git","ssh_url":"git@github.com:xprazak2/foreman.git","clone_url":"https://github.com/xprazak2/foreman.git","svn_url":"https://github.com/xprazak2/foreman","homepage":"http://theforeman.org","size":36525,"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":"4ef6af366c18eaafebd6f69bb7983abf7f9566ac","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}","created_at":"2009-07-23T15:07:00Z","updated_at":"2016-01-04T20:39:58Z","pushed_at":"2016-01-07T19:25:31Z","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":55048,"stargazers_count":920,"watchers_count":920,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":460,"mirror_url":null,"open_issues_count":93,"forks":460,"open_issues":93,"watchers":920,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3023"},"html":{"href":"https://github.com/theforeman/foreman/pull/3023"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3023"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3023/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3023/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3023/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/90c9756e5aac83d7ac46ec3da177819dccfa121d"}}}}