{"action":"created","comment":{"url":"https://api.github.com/repos/Islandora/islandora/pulls/comments/170955791","pull_request_review_id":99723027,"id":170955791,"diff_hunk":"@@ -624,6 +631,10 @@ function islandora_permission() {\n       'title' => t('Replace datastreams'),\n       'description' => t('Add new datastream content as latest version.'),\n     ),\n+    'ISLANDORA_MANAGE_ORPHANED_OBJECTS' => array(","path":"islandora.module","position":20,"original_position":20,"commit_id":"34ff60a0a8880faa0c756e2b712d71f51d7cb0ee","original_commit_id":"34ff60a0a8880faa0c756e2b712d71f51d7cb0ee","user":{"login":"willtp87","id":688918,"avatar_url":"https://avatars2.githubusercontent.com/u/688918?v=4","gravatar_id":"","url":"https://api.github.com/users/willtp87","html_url":"https://github.com/willtp87","followers_url":"https://api.github.com/users/willtp87/followers","following_url":"https://api.github.com/users/willtp87/following{/other_user}","gists_url":"https://api.github.com/users/willtp87/gists{/gist_id}","starred_url":"https://api.github.com/users/willtp87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willtp87/subscriptions","organizations_url":"https://api.github.com/users/willtp87/orgs","repos_url":"https://api.github.com/users/willtp87/repos","events_url":"https://api.github.com/users/willtp87/events{/privacy}","received_events_url":"https://api.github.com/users/willtp87/received_events","type":"User","site_admin":false},"body":"This is a literal string note the quotes. I think it is in the process of becoming a constant.  The constant will need to be declared. This is usually done at the top of the module file.","created_at":"2018-02-27T15:16:08Z","updated_at":"2018-02-27T15:16:08Z","html_url":"https://github.com/Islandora/islandora/pull/697#discussion_r170955791","pull_request_url":"https://api.github.com/repos/Islandora/islandora/pulls/697","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Islandora/islandora/pulls/comments/170955791"},"html":{"href":"https://github.com/Islandora/islandora/pull/697#discussion_r170955791"},"pull_request":{"href":"https://api.github.com/repos/Islandora/islandora/pulls/697"}}},"pull_request":{"url":"https://api.github.com/repos/Islandora/islandora/pulls/697","id":156840480,"html_url":"https://github.com/Islandora/islandora/pull/697","diff_url":"https://github.com/Islandora/islandora/pull/697.diff","patch_url":"https://github.com/Islandora/islandora/pull/697.patch","issue_url":"https://api.github.com/repos/Islandora/islandora/issues/697","number":697,"state":"open","locked":false,"title":"Add orphaned objects capability to core","user":{"login":"bondjimbond","id":6069170,"avatar_url":"https://avatars1.githubusercontent.com/u/6069170?v=4","gravatar_id":"","url":"https://api.github.com/users/bondjimbond","html_url":"https://github.com/bondjimbond","followers_url":"https://api.github.com/users/bondjimbond/followers","following_url":"https://api.github.com/users/bondjimbond/following{/other_user}","gists_url":"https://api.github.com/users/bondjimbond/gists{/gist_id}","starred_url":"https://api.github.com/users/bondjimbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bondjimbond/subscriptions","organizations_url":"https://api.github.com/users/bondjimbond/orgs","repos_url":"https://api.github.com/users/bondjimbond/repos","events_url":"https://api.github.com/users/bondjimbond/events{/privacy}","received_events_url":"https://api.github.com/users/bondjimbond/received_events","type":"User","site_admin":false},"body":"**JIRA Ticket**: https://jira.duraspace.org/browse/ISLANDORA-2130\r\n\r\n# What does this Pull Request do?\r\n\r\nAdds new functionality to the Reports menu: lists orphaned objects (children with nonexistent parent collections, newspapers, newspaper issues, or books), and allows someone with appropriate permissions to delete them. Includes new permission (Manage orphaned objects).\r\n\r\nPR at request of @rosiel, duplicating the functionality of the [Orphaned Objects module\r\n](https://github.com/bondjimbond/islandora_orphaned_objects)\r\n\r\n# What's new?\r\n- Generates a list of all orphaned objects\r\n- Creates new permission to manage orphaned objects\r\n- Allows admin to selectively or batch delete via the list\r\n\r\n# How should this be tested?\r\n\r\nCreate some orphaned objects...\r\n\r\n- From a Collection Manage screen, delete children that contain children (e.g. newspapers, books, collections that have children of their own)\r\n- Go to Reports -> Orphaned objects\r\n- View the orphans you've created\r\n- Delete some of them\r\n- Delete all of them\r\n- Confirm no bugs\r\n\r\n# Interested parties\r\n@Islandora/7-x-1-x-committers\r\n","created_at":"2017-12-06T21:10:50Z","updated_at":"2018-02-27T15:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5c65e06a50a35d7f6bc5f895dda49c5d7c71f8f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Islandora/islandora/pulls/697/commits","review_comments_url":"https://api.github.com/repos/Islandora/islandora/pulls/697/comments","review_comment_url":"https://api.github.com/repos/Islandora/islandora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Islandora/islandora/issues/697/comments","statuses_url":"https://api.github.com/repos/Islandora/islandora/statuses/34ff60a0a8880faa0c756e2b712d71f51d7cb0ee","head":{"label":"bondjimbond:orphans","ref":"orphans","sha":"34ff60a0a8880faa0c756e2b712d71f51d7cb0ee","user":{"login":"bondjimbond","id":6069170,"avatar_url":"https://avatars1.githubusercontent.com/u/6069170?v=4","gravatar_id":"","url":"https://api.github.com/users/bondjimbond","html_url":"https://github.com/bondjimbond","followers_url":"https://api.github.com/users/bondjimbond/followers","following_url":"https://api.github.com/users/bondjimbond/following{/other_user}","gists_url":"https://api.github.com/users/bondjimbond/gists{/gist_id}","starred_url":"https://api.github.com/users/bondjimbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bondjimbond/subscriptions","organizations_url":"https://api.github.com/users/bondjimbond/orgs","repos_url":"https://api.github.com/users/bondjimbond/repos","events_url":"https://api.github.com/users/bondjimbond/events{/privacy}","received_events_url":"https://api.github.com/users/bondjimbond/received_events","type":"User","site_admin":false},"repo":{"id":113366964,"name":"islandora","full_name":"bondjimbond/islandora","owner":{"login":"bondjimbond","id":6069170,"avatar_url":"https://avatars1.githubusercontent.com/u/6069170?v=4","gravatar_id":"","url":"https://api.github.com/users/bondjimbond","html_url":"https://github.com/bondjimbond","followers_url":"https://api.github.com/users/bondjimbond/followers","following_url":"https://api.github.com/users/bondjimbond/following{/other_user}","gists_url":"https://api.github.com/users/bondjimbond/gists{/gist_id}","starred_url":"https://api.github.com/users/bondjimbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bondjimbond/subscriptions","organizations_url":"https://api.github.com/users/bondjimbond/orgs","repos_url":"https://api.github.com/users/bondjimbond/repos","events_url":"https://api.github.com/users/bondjimbond/events{/privacy}","received_events_url":"https://api.github.com/users/bondjimbond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bondjimbond/islandora","description":"A Drupal module for browsing and managing Fedora-based digital repositories","fork":true,"url":"https://api.github.com/repos/bondjimbond/islandora","forks_url":"https://api.github.com/repos/bondjimbond/islandora/forks","keys_url":"https://api.github.com/repos/bondjimbond/islandora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bondjimbond/islandora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bondjimbond/islandora/teams","hooks_url":"https://api.github.com/repos/bondjimbond/islandora/hooks","issue_events_url":"https://api.github.com/repos/bondjimbond/islandora/issues/events{/number}","events_url":"https://api.github.com/repos/bondjimbond/islandora/events","assignees_url":"https://api.github.com/repos/bondjimbond/islandora/assignees{/user}","branches_url":"https://api.github.com/repos/bondjimbond/islandora/branches{/branch}","tags_url":"https://api.github.com/repos/bondjimbond/islandora/tags","blobs_url":"https://api.github.com/repos/bondjimbond/islandora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bondjimbond/islandora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bondjimbond/islandora/git/refs{/sha}","trees_url":"https://api.github.com/repos/bondjimbond/islandora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bondjimbond/islandora/statuses/{sha}","languages_url":"https://api.github.com/repos/bondjimbond/islandora/languages","stargazers_url":"https://api.github.com/repos/bondjimbond/islandora/stargazers","contributors_url":"https://api.github.com/repos/bondjimbond/islandora/contributors","subscribers_url":"https://api.github.com/repos/bondjimbond/islandora/subscribers","subscription_url":"https://api.github.com/repos/bondjimbond/islandora/subscription","commits_url":"https://api.github.com/repos/bondjimbond/islandora/commits{/sha}","git_commits_url":"https://api.github.com/repos/bondjimbond/islandora/git/commits{/sha}","comments_url":"https://api.github.com/repos/bondjimbond/islandora/comments{/number}","issue_comment_url":"https://api.github.com/repos/bondjimbond/islandora/issues/comments{/number}","contents_url":"https://api.github.com/repos/bondjimbond/islandora/contents/{+path}","compare_url":"https://api.github.com/repos/bondjimbond/islandora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bondjimbond/islandora/merges","archive_url":"https://api.github.com/repos/bondjimbond/islandora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bondjimbond/islandora/downloads","issues_url":"https://api.github.com/repos/bondjimbond/islandora/issues{/number}","pulls_url":"https://api.github.com/repos/bondjimbond/islandora/pulls{/number}","milestones_url":"https://api.github.com/repos/bondjimbond/islandora/milestones{/number}","notifications_url":"https://api.github.com/repos/bondjimbond/islandora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bondjimbond/islandora/labels{/name}","releases_url":"https://api.github.com/repos/bondjimbond/islandora/releases{/id}","deployments_url":"https://api.github.com/repos/bondjimbond/islandora/deployments","created_at":"2017-12-06T21:02:23Z","updated_at":"2017-12-06T21:02:25Z","pushed_at":"2018-02-27T15:11:32Z","git_url":"git://github.com/bondjimbond/islandora.git","ssh_url":"git@github.com:bondjimbond/islandora.git","clone_url":"https://github.com/bondjimbond/islandora.git","svn_url":"https://github.com/bondjimbond/islandora","homepage":"http://islandora.ca/","size":17196,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"7.x"}},"base":{"label":"Islandora:7.x","ref":"7.x","sha":"5c85f607bb80e1693dab4be4ec3c91df472e7275","user":{"login":"Islandora","id":494054,"avatar_url":"https://avatars3.githubusercontent.com/u/494054?v=4","gravatar_id":"","url":"https://api.github.com/users/Islandora","html_url":"https://github.com/Islandora","followers_url":"https://api.github.com/users/Islandora/followers","following_url":"https://api.github.com/users/Islandora/following{/other_user}","gists_url":"https://api.github.com/users/Islandora/gists{/gist_id}","starred_url":"https://api.github.com/users/Islandora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Islandora/subscriptions","organizations_url":"https://api.github.com/users/Islandora/orgs","repos_url":"https://api.github.com/users/Islandora/repos","events_url":"https://api.github.com/users/Islandora/events{/privacy}","received_events_url":"https://api.github.com/users/Islandora/received_events","type":"Organization","site_admin":false},"repo":{"id":1107291,"name":"islandora","full_name":"Islandora/islandora","owner":{"login":"Islandora","id":494054,"avatar_url":"https://avatars3.githubusercontent.com/u/494054?v=4","gravatar_id":"","url":"https://api.github.com/users/Islandora","html_url":"https://github.com/Islandora","followers_url":"https://api.github.com/users/Islandora/followers","following_url":"https://api.github.com/users/Islandora/following{/other_user}","gists_url":"https://api.github.com/users/Islandora/gists{/gist_id}","starred_url":"https://api.github.com/users/Islandora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Islandora/subscriptions","organizations_url":"https://api.github.com/users/Islandora/orgs","repos_url":"https://api.github.com/users/Islandora/repos","events_url":"https://api.github.com/users/Islandora/events{/privacy}","received_events_url":"https://api.github.com/users/Islandora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Islandora/islandora","description":"A Drupal module for browsing and managing Fedora-based digital repositories","fork":true,"url":"https://api.github.com/repos/Islandora/islandora","forks_url":"https://api.github.com/repos/Islandora/islandora/forks","keys_url":"https://api.github.com/repos/Islandora/islandora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Islandora/islandora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Islandora/islandora/teams","hooks_url":"https://api.github.com/repos/Islandora/islandora/hooks","issue_events_url":"https://api.github.com/repos/Islandora/islandora/issues/events{/number}","events_url":"https://api.github.com/repos/Islandora/islandora/events","assignees_url":"https://api.github.com/repos/Islandora/islandora/assignees{/user}","branches_url":"https://api.github.com/repos/Islandora/islandora/branches{/branch}","tags_url":"https://api.github.com/repos/Islandora/islandora/tags","blobs_url":"https://api.github.com/repos/Islandora/islandora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Islandora/islandora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Islandora/islandora/git/refs{/sha}","trees_url":"https://api.github.com/repos/Islandora/islandora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Islandora/islandora/statuses/{sha}","languages_url":"https://api.github.com/repos/Islandora/islandora/languages","stargazers_url":"https://api.github.com/repos/Islandora/islandora/stargazers","contributors_url":"https://api.github.com/repos/Islandora/islandora/contributors","subscribers_url":"https://api.github.com/repos/Islandora/islandora/subscribers","subscription_url":"https://api.github.com/repos/Islandora/islandora/subscription","commits_url":"https://api.github.com/repos/Islandora/islandora/commits{/sha}","git_commits_url":"https://api.github.com/repos/Islandora/islandora/git/commits{/sha}","comments_url":"https://api.github.com/repos/Islandora/islandora/comments{/number}","issue_comment_url":"https://api.github.com/repos/Islandora/islandora/issues/comments{/number}","contents_url":"https://api.github.com/repos/Islandora/islandora/contents/{+path}","compare_url":"https://api.github.com/repos/Islandora/islandora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Islandora/islandora/merges","archive_url":"https://api.github.com/repos/Islandora/islandora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Islandora/islandora/downloads","issues_url":"https://api.github.com/repos/Islandora/islandora/issues{/number}","pulls_url":"https://api.github.com/repos/Islandora/islandora/pulls{/number}","milestones_url":"https://api.github.com/repos/Islandora/islandora/milestones{/number}","notifications_url":"https://api.github.com/repos/Islandora/islandora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Islandora/islandora/labels{/name}","releases_url":"https://api.github.com/repos/Islandora/islandora/releases{/id}","deployments_url":"https://api.github.com/repos/Islandora/islandora/deployments","created_at":"2010-11-23T21:56:01Z","updated_at":"2018-02-27T04:37:33Z","pushed_at":"2018-02-27T15:11:34Z","git_url":"git://github.com/Islandora/islandora.git","ssh_url":"git@github.com:Islandora/islandora.git","clone_url":"https://github.com/Islandora/islandora.git","svn_url":"https://github.com/Islandora/islandora","homepage":"http://islandora.ca/","size":17180,"stargazers_count":99,"watchers_count":99,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":82,"open_issues":6,"watchers":99,"default_branch":"7.x"}},"_links":{"self":{"href":"https://api.github.com/repos/Islandora/islandora/pulls/697"},"html":{"href":"https://github.com/Islandora/islandora/pull/697"},"issue":{"href":"https://api.github.com/repos/Islandora/islandora/issues/697"},"comments":{"href":"https://api.github.com/repos/Islandora/islandora/issues/697/comments"},"review_comments":{"href":"https://api.github.com/repos/Islandora/islandora/pulls/697/comments"},"review_comment":{"href":"https://api.github.com/repos/Islandora/islandora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Islandora/islandora/pulls/697/commits"},"statuses":{"href":"https://api.github.com/repos/Islandora/islandora/statuses/34ff60a0a8880faa0c756e2b712d71f51d7cb0ee"}},"author_association":"NONE"}}
{"actor":{"display_login":"willtp87"}}