{"action":"created","comment":{"url":"https://api.github.com/repos/18F/micropurchase/pulls/comments/76105576","id":76105576,"diff_hunk":"@@ -12,7 +12,7 @@ def drafts_partial\n   end\n \n   def drafts\n-    @_drafts ||= Auction.unpublished.map do |auction|\n+    @_drafts ||= AuctionQuery.new.unpublished.map do |auction|","path":"app/view_models/admin/needs_attention_auctions_view_model.rb","position":5,"original_position":5,"commit_id":"5bd4712c4e628016ca122b61867dfd592de60102","original_commit_id":"5bd4712c4e628016ca122b61867dfd592de60102","user":{"login":"harrisj","id":2044,"avatar_url":"https://avatars.githubusercontent.com/u/2044?v=3","gravatar_id":"","url":"https://api.github.com/users/harrisj","html_url":"https://github.com/harrisj","followers_url":"https://api.github.com/users/harrisj/followers","following_url":"https://api.github.com/users/harrisj/following{/other_user}","gists_url":"https://api.github.com/users/harrisj/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisj/subscriptions","organizations_url":"https://api.github.com/users/harrisj/orgs","repos_url":"https://api.github.com/users/harrisj/repos","events_url":"https://api.github.com/users/harrisj/events{/privacy}","received_events_url":"https://api.github.com/users/harrisj/received_events","type":"User","site_admin":false},"body":"Well do you want me to revert this back from using AuctionQuery? If we don't wrap scopes, I'm not necessarily inclined to do it for some","created_at":"2016-08-24T17:50:36Z","updated_at":"2016-08-24T17:50:36Z","html_url":"https://github.com/18F/micropurchase/pull/1091#discussion_r76105576","pull_request_url":"https://api.github.com/repos/18F/micropurchase/pulls/1091","_links":{"self":{"href":"https://api.github.com/repos/18F/micropurchase/pulls/comments/76105576"},"html":{"href":"https://github.com/18F/micropurchase/pull/1091#discussion_r76105576"},"pull_request":{"href":"https://api.github.com/repos/18F/micropurchase/pulls/1091"}}},"pull_request":{"url":"https://api.github.com/repos/18F/micropurchase/pulls/1091","id":82401972,"html_url":"https://github.com/18F/micropurchase/pull/1091","diff_url":"https://github.com/18F/micropurchase/pull/1091.diff","patch_url":"https://github.com/18F/micropurchase/pull/1091.patch","issue_url":"https://api.github.com/repos/18F/micropurchase/issues/1091","number":1091,"state":"open","locked":false,"title":"Display number of auctions that need attention","user":{"login":"harrisj","id":2044,"avatar_url":"https://avatars.githubusercontent.com/u/2044?v=3","gravatar_id":"","url":"https://api.github.com/users/harrisj","html_url":"https://github.com/harrisj","followers_url":"https://api.github.com/users/harrisj/followers","following_url":"https://api.github.com/users/harrisj/following{/other_user}","gists_url":"https://api.github.com/users/harrisj/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisj/subscriptions","organizations_url":"https://api.github.com/users/harrisj/orgs","repos_url":"https://api.github.com/users/harrisj/repos","events_url":"https://api.github.com/users/harrisj/events{/privacy}","received_events_url":"https://api.github.com/users/harrisj/received_events","type":"User","site_admin":false},"body":"Fixes #1048\r\n\r\n<img width=\"527\" alt=\"localhost_3000_admin_auctions_needs_attention\" src=\"https://cloud.githubusercontent.com/assets/2044/17916763/3d465a7e-6984-11e6-95e8-cdf7414f12b6.png\">\r\n\r\nThis adds some functionality to display the number of auctions that need attention in the subnav of the admin interface for auctions. This needs some review of the CSS, etc.","created_at":"2016-08-23T16:54:56Z","updated_at":"2016-08-24T17:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"316ef2da24cfe6352fe64714e53694665d2e71c6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/18F/micropurchase/pulls/1091/commits","review_comments_url":"https://api.github.com/repos/18F/micropurchase/pulls/1091/comments","review_comment_url":"https://api.github.com/repos/18F/micropurchase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/micropurchase/issues/1091/comments","statuses_url":"https://api.github.com/repos/18F/micropurchase/statuses/5bd4712c4e628016ca122b61867dfd592de60102","head":{"label":"18F:add-number-to-needs-attention","ref":"add-number-to-needs-attention","sha":"5bd4712c4e628016ca122b61867dfd592de60102","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":43830328,"name":"micropurchase","full_name":"18F/micropurchase","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/micropurchase","description":"18F's micro-purchase threshold experiment management app.","fork":false,"url":"https://api.github.com/repos/18F/micropurchase","forks_url":"https://api.github.com/repos/18F/micropurchase/forks","keys_url":"https://api.github.com/repos/18F/micropurchase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/micropurchase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/micropurchase/teams","hooks_url":"https://api.github.com/repos/18F/micropurchase/hooks","issue_events_url":"https://api.github.com/repos/18F/micropurchase/issues/events{/number}","events_url":"https://api.github.com/repos/18F/micropurchase/events","assignees_url":"https://api.github.com/repos/18F/micropurchase/assignees{/user}","branches_url":"https://api.github.com/repos/18F/micropurchase/branches{/branch}","tags_url":"https://api.github.com/repos/18F/micropurchase/tags","blobs_url":"https://api.github.com/repos/18F/micropurchase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/micropurchase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/micropurchase/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/micropurchase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/micropurchase/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/micropurchase/languages","stargazers_url":"https://api.github.com/repos/18F/micropurchase/stargazers","contributors_url":"https://api.github.com/repos/18F/micropurchase/contributors","subscribers_url":"https://api.github.com/repos/18F/micropurchase/subscribers","subscription_url":"https://api.github.com/repos/18F/micropurchase/subscription","commits_url":"https://api.github.com/repos/18F/micropurchase/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/micropurchase/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/micropurchase/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/micropurchase/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/micropurchase/contents/{+path}","compare_url":"https://api.github.com/repos/18F/micropurchase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/micropurchase/merges","archive_url":"https://api.github.com/repos/18F/micropurchase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/micropurchase/downloads","issues_url":"https://api.github.com/repos/18F/micropurchase/issues{/number}","pulls_url":"https://api.github.com/repos/18F/micropurchase/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/micropurchase/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/micropurchase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/micropurchase/labels{/name}","releases_url":"https://api.github.com/repos/18F/micropurchase/releases{/id}","deployments_url":"https://api.github.com/repos/18F/micropurchase/deployments","created_at":"2015-10-07T16:47:29Z","updated_at":"2016-08-23T19:57:25Z","pushed_at":"2016-08-24T17:41:35Z","git_url":"git://github.com/18F/micropurchase.git","ssh_url":"git@github.com:18F/micropurchase.git","clone_url":"https://github.com/18F/micropurchase.git","svn_url":"https://github.com/18F/micropurchase","homepage":"https://micropurchase.18f.gov","size":9011,"stargazers_count":43,"watchers_count":43,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":77,"forks":23,"open_issues":77,"watchers":43,"default_branch":"develop"}},"base":{"label":"18F:develop","ref":"develop","sha":"4b86ac24fdc6d0f50d78cf136d87d2f9ff9ba1ff","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":43830328,"name":"micropurchase","full_name":"18F/micropurchase","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/micropurchase","description":"18F's micro-purchase threshold experiment management app.","fork":false,"url":"https://api.github.com/repos/18F/micropurchase","forks_url":"https://api.github.com/repos/18F/micropurchase/forks","keys_url":"https://api.github.com/repos/18F/micropurchase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/micropurchase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/micropurchase/teams","hooks_url":"https://api.github.com/repos/18F/micropurchase/hooks","issue_events_url":"https://api.github.com/repos/18F/micropurchase/issues/events{/number}","events_url":"https://api.github.com/repos/18F/micropurchase/events","assignees_url":"https://api.github.com/repos/18F/micropurchase/assignees{/user}","branches_url":"https://api.github.com/repos/18F/micropurchase/branches{/branch}","tags_url":"https://api.github.com/repos/18F/micropurchase/tags","blobs_url":"https://api.github.com/repos/18F/micropurchase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/micropurchase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/micropurchase/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/micropurchase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/micropurchase/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/micropurchase/languages","stargazers_url":"https://api.github.com/repos/18F/micropurchase/stargazers","contributors_url":"https://api.github.com/repos/18F/micropurchase/contributors","subscribers_url":"https://api.github.com/repos/18F/micropurchase/subscribers","subscription_url":"https://api.github.com/repos/18F/micropurchase/subscription","commits_url":"https://api.github.com/repos/18F/micropurchase/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/micropurchase/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/micropurchase/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/micropurchase/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/micropurchase/contents/{+path}","compare_url":"https://api.github.com/repos/18F/micropurchase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/micropurchase/merges","archive_url":"https://api.github.com/repos/18F/micropurchase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/micropurchase/downloads","issues_url":"https://api.github.com/repos/18F/micropurchase/issues{/number}","pulls_url":"https://api.github.com/repos/18F/micropurchase/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/micropurchase/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/micropurchase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/micropurchase/labels{/name}","releases_url":"https://api.github.com/repos/18F/micropurchase/releases{/id}","deployments_url":"https://api.github.com/repos/18F/micropurchase/deployments","created_at":"2015-10-07T16:47:29Z","updated_at":"2016-08-23T19:57:25Z","pushed_at":"2016-08-24T17:41:35Z","git_url":"git://github.com/18F/micropurchase.git","ssh_url":"git@github.com:18F/micropurchase.git","clone_url":"https://github.com/18F/micropurchase.git","svn_url":"https://github.com/18F/micropurchase","homepage":"https://micropurchase.18f.gov","size":9011,"stargazers_count":43,"watchers_count":43,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":77,"forks":23,"open_issues":77,"watchers":43,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/micropurchase/pulls/1091"},"html":{"href":"https://github.com/18F/micropurchase/pull/1091"},"issue":{"href":"https://api.github.com/repos/18F/micropurchase/issues/1091"},"comments":{"href":"https://api.github.com/repos/18F/micropurchase/issues/1091/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/micropurchase/pulls/1091/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/micropurchase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/micropurchase/pulls/1091/commits"},"statuses":{"href":"https://api.github.com/repos/18F/micropurchase/statuses/5bd4712c4e628016ca122b61867dfd592de60102"}}}}
{"actor":{"display_login":"harrisj"}}