Skip to content

[IULRDC-209] restrict zip_download#233

Open
aploshay wants to merge 4 commits into
mainfrom
iulrdc-209_restrict_zip_download
Open

[IULRDC-209] restrict zip_download#233
aploshay wants to merge 4 commits into
mainfrom
iulrdc-209_restrict_zip_download

Conversation

@aploshay
Copy link
Copy Markdown
Contributor

  • removes zip_download from routing, when disabled via settings
  • adds #large_file? method to detect Fedora-backed files that are above Fedora-storage size limit
  • zip_download now excludes large files, in addition to archive (SDA-only) files

@aploshay aploshay requested a review from rdlebeau May 15, 2026 18:45
Copy link
Copy Markdown
Contributor

@rdlebeau rdlebeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting unit testing for the export_file_sets_to function in the data_sets_controller.rb file.

"Emails did not match" # + ": '#{user_email_one}' != '#{user_email_two}'"
end

def export_file_sets_to( target_dir:,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need unit testing for the export_file_sets_to function in the data_sets_controller.rb file.

@@ -0,0 +1,49 @@
RSpec.shared_examples "PresentsArchiveFile behaviors" do |archive_file_object_factory|
# expects archive_file_archive_file_object present as subject
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment is meant to say, "expects archive_file_object present as subject".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants