{"action":"created","comment":{"url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/comments/41310569","id":41310569,"diff_hunk":"@@ -14,10 +14,9 @@ def index\n \n     # Removes a single embargo\n     def destroy\n-      update_files = !curation_concern.under_embargo? # embargo expired\n       EmbargoActor.new(curation_concern).destroy\n       flash[:notice] = curation_concern.embargo_history.last\n-      if update_files\n+      if curation_concern.works_generic_work? && curation_concern.generic_files.present?","path":"app/controllers/concerns/curation_concerns/embargoes_controller_behavior.rb","position":8,"original_position":8,"commit_id":"d5464453225d5813a3dd4dee4aa6ccff18dfaf94","original_commit_id":"ad09b4a9a76d93d03f1ffe786b05a1d3859df114","user":{"login":"terrellt","id":2806645,"avatar_url":"https://avatars.githubusercontent.com/u/2806645?v=3","gravatar_id":"","url":"https://api.github.com/users/terrellt","html_url":"https://github.com/terrellt","followers_url":"https://api.github.com/users/terrellt/followers","following_url":"https://api.github.com/users/terrellt/following{/other_user}","gists_url":"https://api.github.com/users/terrellt/gists{/gist_id}","starred_url":"https://api.github.com/users/terrellt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrellt/subscriptions","organizations_url":"https://api.github.com/users/terrellt/orgs","repos_url":"https://api.github.com/users/terrellt/repos","events_url":"https://api.github.com/users/terrellt/events{/privacy}","received_events_url":"https://api.github.com/users/terrellt/received_events","type":"User","site_admin":false},"body":":+1: Punt away.","created_at":"2015-10-06T19:29:33Z","updated_at":"2015-10-06T19:29:33Z","html_url":"https://github.com/projecthydra-labs/curation_concerns/pull/363#discussion_r41310569","pull_request_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363","_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/comments/41310569"},"html":{"href":"https://github.com/projecthydra-labs/curation_concerns/pull/363#discussion_r41310569"},"pull_request":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363"}}},"pull_request":{"url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363","id":46816498,"html_url":"https://github.com/projecthydra-labs/curation_concerns/pull/363","diff_url":"https://github.com/projecthydra-labs/curation_concerns/pull/363.diff","patch_url":"https://github.com/projecthydra-labs/curation_concerns/pull/363.patch","issue_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/363","number":363,"state":"open","locked":false,"title":"Ask if the Files' visibility should be updated","user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"body":"Previously Leases were updated automatically. Embargoes were asking if\r\nyou wanted to update the files, but only if the embargo had lapsed.\r\nThis simplifies the situation by treating Leases and Embargoes\r\nidentically and always asking if the visibility should be copied if they\r\nhave attached Files.","created_at":"2015-10-05T18:35:32Z","updated_at":"2015-10-06T19:29:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7600e20ccb9d802f7abe3c1f6a18af7d6debc0cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363/commits","review_comments_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363/comments","review_comment_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/363/comments","statuses_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/statuses/d5464453225d5813a3dd4dee4aa6ccff18dfaf94","head":{"label":"projecthydra-labs:copy_embargos","ref":"copy_embargos","sha":"d5464453225d5813a3dd4dee4aa6ccff18dfaf94","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":35563024,"name":"curation_concerns","full_name":"projecthydra-labs/curation_concerns","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/curation_concerns","description":"A Hydra-based Rails Engine that extends an application, adding the ability to Create, Read, Update and Destroy (CRUD) objects (based on Hydra::Works) and providing a generator for defining object types with custom workflows, views, access controls, etc.","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/curation_concerns","forks_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/releases{/id}","created_at":"2015-05-13T17:17:45Z","updated_at":"2015-09-03T14:31:28Z","pushed_at":"2015-10-06T16:51:57Z","git_url":"git://github.com/projecthydra-labs/curation_concerns.git","ssh_url":"git@github.com:projecthydra-labs/curation_concerns.git","clone_url":"https://github.com/projecthydra-labs/curation_concerns.git","svn_url":"https://github.com/projecthydra-labs/curation_concerns","homepage":"","size":5646,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":44,"forks":5,"open_issues":44,"watchers":3,"default_branch":"master"}},"base":{"label":"projecthydra-labs:master","ref":"master","sha":"a555a40087a2ac96738b369536cbba1244b74402","user":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":35563024,"name":"curation_concerns","full_name":"projecthydra-labs/curation_concerns","owner":{"login":"projecthydra-labs","id":7377013,"avatar_url":"https://avatars.githubusercontent.com/u/7377013?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra-labs","html_url":"https://github.com/projecthydra-labs","followers_url":"https://api.github.com/users/projecthydra-labs/followers","following_url":"https://api.github.com/users/projecthydra-labs/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra-labs/subscriptions","organizations_url":"https://api.github.com/users/projecthydra-labs/orgs","repos_url":"https://api.github.com/users/projecthydra-labs/repos","events_url":"https://api.github.com/users/projecthydra-labs/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra-labs/curation_concerns","description":"A Hydra-based Rails Engine that extends an application, adding the ability to Create, Read, Update and Destroy (CRUD) objects (based on Hydra::Works) and providing a generator for defining object types with custom workflows, views, access controls, etc.","fork":false,"url":"https://api.github.com/repos/projecthydra-labs/curation_concerns","forks_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/forks","keys_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/teams","hooks_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/hooks","issue_events_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/events","assignees_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/tags","blobs_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/languages","stargazers_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/stargazers","contributors_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/contributors","subscribers_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/subscribers","subscription_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/subscription","commits_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/merges","archive_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/downloads","issues_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/releases{/id}","created_at":"2015-05-13T17:17:45Z","updated_at":"2015-09-03T14:31:28Z","pushed_at":"2015-10-06T16:51:57Z","git_url":"git://github.com/projecthydra-labs/curation_concerns.git","ssh_url":"git@github.com:projecthydra-labs/curation_concerns.git","clone_url":"https://github.com/projecthydra-labs/curation_concerns.git","svn_url":"https://github.com/projecthydra-labs/curation_concerns","homepage":"","size":5646,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":44,"forks":5,"open_issues":44,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363"},"html":{"href":"https://github.com/projecthydra-labs/curation_concerns/pull/363"},"issue":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/363"},"comments":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/363/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/pulls/363/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra-labs/curation_concerns/statuses/d5464453225d5813a3dd4dee4aa6ccff18dfaf94"}}}}