{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/sharetribe/entity-utils/pulls/1","id":61237461,"html_url":"https://github.com/sharetribe/entity-utils/pull/1","diff_url":"https://github.com/sharetribe/entity-utils/pull/1.diff","patch_url":"https://github.com/sharetribe/entity-utils/pull/1.patch","issue_url":"https://api.github.com/repos/sharetribe/entity-utils/issues/1","number":1,"state":"closed","locked":false,"title":"Add ability to skip validation (by default) in production environment","user":{"login":"rap1ds","id":429876,"avatar_url":"https://avatars.githubusercontent.com/u/429876?v=3","gravatar_id":"","url":"https://api.github.com/users/rap1ds","html_url":"https://github.com/rap1ds","followers_url":"https://api.github.com/users/rap1ds/followers","following_url":"https://api.github.com/users/rap1ds/following{/other_user}","gists_url":"https://api.github.com/users/rap1ds/gists{/gist_id}","starred_url":"https://api.github.com/users/rap1ds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rap1ds/subscriptions","organizations_url":"https://api.github.com/users/rap1ds/orgs","repos_url":"https://api.github.com/users/rap1ds/repos","events_url":"https://api.github.com/users/rap1ds/events{/privacy}","received_events_url":"https://api.github.com/users/rap1ds/received_events","type":"User","site_admin":false},"body":"This PR adds a global configuration `validate` which can be used to turn off the validations. This may be useful for example if you want to turn validations off for production environment:\r\n\r\n```\r\nif Rails.env == \"production\"\r\n  EntityUtils.configure!(validate: false)\r\nend\r\n```\r\n\r\nThe default value for `validate` is `true`\r\n\r\nIn addition, this PR introduces a new method for defining builders, `define_builder_validate_always`. It's similar to `define_builder`, but as the name says, it will always run validations, even if the `validate` global option is set to `false`.","created_at":"2016-03-01T12:51:45Z","updated_at":"2016-03-16T07:54:20Z","closed_at":"2016-03-16T07:54:19Z","merged_at":"2016-03-16T07:54:19Z","merge_commit_sha":"b37a03164c8d47fe4863ed5e371631c60ba2450a","assignee":{"login":"ovan","id":271845,"avatar_url":"https://avatars.githubusercontent.com/u/271845?v=3","gravatar_id":"","url":"https://api.github.com/users/ovan","html_url":"https://github.com/ovan","followers_url":"https://api.github.com/users/ovan/followers","following_url":"https://api.github.com/users/ovan/following{/other_user}","gists_url":"https://api.github.com/users/ovan/gists{/gist_id}","starred_url":"https://api.github.com/users/ovan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovan/subscriptions","organizations_url":"https://api.github.com/users/ovan/orgs","repos_url":"https://api.github.com/users/ovan/repos","events_url":"https://api.github.com/users/ovan/events{/privacy}","received_events_url":"https://api.github.com/users/ovan/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/sharetribe/entity-utils/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sharetribe/entity-utils/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sharetribe/entity-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sharetribe/entity-utils/issues/1/comments","statuses_url":"https://api.github.com/repos/sharetribe/entity-utils/statuses/2b99f3ecca3d3cb6d248375a39fde3b497c2717b","head":{"label":"sharetribe:validate-config","ref":"validate-config","sha":"2b99f3ecca3d3cb6d248375a39fde3b497c2717b","user":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"repo":{"id":44385957,"name":"entity-utils","full_name":"sharetribe/entity-utils","owner":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sharetribe/entity-utils","description":"","fork":false,"url":"https://api.github.com/repos/sharetribe/entity-utils","forks_url":"https://api.github.com/repos/sharetribe/entity-utils/forks","keys_url":"https://api.github.com/repos/sharetribe/entity-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharetribe/entity-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharetribe/entity-utils/teams","hooks_url":"https://api.github.com/repos/sharetribe/entity-utils/hooks","issue_events_url":"https://api.github.com/repos/sharetribe/entity-utils/issues/events{/number}","events_url":"https://api.github.com/repos/sharetribe/entity-utils/events","assignees_url":"https://api.github.com/repos/sharetribe/entity-utils/assignees{/user}","branches_url":"https://api.github.com/repos/sharetribe/entity-utils/branches{/branch}","tags_url":"https://api.github.com/repos/sharetribe/entity-utils/tags","blobs_url":"https://api.github.com/repos/sharetribe/entity-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharetribe/entity-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharetribe/entity-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharetribe/entity-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharetribe/entity-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/sharetribe/entity-utils/languages","stargazers_url":"https://api.github.com/repos/sharetribe/entity-utils/stargazers","contributors_url":"https://api.github.com/repos/sharetribe/entity-utils/contributors","subscribers_url":"https://api.github.com/repos/sharetribe/entity-utils/subscribers","subscription_url":"https://api.github.com/repos/sharetribe/entity-utils/subscription","commits_url":"https://api.github.com/repos/sharetribe/entity-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharetribe/entity-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharetribe/entity-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharetribe/entity-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharetribe/entity-utils/contents/{+path}","compare_url":"https://api.github.com/repos/sharetribe/entity-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharetribe/entity-utils/merges","archive_url":"https://api.github.com/repos/sharetribe/entity-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharetribe/entity-utils/downloads","issues_url":"https://api.github.com/repos/sharetribe/entity-utils/issues{/number}","pulls_url":"https://api.github.com/repos/sharetribe/entity-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/sharetribe/entity-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/sharetribe/entity-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharetribe/entity-utils/labels{/name}","releases_url":"https://api.github.com/repos/sharetribe/entity-utils/releases{/id}","deployments_url":"https://api.github.com/repos/sharetribe/entity-utils/deployments","created_at":"2015-10-16T13:11:26Z","updated_at":"2015-10-16T13:56:05Z","pushed_at":"2016-03-16T07:54:19Z","git_url":"git://github.com/sharetribe/entity-utils.git","ssh_url":"git@github.com:sharetribe/entity-utils.git","clone_url":"https://github.com/sharetribe/entity-utils.git","svn_url":"https://github.com/sharetribe/entity-utils","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sharetribe:master","ref":"master","sha":"71be8ae7c622616e8298f382e9d0d964cb79ab43","user":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"repo":{"id":44385957,"name":"entity-utils","full_name":"sharetribe/entity-utils","owner":{"login":"sharetribe","id":1733898,"avatar_url":"https://avatars.githubusercontent.com/u/1733898?v=3","gravatar_id":"","url":"https://api.github.com/users/sharetribe","html_url":"https://github.com/sharetribe","followers_url":"https://api.github.com/users/sharetribe/followers","following_url":"https://api.github.com/users/sharetribe/following{/other_user}","gists_url":"https://api.github.com/users/sharetribe/gists{/gist_id}","starred_url":"https://api.github.com/users/sharetribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharetribe/subscriptions","organizations_url":"https://api.github.com/users/sharetribe/orgs","repos_url":"https://api.github.com/users/sharetribe/repos","events_url":"https://api.github.com/users/sharetribe/events{/privacy}","received_events_url":"https://api.github.com/users/sharetribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sharetribe/entity-utils","description":"","fork":false,"url":"https://api.github.com/repos/sharetribe/entity-utils","forks_url":"https://api.github.com/repos/sharetribe/entity-utils/forks","keys_url":"https://api.github.com/repos/sharetribe/entity-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sharetribe/entity-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sharetribe/entity-utils/teams","hooks_url":"https://api.github.com/repos/sharetribe/entity-utils/hooks","issue_events_url":"https://api.github.com/repos/sharetribe/entity-utils/issues/events{/number}","events_url":"https://api.github.com/repos/sharetribe/entity-utils/events","assignees_url":"https://api.github.com/repos/sharetribe/entity-utils/assignees{/user}","branches_url":"https://api.github.com/repos/sharetribe/entity-utils/branches{/branch}","tags_url":"https://api.github.com/repos/sharetribe/entity-utils/tags","blobs_url":"https://api.github.com/repos/sharetribe/entity-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sharetribe/entity-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sharetribe/entity-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/sharetribe/entity-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sharetribe/entity-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/sharetribe/entity-utils/languages","stargazers_url":"https://api.github.com/repos/sharetribe/entity-utils/stargazers","contributors_url":"https://api.github.com/repos/sharetribe/entity-utils/contributors","subscribers_url":"https://api.github.com/repos/sharetribe/entity-utils/subscribers","subscription_url":"https://api.github.com/repos/sharetribe/entity-utils/subscription","commits_url":"https://api.github.com/repos/sharetribe/entity-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/sharetribe/entity-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/sharetribe/entity-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/sharetribe/entity-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/sharetribe/entity-utils/contents/{+path}","compare_url":"https://api.github.com/repos/sharetribe/entity-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sharetribe/entity-utils/merges","archive_url":"https://api.github.com/repos/sharetribe/entity-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sharetribe/entity-utils/downloads","issues_url":"https://api.github.com/repos/sharetribe/entity-utils/issues{/number}","pulls_url":"https://api.github.com/repos/sharetribe/entity-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/sharetribe/entity-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/sharetribe/entity-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sharetribe/entity-utils/labels{/name}","releases_url":"https://api.github.com/repos/sharetribe/entity-utils/releases{/id}","deployments_url":"https://api.github.com/repos/sharetribe/entity-utils/deployments","created_at":"2015-10-16T13:11:26Z","updated_at":"2015-10-16T13:56:05Z","pushed_at":"2016-03-16T07:54:19Z","git_url":"git://github.com/sharetribe/entity-utils.git","ssh_url":"git@github.com:sharetribe/entity-utils.git","clone_url":"https://github.com/sharetribe/entity-utils.git","svn_url":"https://github.com/sharetribe/entity-utils","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sharetribe/entity-utils/pulls/1"},"html":{"href":"https://github.com/sharetribe/entity-utils/pull/1"},"issue":{"href":"https://api.github.com/repos/sharetribe/entity-utils/issues/1"},"comments":{"href":"https://api.github.com/repos/sharetribe/entity-utils/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sharetribe/entity-utils/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sharetribe/entity-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sharetribe/entity-utils/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sharetribe/entity-utils/statuses/2b99f3ecca3d3cb6d248375a39fde3b497c2717b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rap1ds","id":429876,"avatar_url":"https://avatars.githubusercontent.com/u/429876?v=3","gravatar_id":"","url":"https://api.github.com/users/rap1ds","html_url":"https://github.com/rap1ds","followers_url":"https://api.github.com/users/rap1ds/followers","following_url":"https://api.github.com/users/rap1ds/following{/other_user}","gists_url":"https://api.github.com/users/rap1ds/gists{/gist_id}","starred_url":"https://api.github.com/users/rap1ds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rap1ds/subscriptions","organizations_url":"https://api.github.com/users/rap1ds/orgs","repos_url":"https://api.github.com/users/rap1ds/repos","events_url":"https://api.github.com/users/rap1ds/events{/privacy}","received_events_url":"https://api.github.com/users/rap1ds/received_events","type":"User","site_admin":false},"comments":0,"review_comments":3,"commits":5,"additions":107,"deletions":9,"changed_files":3}}