{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/alphagov/content-tagger/pulls/3","id":51919609,"html_url":"https://github.com/alphagov/content-tagger/pull/3","diff_url":"https://github.com/alphagov/content-tagger/pull/3.diff","patch_url":"https://github.com/alphagov/content-tagger/pull/3.patch","issue_url":"https://api.github.com/repos/alphagov/content-tagger/issues/3","number":3,"state":"open","locked":false,"title":"Add tagging interface","user":{"login":"tijmenb","id":233676,"avatar_url":"https://avatars.githubusercontent.com/u/233676?v=3","gravatar_id":"","url":"https://api.github.com/users/tijmenb","html_url":"https://github.com/tijmenb","followers_url":"https://api.github.com/users/tijmenb/followers","following_url":"https://api.github.com/users/tijmenb/following{/other_user}","gists_url":"https://api.github.com/users/tijmenb/gists{/gist_id}","starred_url":"https://api.github.com/users/tijmenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijmenb/subscriptions","organizations_url":"https://api.github.com/users/tijmenb/orgs","repos_url":"https://api.github.com/users/tijmenb/repos","events_url":"https://api.github.com/users/tijmenb/events{/privacy}","received_events_url":"https://api.github.com/users/tijmenb/received_events","type":"User","site_admin":false},"body":"This PR is a first attempt at a tagging interface to replace the panopticon interface. Doing this will allow us to use the new tagging architecture.\r\n\r\nWe will be migrating applications one-by-one. The first one will be smart answers. This interface will not be used for publisher apps that have their own tagging interface.\r\n\r\n## Happy path\r\n\r\n![screen shot 2015-11-26 at 14 19 39](https://cloud.githubusercontent.com/assets/233676/11424902/d6daee00-9448-11e5-9aab-5c3e0fa2f921.png)\r\n\r\nUser wants to tag a page on GOV.UK. This form accepts `/paths` and `https://www.gov.uk/full-gov.uk/urls`.\r\n\r\n![screen shot 2015-11-26 at 14 19 48](https://cloud.githubusercontent.com/assets/233676/11424899/d6ca9924-9448-11e5-8a1c-d863d0399ffe.png)\r\n\r\nBecause this is a smart answers, it can be tagged to mainstream browse pages, topics and organisations.\r\n\r\n![screen shot 2015-11-26 at 14 20 03](https://cloud.githubusercontent.com/assets/233676/11424900/d6cd0f4c-9448-11e5-9c20-3a04a664c785.png)\r\n\r\nWe use the default `select2` dropdowns for these.\r\n\r\n![screen shot 2015-11-26 at 14 20 09](https://cloud.githubusercontent.com/assets/233676/11424901/d6ce8430-9448-11e5-9a38-172e831bb09b.png)\r\n\r\nClicking \"Update taggings\" will save the links.\r\n\r\n## URL doesn't exist\r\n\r\n![screen shot 2015-11-26 at 14 37 07](https://cloud.githubusercontent.com/assets/233676/11425220/305aa91e-944b-11e5-9a29-85222b07e90c.png)\r\n\r\n## Conflicting edit\r\n\r\nWhen someone else makes a change after you've loaded the page, or the user makes an edit in an other browse tab, the change might conflict:\r\n\r\n![screen shot 2015-11-26 at 14 38 53](https://cloud.githubusercontent.com/assets/233676/11425268/85e8f0a2-944b-11e5-8f30-068acc725f95.png)\r\n\r\nTrello: https://trello.com/c/XwVC0IM8\r\n","created_at":"2015-11-26T14:40:15Z","updated_at":"2015-11-26T14:40:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/content-tagger/pulls/3/commits","review_comments_url":"https://api.github.com/repos/alphagov/content-tagger/pulls/3/comments","review_comment_url":"https://api.github.com/repos/alphagov/content-tagger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/content-tagger/issues/3/comments","statuses_url":"https://api.github.com/repos/alphagov/content-tagger/statuses/f2b59d3a627c901b188b885ede026d25cce94fef","head":{"label":"alphagov:add-tagging-interface","ref":"add-tagging-interface","sha":"f2b59d3a627c901b188b885ede026d25cce94fef","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":46417722,"name":"content-tagger","full_name":"alphagov/content-tagger","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/content-tagger","description":"Application for tagging content on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/content-tagger","forks_url":"https://api.github.com/repos/alphagov/content-tagger/forks","keys_url":"https://api.github.com/repos/alphagov/content-tagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/content-tagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/content-tagger/teams","hooks_url":"https://api.github.com/repos/alphagov/content-tagger/hooks","issue_events_url":"https://api.github.com/repos/alphagov/content-tagger/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/content-tagger/events","assignees_url":"https://api.github.com/repos/alphagov/content-tagger/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/content-tagger/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/content-tagger/tags","blobs_url":"https://api.github.com/repos/alphagov/content-tagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/content-tagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/content-tagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/content-tagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/content-tagger/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/content-tagger/languages","stargazers_url":"https://api.github.com/repos/alphagov/content-tagger/stargazers","contributors_url":"https://api.github.com/repos/alphagov/content-tagger/contributors","subscribers_url":"https://api.github.com/repos/alphagov/content-tagger/subscribers","subscription_url":"https://api.github.com/repos/alphagov/content-tagger/subscription","commits_url":"https://api.github.com/repos/alphagov/content-tagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/content-tagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/content-tagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/content-tagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/content-tagger/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/content-tagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/content-tagger/merges","archive_url":"https://api.github.com/repos/alphagov/content-tagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/content-tagger/downloads","issues_url":"https://api.github.com/repos/alphagov/content-tagger/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/content-tagger/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/content-tagger/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/content-tagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/content-tagger/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/content-tagger/releases{/id}","created_at":"2015-11-18T12:36:10Z","updated_at":"2015-11-23T10:55:05Z","pushed_at":"2015-11-26T14:40:16Z","git_url":"git://github.com/alphagov/content-tagger.git","ssh_url":"git@github.com:alphagov/content-tagger.git","clone_url":"https://github.com/alphagov/content-tagger.git","svn_url":"https://github.com/alphagov/content-tagger","homepage":"","size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"825f579ecb79404affc348fe8c00b6484be30823","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":46417722,"name":"content-tagger","full_name":"alphagov/content-tagger","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/content-tagger","description":"Application for tagging content on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/content-tagger","forks_url":"https://api.github.com/repos/alphagov/content-tagger/forks","keys_url":"https://api.github.com/repos/alphagov/content-tagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/content-tagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/content-tagger/teams","hooks_url":"https://api.github.com/repos/alphagov/content-tagger/hooks","issue_events_url":"https://api.github.com/repos/alphagov/content-tagger/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/content-tagger/events","assignees_url":"https://api.github.com/repos/alphagov/content-tagger/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/content-tagger/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/content-tagger/tags","blobs_url":"https://api.github.com/repos/alphagov/content-tagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/content-tagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/content-tagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/content-tagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/content-tagger/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/content-tagger/languages","stargazers_url":"https://api.github.com/repos/alphagov/content-tagger/stargazers","contributors_url":"https://api.github.com/repos/alphagov/content-tagger/contributors","subscribers_url":"https://api.github.com/repos/alphagov/content-tagger/subscribers","subscription_url":"https://api.github.com/repos/alphagov/content-tagger/subscription","commits_url":"https://api.github.com/repos/alphagov/content-tagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/content-tagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/content-tagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/content-tagger/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/content-tagger/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/content-tagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/content-tagger/merges","archive_url":"https://api.github.com/repos/alphagov/content-tagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/content-tagger/downloads","issues_url":"https://api.github.com/repos/alphagov/content-tagger/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/content-tagger/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/content-tagger/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/content-tagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/content-tagger/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/content-tagger/releases{/id}","created_at":"2015-11-18T12:36:10Z","updated_at":"2015-11-23T10:55:05Z","pushed_at":"2015-11-26T14:40:16Z","git_url":"git://github.com/alphagov/content-tagger.git","ssh_url":"git@github.com:alphagov/content-tagger.git","clone_url":"https://github.com/alphagov/content-tagger.git","svn_url":"https://github.com/alphagov/content-tagger","homepage":"","size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/content-tagger/pulls/3"},"html":{"href":"https://github.com/alphagov/content-tagger/pull/3"},"issue":{"href":"https://api.github.com/repos/alphagov/content-tagger/issues/3"},"comments":{"href":"https://api.github.com/repos/alphagov/content-tagger/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/content-tagger/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/content-tagger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/content-tagger/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/content-tagger/statuses/f2b59d3a627c901b188b885ede026d25cce94fef"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":507,"deletions":18,"changed_files":21}}