Skip to content

Add configurable AS for decompressed archive size limits

What does this MR do and why?

As per Add configurable application setting for decomp... (#387932 - closed) we're introducing new application settings for Decompression ratio for imported archives.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Checkout the branch
  2. Validate there is new setting's field
  3. Validate the new Import Export file can go up to X times new decompression ratio

The easiest way would be to use rails console, and call the service from there:

tmpdir = Dir.mktmpdir('bulk_imports')
filename = 'name_of_the_file_to_decompress.tar.gz'
BulkImports::FileDecompressionService.new(tmpdir: tmpdir, filename: filename).execute

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #387932 (closed)

Edited by Bojan Marjanovic

Merge request reports