{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/positron/pulls/comments/26991150","id":26991150,"diff_hunk":"@@ -65,6 +65,7 @@ schema = (->\n   featured_artwork_ids: @array().items(@objectId()).allow(null)\n   fair_id: @objectId().allow('', null)\n   partner_ids: @array().items(@objectId()).allow(null)\n+  auction_id: @objectId().allow('', null)","path":"api/apps/articles/model.coffee","position":4,"original_position":4,"commit_id":"9f0e96bd9ddad085df7f9fb996796919632e7735","original_commit_id":"9f0e96bd9ddad085df7f9fb996796919632e7735","user":{"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},"body":"Good point... I'm not strongly opinionated on that naming. I like to optimistically think we'll some day refactor auctions to a first class thing, so I'm leaning towards `auction_id`.\r\n\r\nFor now yeah single auction is fine. We may need to make this a many to many later down the line... but I'll also probably have to address that with fairs—I'll cross that bridge when we get to it.","created_at":"2015-03-23T23:26:24Z","updated_at":"2015-03-23T23:26:24Z","html_url":"https://github.com/artsy/positron/pull/279#discussion_r26991150","pull_request_url":"https://api.github.com/repos/artsy/positron/pulls/279","_links":{"self":{"href":"https://api.github.com/repos/artsy/positron/pulls/comments/26991150"},"html":{"href":"https://github.com/artsy/positron/pull/279#discussion_r26991150"},"pull_request":{"href":"https://api.github.com/repos/artsy/positron/pulls/279"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/positron/pulls/279","id":31782777,"html_url":"https://github.com/artsy/positron/pull/279","diff_url":"https://github.com/artsy/positron/pull/279.diff","patch_url":"https://github.com/artsy/positron/pull/279.patch","issue_url":"https://api.github.com/repos/artsy/positron/issues/279","number":279,"state":"open","locked":false,"title":"@craigspaeth Allow admin to add auction_id to an article","user":{"login":"kanaabe","id":2236794,"avatar_url":"https://avatars.githubusercontent.com/u/2236794?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaabe","html_url":"https://github.com/kanaabe","followers_url":"https://api.github.com/users/kanaabe/followers","following_url":"https://api.github.com/users/kanaabe/following{/other_user}","gists_url":"https://api.github.com/users/kanaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaabe/subscriptions","organizations_url":"https://api.github.com/users/kanaabe/orgs","repos_url":"https://api.github.com/users/kanaabe/repos","events_url":"https://api.github.com/users/kanaabe/events{/privacy}","received_events_url":"https://api.github.com/users/kanaabe/received_events","type":"User","site_admin":false},"body":"Autosaves when you click on the auction and retrieves the auction when you come back to page. \r\n\r\n![positron_auction_autocomplete](https://cloud.githubusercontent.com/assets/2236794/6792444/96ed789e-d18e-11e4-95a3-eb240bf06fea.gif)\r\n","created_at":"2015-03-23T23:00:15Z","updated_at":"2015-03-23T23:26:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a37873b25b969e7929ba922a3c5336a615dd42f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/artsy/positron/pulls/279/commits","review_comments_url":"https://api.github.com/repos/artsy/positron/pulls/279/comments","review_comment_url":"https://api.github.com/repos/artsy/positron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/positron/issues/279/comments","statuses_url":"https://api.github.com/repos/artsy/positron/statuses/9f0e96bd9ddad085df7f9fb996796919632e7735","head":{"label":"kanaabe:articlefairs","ref":"articlefairs","sha":"9f0e96bd9ddad085df7f9fb996796919632e7735","user":{"login":"kanaabe","id":2236794,"avatar_url":"https://avatars.githubusercontent.com/u/2236794?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaabe","html_url":"https://github.com/kanaabe","followers_url":"https://api.github.com/users/kanaabe/followers","following_url":"https://api.github.com/users/kanaabe/following{/other_user}","gists_url":"https://api.github.com/users/kanaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaabe/subscriptions","organizations_url":"https://api.github.com/users/kanaabe/orgs","repos_url":"https://api.github.com/users/kanaabe/repos","events_url":"https://api.github.com/users/kanaabe/events{/privacy}","received_events_url":"https://api.github.com/users/kanaabe/received_events","type":"User","site_admin":false},"repo":{"id":31676927,"name":"positron","full_name":"kanaabe/positron","owner":{"login":"kanaabe","id":2236794,"avatar_url":"https://avatars.githubusercontent.com/u/2236794?v=3","gravatar_id":"","url":"https://api.github.com/users/kanaabe","html_url":"https://github.com/kanaabe","followers_url":"https://api.github.com/users/kanaabe/followers","following_url":"https://api.github.com/users/kanaabe/following{/other_user}","gists_url":"https://api.github.com/users/kanaabe/gists{/gist_id}","starred_url":"https://api.github.com/users/kanaabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanaabe/subscriptions","organizations_url":"https://api.github.com/users/kanaabe/orgs","repos_url":"https://api.github.com/users/kanaabe/repos","events_url":"https://api.github.com/users/kanaabe/events{/privacy}","received_events_url":"https://api.github.com/users/kanaabe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kanaabe/positron","description":"Otherwise known as Artsy Writer. The back-end posting tool for publishing articles on Artsy.","fork":true,"url":"https://api.github.com/repos/kanaabe/positron","forks_url":"https://api.github.com/repos/kanaabe/positron/forks","keys_url":"https://api.github.com/repos/kanaabe/positron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kanaabe/positron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kanaabe/positron/teams","hooks_url":"https://api.github.com/repos/kanaabe/positron/hooks","issue_events_url":"https://api.github.com/repos/kanaabe/positron/issues/events{/number}","events_url":"https://api.github.com/repos/kanaabe/positron/events","assignees_url":"https://api.github.com/repos/kanaabe/positron/assignees{/user}","branches_url":"https://api.github.com/repos/kanaabe/positron/branches{/branch}","tags_url":"https://api.github.com/repos/kanaabe/positron/tags","blobs_url":"https://api.github.com/repos/kanaabe/positron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kanaabe/positron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kanaabe/positron/git/refs{/sha}","trees_url":"https://api.github.com/repos/kanaabe/positron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kanaabe/positron/statuses/{sha}","languages_url":"https://api.github.com/repos/kanaabe/positron/languages","stargazers_url":"https://api.github.com/repos/kanaabe/positron/stargazers","contributors_url":"https://api.github.com/repos/kanaabe/positron/contributors","subscribers_url":"https://api.github.com/repos/kanaabe/positron/subscribers","subscription_url":"https://api.github.com/repos/kanaabe/positron/subscription","commits_url":"https://api.github.com/repos/kanaabe/positron/commits{/sha}","git_commits_url":"https://api.github.com/repos/kanaabe/positron/git/commits{/sha}","comments_url":"https://api.github.com/repos/kanaabe/positron/comments{/number}","issue_comment_url":"https://api.github.com/repos/kanaabe/positron/issues/comments{/number}","contents_url":"https://api.github.com/repos/kanaabe/positron/contents/{+path}","compare_url":"https://api.github.com/repos/kanaabe/positron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kanaabe/positron/merges","archive_url":"https://api.github.com/repos/kanaabe/positron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kanaabe/positron/downloads","issues_url":"https://api.github.com/repos/kanaabe/positron/issues{/number}","pulls_url":"https://api.github.com/repos/kanaabe/positron/pulls{/number}","milestones_url":"https://api.github.com/repos/kanaabe/positron/milestones{/number}","notifications_url":"https://api.github.com/repos/kanaabe/positron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kanaabe/positron/labels{/name}","releases_url":"https://api.github.com/repos/kanaabe/positron/releases{/id}","created_at":"2015-03-04T19:57:46Z","updated_at":"2015-03-23T21:30:30Z","pushed_at":"2015-03-23T22:55:44Z","git_url":"git://github.com/kanaabe/positron.git","ssh_url":"git@github.com:kanaabe/positron.git","clone_url":"https://github.com/kanaabe/positron.git","svn_url":"https://github.com/kanaabe/positron","homepage":"","size":1179,"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":"e9b86579b0da823f31e9edcfc5698dba36a7a8ed","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":23808195,"name":"positron","full_name":"artsy/positron","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/positron","description":"Otherwise known as Artsy Writer. The back-end posting tool for publishing articles on Artsy.","fork":false,"url":"https://api.github.com/repos/artsy/positron","forks_url":"https://api.github.com/repos/artsy/positron/forks","keys_url":"https://api.github.com/repos/artsy/positron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/positron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/positron/teams","hooks_url":"https://api.github.com/repos/artsy/positron/hooks","issue_events_url":"https://api.github.com/repos/artsy/positron/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/positron/events","assignees_url":"https://api.github.com/repos/artsy/positron/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/positron/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/positron/tags","blobs_url":"https://api.github.com/repos/artsy/positron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/positron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/positron/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/positron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/positron/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/positron/languages","stargazers_url":"https://api.github.com/repos/artsy/positron/stargazers","contributors_url":"https://api.github.com/repos/artsy/positron/contributors","subscribers_url":"https://api.github.com/repos/artsy/positron/subscribers","subscription_url":"https://api.github.com/repos/artsy/positron/subscription","commits_url":"https://api.github.com/repos/artsy/positron/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/positron/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/positron/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/positron/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/positron/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/positron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/positron/merges","archive_url":"https://api.github.com/repos/artsy/positron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/positron/downloads","issues_url":"https://api.github.com/repos/artsy/positron/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/positron/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/positron/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/positron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/positron/labels{/name}","releases_url":"https://api.github.com/repos/artsy/positron/releases{/id}","created_at":"2014-09-08T21:02:13Z","updated_at":"2015-03-23T21:04:59Z","pushed_at":"2015-03-23T23:00:15Z","git_url":"git://github.com/artsy/positron.git","ssh_url":"git@github.com:artsy/positron.git","clone_url":"https://github.com/artsy/positron.git","svn_url":"https://github.com/artsy/positron","homepage":"","size":2745,"stargazers_count":5,"watchers_count":5,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":54,"forks":5,"open_issues":54,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/positron/pulls/279"},"html":{"href":"https://github.com/artsy/positron/pull/279"},"issue":{"href":"https://api.github.com/repos/artsy/positron/issues/279"},"comments":{"href":"https://api.github.com/repos/artsy/positron/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/positron/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/positron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/positron/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/positron/statuses/9f0e96bd9ddad085df7f9fb996796919632e7735"}}}}