{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/32740737","id":32740737,"diff_hunk":"@@ -2,6 +2,7 @@ module Api::V2::TaxonomiesController\n   extend ActiveSupport::Concern\n \n   included do\n+    before_filter :rename_config_template","path":"app/controllers/concerns/api/v2/taxonomies_controller.rb","position":4,"original_position":4,"commit_id":"b9965fe1f813ca7dedab57bb153b1d42ae7118b6","original_commit_id":"b9965fe1f813ca7dedab57bb153b1d42ae7118b6","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},"body":"Add `:only ` to run it only on the actions where you could be passing the parameter. Also it looks like you can probably avoid going in the method with an `:if` here `  if params[taxonomy_single] && params[taxonomy_single][:config_template_ids].present?`","created_at":"2015-06-18T15:13:00Z","updated_at":"2015-06-18T15:13:00Z","html_url":"https://github.com/theforeman/foreman/pull/2470#discussion_r32740737","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/2470","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/32740737"},"html":{"href":"https://github.com/theforeman/foreman/pull/2470#discussion_r32740737"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/2470"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/2470","id":37913320,"html_url":"https://github.com/theforeman/foreman/pull/2470","diff_url":"https://github.com/theforeman/foreman/pull/2470.diff","patch_url":"https://github.com/theforeman/foreman/pull/2470.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/2470","number":2470,"state":"open","locked":false,"title":"Fixes #10853 - add config_template_ids back to organization","user":{"login":"mbacovsky","id":1648174,"avatar_url":"https://avatars.githubusercontent.com/u/1648174?v=3","gravatar_id":"","url":"https://api.github.com/users/mbacovsky","html_url":"https://github.com/mbacovsky","followers_url":"https://api.github.com/users/mbacovsky/followers","following_url":"https://api.github.com/users/mbacovsky/following{/other_user}","gists_url":"https://api.github.com/users/mbacovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacovsky/subscriptions","organizations_url":"https://api.github.com/users/mbacovsky/orgs","repos_url":"https://api.github.com/users/mbacovsky/repos","events_url":"https://api.github.com/users/mbacovsky/events{/privacy}","received_events_url":"https://api.github.com/users/mbacovsky/received_events","type":"User","site_admin":false},"body":"before_filter converting `config_template_ids` to `provisioning_template_ids` is missing from `taxonomies` which is breaking backward compatibility and hammer bats tests","created_at":"2015-06-17T15:26:23Z","updated_at":"2015-06-18T15:13:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fabac199be4e8313b9f7efb4fd59787a0fe9065","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/2470/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/2470/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/2470/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/b9965fe1f813ca7dedab57bb153b1d42ae7118b6","head":{"label":"mbacovsky:10853_config_template_ids","ref":"10853_config_template_ids","sha":"b9965fe1f813ca7dedab57bb153b1d42ae7118b6","user":{"login":"mbacovsky","id":1648174,"avatar_url":"https://avatars.githubusercontent.com/u/1648174?v=3","gravatar_id":"","url":"https://api.github.com/users/mbacovsky","html_url":"https://github.com/mbacovsky","followers_url":"https://api.github.com/users/mbacovsky/followers","following_url":"https://api.github.com/users/mbacovsky/following{/other_user}","gists_url":"https://api.github.com/users/mbacovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacovsky/subscriptions","organizations_url":"https://api.github.com/users/mbacovsky/orgs","repos_url":"https://api.github.com/users/mbacovsky/repos","events_url":"https://api.github.com/users/mbacovsky/events{/privacy}","received_events_url":"https://api.github.com/users/mbacovsky/received_events","type":"User","site_admin":false},"repo":{"id":4673093,"name":"foreman","full_name":"mbacovsky/foreman","owner":{"login":"mbacovsky","id":1648174,"avatar_url":"https://avatars.githubusercontent.com/u/1648174?v=3","gravatar_id":"","url":"https://api.github.com/users/mbacovsky","html_url":"https://github.com/mbacovsky","followers_url":"https://api.github.com/users/mbacovsky/followers","following_url":"https://api.github.com/users/mbacovsky/following{/other_user}","gists_url":"https://api.github.com/users/mbacovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacovsky/subscriptions","organizations_url":"https://api.github.com/users/mbacovsky/orgs","repos_url":"https://api.github.com/users/mbacovsky/repos","events_url":"https://api.github.com/users/mbacovsky/events{/privacy}","received_events_url":"https://api.github.com/users/mbacovsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbacovsky/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/mbacovsky/foreman","forks_url":"https://api.github.com/repos/mbacovsky/foreman/forks","keys_url":"https://api.github.com/repos/mbacovsky/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbacovsky/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbacovsky/foreman/teams","hooks_url":"https://api.github.com/repos/mbacovsky/foreman/hooks","issue_events_url":"https://api.github.com/repos/mbacovsky/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/mbacovsky/foreman/events","assignees_url":"https://api.github.com/repos/mbacovsky/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/mbacovsky/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/mbacovsky/foreman/tags","blobs_url":"https://api.github.com/repos/mbacovsky/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbacovsky/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbacovsky/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbacovsky/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbacovsky/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/mbacovsky/foreman/languages","stargazers_url":"https://api.github.com/repos/mbacovsky/foreman/stargazers","contributors_url":"https://api.github.com/repos/mbacovsky/foreman/contributors","subscribers_url":"https://api.github.com/repos/mbacovsky/foreman/subscribers","subscription_url":"https://api.github.com/repos/mbacovsky/foreman/subscription","commits_url":"https://api.github.com/repos/mbacovsky/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbacovsky/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbacovsky/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbacovsky/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbacovsky/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/mbacovsky/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbacovsky/foreman/merges","archive_url":"https://api.github.com/repos/mbacovsky/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbacovsky/foreman/downloads","issues_url":"https://api.github.com/repos/mbacovsky/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/mbacovsky/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/mbacovsky/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/mbacovsky/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbacovsky/foreman/labels{/name}","releases_url":"https://api.github.com/repos/mbacovsky/foreman/releases{/id}","created_at":"2012-06-15T08:42:12Z","updated_at":"2014-07-17T10:32:08Z","pushed_at":"2015-06-18T12:10:57Z","git_url":"git://github.com/mbacovsky/foreman.git","ssh_url":"git@github.com:mbacovsky/foreman.git","clone_url":"https://github.com/mbacovsky/foreman.git","svn_url":"https://github.com/mbacovsky/foreman","homepage":"http://theforeman.org","size":23361,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"6d3bf6b4e5a327cd5a7a15ceb7bdc64b1c430634","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":"2015-06-18T10:09:19Z","pushed_at":"2015-06-18T14:50:00Z","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":81999,"stargazers_count":781,"watchers_count":781,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":399,"mirror_url":null,"open_issues_count":86,"forks":399,"open_issues":86,"watchers":781,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/2470"},"html":{"href":"https://github.com/theforeman/foreman/pull/2470"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/2470"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/2470/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/2470/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/2470/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/b9965fe1f813ca7dedab57bb153b1d42ae7118b6"}}}}