{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/comments/74759114","id":74759114,"diff_hunk":"@@ -0,0 +1,147 @@\n+require 'rails_helper'\n+require 'gds_api/test_helpers/content_store'\n+\n+RSpec.feature \"Archiving tags for mainstream browse pages\" do","path":"spec/features/archiving_tags_for_mainstream_browse_pages_spec.rb","position":4,"original_position":4,"commit_id":"435b06f269c600a5e94556ea88542d3279aacbc5","original_commit_id":"435b06f269c600a5e94556ea88542d3279aacbc5","user":{"login":"mobaig","id":519250,"avatar_url":"https://avatars.githubusercontent.com/u/519250?v=3","gravatar_id":"","url":"https://api.github.com/users/mobaig","html_url":"https://github.com/mobaig","followers_url":"https://api.github.com/users/mobaig/followers","following_url":"https://api.github.com/users/mobaig/following{/other_user}","gists_url":"https://api.github.com/users/mobaig/gists{/gist_id}","starred_url":"https://api.github.com/users/mobaig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobaig/subscriptions","organizations_url":"https://api.github.com/users/mobaig/orgs","repos_url":"https://api.github.com/users/mobaig/repos","events_url":"https://api.github.com/users/mobaig/events{/privacy}","received_events_url":"https://api.github.com/users/mobaig/received_events","type":"User","site_admin":false},"body":"Small thing, but I think this would be clearer if worded \"Archiving mainstream browse page tags\".\r\n\r\nSame with \"Archiving topic tags\", plus the corresponding filenames.","created_at":"2016-08-15T13:15:01Z","updated_at":"2016-08-15T13:15:01Z","html_url":"https://github.com/alphagov/collections-publisher/pull/219#discussion_r74759114","pull_request_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/219","_links":{"self":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/comments/74759114"},"html":{"href":"https://github.com/alphagov/collections-publisher/pull/219#discussion_r74759114"},"pull_request":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/219"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/219","id":81127853,"html_url":"https://github.com/alphagov/collections-publisher/pull/219","diff_url":"https://github.com/alphagov/collections-publisher/pull/219.diff","patch_url":"https://github.com/alphagov/collections-publisher/pull/219.patch","issue_url":"https://api.github.com/repos/alphagov/collections-publisher/issues/219","number":219,"state":"open","locked":false,"title":"Add browse page archiving","user":{"login":"rubenarakelyan","id":444232,"avatar_url":"https://avatars.githubusercontent.com/u/444232?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenarakelyan","html_url":"https://github.com/rubenarakelyan","followers_url":"https://api.github.com/users/rubenarakelyan/followers","following_url":"https://api.github.com/users/rubenarakelyan/following{/other_user}","gists_url":"https://api.github.com/users/rubenarakelyan/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenarakelyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenarakelyan/subscriptions","organizations_url":"https://api.github.com/users/rubenarakelyan/orgs","repos_url":"https://api.github.com/users/rubenarakelyan/repos","events_url":"https://api.github.com/users/rubenarakelyan/events{/privacy}","received_events_url":"https://api.github.com/users/rubenarakelyan/received_events","type":"User","site_admin":false},"body":"Currently, Collections Publisher allows users to archive or delete topics that are no longer required, but does not allow the same functionality with mainstream browse pages. The underlying functionality to do this exists in the Publishing API but is not exposed here.\r\n\r\nThis commit adds the user-facing functionality to allow mainstream browse pages to be deleted (if they have not yet been published) or archived and redirected (if they have already been published). The user experience is identical to archiving/deleting topics.\r\n\r\nPaired with @jackscotti \r\n\r\nTrello: https://trello.com/c/olZEBaef/67-make-it-possible-to-redirect-browse-pages-in-collections-publisher\r\n\r\nUnpublished mainstream browse page has a \"remove\" button:\r\n![screen shot 2016-08-12 at 15 25 48](https://cloud.githubusercontent.com/assets/444232/17625552/4b68952c-60a1-11e6-865f-0e9b27db2914.png)\r\n\r\nPublished mainstream browse page has an \"archive\" button:\r\n![screen shot 2016-08-12 at 15 25 57](https://cloud.githubusercontent.com/assets/444232/17625566/5a953d3e-60a1-11e6-810c-daa3efe938de.png)\r\n\r\nArchiving a mainstream browse page can redirect it either to another browse page or any path on GOV.UK:\r\n![screen shot 2016-08-12 at 15 26 07](https://cloud.githubusercontent.com/assets/444232/17625597/70e21cba-60a1-11e6-910a-f265e0b59a94.png)\r\n","created_at":"2016-08-12T14:28:45Z","updated_at":"2016-08-15T13:15:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69832aa06228492415c8eee30454023f56afafc1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/219/commits","review_comments_url":"https://api.github.com/repos/alphagov/collections-publisher/pulls/219/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/219/comments","statuses_url":"https://api.github.com/repos/alphagov/collections-publisher/statuses/435b06f269c600a5e94556ea88542d3279aacbc5","head":{"label":"alphagov:add-browse-page-archiving","ref":"add-browse-page-archiving","sha":"435b06f269c600a5e94556ea88542d3279aacbc5","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":"Publishes /browse and /topic pages on GOV.UK","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}","deployments_url":"https://api.github.com/repos/alphagov/collections-publisher/deployments","created_at":"2014-07-30T10:41:14Z","updated_at":"2016-04-09T18:58:37Z","pushed_at":"2016-08-15T09:46:09Z","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":1300,"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":"cf293cfed37ec8d5d3ee47b27b44e7043e4d4c08","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":"Publishes /browse and /topic pages on GOV.UK","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}","deployments_url":"https://api.github.com/repos/alphagov/collections-publisher/deployments","created_at":"2014-07-30T10:41:14Z","updated_at":"2016-04-09T18:58:37Z","pushed_at":"2016-08-15T09:46:09Z","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":1300,"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/219"},"html":{"href":"https://github.com/alphagov/collections-publisher/pull/219"},"issue":{"href":"https://api.github.com/repos/alphagov/collections-publisher/issues/219"},"comments":{"href":"https://api.github.com/repos/alphagov/collections-publisher/issues/219/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/collections-publisher/pulls/219/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/219/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/collections-publisher/statuses/435b06f269c600a5e94556ea88542d3279aacbc5"}}}}
{"actor":{"display_login":"mobaig"}}