{"action":"opened","number":598,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/ecto/pulls/598","id":35290355,"html_url":"https://github.com/elixir-lang/ecto/pull/598","diff_url":"https://github.com/elixir-lang/ecto/pull/598.diff","patch_url":"https://github.com/elixir-lang/ecto/pull/598.patch","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/598","number":598,"state":"open","locked":false,"title":"Added options passed to validate_unique/3 to changeset.validations","user":{"login":"crismali","id":3209502,"avatar_url":"https://avatars.githubusercontent.com/u/3209502?v=3","gravatar_id":"","url":"https://api.github.com/users/crismali","html_url":"https://github.com/crismali","followers_url":"https://api.github.com/users/crismali/followers","following_url":"https://api.github.com/users/crismali/following{/other_user}","gists_url":"https://api.github.com/users/crismali/gists{/gist_id}","starred_url":"https://api.github.com/users/crismali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crismali/subscriptions","organizations_url":"https://api.github.com/users/crismali/orgs","repos_url":"https://api.github.com/users/crismali/repos","events_url":"https://api.github.com/users/crismali/events{/privacy}","received_events_url":"https://api.github.com/users/crismali/received_events","type":"User","site_admin":false},"body":"This makes it so that:\r\n\r\n* you can look at the `changeset` and know if there's a `scope` or if the `downcase` option is set to `true`\r\n* `validate_unique`'s metadata looks more like `validate_length` and other validators\r\n* if you wanted a test that a field is unique in a case insensitive way you don't have to roll the entire test, you can just look in `changeset.validations`","created_at":"2015-05-13T02:57:13Z","updated_at":"2015-05-13T02:57:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/ecto/pulls/598/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/ecto/pulls/598/comments","review_comment_url":"https://api.github.com/repos/elixir-lang/ecto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/598/comments","statuses_url":"https://api.github.com/repos/elixir-lang/ecto/statuses/8d430120922b783105c817bea51aa258d974cef8","head":{"label":"crismali:add_validate_unique_metadata_to_changeset","ref":"add_validate_unique_metadata_to_changeset","sha":"8d430120922b783105c817bea51aa258d974cef8","user":{"login":"crismali","id":3209502,"avatar_url":"https://avatars.githubusercontent.com/u/3209502?v=3","gravatar_id":"","url":"https://api.github.com/users/crismali","html_url":"https://github.com/crismali","followers_url":"https://api.github.com/users/crismali/followers","following_url":"https://api.github.com/users/crismali/following{/other_user}","gists_url":"https://api.github.com/users/crismali/gists{/gist_id}","starred_url":"https://api.github.com/users/crismali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crismali/subscriptions","organizations_url":"https://api.github.com/users/crismali/orgs","repos_url":"https://api.github.com/users/crismali/repos","events_url":"https://api.github.com/users/crismali/events{/privacy}","received_events_url":"https://api.github.com/users/crismali/received_events","type":"User","site_admin":false},"repo":{"id":34991311,"name":"ecto","full_name":"crismali/ecto","owner":{"login":"crismali","id":3209502,"avatar_url":"https://avatars.githubusercontent.com/u/3209502?v=3","gravatar_id":"","url":"https://api.github.com/users/crismali","html_url":"https://github.com/crismali","followers_url":"https://api.github.com/users/crismali/followers","following_url":"https://api.github.com/users/crismali/following{/other_user}","gists_url":"https://api.github.com/users/crismali/gists{/gist_id}","starred_url":"https://api.github.com/users/crismali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crismali/subscriptions","organizations_url":"https://api.github.com/users/crismali/orgs","repos_url":"https://api.github.com/users/crismali/repos","events_url":"https://api.github.com/users/crismali/events{/privacy}","received_events_url":"https://api.github.com/users/crismali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/crismali/ecto","description":"A database wrapper and language integrated query for Elixir","fork":true,"url":"https://api.github.com/repos/crismali/ecto","forks_url":"https://api.github.com/repos/crismali/ecto/forks","keys_url":"https://api.github.com/repos/crismali/ecto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crismali/ecto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crismali/ecto/teams","hooks_url":"https://api.github.com/repos/crismali/ecto/hooks","issue_events_url":"https://api.github.com/repos/crismali/ecto/issues/events{/number}","events_url":"https://api.github.com/repos/crismali/ecto/events","assignees_url":"https://api.github.com/repos/crismali/ecto/assignees{/user}","branches_url":"https://api.github.com/repos/crismali/ecto/branches{/branch}","tags_url":"https://api.github.com/repos/crismali/ecto/tags","blobs_url":"https://api.github.com/repos/crismali/ecto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crismali/ecto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crismali/ecto/git/refs{/sha}","trees_url":"https://api.github.com/repos/crismali/ecto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crismali/ecto/statuses/{sha}","languages_url":"https://api.github.com/repos/crismali/ecto/languages","stargazers_url":"https://api.github.com/repos/crismali/ecto/stargazers","contributors_url":"https://api.github.com/repos/crismali/ecto/contributors","subscribers_url":"https://api.github.com/repos/crismali/ecto/subscribers","subscription_url":"https://api.github.com/repos/crismali/ecto/subscription","commits_url":"https://api.github.com/repos/crismali/ecto/commits{/sha}","git_commits_url":"https://api.github.com/repos/crismali/ecto/git/commits{/sha}","comments_url":"https://api.github.com/repos/crismali/ecto/comments{/number}","issue_comment_url":"https://api.github.com/repos/crismali/ecto/issues/comments{/number}","contents_url":"https://api.github.com/repos/crismali/ecto/contents/{+path}","compare_url":"https://api.github.com/repos/crismali/ecto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crismali/ecto/merges","archive_url":"https://api.github.com/repos/crismali/ecto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crismali/ecto/downloads","issues_url":"https://api.github.com/repos/crismali/ecto/issues{/number}","pulls_url":"https://api.github.com/repos/crismali/ecto/pulls{/number}","milestones_url":"https://api.github.com/repos/crismali/ecto/milestones{/number}","notifications_url":"https://api.github.com/repos/crismali/ecto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crismali/ecto/labels{/name}","releases_url":"https://api.github.com/repos/crismali/ecto/releases{/id}","created_at":"2015-05-03T15:51:19Z","updated_at":"2015-05-03T15:51:20Z","pushed_at":"2015-05-13T02:51:55Z","git_url":"git://github.com/crismali/ecto.git","ssh_url":"git@github.com:crismali/ecto.git","clone_url":"https://github.com/crismali/ecto.git","svn_url":"https://github.com/crismali/ecto","homepage":"","size":3735,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elixir-lang:master","ref":"master","sha":"cb71044f48ad4580488bd8b870ccdd519629d9d1","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":10649374,"name":"ecto","full_name":"elixir-lang/ecto","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/ecto","description":"A database wrapper and language integrated query for Elixir","fork":false,"url":"https://api.github.com/repos/elixir-lang/ecto","forks_url":"https://api.github.com/repos/elixir-lang/ecto/forks","keys_url":"https://api.github.com/repos/elixir-lang/ecto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/ecto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/ecto/teams","hooks_url":"https://api.github.com/repos/elixir-lang/ecto/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/ecto/events","assignees_url":"https://api.github.com/repos/elixir-lang/ecto/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/ecto/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/ecto/tags","blobs_url":"https://api.github.com/repos/elixir-lang/ecto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/ecto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/ecto/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/ecto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/ecto/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/ecto/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/ecto/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/ecto/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/ecto/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/ecto/subscription","commits_url":"https://api.github.com/repos/elixir-lang/ecto/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/ecto/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/ecto/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/ecto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/ecto/merges","archive_url":"https://api.github.com/repos/elixir-lang/ecto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/ecto/downloads","issues_url":"https://api.github.com/repos/elixir-lang/ecto/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/ecto/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/ecto/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/ecto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/ecto/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/ecto/releases{/id}","created_at":"2013-06-12T18:42:06Z","updated_at":"2015-05-12T17:28:17Z","pushed_at":"2015-05-12T23:28:14Z","git_url":"git://github.com/elixir-lang/ecto.git","ssh_url":"git@github.com:elixir-lang/ecto.git","clone_url":"https://github.com/elixir-lang/ecto.git","svn_url":"https://github.com/elixir-lang/ecto","homepage":"","size":10212,"stargazers_count":699,"watchers_count":699,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":159,"mirror_url":null,"open_issues_count":13,"forks":159,"open_issues":13,"watchers":699,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/ecto/pulls/598"},"html":{"href":"https://github.com/elixir-lang/ecto/pull/598"},"issue":{"href":"https://api.github.com/repos/elixir-lang/ecto/issues/598"},"comments":{"href":"https://api.github.com/repos/elixir-lang/ecto/issues/598/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/ecto/pulls/598/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-lang/ecto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-lang/ecto/pulls/598/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/ecto/statuses/8d430120922b783105c817bea51aa258d974cef8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":10,"changed_files":2}}