{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/metaphysics/pulls/comments/70515240","id":70515240,"diff_hunk":"@@ -11,6 +15,21 @@ import {\n   GraphQLInt\n } from 'graphql';\n \n+export let ArtworkPredicates = {\n+  is_contactable: (artwork, relatedSales) => {\n+    return artwork.forsale && !_.isEmpty(artwork.partner) && !artwork.acquireable && !relatedSales.length\n+  }\n+}\n+\n+let fetchRelatedSales = ({ id }, options) => {\n+  options = qs.stringify(_.defaults(options, {\n+    size: 1,\n+    active: true,","path":"schema/artwork.js","position":25,"original_position":25,"commit_id":"0b60a6f8dd610bccd46807abc7296b6146b76f29","original_commit_id":"0b60a6f8dd610bccd46807abc7296b6146b76f29","user":{"login":"broskoski","id":821469,"avatar_url":"https://avatars.githubusercontent.com/u/821469?v=3","gravatar_id":"","url":"https://api.github.com/users/broskoski","html_url":"https://github.com/broskoski","followers_url":"https://api.github.com/users/broskoski/followers","following_url":"https://api.github.com/users/broskoski/following{/other_user}","gists_url":"https://api.github.com/users/broskoski/gists{/gist_id}","starred_url":"https://api.github.com/users/broskoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broskoski/subscriptions","organizations_url":"https://api.github.com/users/broskoski/orgs","repos_url":"https://api.github.com/users/broskoski/repos","events_url":"https://api.github.com/users/broskoski/events{/privacy}","received_events_url":"https://api.github.com/users/broskoski/received_events","type":"User","site_admin":false},"body":"Sigh, will update. ","created_at":"2016-07-12T20:25:47Z","updated_at":"2016-07-12T20:25:47Z","html_url":"https://github.com/artsy/metaphysics/pull/7#discussion_r70515240","pull_request_url":"https://api.github.com/repos/artsy/metaphysics/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/artsy/metaphysics/pulls/comments/70515240"},"html":{"href":"https://github.com/artsy/metaphysics/pull/7#discussion_r70515240"},"pull_request":{"href":"https://api.github.com/repos/artsy/metaphysics/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/metaphysics/pulls/7","id":49056979,"html_url":"https://github.com/artsy/metaphysics/pull/7","diff_url":"https://github.com/artsy/metaphysics/pull/7.diff","patch_url":"https://github.com/artsy/metaphysics/pull/7.patch","issue_url":"https://api.github.com/repos/artsy/metaphysics/issues/7","number":7,"state":"closed","locked":false,"title":"@dzucconi - adds related sales","user":{"login":"broskoski","id":821469,"avatar_url":"https://avatars.githubusercontent.com/u/821469?v=3","gravatar_id":"","url":"https://api.github.com/users/broskoski","html_url":"https://github.com/broskoski","followers_url":"https://api.github.com/users/broskoski/followers","following_url":"https://api.github.com/users/broskoski/following{/other_user}","gists_url":"https://api.github.com/users/broskoski/gists{/gist_id}","starred_url":"https://api.github.com/users/broskoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broskoski/subscriptions","organizations_url":"https://api.github.com/users/broskoski/orgs","repos_url":"https://api.github.com/users/broskoski/repos","events_url":"https://api.github.com/users/broskoski/events{/privacy}","received_events_url":"https://api.github.com/users/broskoski/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-28T19:45:01Z","updated_at":"2016-07-12T20:25:47Z","closed_at":"2015-10-28T20:15:54Z","merged_at":"2015-10-28T20:15:54Z","merge_commit_sha":"84f67c74d38cbeaa5b76c81ab04cb19e6c8b082e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/metaphysics/pulls/7/commits","review_comments_url":"https://api.github.com/repos/artsy/metaphysics/pulls/7/comments","review_comment_url":"https://api.github.com/repos/artsy/metaphysics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/metaphysics/issues/7/comments","statuses_url":"https://api.github.com/repos/artsy/metaphysics/statuses/0b60a6f8dd610bccd46807abc7296b6146b76f29","head":{"label":"broskoski:related-sales","ref":"related-sales","sha":"0b60a6f8dd610bccd46807abc7296b6146b76f29","user":{"login":"broskoski","id":821469,"avatar_url":"https://avatars.githubusercontent.com/u/821469?v=3","gravatar_id":"","url":"https://api.github.com/users/broskoski","html_url":"https://github.com/broskoski","followers_url":"https://api.github.com/users/broskoski/followers","following_url":"https://api.github.com/users/broskoski/following{/other_user}","gists_url":"https://api.github.com/users/broskoski/gists{/gist_id}","starred_url":"https://api.github.com/users/broskoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broskoski/subscriptions","organizations_url":"https://api.github.com/users/broskoski/orgs","repos_url":"https://api.github.com/users/broskoski/repos","events_url":"https://api.github.com/users/broskoski/events{/privacy}","received_events_url":"https://api.github.com/users/broskoski/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"artsy:master","ref":"master","sha":"4bb62663d43bc79e4a6a79915ad3dbb6b05e9c7d","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":42728510,"name":"metaphysics","full_name":"artsy/metaphysics","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/metaphysics","description":"Artsy's GraphQL API","fork":false,"url":"https://api.github.com/repos/artsy/metaphysics","forks_url":"https://api.github.com/repos/artsy/metaphysics/forks","keys_url":"https://api.github.com/repos/artsy/metaphysics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/metaphysics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/metaphysics/teams","hooks_url":"https://api.github.com/repos/artsy/metaphysics/hooks","issue_events_url":"https://api.github.com/repos/artsy/metaphysics/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/metaphysics/events","assignees_url":"https://api.github.com/repos/artsy/metaphysics/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/metaphysics/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/metaphysics/tags","blobs_url":"https://api.github.com/repos/artsy/metaphysics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/metaphysics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/metaphysics/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/metaphysics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/metaphysics/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/metaphysics/languages","stargazers_url":"https://api.github.com/repos/artsy/metaphysics/stargazers","contributors_url":"https://api.github.com/repos/artsy/metaphysics/contributors","subscribers_url":"https://api.github.com/repos/artsy/metaphysics/subscribers","subscription_url":"https://api.github.com/repos/artsy/metaphysics/subscription","commits_url":"https://api.github.com/repos/artsy/metaphysics/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/metaphysics/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/metaphysics/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/metaphysics/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/metaphysics/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/metaphysics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/metaphysics/merges","archive_url":"https://api.github.com/repos/artsy/metaphysics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/metaphysics/downloads","issues_url":"https://api.github.com/repos/artsy/metaphysics/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/metaphysics/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/metaphysics/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/metaphysics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/metaphysics/labels{/name}","releases_url":"https://api.github.com/repos/artsy/metaphysics/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/metaphysics/deployments","created_at":"2015-09-18T14:51:48Z","updated_at":"2016-07-09T11:09:28Z","pushed_at":"2016-07-12T16:25:47Z","git_url":"git://github.com/artsy/metaphysics.git","ssh_url":"git@github.com:artsy/metaphysics.git","clone_url":"https://github.com/artsy/metaphysics.git","svn_url":"https://github.com/artsy/metaphysics","homepage":"","size":711,"stargazers_count":33,"watchers_count":33,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":23,"forks":15,"open_issues":23,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/metaphysics/pulls/7"},"html":{"href":"https://github.com/artsy/metaphysics/pull/7"},"issue":{"href":"https://api.github.com/repos/artsy/metaphysics/issues/7"},"comments":{"href":"https://api.github.com/repos/artsy/metaphysics/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/metaphysics/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/metaphysics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/metaphysics/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/metaphysics/statuses/0b60a6f8dd610bccd46807abc7296b6146b76f29"}}}}
{"actor":{"display_login":"broskoski"}}