{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/65949367","id":65949367,"diff_hunk":"@@ -2,7 +2,7 @@ class PuppetclassLookupKey < LookupKey\n   has_many :environment_classes, :dependent => :destroy\n   has_many :environments, -> { uniq }, :through => :environment_classes\n   has_many :param_classes, :through => :environment_classes, :source => :puppetclass\n-  before_validation :check_override_selected, :if => -> { persisted? && @validation_context != :importer }\n+  before_validation :check_override_selected, :if => -> { persisted? && @validation_context != :importer && changed.present? }","path":"app/models/lookup_keys/puppetclass_lookup_key.rb","position":5,"original_position":5,"commit_id":"5ed09d9535dc6078fd96d4884bae4985cdb20e04","original_commit_id":"5ed09d9535dc6078fd96d4884bae4985cdb20e04","user":{"login":"tbrisker","id":1540531,"avatar_url":"https://avatars.githubusercontent.com/u/1540531?v=3","gravatar_id":"","url":"https://api.github.com/users/tbrisker","html_url":"https://github.com/tbrisker","followers_url":"https://api.github.com/users/tbrisker/followers","following_url":"https://api.github.com/users/tbrisker/following{/other_user}","gists_url":"https://api.github.com/users/tbrisker/gists{/gist_id}","starred_url":"https://api.github.com/users/tbrisker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbrisker/subscriptions","organizations_url":"https://api.github.com/users/tbrisker/orgs","repos_url":"https://api.github.com/users/tbrisker/repos","events_url":"https://api.github.com/users/tbrisker/events{/privacy}","received_events_url":"https://api.github.com/users/tbrisker/received_events","type":"User","site_admin":false},"body":"you can use `changed?` instead of `changed.present?`","created_at":"2016-06-06T19:06:59Z","updated_at":"2016-06-06T19:06:59Z","html_url":"https://github.com/theforeman/foreman/pull/3573#discussion_r65949367","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/3573","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/65949367"},"html":{"href":"https://github.com/theforeman/foreman/pull/3573#discussion_r65949367"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3573"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/3573","id":72754287,"html_url":"https://github.com/theforeman/foreman/pull/3573","diff_url":"https://github.com/theforeman/foreman/pull/3573.diff","patch_url":"https://github.com/theforeman/foreman/pull/3573.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/3573","number":3573,"state":"open","locked":false,"title":"Fixes #15308 - Override validation doesn't run without changes","user":{"login":"orrabin","id":7894647,"avatar_url":"https://avatars.githubusercontent.com/u/7894647?v=3","gravatar_id":"","url":"https://api.github.com/users/orrabin","html_url":"https://github.com/orrabin","followers_url":"https://api.github.com/users/orrabin/followers","following_url":"https://api.github.com/users/orrabin/following{/other_user}","gists_url":"https://api.github.com/users/orrabin/gists{/gist_id}","starred_url":"https://api.github.com/users/orrabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orrabin/subscriptions","organizations_url":"https://api.github.com/users/orrabin/orgs","repos_url":"https://api.github.com/users/orrabin/repos","events_url":"https://api.github.com/users/orrabin/events{/privacy}","received_events_url":"https://api.github.com/users/orrabin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-06T18:22:21Z","updated_at":"2016-06-06T19:06:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0339198112a830b0a7deef001140dcec2c2f87b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/3573/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/3573/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/3573/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/5ed09d9535dc6078fd96d4884bae4985cdb20e04","head":{"label":"orrabin:15308","ref":"15308","sha":"5ed09d9535dc6078fd96d4884bae4985cdb20e04","user":{"login":"orrabin","id":7894647,"avatar_url":"https://avatars.githubusercontent.com/u/7894647?v=3","gravatar_id":"","url":"https://api.github.com/users/orrabin","html_url":"https://github.com/orrabin","followers_url":"https://api.github.com/users/orrabin/followers","following_url":"https://api.github.com/users/orrabin/following{/other_user}","gists_url":"https://api.github.com/users/orrabin/gists{/gist_id}","starred_url":"https://api.github.com/users/orrabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orrabin/subscriptions","organizations_url":"https://api.github.com/users/orrabin/orgs","repos_url":"https://api.github.com/users/orrabin/repos","events_url":"https://api.github.com/users/orrabin/events{/privacy}","received_events_url":"https://api.github.com/users/orrabin/received_events","type":"User","site_admin":false},"repo":{"id":20857418,"name":"foreman","full_name":"orrabin/foreman","owner":{"login":"orrabin","id":7894647,"avatar_url":"https://avatars.githubusercontent.com/u/7894647?v=3","gravatar_id":"","url":"https://api.github.com/users/orrabin","html_url":"https://github.com/orrabin","followers_url":"https://api.github.com/users/orrabin/followers","following_url":"https://api.github.com/users/orrabin/following{/other_user}","gists_url":"https://api.github.com/users/orrabin/gists{/gist_id}","starred_url":"https://api.github.com/users/orrabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orrabin/subscriptions","organizations_url":"https://api.github.com/users/orrabin/orgs","repos_url":"https://api.github.com/users/orrabin/repos","events_url":"https://api.github.com/users/orrabin/events{/privacy}","received_events_url":"https://api.github.com/users/orrabin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/orrabin/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/orrabin/foreman","forks_url":"https://api.github.com/repos/orrabin/foreman/forks","keys_url":"https://api.github.com/repos/orrabin/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orrabin/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orrabin/foreman/teams","hooks_url":"https://api.github.com/repos/orrabin/foreman/hooks","issue_events_url":"https://api.github.com/repos/orrabin/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/orrabin/foreman/events","assignees_url":"https://api.github.com/repos/orrabin/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/orrabin/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/orrabin/foreman/tags","blobs_url":"https://api.github.com/repos/orrabin/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orrabin/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orrabin/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/orrabin/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orrabin/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/orrabin/foreman/languages","stargazers_url":"https://api.github.com/repos/orrabin/foreman/stargazers","contributors_url":"https://api.github.com/repos/orrabin/foreman/contributors","subscribers_url":"https://api.github.com/repos/orrabin/foreman/subscribers","subscription_url":"https://api.github.com/repos/orrabin/foreman/subscription","commits_url":"https://api.github.com/repos/orrabin/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/orrabin/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/orrabin/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/orrabin/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/orrabin/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/orrabin/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orrabin/foreman/merges","archive_url":"https://api.github.com/repos/orrabin/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orrabin/foreman/downloads","issues_url":"https://api.github.com/repos/orrabin/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/orrabin/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/orrabin/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/orrabin/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orrabin/foreman/labels{/name}","releases_url":"https://api.github.com/repos/orrabin/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/orrabin/foreman/deployments","created_at":"2014-06-15T14:38:41Z","updated_at":"2014-06-29T14:44:11Z","pushed_at":"2016-06-06T18:22:00Z","git_url":"git://github.com/orrabin/foreman.git","ssh_url":"git@github.com:orrabin/foreman.git","clone_url":"https://github.com/orrabin/foreman.git","svn_url":"https://github.com/orrabin/foreman","homepage":"http://theforeman.org","size":38991,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"f358e67675391aaf8151f6c55227d3a6919738a9","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}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2016-06-01T12:49:59Z","pushed_at":"2016-06-06T18:22:21Z","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":69571,"stargazers_count":1024,"watchers_count":1024,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":525,"mirror_url":null,"open_issues_count":70,"forks":525,"open_issues":70,"watchers":1024,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3573"},"html":{"href":"https://github.com/theforeman/foreman/pull/3573"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3573"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/3573/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3573/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/3573/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/5ed09d9535dc6078fd96d4884bae4985cdb20e04"}}}}
{"actor":{"display_login":"tbrisker"}}