{"action":"created","comment":{"url":"https://api.github.com/repos/ideascube/ideascube/pulls/comments/56690908","id":56690908,"diff_hunk":"@@ -104,6 +104,20 @@ def test_staff_can_edit_document(staffapp, video):\n     assert Document.objects.get(pk=video.pk).title == title\n \n \n+def test_staff_detail_page_has_no_edit_delete_link_package_id(staffapp):\n+    document = DocumentFactory(package_id=\"foo\")\n+    response = staffapp.get(reverse('mediacenter:document_detail',\n+                                    kwargs={'pk': document.pk}), status=200)\n+    assert \"Document installed by a package.\" in response.content.decode()","path":"ideascube/mediacenter/tests/test_views.py","position":8,"original_position":8,"commit_id":"e9ff64253eff1b625fd10a3604490156c1cce2e5","original_commit_id":"e9ff64253eff1b625fd10a3604490156c1cce2e5","user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"body":"Also make sure the link itself is not here, just in case :)","created_at":"2016-03-18T17:18:55Z","updated_at":"2016-03-18T17:18:55Z","html_url":"https://github.com/ideascube/ideascube/pull/330#discussion_r56690908","pull_request_url":"https://api.github.com/repos/ideascube/ideascube/pulls/330","_links":{"self":{"href":"https://api.github.com/repos/ideascube/ideascube/pulls/comments/56690908"},"html":{"href":"https://github.com/ideascube/ideascube/pull/330#discussion_r56690908"},"pull_request":{"href":"https://api.github.com/repos/ideascube/ideascube/pulls/330"}}},"pull_request":{"url":"https://api.github.com/repos/ideascube/ideascube/pulls/330","id":63401955,"html_url":"https://github.com/ideascube/ideascube/pull/330","diff_url":"https://github.com/ideascube/ideascube/pull/330.diff","patch_url":"https://github.com/ideascube/ideascube/pull/330.patch","issue_url":"https://api.github.com/repos/ideascube/ideascube/issues/330","number":330,"state":"open","locked":false,"title":"Mediacenter catalog","user":{"login":"mgautierfr","id":86161,"avatar_url":"https://avatars.githubusercontent.com/u/86161?v=3","gravatar_id":"","url":"https://api.github.com/users/mgautierfr","html_url":"https://github.com/mgautierfr","followers_url":"https://api.github.com/users/mgautierfr/followers","following_url":"https://api.github.com/users/mgautierfr/following{/other_user}","gists_url":"https://api.github.com/users/mgautierfr/gists{/gist_id}","starred_url":"https://api.github.com/users/mgautierfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgautierfr/subscriptions","organizations_url":"https://api.github.com/users/mgautierfr/orgs","repos_url":"https://api.github.com/users/mgautierfr/repos","events_url":"https://api.github.com/users/mgautierfr/events{/privacy}","received_events_url":"https://api.github.com/users/mgautierfr/received_events","type":"User","site_admin":false},"body":"There are still opened issues: \r\n\r\n- Only the link to the delete/edit content form is hidden if package_id is not empty.\r\n  The forms are still accessible. I think it's enough and better to keep a way to edit the content even if it comes from a package.\r\n- The document file is still copied by django in CATALOG_MEDIACENTER_ROOT. So there is still a duplication of content but it should be fixed by furthers steps.\r\n- The commit on removed packages remove the document from the mediacenter db but keep it in CATALOG_MEDIACENTER_ROOT. Same as previous point, this should be no relevant when no copy is made.","created_at":"2016-03-18T16:37:29Z","updated_at":"2016-03-18T17:18:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a523f516091ec0e0e003a1a6cf7fefeed9a305bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ideascube/ideascube/pulls/330/commits","review_comments_url":"https://api.github.com/repos/ideascube/ideascube/pulls/330/comments","review_comment_url":"https://api.github.com/repos/ideascube/ideascube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ideascube/ideascube/issues/330/comments","statuses_url":"https://api.github.com/repos/ideascube/ideascube/statuses/e9ff64253eff1b625fd10a3604490156c1cce2e5","head":{"label":"mgautierfr:mediacenter_catalog","ref":"mediacenter_catalog","sha":"e9ff64253eff1b625fd10a3604490156c1cce2e5","user":{"login":"mgautierfr","id":86161,"avatar_url":"https://avatars.githubusercontent.com/u/86161?v=3","gravatar_id":"","url":"https://api.github.com/users/mgautierfr","html_url":"https://github.com/mgautierfr","followers_url":"https://api.github.com/users/mgautierfr/followers","following_url":"https://api.github.com/users/mgautierfr/following{/other_user}","gists_url":"https://api.github.com/users/mgautierfr/gists{/gist_id}","starred_url":"https://api.github.com/users/mgautierfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgautierfr/subscriptions","organizations_url":"https://api.github.com/users/mgautierfr/orgs","repos_url":"https://api.github.com/users/mgautierfr/repos","events_url":"https://api.github.com/users/mgautierfr/events{/privacy}","received_events_url":"https://api.github.com/users/mgautierfr/received_events","type":"User","site_admin":false},"repo":{"id":54189883,"name":"ideascube","full_name":"mgautierfr/ideascube","owner":{"login":"mgautierfr","id":86161,"avatar_url":"https://avatars.githubusercontent.com/u/86161?v=3","gravatar_id":"","url":"https://api.github.com/users/mgautierfr","html_url":"https://github.com/mgautierfr","followers_url":"https://api.github.com/users/mgautierfr/followers","following_url":"https://api.github.com/users/mgautierfr/following{/other_user}","gists_url":"https://api.github.com/users/mgautierfr/gists{/gist_id}","starred_url":"https://api.github.com/users/mgautierfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgautierfr/subscriptions","organizations_url":"https://api.github.com/users/mgautierfr/orgs","repos_url":"https://api.github.com/users/mgautierfr/repos","events_url":"https://api.github.com/users/mgautierfr/events{/privacy}","received_events_url":"https://api.github.com/users/mgautierfr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgautierfr/ideascube","description":"Ideas Box server core application","fork":true,"url":"https://api.github.com/repos/mgautierfr/ideascube","forks_url":"https://api.github.com/repos/mgautierfr/ideascube/forks","keys_url":"https://api.github.com/repos/mgautierfr/ideascube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgautierfr/ideascube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgautierfr/ideascube/teams","hooks_url":"https://api.github.com/repos/mgautierfr/ideascube/hooks","issue_events_url":"https://api.github.com/repos/mgautierfr/ideascube/issues/events{/number}","events_url":"https://api.github.com/repos/mgautierfr/ideascube/events","assignees_url":"https://api.github.com/repos/mgautierfr/ideascube/assignees{/user}","branches_url":"https://api.github.com/repos/mgautierfr/ideascube/branches{/branch}","tags_url":"https://api.github.com/repos/mgautierfr/ideascube/tags","blobs_url":"https://api.github.com/repos/mgautierfr/ideascube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgautierfr/ideascube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgautierfr/ideascube/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgautierfr/ideascube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgautierfr/ideascube/statuses/{sha}","languages_url":"https://api.github.com/repos/mgautierfr/ideascube/languages","stargazers_url":"https://api.github.com/repos/mgautierfr/ideascube/stargazers","contributors_url":"https://api.github.com/repos/mgautierfr/ideascube/contributors","subscribers_url":"https://api.github.com/repos/mgautierfr/ideascube/subscribers","subscription_url":"https://api.github.com/repos/mgautierfr/ideascube/subscription","commits_url":"https://api.github.com/repos/mgautierfr/ideascube/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgautierfr/ideascube/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgautierfr/ideascube/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgautierfr/ideascube/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgautierfr/ideascube/contents/{+path}","compare_url":"https://api.github.com/repos/mgautierfr/ideascube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgautierfr/ideascube/merges","archive_url":"https://api.github.com/repos/mgautierfr/ideascube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgautierfr/ideascube/downloads","issues_url":"https://api.github.com/repos/mgautierfr/ideascube/issues{/number}","pulls_url":"https://api.github.com/repos/mgautierfr/ideascube/pulls{/number}","milestones_url":"https://api.github.com/repos/mgautierfr/ideascube/milestones{/number}","notifications_url":"https://api.github.com/repos/mgautierfr/ideascube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgautierfr/ideascube/labels{/name}","releases_url":"https://api.github.com/repos/mgautierfr/ideascube/releases{/id}","deployments_url":"https://api.github.com/repos/mgautierfr/ideascube/deployments","created_at":"2016-03-18T09:31:33Z","updated_at":"2016-03-18T09:31:34Z","pushed_at":"2016-03-18T16:29:40Z","git_url":"git://github.com/mgautierfr/ideascube.git","ssh_url":"git@github.com:mgautierfr/ideascube.git","clone_url":"https://github.com/mgautierfr/ideascube.git","svn_url":"https://github.com/mgautierfr/ideascube","homepage":"http://ideascube.readthedocs.org/","size":9805,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ideascube:master","ref":"master","sha":"b965198a81c3436aaf35a30add26cd896ee61357","user":{"login":"ideascube","id":9719862,"avatar_url":"https://avatars.githubusercontent.com/u/9719862?v=3","gravatar_id":"","url":"https://api.github.com/users/ideascube","html_url":"https://github.com/ideascube","followers_url":"https://api.github.com/users/ideascube/followers","following_url":"https://api.github.com/users/ideascube/following{/other_user}","gists_url":"https://api.github.com/users/ideascube/gists{/gist_id}","starred_url":"https://api.github.com/users/ideascube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ideascube/subscriptions","organizations_url":"https://api.github.com/users/ideascube/orgs","repos_url":"https://api.github.com/users/ideascube/repos","events_url":"https://api.github.com/users/ideascube/events{/privacy}","received_events_url":"https://api.github.com/users/ideascube/received_events","type":"Organization","site_admin":false},"repo":{"id":26708471,"name":"ideascube","full_name":"ideascube/ideascube","owner":{"login":"ideascube","id":9719862,"avatar_url":"https://avatars.githubusercontent.com/u/9719862?v=3","gravatar_id":"","url":"https://api.github.com/users/ideascube","html_url":"https://github.com/ideascube","followers_url":"https://api.github.com/users/ideascube/followers","following_url":"https://api.github.com/users/ideascube/following{/other_user}","gists_url":"https://api.github.com/users/ideascube/gists{/gist_id}","starred_url":"https://api.github.com/users/ideascube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ideascube/subscriptions","organizations_url":"https://api.github.com/users/ideascube/orgs","repos_url":"https://api.github.com/users/ideascube/repos","events_url":"https://api.github.com/users/ideascube/events{/privacy}","received_events_url":"https://api.github.com/users/ideascube/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ideascube/ideascube","description":"Ideas Box server core application","fork":false,"url":"https://api.github.com/repos/ideascube/ideascube","forks_url":"https://api.github.com/repos/ideascube/ideascube/forks","keys_url":"https://api.github.com/repos/ideascube/ideascube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ideascube/ideascube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ideascube/ideascube/teams","hooks_url":"https://api.github.com/repos/ideascube/ideascube/hooks","issue_events_url":"https://api.github.com/repos/ideascube/ideascube/issues/events{/number}","events_url":"https://api.github.com/repos/ideascube/ideascube/events","assignees_url":"https://api.github.com/repos/ideascube/ideascube/assignees{/user}","branches_url":"https://api.github.com/repos/ideascube/ideascube/branches{/branch}","tags_url":"https://api.github.com/repos/ideascube/ideascube/tags","blobs_url":"https://api.github.com/repos/ideascube/ideascube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ideascube/ideascube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ideascube/ideascube/git/refs{/sha}","trees_url":"https://api.github.com/repos/ideascube/ideascube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ideascube/ideascube/statuses/{sha}","languages_url":"https://api.github.com/repos/ideascube/ideascube/languages","stargazers_url":"https://api.github.com/repos/ideascube/ideascube/stargazers","contributors_url":"https://api.github.com/repos/ideascube/ideascube/contributors","subscribers_url":"https://api.github.com/repos/ideascube/ideascube/subscribers","subscription_url":"https://api.github.com/repos/ideascube/ideascube/subscription","commits_url":"https://api.github.com/repos/ideascube/ideascube/commits{/sha}","git_commits_url":"https://api.github.com/repos/ideascube/ideascube/git/commits{/sha}","comments_url":"https://api.github.com/repos/ideascube/ideascube/comments{/number}","issue_comment_url":"https://api.github.com/repos/ideascube/ideascube/issues/comments{/number}","contents_url":"https://api.github.com/repos/ideascube/ideascube/contents/{+path}","compare_url":"https://api.github.com/repos/ideascube/ideascube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ideascube/ideascube/merges","archive_url":"https://api.github.com/repos/ideascube/ideascube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ideascube/ideascube/downloads","issues_url":"https://api.github.com/repos/ideascube/ideascube/issues{/number}","pulls_url":"https://api.github.com/repos/ideascube/ideascube/pulls{/number}","milestones_url":"https://api.github.com/repos/ideascube/ideascube/milestones{/number}","notifications_url":"https://api.github.com/repos/ideascube/ideascube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ideascube/ideascube/labels{/name}","releases_url":"https://api.github.com/repos/ideascube/ideascube/releases{/id}","deployments_url":"https://api.github.com/repos/ideascube/ideascube/deployments","created_at":"2014-11-16T08:39:32Z","updated_at":"2016-01-14T14:09:45Z","pushed_at":"2016-03-18T16:37:30Z","git_url":"git://github.com/ideascube/ideascube.git","ssh_url":"git@github.com:ideascube/ideascube.git","clone_url":"https://github.com/ideascube/ideascube.git","svn_url":"https://github.com/ideascube/ideascube","homepage":"http://ideascube.readthedocs.org/","size":9845,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":98,"forks":23,"open_issues":98,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ideascube/ideascube/pulls/330"},"html":{"href":"https://github.com/ideascube/ideascube/pull/330"},"issue":{"href":"https://api.github.com/repos/ideascube/ideascube/issues/330"},"comments":{"href":"https://api.github.com/repos/ideascube/ideascube/issues/330/comments"},"review_comments":{"href":"https://api.github.com/repos/ideascube/ideascube/pulls/330/comments"},"review_comment":{"href":"https://api.github.com/repos/ideascube/ideascube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ideascube/ideascube/pulls/330/commits"},"statuses":{"href":"https://api.github.com/repos/ideascube/ideascube/statuses/e9ff64253eff1b625fd10a3604490156c1cce2e5"}}}}