{"action":"opened","number":119,"pull_request":{"url":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/119","id":28843792,"html_url":"https://github.com/RestPack/restpack_serializer/pull/119","diff_url":"https://github.com/RestPack/restpack_serializer/pull/119.diff","patch_url":"https://github.com/RestPack/restpack_serializer/pull/119.patch","issue_url":"https://api.github.com/repos/RestPack/restpack_serializer/issues/119","number":119,"state":"open","locked":false,"title":"Group by distinct records","user":{"login":"parrish","id":122990,"avatar_url":"https://avatars.githubusercontent.com/u/122990?v=3","gravatar_id":"","url":"https://api.github.com/users/parrish","html_url":"https://github.com/parrish","followers_url":"https://api.github.com/users/parrish/followers","following_url":"https://api.github.com/users/parrish/following{/other_user}","gists_url":"https://api.github.com/users/parrish/gists{/gist_id}","starred_url":"https://api.github.com/users/parrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parrish/subscriptions","organizations_url":"https://api.github.com/users/parrish/orgs","repos_url":"https://api.github.com/users/parrish/repos","events_url":"https://api.github.com/users/parrish/events{/privacy}","received_events_url":"https://api.github.com/users/parrish/received_events","type":"User","site_admin":false},"body":"Using group instead of distinct will still return unique records, but also works with PG JSON columns.","created_at":"2015-02-06T21:32:33Z","updated_at":"2015-02-06T21:32:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/119/commits","review_comments_url":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/119/comments","review_comment_url":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/RestPack/restpack_serializer/issues/119/comments","statuses_url":"https://api.github.com/repos/RestPack/restpack_serializer/statuses/e4dfa912880a0564ad0bd51ee880aff388cf09f1","head":{"label":"parrish:fix_distinct_query","ref":"fix_distinct_query","sha":"e4dfa912880a0564ad0bd51ee880aff388cf09f1","user":{"login":"parrish","id":122990,"avatar_url":"https://avatars.githubusercontent.com/u/122990?v=3","gravatar_id":"","url":"https://api.github.com/users/parrish","html_url":"https://github.com/parrish","followers_url":"https://api.github.com/users/parrish/followers","following_url":"https://api.github.com/users/parrish/following{/other_user}","gists_url":"https://api.github.com/users/parrish/gists{/gist_id}","starred_url":"https://api.github.com/users/parrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parrish/subscriptions","organizations_url":"https://api.github.com/users/parrish/orgs","repos_url":"https://api.github.com/users/parrish/repos","events_url":"https://api.github.com/users/parrish/events{/privacy}","received_events_url":"https://api.github.com/users/parrish/received_events","type":"User","site_admin":false},"repo":{"id":27602064,"name":"restpack_serializer","full_name":"parrish/restpack_serializer","owner":{"login":"parrish","id":122990,"avatar_url":"https://avatars.githubusercontent.com/u/122990?v=3","gravatar_id":"","url":"https://api.github.com/users/parrish","html_url":"https://github.com/parrish","followers_url":"https://api.github.com/users/parrish/followers","following_url":"https://api.github.com/users/parrish/following{/other_user}","gists_url":"https://api.github.com/users/parrish/gists{/gist_id}","starred_url":"https://api.github.com/users/parrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parrish/subscriptions","organizations_url":"https://api.github.com/users/parrish/orgs","repos_url":"https://api.github.com/users/parrish/repos","events_url":"https://api.github.com/users/parrish/events{/privacy}","received_events_url":"https://api.github.com/users/parrish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parrish/restpack_serializer","description":"Model serialization, paging, side-loading and filtering","fork":true,"url":"https://api.github.com/repos/parrish/restpack_serializer","forks_url":"https://api.github.com/repos/parrish/restpack_serializer/forks","keys_url":"https://api.github.com/repos/parrish/restpack_serializer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parrish/restpack_serializer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parrish/restpack_serializer/teams","hooks_url":"https://api.github.com/repos/parrish/restpack_serializer/hooks","issue_events_url":"https://api.github.com/repos/parrish/restpack_serializer/issues/events{/number}","events_url":"https://api.github.com/repos/parrish/restpack_serializer/events","assignees_url":"https://api.github.com/repos/parrish/restpack_serializer/assignees{/user}","branches_url":"https://api.github.com/repos/parrish/restpack_serializer/branches{/branch}","tags_url":"https://api.github.com/repos/parrish/restpack_serializer/tags","blobs_url":"https://api.github.com/repos/parrish/restpack_serializer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parrish/restpack_serializer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parrish/restpack_serializer/git/refs{/sha}","trees_url":"https://api.github.com/repos/parrish/restpack_serializer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parrish/restpack_serializer/statuses/{sha}","languages_url":"https://api.github.com/repos/parrish/restpack_serializer/languages","stargazers_url":"https://api.github.com/repos/parrish/restpack_serializer/stargazers","contributors_url":"https://api.github.com/repos/parrish/restpack_serializer/contributors","subscribers_url":"https://api.github.com/repos/parrish/restpack_serializer/subscribers","subscription_url":"https://api.github.com/repos/parrish/restpack_serializer/subscription","commits_url":"https://api.github.com/repos/parrish/restpack_serializer/commits{/sha}","git_commits_url":"https://api.github.com/repos/parrish/restpack_serializer/git/commits{/sha}","comments_url":"https://api.github.com/repos/parrish/restpack_serializer/comments{/number}","issue_comment_url":"https://api.github.com/repos/parrish/restpack_serializer/issues/comments/{number}","contents_url":"https://api.github.com/repos/parrish/restpack_serializer/contents/{+path}","compare_url":"https://api.github.com/repos/parrish/restpack_serializer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parrish/restpack_serializer/merges","archive_url":"https://api.github.com/repos/parrish/restpack_serializer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parrish/restpack_serializer/downloads","issues_url":"https://api.github.com/repos/parrish/restpack_serializer/issues{/number}","pulls_url":"https://api.github.com/repos/parrish/restpack_serializer/pulls{/number}","milestones_url":"https://api.github.com/repos/parrish/restpack_serializer/milestones{/number}","notifications_url":"https://api.github.com/repos/parrish/restpack_serializer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parrish/restpack_serializer/labels{/name}","releases_url":"https://api.github.com/repos/parrish/restpack_serializer/releases{/id}","created_at":"2014-12-05T17:22:33Z","updated_at":"2015-02-06T21:26:02Z","pushed_at":"2015-02-06T21:31:08Z","git_url":"git://github.com/parrish/restpack_serializer.git","ssh_url":"git@github.com:parrish/restpack_serializer.git","clone_url":"https://github.com/parrish/restpack_serializer.git","svn_url":"https://github.com/parrish/restpack_serializer","homepage":"","size":342,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"RestPack:master","ref":"master","sha":"7db076b92968a62959c38c0744ec44cb971ad338","user":{"login":"RestPack","id":3456068,"avatar_url":"https://avatars.githubusercontent.com/u/3456068?v=3","gravatar_id":"","url":"https://api.github.com/users/RestPack","html_url":"https://github.com/RestPack","followers_url":"https://api.github.com/users/RestPack/followers","following_url":"https://api.github.com/users/RestPack/following{/other_user}","gists_url":"https://api.github.com/users/RestPack/gists{/gist_id}","starred_url":"https://api.github.com/users/RestPack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestPack/subscriptions","organizations_url":"https://api.github.com/users/RestPack/orgs","repos_url":"https://api.github.com/users/RestPack/repos","events_url":"https://api.github.com/users/RestPack/events{/privacy}","received_events_url":"https://api.github.com/users/RestPack/received_events","type":"Organization","site_admin":false},"repo":{"id":9146056,"name":"restpack_serializer","full_name":"RestPack/restpack_serializer","owner":{"login":"RestPack","id":3456068,"avatar_url":"https://avatars.githubusercontent.com/u/3456068?v=3","gravatar_id":"","url":"https://api.github.com/users/RestPack","html_url":"https://github.com/RestPack","followers_url":"https://api.github.com/users/RestPack/followers","following_url":"https://api.github.com/users/RestPack/following{/other_user}","gists_url":"https://api.github.com/users/RestPack/gists{/gist_id}","starred_url":"https://api.github.com/users/RestPack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RestPack/subscriptions","organizations_url":"https://api.github.com/users/RestPack/orgs","repos_url":"https://api.github.com/users/RestPack/repos","events_url":"https://api.github.com/users/RestPack/events{/privacy}","received_events_url":"https://api.github.com/users/RestPack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RestPack/restpack_serializer","description":"Model serialization, paging, side-loading and filtering","fork":false,"url":"https://api.github.com/repos/RestPack/restpack_serializer","forks_url":"https://api.github.com/repos/RestPack/restpack_serializer/forks","keys_url":"https://api.github.com/repos/RestPack/restpack_serializer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RestPack/restpack_serializer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RestPack/restpack_serializer/teams","hooks_url":"https://api.github.com/repos/RestPack/restpack_serializer/hooks","issue_events_url":"https://api.github.com/repos/RestPack/restpack_serializer/issues/events{/number}","events_url":"https://api.github.com/repos/RestPack/restpack_serializer/events","assignees_url":"https://api.github.com/repos/RestPack/restpack_serializer/assignees{/user}","branches_url":"https://api.github.com/repos/RestPack/restpack_serializer/branches{/branch}","tags_url":"https://api.github.com/repos/RestPack/restpack_serializer/tags","blobs_url":"https://api.github.com/repos/RestPack/restpack_serializer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RestPack/restpack_serializer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RestPack/restpack_serializer/git/refs{/sha}","trees_url":"https://api.github.com/repos/RestPack/restpack_serializer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RestPack/restpack_serializer/statuses/{sha}","languages_url":"https://api.github.com/repos/RestPack/restpack_serializer/languages","stargazers_url":"https://api.github.com/repos/RestPack/restpack_serializer/stargazers","contributors_url":"https://api.github.com/repos/RestPack/restpack_serializer/contributors","subscribers_url":"https://api.github.com/repos/RestPack/restpack_serializer/subscribers","subscription_url":"https://api.github.com/repos/RestPack/restpack_serializer/subscription","commits_url":"https://api.github.com/repos/RestPack/restpack_serializer/commits{/sha}","git_commits_url":"https://api.github.com/repos/RestPack/restpack_serializer/git/commits{/sha}","comments_url":"https://api.github.com/repos/RestPack/restpack_serializer/comments{/number}","issue_comment_url":"https://api.github.com/repos/RestPack/restpack_serializer/issues/comments/{number}","contents_url":"https://api.github.com/repos/RestPack/restpack_serializer/contents/{+path}","compare_url":"https://api.github.com/repos/RestPack/restpack_serializer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RestPack/restpack_serializer/merges","archive_url":"https://api.github.com/repos/RestPack/restpack_serializer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RestPack/restpack_serializer/downloads","issues_url":"https://api.github.com/repos/RestPack/restpack_serializer/issues{/number}","pulls_url":"https://api.github.com/repos/RestPack/restpack_serializer/pulls{/number}","milestones_url":"https://api.github.com/repos/RestPack/restpack_serializer/milestones{/number}","notifications_url":"https://api.github.com/repos/RestPack/restpack_serializer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RestPack/restpack_serializer/labels{/name}","releases_url":"https://api.github.com/repos/RestPack/restpack_serializer/releases{/id}","created_at":"2013-04-01T11:28:02Z","updated_at":"2015-02-06T04:18:02Z","pushed_at":"2015-02-04T21:35:52Z","git_url":"git://github.com/RestPack/restpack_serializer.git","ssh_url":"git@github.com:RestPack/restpack_serializer.git","clone_url":"https://github.com/RestPack/restpack_serializer.git","svn_url":"https://github.com/RestPack/restpack_serializer","homepage":"","size":1842,"stargazers_count":139,"watchers_count":139,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":22,"forks":30,"open_issues":22,"watchers":139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/119"},"html":{"href":"https://github.com/RestPack/restpack_serializer/pull/119"},"issue":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/issues/119"},"comments":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/RestPack/restpack_serializer/statuses/e4dfa912880a0564ad0bd51ee880aff388cf09f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}