{"action":"created","comment":{"url":"https://api.github.com/repos/Katello/katello/pulls/comments/44863474","id":44863474,"diff_hunk":"@@ -32,8 +32,9 @@ module OrganizationExtensions\n         has_many :org_tasks, :dependent => :destroy, :class_name => \"Katello::TaskStatus\", :inverse_of => :organization\n \n         attr_accessor :statistics\n+        attr_accessible :label\n \n-        scope :having_name_or_label, ->(name_or_label) { { :conditions => [\"name = :id or label = :id\", {:id => name_or_label}] } }\n+        scope :having_name_or_label, ->(name_or_label) { where(\"name = :id or label = :id\", { :id => name_or_label } )","path":"app/models/katello/concerns/organization_extensions.rb","position":7,"original_position":7,"commit_id":"128d7c080c3a7d818d6807f1557c1405c90b7411","original_commit_id":"128d7c080c3a7d818d6807f1557c1405c90b7411","user":{"login":"daviddavis","id":86290,"avatar_url":"https://avatars.githubusercontent.com/u/86290?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddavis","html_url":"https://github.com/daviddavis","followers_url":"https://api.github.com/users/daviddavis/followers","following_url":"https://api.github.com/users/daviddavis/following{/other_user}","gists_url":"https://api.github.com/users/daviddavis/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddavis/subscriptions","organizations_url":"https://api.github.com/users/daviddavis/orgs","repos_url":"https://api.github.com/users/daviddavis/repos","events_url":"https://api.github.com/users/daviddavis/events{/privacy}","received_events_url":"https://api.github.com/users/daviddavis/received_events","type":"User","site_admin":false},"body":"How does this work? Looks like it's missing a `}`.","created_at":"2015-11-14T20:55:15Z","updated_at":"2015-11-14T20:55:15Z","html_url":"https://github.com/Katello/katello/pull/5587#discussion_r44863474","pull_request_url":"https://api.github.com/repos/Katello/katello/pulls/5587","_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments/44863474"},"html":{"href":"https://github.com/Katello/katello/pull/5587#discussion_r44863474"},"pull_request":{"href":"https://api.github.com/repos/Katello/katello/pulls/5587"}}},"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/5587","id":50629949,"html_url":"https://github.com/Katello/katello/pull/5587","diff_url":"https://github.com/Katello/katello/pull/5587.diff","patch_url":"https://github.com/Katello/katello/pull/5587.patch","issue_url":"https://api.github.com/repos/Katello/katello/issues/5587","number":5587,"state":"open","locked":false,"title":"Fixes #12468 - Add attr_accessible to Organization label for Rails 4","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"body":"Multiple tests try to mass_assign :label by calling\r\nOrganization.create!(:name => '', :label => ''), but that's not allowed\r\non Rails 4 without explicitly marking it as allowed.\r\n\r\nSee spec/models/pulp_task_status_spec.rb line 62 for an example.","created_at":"2015-11-13T11:18:45Z","updated_at":"2015-11-14T20:55:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5f395e30840ae7d305251199476b58ab3069162","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Katello/katello/pulls/5587/commits","review_comments_url":"https://api.github.com/repos/Katello/katello/pulls/5587/comments","review_comment_url":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Katello/katello/issues/5587/comments","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/128d7c080c3a7d818d6807f1557c1405c90b7411","head":{"label":"dLobatog:12468","ref":"12468","sha":"128d7c080c3a7d818d6807f1557c1405c90b7411","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"repo":{"id":20353300,"name":"katello","full_name":"dLobatog/katello","owner":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dLobatog/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":true,"url":"https://api.github.com/repos/dLobatog/katello","forks_url":"https://api.github.com/repos/dLobatog/katello/forks","keys_url":"https://api.github.com/repos/dLobatog/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dLobatog/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dLobatog/katello/teams","hooks_url":"https://api.github.com/repos/dLobatog/katello/hooks","issue_events_url":"https://api.github.com/repos/dLobatog/katello/issues/events{/number}","events_url":"https://api.github.com/repos/dLobatog/katello/events","assignees_url":"https://api.github.com/repos/dLobatog/katello/assignees{/user}","branches_url":"https://api.github.com/repos/dLobatog/katello/branches{/branch}","tags_url":"https://api.github.com/repos/dLobatog/katello/tags","blobs_url":"https://api.github.com/repos/dLobatog/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dLobatog/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dLobatog/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/dLobatog/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dLobatog/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/dLobatog/katello/languages","stargazers_url":"https://api.github.com/repos/dLobatog/katello/stargazers","contributors_url":"https://api.github.com/repos/dLobatog/katello/contributors","subscribers_url":"https://api.github.com/repos/dLobatog/katello/subscribers","subscription_url":"https://api.github.com/repos/dLobatog/katello/subscription","commits_url":"https://api.github.com/repos/dLobatog/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/dLobatog/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/dLobatog/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/dLobatog/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/dLobatog/katello/contents/{+path}","compare_url":"https://api.github.com/repos/dLobatog/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dLobatog/katello/merges","archive_url":"https://api.github.com/repos/dLobatog/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dLobatog/katello/downloads","issues_url":"https://api.github.com/repos/dLobatog/katello/issues{/number}","pulls_url":"https://api.github.com/repos/dLobatog/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/dLobatog/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/dLobatog/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dLobatog/katello/labels{/name}","releases_url":"https://api.github.com/repos/dLobatog/katello/releases{/id}","created_at":"2014-05-31T09:52:02Z","updated_at":"2015-01-29T00:37:41Z","pushed_at":"2015-11-13T11:18:25Z","git_url":"git://github.com/dLobatog/katello.git","ssh_url":"git@github.com:dLobatog/katello.git","clone_url":"https://github.com/dLobatog/katello.git","svn_url":"https://github.com/dLobatog/katello","homepage":"katello.org","size":78834,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Katello:rails4","ref":"rails4","sha":"ecbc9be9af3295b693117ffa9c98b6d01e49b317","user":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"repo":{"id":4007018,"name":"katello","full_name":"Katello/katello","owner":{"login":"Katello","id":1316386,"avatar_url":"https://avatars.githubusercontent.com/u/1316386?v=3","gravatar_id":"","url":"https://api.github.com/users/Katello","html_url":"https://github.com/Katello","followers_url":"https://api.github.com/users/Katello/followers","following_url":"https://api.github.com/users/Katello/following{/other_user}","gists_url":"https://api.github.com/users/Katello/gists{/gist_id}","starred_url":"https://api.github.com/users/Katello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Katello/subscriptions","organizations_url":"https://api.github.com/users/Katello/orgs","repos_url":"https://api.github.com/users/Katello/repos","events_url":"https://api.github.com/users/Katello/events{/privacy}","received_events_url":"https://api.github.com/users/Katello/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Katello/katello","description":"Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.","fork":false,"url":"https://api.github.com/repos/Katello/katello","forks_url":"https://api.github.com/repos/Katello/katello/forks","keys_url":"https://api.github.com/repos/Katello/katello/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Katello/katello/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Katello/katello/teams","hooks_url":"https://api.github.com/repos/Katello/katello/hooks","issue_events_url":"https://api.github.com/repos/Katello/katello/issues/events{/number}","events_url":"https://api.github.com/repos/Katello/katello/events","assignees_url":"https://api.github.com/repos/Katello/katello/assignees{/user}","branches_url":"https://api.github.com/repos/Katello/katello/branches{/branch}","tags_url":"https://api.github.com/repos/Katello/katello/tags","blobs_url":"https://api.github.com/repos/Katello/katello/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Katello/katello/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Katello/katello/git/refs{/sha}","trees_url":"https://api.github.com/repos/Katello/katello/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Katello/katello/statuses/{sha}","languages_url":"https://api.github.com/repos/Katello/katello/languages","stargazers_url":"https://api.github.com/repos/Katello/katello/stargazers","contributors_url":"https://api.github.com/repos/Katello/katello/contributors","subscribers_url":"https://api.github.com/repos/Katello/katello/subscribers","subscription_url":"https://api.github.com/repos/Katello/katello/subscription","commits_url":"https://api.github.com/repos/Katello/katello/commits{/sha}","git_commits_url":"https://api.github.com/repos/Katello/katello/git/commits{/sha}","comments_url":"https://api.github.com/repos/Katello/katello/comments{/number}","issue_comment_url":"https://api.github.com/repos/Katello/katello/issues/comments{/number}","contents_url":"https://api.github.com/repos/Katello/katello/contents/{+path}","compare_url":"https://api.github.com/repos/Katello/katello/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Katello/katello/merges","archive_url":"https://api.github.com/repos/Katello/katello/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Katello/katello/downloads","issues_url":"https://api.github.com/repos/Katello/katello/issues{/number}","pulls_url":"https://api.github.com/repos/Katello/katello/pulls{/number}","milestones_url":"https://api.github.com/repos/Katello/katello/milestones{/number}","notifications_url":"https://api.github.com/repos/Katello/katello/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Katello/katello/labels{/name}","releases_url":"https://api.github.com/repos/Katello/katello/releases{/id}","created_at":"2012-04-12T16:59:08Z","updated_at":"2015-11-05T08:08:22Z","pushed_at":"2015-11-13T21:43:38Z","git_url":"git://github.com/Katello/katello.git","ssh_url":"git@github.com:Katello/katello.git","clone_url":"https://github.com/Katello/katello.git","svn_url":"https://github.com/Katello/katello","homepage":"katello.org","size":239762,"stargazers_count":171,"watchers_count":171,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":106,"forks":115,"open_issues":106,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Katello/katello/pulls/5587"},"html":{"href":"https://github.com/Katello/katello/pull/5587"},"issue":{"href":"https://api.github.com/repos/Katello/katello/issues/5587"},"comments":{"href":"https://api.github.com/repos/Katello/katello/issues/5587/comments"},"review_comments":{"href":"https://api.github.com/repos/Katello/katello/pulls/5587/comments"},"review_comment":{"href":"https://api.github.com/repos/Katello/katello/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Katello/katello/pulls/5587/commits"},"statuses":{"href":"https://api.github.com/repos/Katello/katello/statuses/128d7c080c3a7d818d6807f1557c1405c90b7411"}}}}