{"action":"opened","number":5814,"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/5814","id":200430303,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNDMwMzAz","html_url":"https://github.com/theforeman/foreman/pull/5814","diff_url":"https://github.com/theforeman/foreman/pull/5814.diff","patch_url":"https://github.com/theforeman/foreman/pull/5814.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/5814","number":5814,"state":"open","locked":false,"title":"[WIP] Fixes #xywuv - Add hosts_count, can_edit/delete to models API","user":{"login":"ripcurld","id":2453279,"node_id":"MDQ6VXNlcjI0NTMyNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/2453279?v=4","gravatar_id":"","url":"https://api.github.com/users/ripcurld","html_url":"https://github.com/ripcurld","followers_url":"https://api.github.com/users/ripcurld/followers","following_url":"https://api.github.com/users/ripcurld/following{/other_user}","gists_url":"https://api.github.com/users/ripcurld/gists{/gist_id}","starred_url":"https://api.github.com/users/ripcurld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripcurld/subscriptions","organizations_url":"https://api.github.com/users/ripcurld/orgs","repos_url":"https://api.github.com/users/ripcurld/repos","events_url":"https://api.github.com/users/ripcurld/events{/privacy}","received_events_url":"https://api.github.com/users/ripcurld/received_events","type":"User","site_admin":false},"body":"During the process of moving Hardware Models to a React page the current API was missing significant details that are rendered in the Backend before the page is sent to the user.\r\n\r\nFor example, whether the user is allowed to edit a model or not\r\n\r\nThis information should be moved to the API because in the new page, once the page is rendered by Rails any communication is going to be done through the API and by that Rails won't render the page or part of it again.\r\n\r\n// @ohadlevy @timogoebel ","created_at":"2018-07-10T15:10:11Z","updated_at":"2018-07-10T15:10:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/5814/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/5814/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/5814/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/69a172b9846fa4cb2c0752f7a2bf781a059b9fe7","head":{"label":"ripcurld:add_permissions_to_rabl","ref":"add_permissions_to_rabl","sha":"69a172b9846fa4cb2c0752f7a2bf781a059b9fe7","user":{"login":"ripcurld","id":2453279,"node_id":"MDQ6VXNlcjI0NTMyNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/2453279?v=4","gravatar_id":"","url":"https://api.github.com/users/ripcurld","html_url":"https://github.com/ripcurld","followers_url":"https://api.github.com/users/ripcurld/followers","following_url":"https://api.github.com/users/ripcurld/following{/other_user}","gists_url":"https://api.github.com/users/ripcurld/gists{/gist_id}","starred_url":"https://api.github.com/users/ripcurld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripcurld/subscriptions","organizations_url":"https://api.github.com/users/ripcurld/orgs","repos_url":"https://api.github.com/users/ripcurld/repos","events_url":"https://api.github.com/users/ripcurld/events{/privacy}","received_events_url":"https://api.github.com/users/ripcurld/received_events","type":"User","site_admin":false},"repo":{"id":116952894,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5NTI4OTQ=","name":"foreman","full_name":"ripcurld/foreman","owner":{"login":"ripcurld","id":2453279,"node_id":"MDQ6VXNlcjI0NTMyNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/2453279?v=4","gravatar_id":"","url":"https://api.github.com/users/ripcurld","html_url":"https://github.com/ripcurld","followers_url":"https://api.github.com/users/ripcurld/followers","following_url":"https://api.github.com/users/ripcurld/following{/other_user}","gists_url":"https://api.github.com/users/ripcurld/gists{/gist_id}","starred_url":"https://api.github.com/users/ripcurld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripcurld/subscriptions","organizations_url":"https://api.github.com/users/ripcurld/orgs","repos_url":"https://api.github.com/users/ripcurld/repos","events_url":"https://api.github.com/users/ripcurld/events{/privacy}","received_events_url":"https://api.github.com/users/ripcurld/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ripcurld/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/ripcurld/foreman","forks_url":"https://api.github.com/repos/ripcurld/foreman/forks","keys_url":"https://api.github.com/repos/ripcurld/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripcurld/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripcurld/foreman/teams","hooks_url":"https://api.github.com/repos/ripcurld/foreman/hooks","issue_events_url":"https://api.github.com/repos/ripcurld/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/ripcurld/foreman/events","assignees_url":"https://api.github.com/repos/ripcurld/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/ripcurld/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/ripcurld/foreman/tags","blobs_url":"https://api.github.com/repos/ripcurld/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripcurld/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripcurld/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripcurld/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripcurld/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/ripcurld/foreman/languages","stargazers_url":"https://api.github.com/repos/ripcurld/foreman/stargazers","contributors_url":"https://api.github.com/repos/ripcurld/foreman/contributors","subscribers_url":"https://api.github.com/repos/ripcurld/foreman/subscribers","subscription_url":"https://api.github.com/repos/ripcurld/foreman/subscription","commits_url":"https://api.github.com/repos/ripcurld/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripcurld/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripcurld/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripcurld/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripcurld/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/ripcurld/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripcurld/foreman/merges","archive_url":"https://api.github.com/repos/ripcurld/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripcurld/foreman/downloads","issues_url":"https://api.github.com/repos/ripcurld/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/ripcurld/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/ripcurld/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/ripcurld/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripcurld/foreman/labels{/name}","releases_url":"https://api.github.com/repos/ripcurld/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/ripcurld/foreman/deployments","created_at":"2018-01-10T12:08:52Z","updated_at":"2018-07-10T08:02:15Z","pushed_at":"2018-07-10T15:05:49Z","git_url":"git://github.com/ripcurld/foreman.git","ssh_url":"git@github.com:ripcurld/foreman.git","clone_url":"https://github.com/ripcurld/foreman.git","svn_url":"https://github.com/ripcurld/foreman","homepage":"http://theforeman.org","size":73633,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"b51f2297738fec87bd7bbf791fcd024854109f50","user":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyNTg3NTA=","name":"foreman","full_name":"theforeman/foreman","owner":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","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":"2018-07-10T15:00:37Z","pushed_at":"2018-07-10T15:06:01Z","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":75465,"stargazers_count":1457,"watchers_count":1457,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":743,"mirror_url":null,"archived":false,"open_issues_count":133,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":743,"open_issues":133,"watchers":1457,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5814"},"html":{"href":"https://github.com/theforeman/foreman/pull/5814"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/5814"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/5814/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5814/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/5814/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/69a172b9846fa4cb2c0752f7a2bf781a059b9fe7"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":27,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"ripcurld"}}