{"action":"opened","number":161,"pull_request":{"url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/161","id":51529541,"html_url":"https://github.com/alphagov/collections-publisher/pull/161","diff_url":"https://github.com/alphagov/collections-publisher/pull/161.diff","patch_url":"https://github.com/alphagov/collections-publisher/pull/161.patch","issue_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/161","number":161,"state":"open","locked":false,"title":"WIP - Upgrade to use version 2 of the publishing_api.","user":{"login":"stephen-richards","id":13809955,"avatar_url":"https://avatars.githubusercontent.com/u/13809955?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen-richards","html_url":"https://github.com/stephen-richards","followers_url":"https://api.github.com/users/stephen-richards/followers","following_url":"https://api.github.com/users/stephen-richards/following{/other_user}","gists_url":"https://api.github.com/users/stephen-richards/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen-richards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen-richards/subscriptions","organizations_url":"https://api.github.com/users/stephen-richards/orgs","repos_url":"https://api.github.com/users/stephen-richards/repos","events_url":"https://api.github.com/users/stephen-richards/events{/privacy}","received_events_url":"https://api.github.com/users/stephen-richards/received_events","type":"User","site_admin":false},"body":"Currently blocked on bug fix in publishing_api.\r\n\r\nArchiving a published topic causes a db constraint violation - the draft content item is being removed while there is still a reference to it in the live content store.","created_at":"2015-11-23T14:30:06Z","updated_at":"2015-11-23T14:30:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/161/commits","review_comments_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/161/comments","review_comment_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/161/comments","statuses_url":"https://api.github.com/repos/alphagov/collections-publisher/statuses/001578bde7beec3281bd21a86062873e08c82ec5","head":{"label":"alphagov:publisher_api_v2","ref":"publisher_api_v2","sha":"001578bde7beec3281bd21a86062873e08c82ec5","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":22423082,"name":"collections-publisher","full_name":"alphagov/collections-publisher","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/collections-publisher","description":"Collections Publisher publishes browse pages and topic pages.","fork":false,"url":"https://api.github.com/repos/alphagov/collections-publisher","forks_url":"https://api.github.com/repos/alphagov/collections-publisher/forks","keys_url":"https://api.github.com/repos/alphagov/collections-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/collections-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/collections-publisher/teams","hooks_url":"https://api.github.com/repos/alphagov/collections-publisher/hooks","issue_events_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/collections-publisher/events","assignees_url":"https://api.github.com/repos/alphagov/collections-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/collections-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/collections-publisher/tags","blobs_url":"https://api.github.com/repos/alphagov/collections-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/collections-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/collections-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/collections-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/collections-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/collections-publisher/languages","stargazers_url":"https://api.github.com/repos/alphagov/collections-publisher/stargazers","contributors_url":"https://api.github.com/repos/alphagov/collections-publisher/contributors","subscribers_url":"https://api.github.com/repos/alphagov/collections-publisher/subscribers","subscription_url":"https://api.github.com/repos/alphagov/collections-publisher/subscription","commits_url":"https://api.github.com/repos/alphagov/collections-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/collections-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/collections-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/collections-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/collections-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/collections-publisher/merges","archive_url":"https://api.github.com/repos/alphagov/collections-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/collections-publisher/downloads","issues_url":"https://api.github.com/repos/alphagov/collections-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/collections-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/collections-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/collections-publisher/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/collections-publisher/releases{/id}","created_at":"2014-07-30T10:41:14Z","updated_at":"2015-06-10T11:09:13Z","pushed_at":"2015-11-23T14:27:45Z","git_url":"git://github.com/alphagov/collections-publisher.git","ssh_url":"git@github.com:alphagov/collections-publisher.git","clone_url":"https://github.com/alphagov/collections-publisher.git","svn_url":"https://github.com/alphagov/collections-publisher","homepage":"","size":753,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"bf7316d97676825f8d26a915339f9cf632171738","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":22423082,"name":"collections-publisher","full_name":"alphagov/collections-publisher","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/collections-publisher","description":"Collections Publisher publishes browse pages and topic pages.","fork":false,"url":"https://api.github.com/repos/alphagov/collections-publisher","forks_url":"https://api.github.com/repos/alphagov/collections-publisher/forks","keys_url":"https://api.github.com/repos/alphagov/collections-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/collections-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/collections-publisher/teams","hooks_url":"https://api.github.com/repos/alphagov/collections-publisher/hooks","issue_events_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/collections-publisher/events","assignees_url":"https://api.github.com/repos/alphagov/collections-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/collections-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/collections-publisher/tags","blobs_url":"https://api.github.com/repos/alphagov/collections-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/collections-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/collections-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/collections-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/collections-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/collections-publisher/languages","stargazers_url":"https://api.github.com/repos/alphagov/collections-publisher/stargazers","contributors_url":"https://api.github.com/repos/alphagov/collections-publisher/contributors","subscribers_url":"https://api.github.com/repos/alphagov/collections-publisher/subscribers","subscription_url":"https://api.github.com/repos/alphagov/collections-publisher/subscription","commits_url":"https://api.github.com/repos/alphagov/collections-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/collections-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/collections-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/collections-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/collections-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/collections-publisher/merges","archive_url":"https://api.github.com/repos/alphagov/collections-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/collections-publisher/downloads","issues_url":"https://api.github.com/repos/alphagov/collections-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/collections-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/collections-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/collections-publisher/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/collections-publisher/releases{/id}","created_at":"2014-07-30T10:41:14Z","updated_at":"2015-06-10T11:09:13Z","pushed_at":"2015-11-23T14:27:45Z","git_url":"git://github.com/alphagov/collections-publisher.git","ssh_url":"git@github.com:alphagov/collections-publisher.git","clone_url":"https://github.com/alphagov/collections-publisher.git","svn_url":"https://github.com/alphagov/collections-publisher","homepage":"","size":753,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/161"},"html":{"href":"https://github.com/alphagov/collections-publisher/pull/161"},"issue":{"href":"https://api.github.com/repos/alphagov/collections-publisher/issues/161"},"comments":{"href":"https://api.github.com/repos/alphagov/collections-publisher/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/collections-publisher/statuses/001578bde7beec3281bd21a86062873e08c82ec5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":482,"deletions":131,"changed_files":28}}