{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/calendars/pulls/comments/79360338","id":79360338,"diff_hunk":"@@ -7,4 +8,8 @@ def self.publishing_api\n       bearer_token: ENV['PUBLISHING_API_BEARER_TOKEN'] || 'example'\n     )\n   end\n+\n+  def self.rummager_api","path":"lib/services.rb","position":11,"original_position":11,"commit_id":"4d36eadddd0ccfdb3f8a2d4830163bff98dd9234","original_commit_id":"4d36eadddd0ccfdb3f8a2d4830163bff98dd9234","user":{"login":"carvil","id":416701,"avatar_url":"https://avatars.githubusercontent.com/u/416701?v=3","gravatar_id":"","url":"https://api.github.com/users/carvil","html_url":"https://github.com/carvil","followers_url":"https://api.github.com/users/carvil/followers","following_url":"https://api.github.com/users/carvil/following{/other_user}","gists_url":"https://api.github.com/users/carvil/gists{/gist_id}","starred_url":"https://api.github.com/users/carvil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carvil/subscriptions","organizations_url":"https://api.github.com/users/carvil/orgs","repos_url":"https://api.github.com/users/carvil/repos","events_url":"https://api.github.com/users/carvil/events{/privacy}","received_events_url":"https://api.github.com/users/carvil/received_events","type":"User","site_admin":false},"body":"Will change","created_at":"2016-09-19T10:05:29Z","updated_at":"2016-09-19T10:05:29Z","html_url":"https://github.com/alphagov/calendars/pull/118#discussion_r79360338","pull_request_url":"https://api.github.com/repos/alphagov/calendars/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/alphagov/calendars/pulls/comments/79360338"},"html":{"href":"https://github.com/alphagov/calendars/pull/118#discussion_r79360338"},"pull_request":{"href":"https://api.github.com/repos/alphagov/calendars/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/calendars/pulls/118","id":85762400,"html_url":"https://github.com/alphagov/calendars/pull/118","diff_url":"https://github.com/alphagov/calendars/pull/118.diff","patch_url":"https://github.com/alphagov/calendars/pull/118.patch","issue_url":"https://api.github.com/repos/alphagov/calendars/issues/118","number":118,"state":"open","locked":false,"title":"[DO NOT MERGE] Rake task to add calendars to the search index","user":{"login":"carvil","id":416701,"avatar_url":"https://avatars.githubusercontent.com/u/416701?v=3","gravatar_id":"","url":"https://api.github.com/users/carvil","html_url":"https://github.com/carvil","followers_url":"https://api.github.com/users/carvil/followers","following_url":"https://api.github.com/users/carvil/following{/other_user}","gists_url":"https://api.github.com/users/carvil/gists{/gist_id}","starred_url":"https://api.github.com/users/carvil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carvil/subscriptions","organizations_url":"https://api.github.com/users/carvil/orgs","repos_url":"https://api.github.com/users/carvil/repos","events_url":"https://api.github.com/users/carvil/events{/privacy}","received_events_url":"https://api.github.com/users/carvil/received_events","type":"User","site_admin":false},"body":"Previously, panopticon would send artifacts to Rummager. That flow is now being\r\ndeprecated in favour of a simpler approach which is to send documents directly\r\nto rummager.\r\n\r\nThis commit adds a class that allows us to add calendars to the search index\r\ndirectly. It also adds a rake task `rummager:register` which goes through all\r\ncalendars and registers them in the search index.\r\n\r\nThis feature requires the following in place before it can be merged:\r\n- [ ] disable https://github.com/alphagov/panopticon/blob/master/app/models/enhancements/artefact.rb#L17\r\n- [ ] add this rake task to https://github.com/alphagov/govuk-app-deployment/blob/ccbebcbc02aacd19e94f82659735f88cd72cdf24/calendars/config/deploy.rb#L21\r\n\r\nBefore, the search results in `search-admin` looked like this:\r\n\r\n<img width=\"1182\" alt=\"screen shot 2016-09-19 at 10 31 16\" src=\"https://cloud.githubusercontent.com/assets/416701/18627785/cf97fd58-7e54-11e6-9a46-62a314176f8d.png\">\r\n\r\nAfter the change, it looks like this:\r\n\r\n<img width=\"1197\" alt=\"screen shot 2016-09-19 at 10 32 32\" src=\"https://cloud.githubusercontent.com/assets/416701/18627791/dc4a4920-7e54-11e6-98c9-94378e54b0fb.png\">","created_at":"2016-09-19T09:37:36Z","updated_at":"2016-09-19T10:05:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbb579c18c91e9af48f7cc4e0556a2cda54e3a1b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/calendars/pulls/118/commits","review_comments_url":"https://api.github.com/repos/alphagov/calendars/pulls/118/comments","review_comment_url":"https://api.github.com/repos/alphagov/calendars/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/calendars/issues/118/comments","statuses_url":"https://api.github.com/repos/alphagov/calendars/statuses/4d36eadddd0ccfdb3f8a2d4830163bff98dd9234","head":{"label":"alphagov:add-documents-to-search-directly","ref":"add-documents-to-search-directly","sha":"4d36eadddd0ccfdb3f8a2d4830163bff98dd9234","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":2734182,"name":"calendars","full_name":"alphagov/calendars","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/calendars","description":"Calendars (bank holidays, clocks changing) in a clear and accessible format, along with JSON and iCal","fork":false,"url":"https://api.github.com/repos/alphagov/calendars","forks_url":"https://api.github.com/repos/alphagov/calendars/forks","keys_url":"https://api.github.com/repos/alphagov/calendars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/calendars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/calendars/teams","hooks_url":"https://api.github.com/repos/alphagov/calendars/hooks","issue_events_url":"https://api.github.com/repos/alphagov/calendars/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/calendars/events","assignees_url":"https://api.github.com/repos/alphagov/calendars/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/calendars/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/calendars/tags","blobs_url":"https://api.github.com/repos/alphagov/calendars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/calendars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/calendars/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/calendars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/calendars/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/calendars/languages","stargazers_url":"https://api.github.com/repos/alphagov/calendars/stargazers","contributors_url":"https://api.github.com/repos/alphagov/calendars/contributors","subscribers_url":"https://api.github.com/repos/alphagov/calendars/subscribers","subscription_url":"https://api.github.com/repos/alphagov/calendars/subscription","commits_url":"https://api.github.com/repos/alphagov/calendars/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/calendars/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/calendars/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/calendars/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/calendars/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/calendars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/calendars/merges","archive_url":"https://api.github.com/repos/alphagov/calendars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/calendars/downloads","issues_url":"https://api.github.com/repos/alphagov/calendars/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/calendars/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/calendars/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/calendars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/calendars/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/calendars/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/calendars/deployments","created_at":"2011-11-08T14:15:25Z","updated_at":"2016-08-08T08:15:33Z","pushed_at":"2016-09-19T09:37:36Z","git_url":"git://github.com/alphagov/calendars.git","ssh_url":"git@github.com:alphagov/calendars.git","clone_url":"https://github.com/alphagov/calendars.git","svn_url":"https://github.com/alphagov/calendars","homepage":"","size":1003,"stargazers_count":19,"watchers_count":19,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":19,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"b2458197ca7852b14b4c6299812870ae1889de80","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":2734182,"name":"calendars","full_name":"alphagov/calendars","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/calendars","description":"Calendars (bank holidays, clocks changing) in a clear and accessible format, along with JSON and iCal","fork":false,"url":"https://api.github.com/repos/alphagov/calendars","forks_url":"https://api.github.com/repos/alphagov/calendars/forks","keys_url":"https://api.github.com/repos/alphagov/calendars/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/calendars/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/calendars/teams","hooks_url":"https://api.github.com/repos/alphagov/calendars/hooks","issue_events_url":"https://api.github.com/repos/alphagov/calendars/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/calendars/events","assignees_url":"https://api.github.com/repos/alphagov/calendars/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/calendars/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/calendars/tags","blobs_url":"https://api.github.com/repos/alphagov/calendars/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/calendars/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/calendars/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/calendars/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/calendars/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/calendars/languages","stargazers_url":"https://api.github.com/repos/alphagov/calendars/stargazers","contributors_url":"https://api.github.com/repos/alphagov/calendars/contributors","subscribers_url":"https://api.github.com/repos/alphagov/calendars/subscribers","subscription_url":"https://api.github.com/repos/alphagov/calendars/subscription","commits_url":"https://api.github.com/repos/alphagov/calendars/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/calendars/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/calendars/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/calendars/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/calendars/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/calendars/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/calendars/merges","archive_url":"https://api.github.com/repos/alphagov/calendars/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/calendars/downloads","issues_url":"https://api.github.com/repos/alphagov/calendars/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/calendars/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/calendars/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/calendars/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/calendars/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/calendars/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/calendars/deployments","created_at":"2011-11-08T14:15:25Z","updated_at":"2016-08-08T08:15:33Z","pushed_at":"2016-09-19T09:37:36Z","git_url":"git://github.com/alphagov/calendars.git","ssh_url":"git@github.com:alphagov/calendars.git","clone_url":"https://github.com/alphagov/calendars.git","svn_url":"https://github.com/alphagov/calendars","homepage":"","size":1003,"stargazers_count":19,"watchers_count":19,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/calendars/pulls/118"},"html":{"href":"https://github.com/alphagov/calendars/pull/118"},"issue":{"href":"https://api.github.com/repos/alphagov/calendars/issues/118"},"comments":{"href":"https://api.github.com/repos/alphagov/calendars/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/calendars/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/calendars/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/calendars/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/calendars/statuses/4d36eadddd0ccfdb3f8a2d4830163bff98dd9234"}}}}
{"actor":{"display_login":"carvil"}}