{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman/issues/2448","labels_url":"https://api.github.com/repos/theforeman/foreman/issues/2448/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/2448/comments","events_url":"https://api.github.com/repos/theforeman/foreman/issues/2448/events","html_url":"https://github.com/theforeman/foreman/pull/2448","id":86960847,"number":2448,"title":"fixes #10627 - apply host taxonomy scope to facts/report joins","user":{"login":"domcleal","id":482089,"avatar_url":"https://avatars.githubusercontent.com/u/482089?v=3","gravatar_id":"","url":"https://api.github.com/users/domcleal","html_url":"https://github.com/domcleal","followers_url":"https://api.github.com/users/domcleal/followers","following_url":"https://api.github.com/users/domcleal/following{/other_user}","gists_url":"https://api.github.com/users/domcleal/gists{/gist_id}","starred_url":"https://api.github.com/users/domcleal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domcleal/subscriptions","organizations_url":"https://api.github.com/users/domcleal/orgs","repos_url":"https://api.github.com/users/domcleal/repos","events_url":"https://api.github.com/users/domcleal/events{/privacy}","received_events_url":"https://api.github.com/users/domcleal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20testing","name":"Needs testing","color":"fbca04"},{"url":"https://api.github.com/repos/theforeman/foreman/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T12:52:30Z","updated_at":"2015-06-11T06:25:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/2448","html_url":"https://github.com/theforeman/foreman/pull/2448","diff_url":"https://github.com/theforeman/foreman/pull/2448.diff","patch_url":"https://github.com/theforeman/foreman/pull/2448.patch"},"body":"Previous changes to perform a join onto hosts with authorisation result\r\nin a query such as Report.joins(:hosts), which ignores any\r\ndefault_scope on Host::Base.  This commit explicitly passes taxonomy\r\nconditionals into the Authorizer to re-apply it.\r\n\r\n---\r\n\r\nTaxonomies + default scopes + authorisation = hell."},"comment":{"url":"https://api.github.com/repos/theforeman/foreman/issues/comments/111012751","html_url":"https://github.com/theforeman/foreman/pull/2448#issuecomment-111012751","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/2448","id":111012751,"user":{"login":"eLobato","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/eLobato","html_url":"https://github.com/eLobato","followers_url":"https://api.github.com/users/eLobato/followers","following_url":"https://api.github.com/users/eLobato/following{/other_user}","gists_url":"https://api.github.com/users/eLobato/gists{/gist_id}","starred_url":"https://api.github.com/users/eLobato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLobato/subscriptions","organizations_url":"https://api.github.com/users/eLobato/orgs","repos_url":"https://api.github.com/users/eLobato/repos","events_url":"https://api.github.com/users/eLobato/events{/privacy}","received_events_url":"https://api.github.com/users/eLobato/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T06:25:19Z","updated_at":"2015-06-11T06:25:19Z","body":"Merged as ed4473b9e7510d6bd7e6e5d02199c504932bf67a, thanks @domcleal! "}}