{"action":"closed","number":1024,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/ecto/pulls/1024","id":47903184,"html_url":"https://github.com/elixir-lang/ecto/pull/1024","diff_url":"https://github.com/elixir-lang/ecto/pull/1024.diff","patch_url":"https://github.com/elixir-lang/ecto/pull/1024.patch","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/1024","number":1024,"state":"closed","locked":false,"title":"Adds the option to do a count distinct query","user":{"login":"parkerl","id":450084,"avatar_url":"https://avatars.githubusercontent.com/u/450084?v=3","gravatar_id":"","url":"https://api.github.com/users/parkerl","html_url":"https://github.com/parkerl","followers_url":"https://api.github.com/users/parkerl/followers","following_url":"https://api.github.com/users/parkerl/following{/other_user}","gists_url":"https://api.github.com/users/parkerl/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerl/subscriptions","organizations_url":"https://api.github.com/users/parkerl/orgs","repos_url":"https://api.github.com/users/parkerl/repos","events_url":"https://api.github.com/users/parkerl/events{/privacy}","received_events_url":"https://api.github.com/users/parkerl/received_events","type":"User","site_admin":false},"body":"  - allows the atom \":distinct\" to be passed to the count macro\r\n  - implements count distinct for postgres and mysql\r\n  - issue #874","created_at":"2015-10-16T12:18:21Z","updated_at":"2015-10-16T12:51:20Z","closed_at":"2015-10-16T12:51:20Z","merged_at":"2015-10-16T12:51:20Z","merge_commit_sha":"9642da20450fdca198978a41c5b10d69c22e2d14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/ecto/pulls/1024/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/ecto/pulls/1024/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/1024/comments","statuses_url":"https://api.github.com/repos/elixir-lang/ecto/statuses/c05f6a447a5f226d3d9e16eb4c286c8c48257273","head":{"label":"parkerl:implement_count_distinct","ref":"implement_count_distinct","sha":"c05f6a447a5f226d3d9e16eb4c286c8c48257273","user":{"login":"parkerl","id":450084,"avatar_url":"https://avatars.githubusercontent.com/u/450084?v=3","gravatar_id":"","url":"https://api.github.com/users/parkerl","html_url":"https://github.com/parkerl","followers_url":"https://api.github.com/users/parkerl/followers","following_url":"https://api.github.com/users/parkerl/following{/other_user}","gists_url":"https://api.github.com/users/parkerl/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerl/subscriptions","organizations_url":"https://api.github.com/users/parkerl/orgs","repos_url":"https://api.github.com/users/parkerl/repos","events_url":"https://api.github.com/users/parkerl/events{/privacy}","received_events_url":"https://api.github.com/users/parkerl/received_events","type":"User","site_admin":false},"repo":{"id":34364699,"name":"ecto","full_name":"parkerl/ecto","owner":{"login":"parkerl","id":450084,"avatar_url":"https://avatars.githubusercontent.com/u/450084?v=3","gravatar_id":"","url":"https://api.github.com/users/parkerl","html_url":"https://github.com/parkerl","followers_url":"https://api.github.com/users/parkerl/followers","following_url":"https://api.github.com/users/parkerl/following{/other_user}","gists_url":"https://api.github.com/users/parkerl/gists{/gist_id}","starred_url":"https://api.github.com/users/parkerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkerl/subscriptions","organizations_url":"https://api.github.com/users/parkerl/orgs","repos_url":"https://api.github.com/users/parkerl/repos","events_url":"https://api.github.com/users/parkerl/events{/privacy}","received_events_url":"https://api.github.com/users/parkerl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parkerl/ecto","description":"A database wrapper and language integrated query for Elixir","fork":true,"url":"https://api.github.com/repos/parkerl/ecto","forks_url":"https://api.github.com/repos/parkerl/ecto/forks","keys_url":"https://api.github.com/repos/parkerl/ecto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parkerl/ecto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parkerl/ecto/teams","hooks_url":"https://api.github.com/repos/parkerl/ecto/hooks","issue_events_url":"https://api.github.com/repos/parkerl/ecto/issues/events{/number}","events_url":"https://api.github.com/repos/parkerl/ecto/events","assignees_url":"https://api.github.com/repos/parkerl/ecto/assignees{/user}","branches_url":"https://api.github.com/repos/parkerl/ecto/branches{/branch}","tags_url":"https://api.github.com/repos/parkerl/ecto/tags","blobs_url":"https://api.github.com/repos/parkerl/ecto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parkerl/ecto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parkerl/ecto/git/refs{/sha}","trees_url":"https://api.github.com/repos/parkerl/ecto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parkerl/ecto/statuses/{sha}","languages_url":"https://api.github.com/repos/parkerl/ecto/languages","stargazers_url":"https://api.github.com/repos/parkerl/ecto/stargazers","contributors_url":"https://api.github.com/repos/parkerl/ecto/contributors","subscribers_url":"https://api.github.com/repos/parkerl/ecto/subscribers","subscription_url":"https://api.github.com/repos/parkerl/ecto/subscription","commits_url":"https://api.github.com/repos/parkerl/ecto/commits{/sha}","git_commits_url":"https://api.github.com/repos/parkerl/ecto/git/commits{/sha}","comments_url":"https://api.github.com/repos/parkerl/ecto/comments{/number}","issue_comment_url":"https://api.github.com/repos/parkerl/ecto/issues/comments{/number}","contents_url":"https://api.github.com/repos/parkerl/ecto/contents/{+path}","compare_url":"https://api.github.com/repos/parkerl/ecto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parkerl/ecto/merges","archive_url":"https://api.github.com/repos/parkerl/ecto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parkerl/ecto/downloads","issues_url":"https://api.github.com/repos/parkerl/ecto/issues{/number}","pulls_url":"https://api.github.com/repos/parkerl/ecto/pulls{/number}","milestones_url":"https://api.github.com/repos/parkerl/ecto/milestones{/number}","notifications_url":"https://api.github.com/repos/parkerl/ecto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parkerl/ecto/labels{/name}","releases_url":"https://api.github.com/repos/parkerl/ecto/releases{/id}","created_at":"2015-04-22T02:45:43Z","updated_at":"2015-04-22T02:45:44Z","pushed_at":"2015-10-16T12:46:04Z","git_url":"git://github.com/parkerl/ecto.git","ssh_url":"git@github.com:parkerl/ecto.git","clone_url":"https://github.com/parkerl/ecto.git","svn_url":"https://github.com/parkerl/ecto","homepage":"","size":5241,"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":"6c1c04304ebecf5ccae4a49008deab814e034d2b","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-10-16T10:33:37Z","pushed_at":"2015-10-16T12:51:20Z","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":11403,"stargazers_count":1133,"watchers_count":1133,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":250,"mirror_url":null,"open_issues_count":31,"forks":250,"open_issues":31,"watchers":1133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/ecto/pulls/1024"},"html":{"href":"https://github.com/elixir-lang/ecto/pull/1024"},"issue":{"href":"https://api.github.com/repos/elixir-lang/ecto/issues/1024"},"comments":{"href":"https://api.github.com/repos/elixir-lang/ecto/issues/1024/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/ecto/pulls/1024/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/1024/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/ecto/statuses/c05f6a447a5f226d3d9e16eb4c286c8c48257273"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"comments":3,"review_comments":1,"commits":4,"additions":47,"deletions":2,"changed_files":6}}