{"action":"created","issue":{"url":"https://api.github.com/repos/EBWiki/EBWiki/issues/1302","repository_url":"https://api.github.com/repos/EBWiki/EBWiki","labels_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/1302/labels{/name}","comments_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/1302/comments","events_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/1302/events","html_url":"https://github.com/EBWiki/EBWiki/issues/1302","id":300925483,"number":1302,"title":"refactor check_for_empty_fields into Article/Case validator","user":{"login":"trystant","id":13509,"avatar_url":"https://avatars0.githubusercontent.com/u/13509?v=4","gravatar_id":"","url":"https://api.github.com/users/trystant","html_url":"https://github.com/trystant","followers_url":"https://api.github.com/users/trystant/followers","following_url":"https://api.github.com/users/trystant/following{/other_user}","gists_url":"https://api.github.com/users/trystant/gists{/gist_id}","starred_url":"https://api.github.com/users/trystant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trystant/subscriptions","organizations_url":"https://api.github.com/users/trystant/orgs","repos_url":"https://api.github.com/users/trystant/repos","events_url":"https://api.github.com/users/trystant/events{/privacy}","received_events_url":"https://api.github.com/users/trystant/received_events","type":"User","site_admin":false},"labels":[{"id":219026727,"url":"https://api.github.com/repos/EBWiki/EBWiki/labels/bug","name":"bug","color":"fc2929","default":true},{"id":251383680,"url":"https://api.github.com/repos/EBWiki/EBWiki/labels/technical%20debt","name":"technical debt","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-28T07:59:42Z","updated_at":"2018-03-15T19:25:31Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following method:\r\n\r\n```\r\n def check_for_empty_fields\r\n    attrs = %w[title date address city state zipcode state_id avatar video_url overview community_action litigation country remove_avatar]\r\n\r\n    unless (changed & attrs).any?\r\n      errors[:base] << 'You must change field other than summary to generate a new version'\r\n    end\r\n  end\r\n```\r\n\r\nshould be refactored into a custom [Validator](http://guides.rubyonrails.org/v4.2/active_record_validations.html#custom-validators) with accompanying spec."},"comment":{"url":"https://api.github.com/repos/EBWiki/EBWiki/issues/comments/373494635","html_url":"https://github.com/EBWiki/EBWiki/issues/1302#issuecomment-373494635","issue_url":"https://api.github.com/repos/EBWiki/EBWiki/issues/1302","id":373494635,"user":{"login":"rlgreen91","id":1738068,"avatar_url":"https://avatars2.githubusercontent.com/u/1738068?v=4","gravatar_id":"","url":"https://api.github.com/users/rlgreen91","html_url":"https://github.com/rlgreen91","followers_url":"https://api.github.com/users/rlgreen91/followers","following_url":"https://api.github.com/users/rlgreen91/following{/other_user}","gists_url":"https://api.github.com/users/rlgreen91/gists{/gist_id}","starred_url":"https://api.github.com/users/rlgreen91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlgreen91/subscriptions","organizations_url":"https://api.github.com/users/rlgreen91/orgs","repos_url":"https://api.github.com/users/rlgreen91/repos","events_url":"https://api.github.com/users/rlgreen91/events{/privacy}","received_events_url":"https://api.github.com/users/rlgreen91/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T19:25:31Z","updated_at":"2018-03-15T19:25:31Z","author_association":"CONTRIBUTOR","body":"@trystant Is there a reason why we shouldn't opt for client-side validation?"}}
{"actor":{"display_login":"rlgreen91"}}