Skip to content

Commit 23cfd30

Browse files
authored
Update decorator to accept file_set_params (#1027)
# Story Hyrax was updated to allow passing additional parameters when creating FileSets, so we need to add the parameter to the decorator here. Refs #1025 # Expected Behavior Before Changes Bulkrax imports broke <img width="2704" height="1460" alt="image (10)" src="https://github.com/user-attachments/assets/b8b4a0bc-6480-4df3-87b9-aec5a638c06a" /> # Expected Behavior After Changes Bulkrax imports complete for issue linked above. # Screenshots / Video # Notes
2 parents 2e71144 + 0c79db1 commit 23cfd30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/services/hyrax/work_uploads_handler_decorator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ module WorkUploadsHandlerDecorator
99
# @api private
1010
#
1111
# @return [Hash{Symbol => Object}]
12-
def file_set_args(file)
12+
def file_set_args(file, file_set_params = {})
1313
{ depositor: file.user.user_key,
1414
creator: file.user.user_key,
1515
date_uploaded: file.created_at,
1616
date_modified: Hyrax::TimeService.time_in_utc,
1717
label: file.uploader.filename,
1818
title: file.uploader.filename,
19-
override_default_thumbnail: file_set_extra_params(file)["override_default_thumbnail"] }
19+
override_default_thumbnail: file_set_extra_params(file)["override_default_thumbnail"] }.merge(file_set_params)
2020
end
2121
end
2222
end

0 commit comments

Comments
 (0)