{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/panopticon/pulls/comments/44530315","id":44530315,"diff_hunk":"@@ -0,0 +1,43 @@\n+require_relative '../../test_helper'\n+\n+class Artefact::ArtefactTest < ActiveSupport::TestCase\n+\n+  context \"taggable?\" do\n+\n+    should \"return true for artifacts not owned by publisher, smartanswers or testapp\" do\n+      Settings.expects(:untaggable_apps).returns(%w{ publisher smartanswers testapp }).at_least(1)","path":"test/unit/artefact/artefact_test.rb","position":8,"original_position":8,"commit_id":"e1cae7a28218b220d25d45e76a2b40c9f6402af9","original_commit_id":"e1cae7a28218b220d25d45e76a2b40c9f6402af9","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":"I agree with using `context` in https://github.com/alphagov/panopticon/pull/314#discussion_r44527331, but here it wouldn't add much because \"not owned by publisher, smartanswers or testapp\" is not really a \"precondition\", but the actual thing were testing. Does that distinction make sense?","created_at":"2015-11-11T13:14:34Z","updated_at":"2015-11-11T13:14:34Z","html_url":"https://github.com/alphagov/panopticon/pull/314#discussion_r44530315","pull_request_url":"https://api.github.com/repos/alphagov/panopticon/pulls/314","_links":{"self":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/comments/44530315"},"html":{"href":"https://github.com/alphagov/panopticon/pull/314#discussion_r44530315"},"pull_request":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/314"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/panopticon/pulls/314","id":50376666,"html_url":"https://github.com/alphagov/panopticon/pull/314","diff_url":"https://github.com/alphagov/panopticon/pull/314.diff","patch_url":"https://github.com/alphagov/panopticon/pull/314.patch","issue_url":"https://api.github.com/repos/alphagov/panopticon/issues/314","number":314,"state":"open","locked":false,"title":"Prevent tags being entered in GUI for content owned by migrated apps","user":{"login":"srmoscow","id":13809955,"avatar_url":"https://avatars.githubusercontent.com/u/13809955?v=3","gravatar_id":"","url":"https://api.github.com/users/srmoscow","html_url":"https://github.com/srmoscow","followers_url":"https://api.github.com/users/srmoscow/followers","following_url":"https://api.github.com/users/srmoscow/following{/other_user}","gists_url":"https://api.github.com/users/srmoscow/gists{/gist_id}","starred_url":"https://api.github.com/users/srmoscow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srmoscow/subscriptions","organizations_url":"https://api.github.com/users/srmoscow/orgs","repos_url":"https://api.github.com/users/srmoscow/repos","events_url":"https://api.github.com/users/srmoscow/events{/privacy}","received_events_url":"https://api.github.com/users/srmoscow/received_events","type":"User","site_admin":false},"body":"Panopticon currently allows tags to be entered for all artefacts.  In future, we want to prevent tags being entered in panopticon for content owned by apps which have been migrated to the new tag manager app.  This is implemented by the use of a config file which specifies which apps are to have the tagging option suppressed (config/settings/<environment>.yml.\r\n\r\nIf 'publisher' is included in this list, then tagging is suppressed for new content entered in panopticon, as all new content is given this owning_app by default, otherwise it just relates to editing existing content.\r\n\r\nhttps://trello.com/c/ihgJbbFI","created_at":"2015-11-11T12:07:25Z","updated_at":"2015-11-11T13:14:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75235944d73d8579738fdba63e63a1b5b05f6798","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/panopticon/pulls/314/commits","review_comments_url":"https://api.github.com/repos/alphagov/panopticon/pulls/314/comments","review_comment_url":"https://api.github.com/repos/alphagov/panopticon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/panopticon/issues/314/comments","statuses_url":"https://api.github.com/repos/alphagov/panopticon/statuses/e1cae7a28218b220d25d45e76a2b40c9f6402af9","head":{"label":"alphagov:tagging_prohibited_by_app","ref":"tagging_prohibited_by_app","sha":"e1cae7a28218b220d25d45e76a2b40c9f6402af9","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":2100564,"name":"panopticon","full_name":"alphagov/panopticon","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/panopticon","description":"The know-all app","fork":false,"url":"https://api.github.com/repos/alphagov/panopticon","forks_url":"https://api.github.com/repos/alphagov/panopticon/forks","keys_url":"https://api.github.com/repos/alphagov/panopticon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/panopticon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/panopticon/teams","hooks_url":"https://api.github.com/repos/alphagov/panopticon/hooks","issue_events_url":"https://api.github.com/repos/alphagov/panopticon/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/panopticon/events","assignees_url":"https://api.github.com/repos/alphagov/panopticon/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/panopticon/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/panopticon/tags","blobs_url":"https://api.github.com/repos/alphagov/panopticon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/panopticon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/panopticon/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/panopticon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/panopticon/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/panopticon/languages","stargazers_url":"https://api.github.com/repos/alphagov/panopticon/stargazers","contributors_url":"https://api.github.com/repos/alphagov/panopticon/contributors","subscribers_url":"https://api.github.com/repos/alphagov/panopticon/subscribers","subscription_url":"https://api.github.com/repos/alphagov/panopticon/subscription","commits_url":"https://api.github.com/repos/alphagov/panopticon/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/panopticon/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/panopticon/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/panopticon/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/panopticon/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/panopticon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/panopticon/merges","archive_url":"https://api.github.com/repos/alphagov/panopticon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/panopticon/downloads","issues_url":"https://api.github.com/repos/alphagov/panopticon/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/panopticon/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/panopticon/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/panopticon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/panopticon/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/panopticon/releases{/id}","created_at":"2011-07-25T11:29:09Z","updated_at":"2015-09-30T08:52:22Z","pushed_at":"2015-11-11T12:14:06Z","git_url":"git://github.com/alphagov/panopticon.git","ssh_url":"git@github.com:alphagov/panopticon.git","clone_url":"https://github.com/alphagov/panopticon.git","svn_url":"https://github.com/alphagov/panopticon","homepage":"","size":6481,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":16,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"96dfa53f4860dbb1f4bde927d46c6d0210838f9b","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":2100564,"name":"panopticon","full_name":"alphagov/panopticon","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/panopticon","description":"The know-all app","fork":false,"url":"https://api.github.com/repos/alphagov/panopticon","forks_url":"https://api.github.com/repos/alphagov/panopticon/forks","keys_url":"https://api.github.com/repos/alphagov/panopticon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/panopticon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/panopticon/teams","hooks_url":"https://api.github.com/repos/alphagov/panopticon/hooks","issue_events_url":"https://api.github.com/repos/alphagov/panopticon/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/panopticon/events","assignees_url":"https://api.github.com/repos/alphagov/panopticon/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/panopticon/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/panopticon/tags","blobs_url":"https://api.github.com/repos/alphagov/panopticon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/panopticon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/panopticon/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/panopticon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/panopticon/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/panopticon/languages","stargazers_url":"https://api.github.com/repos/alphagov/panopticon/stargazers","contributors_url":"https://api.github.com/repos/alphagov/panopticon/contributors","subscribers_url":"https://api.github.com/repos/alphagov/panopticon/subscribers","subscription_url":"https://api.github.com/repos/alphagov/panopticon/subscription","commits_url":"https://api.github.com/repos/alphagov/panopticon/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/panopticon/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/panopticon/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/panopticon/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/panopticon/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/panopticon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/panopticon/merges","archive_url":"https://api.github.com/repos/alphagov/panopticon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/panopticon/downloads","issues_url":"https://api.github.com/repos/alphagov/panopticon/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/panopticon/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/panopticon/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/panopticon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/panopticon/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/panopticon/releases{/id}","created_at":"2011-07-25T11:29:09Z","updated_at":"2015-09-30T08:52:22Z","pushed_at":"2015-11-11T12:14:06Z","git_url":"git://github.com/alphagov/panopticon.git","ssh_url":"git@github.com:alphagov/panopticon.git","clone_url":"https://github.com/alphagov/panopticon.git","svn_url":"https://github.com/alphagov/panopticon","homepage":"","size":6481,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/314"},"html":{"href":"https://github.com/alphagov/panopticon/pull/314"},"issue":{"href":"https://api.github.com/repos/alphagov/panopticon/issues/314"},"comments":{"href":"https://api.github.com/repos/alphagov/panopticon/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/panopticon/statuses/e1cae7a28218b220d25d45e76a2b40c9f6402af9"}}}}