{"action":"created","comment":{"url":"https://api.github.com/repos/samvera/hyrax/pulls/comments/148370045","pull_request_review_id":73602317,"id":148370045,"diff_hunk":"@@ -74,6 +74,11 @@ def permission_template\n     Hyrax::PermissionTemplate.find_by!(admin_set_id: id)\n   end\n \n+  def delete_permission_template_access\n+    Hyrax::PermissionTemplateAccess.where(:permission_template_id => permission_template.id).delete_all","path":"app/models/admin_set.rb","position":5,"original_position":5,"commit_id":"10ddeaab4e3566327d855336fa14a4d0bac4c012","original_commit_id":"10ddeaab4e3566327d855336fa14a4d0bac4c012","user":{"login":"mjgiarlo","id":131982,"avatar_url":"https://avatars0.githubusercontent.com/u/131982?v=4","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"body":"Doesn't the PT have a `dependent: :destroy` relationship with the PTAs? I don't *think* this should be necessary but I could be mistaken.","created_at":"2017-11-01T20:09:00Z","updated_at":"2017-11-01T20:09:00Z","html_url":"https://github.com/samvera/hyrax/pull/2077#discussion_r148370045","pull_request_url":"https://api.github.com/repos/samvera/hyrax/pulls/2077","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/samvera/hyrax/pulls/comments/148370045"},"html":{"href":"https://github.com/samvera/hyrax/pull/2077#discussion_r148370045"},"pull_request":{"href":"https://api.github.com/repos/samvera/hyrax/pulls/2077"}}},"pull_request":{"url":"https://api.github.com/repos/samvera/hyrax/pulls/2077","id":150062305,"html_url":"https://github.com/samvera/hyrax/pull/2077","diff_url":"https://github.com/samvera/hyrax/pull/2077.diff","patch_url":"https://github.com/samvera/hyrax/pull/2077.patch","issue_url":"https://api.github.com/repos/samvera/hyrax/issues/2077","number":2077,"state":"open","locked":false,"title":"[WIP] remove permission_template and permission_template_access entries whe…","user":{"login":"blancoj","id":11095558,"avatar_url":"https://avatars1.githubusercontent.com/u/11095558?v=4","gravatar_id":"","url":"https://api.github.com/users/blancoj","html_url":"https://github.com/blancoj","followers_url":"https://api.github.com/users/blancoj/followers","following_url":"https://api.github.com/users/blancoj/following{/other_user}","gists_url":"https://api.github.com/users/blancoj/gists{/gist_id}","starred_url":"https://api.github.com/users/blancoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blancoj/subscriptions","organizations_url":"https://api.github.com/users/blancoj/orgs","repos_url":"https://api.github.com/users/blancoj/repos","events_url":"https://api.github.com/users/blancoj/events{/privacy}","received_events_url":"https://api.github.com/users/blancoj/received_events","type":"User","site_admin":false},"body":"Fixes #1673 \r\n\r\nWhen an admin set is deleted remove entries from permission_templates and permission_template_accesses.","created_at":"2017-11-01T15:09:16Z","updated_at":"2017-11-01T20:09:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70a276ce6061fe8520bb8549cb2af949df2c252e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/samvera/hyrax/pulls/2077/commits","review_comments_url":"https://api.github.com/repos/samvera/hyrax/pulls/2077/comments","review_comment_url":"https://api.github.com/repos/samvera/hyrax/pulls/comments{/number}","comments_url":"https://api.github.com/repos/samvera/hyrax/issues/2077/comments","statuses_url":"https://api.github.com/repos/samvera/hyrax/statuses/10ddeaab4e3566327d855336fa14a4d0bac4c012","head":{"label":"samvera:coll-1673","ref":"coll-1673","sha":"10ddeaab4e3566327d855336fa14a4d0bac4c012","user":{"login":"samvera","id":109426,"avatar_url":"https://avatars2.githubusercontent.com/u/109426?v=4","gravatar_id":"","url":"https://api.github.com/users/samvera","html_url":"https://github.com/samvera","followers_url":"https://api.github.com/users/samvera/followers","following_url":"https://api.github.com/users/samvera/following{/other_user}","gists_url":"https://api.github.com/users/samvera/gists{/gist_id}","starred_url":"https://api.github.com/users/samvera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvera/subscriptions","organizations_url":"https://api.github.com/users/samvera/orgs","repos_url":"https://api.github.com/users/samvera/repos","events_url":"https://api.github.com/users/samvera/events{/privacy}","received_events_url":"https://api.github.com/users/samvera/received_events","type":"Organization","site_admin":false},"repo":{"id":75130658,"name":"hyrax","full_name":"samvera/hyrax","owner":{"login":"samvera","id":109426,"avatar_url":"https://avatars2.githubusercontent.com/u/109426?v=4","gravatar_id":"","url":"https://api.github.com/users/samvera","html_url":"https://github.com/samvera","followers_url":"https://api.github.com/users/samvera/followers","following_url":"https://api.github.com/users/samvera/following{/other_user}","gists_url":"https://api.github.com/users/samvera/gists{/gist_id}","starred_url":"https://api.github.com/users/samvera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvera/subscriptions","organizations_url":"https://api.github.com/users/samvera/orgs","repos_url":"https://api.github.com/users/samvera/repos","events_url":"https://api.github.com/users/samvera/events{/privacy}","received_events_url":"https://api.github.com/users/samvera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/samvera/hyrax","description":"Hyrax is a front-end based on the robust Samvera framework, providing a user interface for common repository features","fork":false,"url":"https://api.github.com/repos/samvera/hyrax","forks_url":"https://api.github.com/repos/samvera/hyrax/forks","keys_url":"https://api.github.com/repos/samvera/hyrax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samvera/hyrax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samvera/hyrax/teams","hooks_url":"https://api.github.com/repos/samvera/hyrax/hooks","issue_events_url":"https://api.github.com/repos/samvera/hyrax/issues/events{/number}","events_url":"https://api.github.com/repos/samvera/hyrax/events","assignees_url":"https://api.github.com/repos/samvera/hyrax/assignees{/user}","branches_url":"https://api.github.com/repos/samvera/hyrax/branches{/branch}","tags_url":"https://api.github.com/repos/samvera/hyrax/tags","blobs_url":"https://api.github.com/repos/samvera/hyrax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samvera/hyrax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samvera/hyrax/git/refs{/sha}","trees_url":"https://api.github.com/repos/samvera/hyrax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samvera/hyrax/statuses/{sha}","languages_url":"https://api.github.com/repos/samvera/hyrax/languages","stargazers_url":"https://api.github.com/repos/samvera/hyrax/stargazers","contributors_url":"https://api.github.com/repos/samvera/hyrax/contributors","subscribers_url":"https://api.github.com/repos/samvera/hyrax/subscribers","subscription_url":"https://api.github.com/repos/samvera/hyrax/subscription","commits_url":"https://api.github.com/repos/samvera/hyrax/commits{/sha}","git_commits_url":"https://api.github.com/repos/samvera/hyrax/git/commits{/sha}","comments_url":"https://api.github.com/repos/samvera/hyrax/comments{/number}","issue_comment_url":"https://api.github.com/repos/samvera/hyrax/issues/comments{/number}","contents_url":"https://api.github.com/repos/samvera/hyrax/contents/{+path}","compare_url":"https://api.github.com/repos/samvera/hyrax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samvera/hyrax/merges","archive_url":"https://api.github.com/repos/samvera/hyrax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samvera/hyrax/downloads","issues_url":"https://api.github.com/repos/samvera/hyrax/issues{/number}","pulls_url":"https://api.github.com/repos/samvera/hyrax/pulls{/number}","milestones_url":"https://api.github.com/repos/samvera/hyrax/milestones{/number}","notifications_url":"https://api.github.com/repos/samvera/hyrax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samvera/hyrax/labels{/name}","releases_url":"https://api.github.com/repos/samvera/hyrax/releases{/id}","deployments_url":"https://api.github.com/repos/samvera/hyrax/deployments","created_at":"2016-11-29T23:09:59Z","updated_at":"2017-10-26T21:26:15Z","pushed_at":"2017-11-01T20:01:42Z","git_url":"git://github.com/samvera/hyrax.git","ssh_url":"git@github.com:samvera/hyrax.git","clone_url":"https://github.com/samvera/hyrax.git","svn_url":"https://github.com/samvera/hyrax","homepage":"http://hyr.ax/","size":64072,"stargazers_count":52,"watchers_count":52,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":434,"forks":43,"open_issues":434,"watchers":52,"default_branch":"master"}},"base":{"label":"samvera:master","ref":"master","sha":"0a6a4e67421cbc5b11d45bd0f07599d47d9f1c77","user":{"login":"samvera","id":109426,"avatar_url":"https://avatars2.githubusercontent.com/u/109426?v=4","gravatar_id":"","url":"https://api.github.com/users/samvera","html_url":"https://github.com/samvera","followers_url":"https://api.github.com/users/samvera/followers","following_url":"https://api.github.com/users/samvera/following{/other_user}","gists_url":"https://api.github.com/users/samvera/gists{/gist_id}","starred_url":"https://api.github.com/users/samvera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvera/subscriptions","organizations_url":"https://api.github.com/users/samvera/orgs","repos_url":"https://api.github.com/users/samvera/repos","events_url":"https://api.github.com/users/samvera/events{/privacy}","received_events_url":"https://api.github.com/users/samvera/received_events","type":"Organization","site_admin":false},"repo":{"id":75130658,"name":"hyrax","full_name":"samvera/hyrax","owner":{"login":"samvera","id":109426,"avatar_url":"https://avatars2.githubusercontent.com/u/109426?v=4","gravatar_id":"","url":"https://api.github.com/users/samvera","html_url":"https://github.com/samvera","followers_url":"https://api.github.com/users/samvera/followers","following_url":"https://api.github.com/users/samvera/following{/other_user}","gists_url":"https://api.github.com/users/samvera/gists{/gist_id}","starred_url":"https://api.github.com/users/samvera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samvera/subscriptions","organizations_url":"https://api.github.com/users/samvera/orgs","repos_url":"https://api.github.com/users/samvera/repos","events_url":"https://api.github.com/users/samvera/events{/privacy}","received_events_url":"https://api.github.com/users/samvera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/samvera/hyrax","description":"Hyrax is a front-end based on the robust Samvera framework, providing a user interface for common repository features","fork":false,"url":"https://api.github.com/repos/samvera/hyrax","forks_url":"https://api.github.com/repos/samvera/hyrax/forks","keys_url":"https://api.github.com/repos/samvera/hyrax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samvera/hyrax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samvera/hyrax/teams","hooks_url":"https://api.github.com/repos/samvera/hyrax/hooks","issue_events_url":"https://api.github.com/repos/samvera/hyrax/issues/events{/number}","events_url":"https://api.github.com/repos/samvera/hyrax/events","assignees_url":"https://api.github.com/repos/samvera/hyrax/assignees{/user}","branches_url":"https://api.github.com/repos/samvera/hyrax/branches{/branch}","tags_url":"https://api.github.com/repos/samvera/hyrax/tags","blobs_url":"https://api.github.com/repos/samvera/hyrax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samvera/hyrax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samvera/hyrax/git/refs{/sha}","trees_url":"https://api.github.com/repos/samvera/hyrax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samvera/hyrax/statuses/{sha}","languages_url":"https://api.github.com/repos/samvera/hyrax/languages","stargazers_url":"https://api.github.com/repos/samvera/hyrax/stargazers","contributors_url":"https://api.github.com/repos/samvera/hyrax/contributors","subscribers_url":"https://api.github.com/repos/samvera/hyrax/subscribers","subscription_url":"https://api.github.com/repos/samvera/hyrax/subscription","commits_url":"https://api.github.com/repos/samvera/hyrax/commits{/sha}","git_commits_url":"https://api.github.com/repos/samvera/hyrax/git/commits{/sha}","comments_url":"https://api.github.com/repos/samvera/hyrax/comments{/number}","issue_comment_url":"https://api.github.com/repos/samvera/hyrax/issues/comments{/number}","contents_url":"https://api.github.com/repos/samvera/hyrax/contents/{+path}","compare_url":"https://api.github.com/repos/samvera/hyrax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samvera/hyrax/merges","archive_url":"https://api.github.com/repos/samvera/hyrax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samvera/hyrax/downloads","issues_url":"https://api.github.com/repos/samvera/hyrax/issues{/number}","pulls_url":"https://api.github.com/repos/samvera/hyrax/pulls{/number}","milestones_url":"https://api.github.com/repos/samvera/hyrax/milestones{/number}","notifications_url":"https://api.github.com/repos/samvera/hyrax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samvera/hyrax/labels{/name}","releases_url":"https://api.github.com/repos/samvera/hyrax/releases{/id}","deployments_url":"https://api.github.com/repos/samvera/hyrax/deployments","created_at":"2016-11-29T23:09:59Z","updated_at":"2017-10-26T21:26:15Z","pushed_at":"2017-11-01T20:01:42Z","git_url":"git://github.com/samvera/hyrax.git","ssh_url":"git@github.com:samvera/hyrax.git","clone_url":"https://github.com/samvera/hyrax.git","svn_url":"https://github.com/samvera/hyrax","homepage":"http://hyr.ax/","size":64072,"stargazers_count":52,"watchers_count":52,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":434,"forks":43,"open_issues":434,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/samvera/hyrax/pulls/2077"},"html":{"href":"https://github.com/samvera/hyrax/pull/2077"},"issue":{"href":"https://api.github.com/repos/samvera/hyrax/issues/2077"},"comments":{"href":"https://api.github.com/repos/samvera/hyrax/issues/2077/comments"},"review_comments":{"href":"https://api.github.com/repos/samvera/hyrax/pulls/2077/comments"},"review_comment":{"href":"https://api.github.com/repos/samvera/hyrax/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/samvera/hyrax/pulls/2077/commits"},"statuses":{"href":"https://api.github.com/repos/samvera/hyrax/statuses/10ddeaab4e3566327d855336fa14a4d0bac4c012"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mjgiarlo"}}