{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/force/pulls/comments/104828246","pull_request_review_id":25681505,"id":104828246,"diff_hunk":"@@ -0,0 +1,67 @@\n+export const filterQuery = `\n+  query filterArtworks(\n+    $aggregations: [ArtworkAggregation],\n+    $page: Int,\n+    $size: Int,\n+    $estimate_range: String,\n+    $gene_id: String,\n+    $gene_ids: [String],\n+    $artist_ids: [String],\n+    $sale_id: ID,\n+    $medium: String,\n+    $sort: String,\n+    $include_artworks_by_followed_artists: Boolean\n+  ){\n+    filter_artworks(\n+      aggregations: $aggregations,\n+      page: $page,\n+      size: $size,\n+      estimate_range: $estimate_range,\n+      gene_id: $gene_id,\n+      gene_ids: $gene_ids,\n+      artist_ids: $artist_ids,\n+      sale_id: $sale_id,\n+      medium: $medium,\n+      sort: $sort,\n+      include_artworks_by_followed_artists: $include_artworks_by_followed_artists\n+    ){\n+      total\n+      followed_artists_total\n+      aggregations {\n+        slice\n+        counts {\n+          id\n+          name\n+          count\n+        }\n+      }\n+      hits {\n+        id\n+        _id\n+        href\n+        title\n+        date\n+        images {\n+          id\n+          image_url: url(version: [\"tall\"])\n+          image_versions: versions\n+          placeholder: resized(width: 30, height: 30, version: \"tall\") {\n+            image_url: url\n+          }\n+        }\n+        artists {\n+          id\n+          name\n+        }\n+        sale_artwork {\n+          lot_number\n+          counts {\n+            bidder_positions\n+          }\n+          current_bid {\n+            display\n+          }\n+        }\n+      }\n+    }\n+  }`","path":"desktop/apps/auction2/filter_query.js","position":67,"original_position":67,"commit_id":"538c0f9042a1dc64708b56a0a426a8f479b2bac7","original_commit_id":"538c0f9042a1dc64708b56a0a426a8f479b2bac7","user":{"login":"damassi","id":236943,"avatar_url":"https://avatars2.githubusercontent.com/u/236943?v=3","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false},"body":"Tomorrow can we discuss all of the little parts about this query? This is what I'm going to be using for sorting the artworks on the artwork page, but am still learning some of the mechanics of GraphQL.  ","created_at":"2017-03-08T01:56:03Z","updated_at":"2017-03-08T01:56:03Z","html_url":"https://github.com/artsy/force/pull/982#discussion_r104828246","pull_request_url":"https://api.github.com/repos/artsy/force/pulls/982","_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/comments/104828246"},"html":{"href":"https://github.com/artsy/force/pull/982#discussion_r104828246"},"pull_request":{"href":"https://api.github.com/repos/artsy/force/pulls/982"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/force/pulls/982","id":109598100,"html_url":"https://github.com/artsy/force/pull/982","diff_url":"https://github.com/artsy/force/pull/982.diff","patch_url":"https://github.com/artsy/force/pull/982.patch","issue_url":"https://api.github.com/repos/artsy/force/issues/982","number":982,"state":"open","locked":false,"title":"@damassi => Redux-backed commercial filtering","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars0.githubusercontent.com/u/2081340?v=3","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"body":"Mostly PR-ing this for my own benefit right now (and there's a merge conflict anyways). I have some open questions on how we want to structure/style this going forward, but felt it was easiest to put all the code out there for reference.\r\n\r\nSo far, redux is 👌 .\r\n\r\n![redux-comm-filter](https://cloud.githubusercontent.com/assets/2081340/23683303/3bf7ae94-0366-11e7-84a6-abcc6a8b2364.gif)\r\n\r\nTODO (Before merging):\r\n- [ ] Tests!\r\n\r\nTODO (UI things-- after this PR):\r\n- [ ] Implement infinite scroll\r\n- [ ] Make jumping behavior only go to top of commercial filter section\r\n- [ ] Make sort box adjust based on index of selection\r\n- [ ] Add URL handling for default params","created_at":"2017-03-07T23:46:25Z","updated_at":"2017-03-08T01:56:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"damassi","id":236943,"avatar_url":"https://avatars2.githubusercontent.com/u/236943?v=3","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false},"assignees":[{"login":"damassi","id":236943,"avatar_url":"https://avatars2.githubusercontent.com/u/236943?v=3","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/force/pulls/982/commits","review_comments_url":"https://api.github.com/repos/artsy/force/pulls/982/comments","review_comment_url":"https://api.github.com/repos/artsy/force/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/force/issues/982/comments","statuses_url":"https://api.github.com/repos/artsy/force/statuses/538c0f9042a1dc64708b56a0a426a8f479b2bac7","head":{"label":"sweir27:redux-filter","ref":"redux-filter","sha":"538c0f9042a1dc64708b56a0a426a8f479b2bac7","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars0.githubusercontent.com/u/2081340?v=3","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"repo":{"id":66878220,"name":"force","full_name":"sweir27/force","owner":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars0.githubusercontent.com/u/2081340?v=3","gravatar_id":"","url":"https://api.github.com/users/sweir27","html_url":"https://github.com/sweir27","followers_url":"https://api.github.com/users/sweir27/followers","following_url":"https://api.github.com/users/sweir27/following{/other_user}","gists_url":"https://api.github.com/users/sweir27/gists{/gist_id}","starred_url":"https://api.github.com/users/sweir27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweir27/subscriptions","organizations_url":"https://api.github.com/users/sweir27/orgs","repos_url":"https://api.github.com/users/sweir27/repos","events_url":"https://api.github.com/users/sweir27/events{/privacy}","received_events_url":"https://api.github.com/users/sweir27/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sweir27/force","description":"The Artsy.net website:","fork":true,"url":"https://api.github.com/repos/sweir27/force","forks_url":"https://api.github.com/repos/sweir27/force/forks","keys_url":"https://api.github.com/repos/sweir27/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweir27/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweir27/force/teams","hooks_url":"https://api.github.com/repos/sweir27/force/hooks","issue_events_url":"https://api.github.com/repos/sweir27/force/issues/events{/number}","events_url":"https://api.github.com/repos/sweir27/force/events","assignees_url":"https://api.github.com/repos/sweir27/force/assignees{/user}","branches_url":"https://api.github.com/repos/sweir27/force/branches{/branch}","tags_url":"https://api.github.com/repos/sweir27/force/tags","blobs_url":"https://api.github.com/repos/sweir27/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweir27/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweir27/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweir27/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweir27/force/statuses/{sha}","languages_url":"https://api.github.com/repos/sweir27/force/languages","stargazers_url":"https://api.github.com/repos/sweir27/force/stargazers","contributors_url":"https://api.github.com/repos/sweir27/force/contributors","subscribers_url":"https://api.github.com/repos/sweir27/force/subscribers","subscription_url":"https://api.github.com/repos/sweir27/force/subscription","commits_url":"https://api.github.com/repos/sweir27/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweir27/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweir27/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweir27/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweir27/force/contents/{+path}","compare_url":"https://api.github.com/repos/sweir27/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweir27/force/merges","archive_url":"https://api.github.com/repos/sweir27/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweir27/force/downloads","issues_url":"https://api.github.com/repos/sweir27/force/issues{/number}","pulls_url":"https://api.github.com/repos/sweir27/force/pulls{/number}","milestones_url":"https://api.github.com/repos/sweir27/force/milestones{/number}","notifications_url":"https://api.github.com/repos/sweir27/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweir27/force/labels{/name}","releases_url":"https://api.github.com/repos/sweir27/force/releases{/id}","deployments_url":"https://api.github.com/repos/sweir27/force/deployments","created_at":"2016-08-29T20:30:24Z","updated_at":"2016-08-29T20:30:28Z","pushed_at":"2017-03-07T23:37:03Z","git_url":"git://github.com/sweir27/force.git","ssh_url":"git@github.com:sweir27/force.git","clone_url":"https://github.com/sweir27/force.git","svn_url":"https://github.com/sweir27/force","homepage":"https://www.artsy.net","size":119437,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"artsy:master","ref":"master","sha":"271780226893e67b984c64ef94572a4e444db592","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars0.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":22887404,"name":"force","full_name":"artsy/force","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars0.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/force","description":"The Artsy.net website:","fork":false,"url":"https://api.github.com/repos/artsy/force","forks_url":"https://api.github.com/repos/artsy/force/forks","keys_url":"https://api.github.com/repos/artsy/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/force/teams","hooks_url":"https://api.github.com/repos/artsy/force/hooks","issue_events_url":"https://api.github.com/repos/artsy/force/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/force/events","assignees_url":"https://api.github.com/repos/artsy/force/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/force/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/force/tags","blobs_url":"https://api.github.com/repos/artsy/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/force/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/force/languages","stargazers_url":"https://api.github.com/repos/artsy/force/stargazers","contributors_url":"https://api.github.com/repos/artsy/force/contributors","subscribers_url":"https://api.github.com/repos/artsy/force/subscribers","subscription_url":"https://api.github.com/repos/artsy/force/subscription","commits_url":"https://api.github.com/repos/artsy/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/force/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/force/merges","archive_url":"https://api.github.com/repos/artsy/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/force/downloads","issues_url":"https://api.github.com/repos/artsy/force/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/force/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/force/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/force/labels{/name}","releases_url":"https://api.github.com/repos/artsy/force/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/force/deployments","created_at":"2014-08-12T18:14:34Z","updated_at":"2017-02-23T01:21:45Z","pushed_at":"2017-03-08T01:22:10Z","git_url":"git://github.com/artsy/force.git","ssh_url":"git@github.com:artsy/force.git","clone_url":"https://github.com/artsy/force.git","svn_url":"https://github.com/artsy/force","homepage":"https://www.artsy.net","size":119542,"stargazers_count":166,"watchers_count":166,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":71,"forks":60,"open_issues":71,"watchers":166,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/982"},"html":{"href":"https://github.com/artsy/force/pull/982"},"issue":{"href":"https://api.github.com/repos/artsy/force/issues/982"},"comments":{"href":"https://api.github.com/repos/artsy/force/issues/982/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/force/pulls/982/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/force/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/force/pulls/982/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/force/statuses/538c0f9042a1dc64708b56a0a426a8f479b2bac7"}}}}
{"actor":{"display_login":"damassi"}}