{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/17","id":30836230,"html_url":"https://github.com/alphagov/external-link-tracker/pull/17","diff_url":"https://github.com/alphagov/external-link-tracker/pull/17.diff","patch_url":"https://github.com/alphagov/external-link-tracker/pull/17.patch","issue_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues/17","number":17,"state":"open","locked":false,"title":"Create the expiring index in the background","user":{"login":"bradleywright","id":1516,"avatar_url":"https://avatars.githubusercontent.com/u/1516?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleywright","html_url":"https://github.com/bradleywright","followers_url":"https://api.github.com/users/bradleywright/followers","following_url":"https://api.github.com/users/bradleywright/following{/other_user}","gists_url":"https://api.github.com/users/bradleywright/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleywright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleywright/subscriptions","organizations_url":"https://api.github.com/users/bradleywright/orgs","repos_url":"https://api.github.com/users/bradleywright/repos","events_url":"https://api.github.com/users/bradleywright/events{/privacy}","received_events_url":"https://api.github.com/users/bradleywright/received_events","type":"User","site_admin":false},"body":"By default creating an index blocks all reads and writes to the database. We don't want to block all Mongo reads in the publishing systems (this caused an outage on preview for 10 minutes) so we should [make the index in the background](http://docs.mongodb.org/manual/tutorial/build-indexes-in-the-background/).","created_at":"2015-03-10T10:04:57Z","updated_at":"2015-03-10T10:04:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/17/commits","review_comments_url":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/17/comments","review_comment_url":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues/17/comments","statuses_url":"https://api.github.com/repos/alphagov/external-link-tracker/statuses/00f91c5f233039390e134470a7c5bcc16a4eb82f","head":{"label":"alphagov:create-index-in-background","ref":"create-index-in-background","sha":"00f91c5f233039390e134470a7c5bcc16a4eb82f","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":15498211,"name":"external-link-tracker","full_name":"alphagov/external-link-tracker","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/external-link-tracker","description":"An external link tracking service, implemented in Go.","fork":false,"url":"https://api.github.com/repos/alphagov/external-link-tracker","forks_url":"https://api.github.com/repos/alphagov/external-link-tracker/forks","keys_url":"https://api.github.com/repos/alphagov/external-link-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/external-link-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/external-link-tracker/teams","hooks_url":"https://api.github.com/repos/alphagov/external-link-tracker/hooks","issue_events_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/external-link-tracker/events","assignees_url":"https://api.github.com/repos/alphagov/external-link-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/external-link-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/external-link-tracker/tags","blobs_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/external-link-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/external-link-tracker/languages","stargazers_url":"https://api.github.com/repos/alphagov/external-link-tracker/stargazers","contributors_url":"https://api.github.com/repos/alphagov/external-link-tracker/contributors","subscribers_url":"https://api.github.com/repos/alphagov/external-link-tracker/subscribers","subscription_url":"https://api.github.com/repos/alphagov/external-link-tracker/subscription","commits_url":"https://api.github.com/repos/alphagov/external-link-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/external-link-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/external-link-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/external-link-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/external-link-tracker/merges","archive_url":"https://api.github.com/repos/alphagov/external-link-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/external-link-tracker/downloads","issues_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/external-link-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/external-link-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/external-link-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/external-link-tracker/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/external-link-tracker/releases{/id}","created_at":"2013-12-28T20:11:18Z","updated_at":"2015-02-17T10:52:47Z","pushed_at":"2015-03-10T10:03:47Z","git_url":"git://github.com/alphagov/external-link-tracker.git","ssh_url":"git@github.com:alphagov/external-link-tracker.git","clone_url":"https://github.com/alphagov/external-link-tracker.git","svn_url":"https://github.com/alphagov/external-link-tracker","homepage":null,"size":687,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"f217e2b1294b366771dd1875985aabbfbce24597","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":15498211,"name":"external-link-tracker","full_name":"alphagov/external-link-tracker","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/external-link-tracker","description":"An external link tracking service, implemented in Go.","fork":false,"url":"https://api.github.com/repos/alphagov/external-link-tracker","forks_url":"https://api.github.com/repos/alphagov/external-link-tracker/forks","keys_url":"https://api.github.com/repos/alphagov/external-link-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/external-link-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/external-link-tracker/teams","hooks_url":"https://api.github.com/repos/alphagov/external-link-tracker/hooks","issue_events_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/external-link-tracker/events","assignees_url":"https://api.github.com/repos/alphagov/external-link-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/external-link-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/external-link-tracker/tags","blobs_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/external-link-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/external-link-tracker/languages","stargazers_url":"https://api.github.com/repos/alphagov/external-link-tracker/stargazers","contributors_url":"https://api.github.com/repos/alphagov/external-link-tracker/contributors","subscribers_url":"https://api.github.com/repos/alphagov/external-link-tracker/subscribers","subscription_url":"https://api.github.com/repos/alphagov/external-link-tracker/subscription","commits_url":"https://api.github.com/repos/alphagov/external-link-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/external-link-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/external-link-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/external-link-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/external-link-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/external-link-tracker/merges","archive_url":"https://api.github.com/repos/alphagov/external-link-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/external-link-tracker/downloads","issues_url":"https://api.github.com/repos/alphagov/external-link-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/external-link-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/external-link-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/external-link-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/external-link-tracker/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/external-link-tracker/releases{/id}","created_at":"2013-12-28T20:11:18Z","updated_at":"2015-02-17T10:52:47Z","pushed_at":"2015-03-10T10:03:47Z","git_url":"git://github.com/alphagov/external-link-tracker.git","ssh_url":"git@github.com:alphagov/external-link-tracker.git","clone_url":"https://github.com/alphagov/external-link-tracker.git","svn_url":"https://github.com/alphagov/external-link-tracker","homepage":null,"size":687,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/17"},"html":{"href":"https://github.com/alphagov/external-link-tracker/pull/17"},"issue":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/issues/17"},"comments":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/external-link-tracker/statuses/00f91c5f233039390e134470a7c5bcc16a4eb82f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}