From f8815d2b80d6b22a6be92680332e950c045e52c1 Mon Sep 17 00:00:00 2001 From: Adam Ploshay Date: Fri, 13 May 2022 10:51:06 -0400 Subject: [PATCH] patch FileSetActor to drop unneccessary FileSet job calls --- .../hyrax/actors/file_set_actor/create_content.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/extensions/hyrax/actors/file_set_actor/create_content.rb b/lib/extensions/hyrax/actors/file_set_actor/create_content.rb index 55a80bfe0..0f9174c3e 100644 --- a/lib/extensions/hyrax/actors/file_set_actor/create_content.rb +++ b/lib/extensions/hyrax/actors/file_set_actor/create_content.rb @@ -1,4 +1,4 @@ -# unmodified from hyrax +# modified to apply helper jobs to individual FileSet module Extensions module Hyrax module Actors @@ -20,10 +20,6 @@ def create_content(file, relation = :original_file, from_url: false) # hand. Do this because we don't have the underlying UploadedFile instance file_actor = build_file_actor(relation) file_actor.ingest_file(wrapper!(file: file, relation: relation)) - # Copy visibility and permissions from parent (work) to - # FileSets even if they come in from BrowseEverything - VisibilityCopyJob.perform_later(file_set.parent) - InheritPermissionsJob.perform_later(file_set.parent) else IngestJob.perform_later(wrapper!(file: file, relation: relation)) end