{"action":"opened","number":60,"pull_request":{"url":"https://api.github.com/repos/artsy/microgravity/pulls/60","id":92173150,"html_url":"https://github.com/artsy/microgravity/pull/60","diff_url":"https://github.com/artsy/microgravity/pull/60.diff","patch_url":"https://github.com/artsy/microgravity/pull/60.patch","issue_url":"https://api.github.com/repos/artsy/microgravity/issues/60","number":60,"state":"open","locked":false,"title":"@craigspaeth => sort auctions api response by end_at","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars.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":"We have so many auctions, that just sorting by `-created_at` and limiting `size: 20` may cause us to miss some auctions that are upcoming!\r\n\r\nWe were sorting the sales by `end_at` anyways-- this PR just replaces the `-created_at` sort with an `-end_at` sort, which is also supported by the API.\r\n\r\n(Note that if we end up with > 20 open sales at once, this code will also not return some auctions... so I'm leaving this here as reference but also hopefully by then we've implemented new designs!)\r\n\r\ncc @devangt ","created_at":"2016-11-03T15:10:11Z","updated_at":"2016-11-03T15:10:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"craigspaeth","id":555859,"avatar_url":"https://avatars.githubusercontent.com/u/555859?v=3","gravatar_id":"","url":"https://api.github.com/users/craigspaeth","html_url":"https://github.com/craigspaeth","followers_url":"https://api.github.com/users/craigspaeth/followers","following_url":"https://api.github.com/users/craigspaeth/following{/other_user}","gists_url":"https://api.github.com/users/craigspaeth/gists{/gist_id}","starred_url":"https://api.github.com/users/craigspaeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigspaeth/subscriptions","organizations_url":"https://api.github.com/users/craigspaeth/orgs","repos_url":"https://api.github.com/users/craigspaeth/repos","events_url":"https://api.github.com/users/craigspaeth/events{/privacy}","received_events_url":"https://api.github.com/users/craigspaeth/received_events","type":"User","site_admin":false},"assignees":[{"login":"craigspaeth","id":555859,"avatar_url":"https://avatars.githubusercontent.com/u/555859?v=3","gravatar_id":"","url":"https://api.github.com/users/craigspaeth","html_url":"https://github.com/craigspaeth","followers_url":"https://api.github.com/users/craigspaeth/followers","following_url":"https://api.github.com/users/craigspaeth/following{/other_user}","gists_url":"https://api.github.com/users/craigspaeth/gists{/gist_id}","starred_url":"https://api.github.com/users/craigspaeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigspaeth/subscriptions","organizations_url":"https://api.github.com/users/craigspaeth/orgs","repos_url":"https://api.github.com/users/craigspaeth/repos","events_url":"https://api.github.com/users/craigspaeth/events{/privacy}","received_events_url":"https://api.github.com/users/craigspaeth/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/microgravity/pulls/60/commits","review_comments_url":"https://api.github.com/repos/artsy/microgravity/pulls/60/comments","review_comment_url":"https://api.github.com/repos/artsy/microgravity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/microgravity/issues/60/comments","statuses_url":"https://api.github.com/repos/artsy/microgravity/statuses/dd882ec0da0bc722c47d619d1b4d3e2866cfc826","head":{"label":"sweir27:sort-sales-by-end-at","ref":"sort-sales-by-end-at","sha":"dd882ec0da0bc722c47d619d1b4d3e2866cfc826","user":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars.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":66877098,"name":"microgravity-1","full_name":"sweir27/microgravity-1","owner":{"login":"sweir27","id":2081340,"avatar_url":"https://avatars.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/microgravity-1","description":"The Artsy.net mobile website:","fork":true,"url":"https://api.github.com/repos/sweir27/microgravity-1","forks_url":"https://api.github.com/repos/sweir27/microgravity-1/forks","keys_url":"https://api.github.com/repos/sweir27/microgravity-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweir27/microgravity-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweir27/microgravity-1/teams","hooks_url":"https://api.github.com/repos/sweir27/microgravity-1/hooks","issue_events_url":"https://api.github.com/repos/sweir27/microgravity-1/issues/events{/number}","events_url":"https://api.github.com/repos/sweir27/microgravity-1/events","assignees_url":"https://api.github.com/repos/sweir27/microgravity-1/assignees{/user}","branches_url":"https://api.github.com/repos/sweir27/microgravity-1/branches{/branch}","tags_url":"https://api.github.com/repos/sweir27/microgravity-1/tags","blobs_url":"https://api.github.com/repos/sweir27/microgravity-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweir27/microgravity-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweir27/microgravity-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweir27/microgravity-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweir27/microgravity-1/statuses/{sha}","languages_url":"https://api.github.com/repos/sweir27/microgravity-1/languages","stargazers_url":"https://api.github.com/repos/sweir27/microgravity-1/stargazers","contributors_url":"https://api.github.com/repos/sweir27/microgravity-1/contributors","subscribers_url":"https://api.github.com/repos/sweir27/microgravity-1/subscribers","subscription_url":"https://api.github.com/repos/sweir27/microgravity-1/subscription","commits_url":"https://api.github.com/repos/sweir27/microgravity-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweir27/microgravity-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweir27/microgravity-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweir27/microgravity-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweir27/microgravity-1/contents/{+path}","compare_url":"https://api.github.com/repos/sweir27/microgravity-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweir27/microgravity-1/merges","archive_url":"https://api.github.com/repos/sweir27/microgravity-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweir27/microgravity-1/downloads","issues_url":"https://api.github.com/repos/sweir27/microgravity-1/issues{/number}","pulls_url":"https://api.github.com/repos/sweir27/microgravity-1/pulls{/number}","milestones_url":"https://api.github.com/repos/sweir27/microgravity-1/milestones{/number}","notifications_url":"https://api.github.com/repos/sweir27/microgravity-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweir27/microgravity-1/labels{/name}","releases_url":"https://api.github.com/repos/sweir27/microgravity-1/releases{/id}","deployments_url":"https://api.github.com/repos/sweir27/microgravity-1/deployments","created_at":"2016-08-29T20:13:16Z","updated_at":"2016-08-29T20:13:19Z","pushed_at":"2016-11-03T15:05:10Z","git_url":"git://github.com/sweir27/microgravity-1.git","ssh_url":"git@github.com:sweir27/microgravity-1.git","clone_url":"https://github.com/sweir27/microgravity-1.git","svn_url":"https://github.com/sweir27/microgravity-1","homepage":"https://m.artsy.net","size":795,"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":"d29b0a66cd1946c7306ca578188eae6636f8a6a8","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":66659193,"name":"microgravity","full_name":"artsy/microgravity","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/microgravity","description":"The Artsy.net mobile website:","fork":false,"url":"https://api.github.com/repos/artsy/microgravity","forks_url":"https://api.github.com/repos/artsy/microgravity/forks","keys_url":"https://api.github.com/repos/artsy/microgravity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/microgravity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/microgravity/teams","hooks_url":"https://api.github.com/repos/artsy/microgravity/hooks","issue_events_url":"https://api.github.com/repos/artsy/microgravity/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/microgravity/events","assignees_url":"https://api.github.com/repos/artsy/microgravity/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/microgravity/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/microgravity/tags","blobs_url":"https://api.github.com/repos/artsy/microgravity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/microgravity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/microgravity/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/microgravity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/microgravity/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/microgravity/languages","stargazers_url":"https://api.github.com/repos/artsy/microgravity/stargazers","contributors_url":"https://api.github.com/repos/artsy/microgravity/contributors","subscribers_url":"https://api.github.com/repos/artsy/microgravity/subscribers","subscription_url":"https://api.github.com/repos/artsy/microgravity/subscription","commits_url":"https://api.github.com/repos/artsy/microgravity/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/microgravity/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/microgravity/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/microgravity/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/microgravity/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/microgravity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/microgravity/merges","archive_url":"https://api.github.com/repos/artsy/microgravity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/microgravity/downloads","issues_url":"https://api.github.com/repos/artsy/microgravity/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/microgravity/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/microgravity/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/microgravity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/microgravity/labels{/name}","releases_url":"https://api.github.com/repos/artsy/microgravity/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/microgravity/deployments","created_at":"2016-08-26T15:36:25Z","updated_at":"2016-10-26T18:10:22Z","pushed_at":"2016-11-03T15:10:11Z","git_url":"git://github.com/artsy/microgravity.git","ssh_url":"git@github.com:artsy/microgravity.git","clone_url":"https://github.com/artsy/microgravity.git","svn_url":"https://github.com/artsy/microgravity","homepage":"https://m.artsy.net","size":957,"stargazers_count":6,"watchers_count":6,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":9,"forks":14,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/microgravity/pulls/60"},"html":{"href":"https://github.com/artsy/microgravity/pull/60"},"issue":{"href":"https://api.github.com/repos/artsy/microgravity/issues/60"},"comments":{"href":"https://api.github.com/repos/artsy/microgravity/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/microgravity/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/microgravity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/microgravity/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/microgravity/statuses/dd882ec0da0bc722c47d619d1b4d3e2866cfc826"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"sweir27"}}