Skip to content

Commit

Permalink
patch FileSetActor to drop unneccessary FileSet job calls
Browse files Browse the repository at this point in the history
  • Loading branch information
aploshay committed Feb 9, 2024
1 parent 2144c8b commit f8815d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/extensions/hyrax/actors/file_set_actor/create_content.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# unmodified from hyrax
# modified to apply helper jobs to individual FileSet
module Extensions
module Hyrax
module Actors
Expand All @@ -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
Expand Down

0 comments on commit f8815d2

Please sign in to comment.