GitLab Migration - import relations compressed with zip
As discussed in POC #376261 (closed) GitLab Migration should start supporting relations import compressed with zip.
Proposed solution
- Update
BulkImports::FileDownloadService
to be able to downloadrelation.zip
along side withrelation.tar.gz
- Update
BulkImports::FileDecompressionService
to be able to decompress.zip
files along side with.tar.gz
depending on type of the compression used (by updating the class itself or using composition/inheritence to achieve this) - Since in case of
.zip
there is no Tar involved, we should update the codebase to not do any systemcalls totar
when decompressing data withzip
- Make sure all pipelines import data same as before
- Put changes behind a short lived feature flag. Since we're going to be supporting both types of files for some time it makes sense to have the feature flag for testing purposes until we iron out any found issues
Edited by Magdalena Frankiewicz