{"action":"created","comment":{"url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/comments/50916068","id":50916068,"diff_hunk":"@@ -267,6 +274,13 @@ def test_difference\n     assert_equal [@ref_n1], get_set_contents(set)\n   end\n \n+  def test_distinct\n+    set = Query.expr { match(Query.ref('indexes/n_of_widgets')) }\n+    assert_equal [0, 1, 1], get_set_contents(set)","path":"test/query_test.rb","position":null,"original_position":20,"commit_id":"30c9591794e6ea840c4cba00dee879da077769c2","original_commit_id":"3714284b29c01c66797e85be1191fbcc49592a1a","user":{"login":"andy-faunadb","id":13004842,"avatar_url":"https://avatars.githubusercontent.com/u/13004842?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-faunadb","html_url":"https://github.com/andy-faunadb","followers_url":"https://api.github.com/users/andy-faunadb/followers","following_url":"https://api.github.com/users/andy-faunadb/following{/other_user}","gists_url":"https://api.github.com/users/andy-faunadb/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-faunadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-faunadb/subscriptions","organizations_url":"https://api.github.com/users/andy-faunadb/orgs","repos_url":"https://api.github.com/users/andy-faunadb/repos","events_url":"https://api.github.com/users/andy-faunadb/events{/privacy}","received_events_url":"https://api.github.com/users/andy-faunadb/received_events","type":"User","site_admin":false},"body":"Some of the tests create Widget instances. We could move all Widget creation to `setup` to ensure that tests don't affect each other.","created_at":"2016-01-26T23:02:48Z","updated_at":"2016-01-26T23:02:48Z","html_url":"https://github.com/faunadb/faunadb-ruby/pull/141#discussion_r50916068","pull_request_url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141","_links":{"self":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/comments/50916068"},"html":{"href":"https://github.com/faunadb/faunadb-ruby/pull/141#discussion_r50916068"},"pull_request":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141"}}},"pull_request":{"url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141","id":57188037,"html_url":"https://github.com/faunadb/faunadb-ruby/pull/141","diff_url":"https://github.com/faunadb/faunadb-ruby/pull/141.diff","patch_url":"https://github.com/faunadb/faunadb-ruby/pull/141.patch","issue_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/141","number":141,"state":"open","locked":false,"title":"API wrapper for distinct function","user":{"login":"subhash","id":87746,"avatar_url":"https://avatars.githubusercontent.com/u/87746?v=3","gravatar_id":"","url":"https://api.github.com/users/subhash","html_url":"https://github.com/subhash","followers_url":"https://api.github.com/users/subhash/followers","following_url":"https://api.github.com/users/subhash/following{/other_user}","gists_url":"https://api.github.com/users/subhash/gists{/gist_id}","starred_url":"https://api.github.com/users/subhash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subhash/subscriptions","organizations_url":"https://api.github.com/users/subhash/orgs","repos_url":"https://api.github.com/users/subhash/repos","events_url":"https://api.github.com/users/subhash/events{/privacy}","received_events_url":"https://api.github.com/users/subhash/received_events","type":"User","site_admin":false},"body":"New `distinct` set function being introduced as part of https://github.com/faunadb/core/pull/2372","created_at":"2016-01-26T09:42:15Z","updated_at":"2016-01-26T23:02:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ce9b7bc94273df22365dc30914414cb2732ec84","assignee":{"login":"ashfire908","id":225779,"avatar_url":"https://avatars.githubusercontent.com/u/225779?v=3","gravatar_id":"","url":"https://api.github.com/users/ashfire908","html_url":"https://github.com/ashfire908","followers_url":"https://api.github.com/users/ashfire908/followers","following_url":"https://api.github.com/users/ashfire908/following{/other_user}","gists_url":"https://api.github.com/users/ashfire908/gists{/gist_id}","starred_url":"https://api.github.com/users/ashfire908/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashfire908/subscriptions","organizations_url":"https://api.github.com/users/ashfire908/orgs","repos_url":"https://api.github.com/users/ashfire908/repos","events_url":"https://api.github.com/users/ashfire908/events{/privacy}","received_events_url":"https://api.github.com/users/ashfire908/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141/commits","review_comments_url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141/comments","review_comment_url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/141/comments","statuses_url":"https://api.github.com/repos/faunadb/faunadb-ruby/statuses/30c9591794e6ea840c4cba00dee879da077769c2","head":{"label":"faunadb:distinct","ref":"distinct","sha":"30c9591794e6ea840c4cba00dee879da077769c2","user":{"login":"faunadb","id":1477000,"avatar_url":"https://avatars.githubusercontent.com/u/1477000?v=3","gravatar_id":"","url":"https://api.github.com/users/faunadb","html_url":"https://github.com/faunadb","followers_url":"https://api.github.com/users/faunadb/followers","following_url":"https://api.github.com/users/faunadb/following{/other_user}","gists_url":"https://api.github.com/users/faunadb/gists{/gist_id}","starred_url":"https://api.github.com/users/faunadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faunadb/subscriptions","organizations_url":"https://api.github.com/users/faunadb/orgs","repos_url":"https://api.github.com/users/faunadb/repos","events_url":"https://api.github.com/users/faunadb/events{/privacy}","received_events_url":"https://api.github.com/users/faunadb/received_events","type":"Organization","site_admin":false},"repo":{"id":7089764,"name":"faunadb-ruby","full_name":"faunadb/faunadb-ruby","owner":{"login":"faunadb","id":1477000,"avatar_url":"https://avatars.githubusercontent.com/u/1477000?v=3","gravatar_id":"","url":"https://api.github.com/users/faunadb","html_url":"https://github.com/faunadb","followers_url":"https://api.github.com/users/faunadb/followers","following_url":"https://api.github.com/users/faunadb/following{/other_user}","gists_url":"https://api.github.com/users/faunadb/gists{/gist_id}","starred_url":"https://api.github.com/users/faunadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faunadb/subscriptions","organizations_url":"https://api.github.com/users/faunadb/orgs","repos_url":"https://api.github.com/users/faunadb/repos","events_url":"https://api.github.com/users/faunadb/events{/privacy}","received_events_url":"https://api.github.com/users/faunadb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/faunadb/faunadb-ruby","description":"Ruby client for Fauna. Owner: Andrew","fork":false,"url":"https://api.github.com/repos/faunadb/faunadb-ruby","forks_url":"https://api.github.com/repos/faunadb/faunadb-ruby/forks","keys_url":"https://api.github.com/repos/faunadb/faunadb-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faunadb/faunadb-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faunadb/faunadb-ruby/teams","hooks_url":"https://api.github.com/repos/faunadb/faunadb-ruby/hooks","issue_events_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/faunadb/faunadb-ruby/events","assignees_url":"https://api.github.com/repos/faunadb/faunadb-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/faunadb/faunadb-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/faunadb/faunadb-ruby/tags","blobs_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faunadb/faunadb-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/faunadb/faunadb-ruby/languages","stargazers_url":"https://api.github.com/repos/faunadb/faunadb-ruby/stargazers","contributors_url":"https://api.github.com/repos/faunadb/faunadb-ruby/contributors","subscribers_url":"https://api.github.com/repos/faunadb/faunadb-ruby/subscribers","subscription_url":"https://api.github.com/repos/faunadb/faunadb-ruby/subscription","commits_url":"https://api.github.com/repos/faunadb/faunadb-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/faunadb/faunadb-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/faunadb/faunadb-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/faunadb/faunadb-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faunadb/faunadb-ruby/merges","archive_url":"https://api.github.com/repos/faunadb/faunadb-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faunadb/faunadb-ruby/downloads","issues_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/faunadb/faunadb-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/faunadb/faunadb-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faunadb/faunadb-ruby/labels{/name}","releases_url":"https://api.github.com/repos/faunadb/faunadb-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/faunadb/faunadb-ruby/deployments","created_at":"2012-12-10T08:15:38Z","updated_at":"2016-01-11T19:01:47Z","pushed_at":"2016-01-26T22:58:14Z","git_url":"git://github.com/faunadb/faunadb-ruby.git","ssh_url":"git@github.com:faunadb/faunadb-ruby.git","clone_url":"https://github.com/faunadb/faunadb-ruby.git","svn_url":"https://github.com/faunadb/faunadb-ruby","homepage":"https://faunadb.com","size":665,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":10,"forks":11,"open_issues":10,"watchers":12,"default_branch":"master"}},"base":{"label":"faunadb:master","ref":"master","sha":"0afab9f941ece78bebca106af3e327fc722800ed","user":{"login":"faunadb","id":1477000,"avatar_url":"https://avatars.githubusercontent.com/u/1477000?v=3","gravatar_id":"","url":"https://api.github.com/users/faunadb","html_url":"https://github.com/faunadb","followers_url":"https://api.github.com/users/faunadb/followers","following_url":"https://api.github.com/users/faunadb/following{/other_user}","gists_url":"https://api.github.com/users/faunadb/gists{/gist_id}","starred_url":"https://api.github.com/users/faunadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faunadb/subscriptions","organizations_url":"https://api.github.com/users/faunadb/orgs","repos_url":"https://api.github.com/users/faunadb/repos","events_url":"https://api.github.com/users/faunadb/events{/privacy}","received_events_url":"https://api.github.com/users/faunadb/received_events","type":"Organization","site_admin":false},"repo":{"id":7089764,"name":"faunadb-ruby","full_name":"faunadb/faunadb-ruby","owner":{"login":"faunadb","id":1477000,"avatar_url":"https://avatars.githubusercontent.com/u/1477000?v=3","gravatar_id":"","url":"https://api.github.com/users/faunadb","html_url":"https://github.com/faunadb","followers_url":"https://api.github.com/users/faunadb/followers","following_url":"https://api.github.com/users/faunadb/following{/other_user}","gists_url":"https://api.github.com/users/faunadb/gists{/gist_id}","starred_url":"https://api.github.com/users/faunadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faunadb/subscriptions","organizations_url":"https://api.github.com/users/faunadb/orgs","repos_url":"https://api.github.com/users/faunadb/repos","events_url":"https://api.github.com/users/faunadb/events{/privacy}","received_events_url":"https://api.github.com/users/faunadb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/faunadb/faunadb-ruby","description":"Ruby client for Fauna. Owner: Andrew","fork":false,"url":"https://api.github.com/repos/faunadb/faunadb-ruby","forks_url":"https://api.github.com/repos/faunadb/faunadb-ruby/forks","keys_url":"https://api.github.com/repos/faunadb/faunadb-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faunadb/faunadb-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faunadb/faunadb-ruby/teams","hooks_url":"https://api.github.com/repos/faunadb/faunadb-ruby/hooks","issue_events_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/faunadb/faunadb-ruby/events","assignees_url":"https://api.github.com/repos/faunadb/faunadb-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/faunadb/faunadb-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/faunadb/faunadb-ruby/tags","blobs_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faunadb/faunadb-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/faunadb/faunadb-ruby/languages","stargazers_url":"https://api.github.com/repos/faunadb/faunadb-ruby/stargazers","contributors_url":"https://api.github.com/repos/faunadb/faunadb-ruby/contributors","subscribers_url":"https://api.github.com/repos/faunadb/faunadb-ruby/subscribers","subscription_url":"https://api.github.com/repos/faunadb/faunadb-ruby/subscription","commits_url":"https://api.github.com/repos/faunadb/faunadb-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/faunadb/faunadb-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/faunadb/faunadb-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/faunadb/faunadb-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/faunadb/faunadb-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faunadb/faunadb-ruby/merges","archive_url":"https://api.github.com/repos/faunadb/faunadb-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faunadb/faunadb-ruby/downloads","issues_url":"https://api.github.com/repos/faunadb/faunadb-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/faunadb/faunadb-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/faunadb/faunadb-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faunadb/faunadb-ruby/labels{/name}","releases_url":"https://api.github.com/repos/faunadb/faunadb-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/faunadb/faunadb-ruby/deployments","created_at":"2012-12-10T08:15:38Z","updated_at":"2016-01-11T19:01:47Z","pushed_at":"2016-01-26T22:58:14Z","git_url":"git://github.com/faunadb/faunadb-ruby.git","ssh_url":"git@github.com:faunadb/faunadb-ruby.git","clone_url":"https://github.com/faunadb/faunadb-ruby.git","svn_url":"https://github.com/faunadb/faunadb-ruby","homepage":"https://faunadb.com","size":665,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":10,"forks":11,"open_issues":10,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141"},"html":{"href":"https://github.com/faunadb/faunadb-ruby/pull/141"},"issue":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/141"},"comments":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/faunadb/faunadb-ruby/statuses/30c9591794e6ea840c4cba00dee879da077769c2"}}}}