kbase / staging_service

MIT License
0 stars 9 forks source link

Support gzip for in scope bulk upload apps #107

Closed MrCreosote closed 3 years ago

MrCreosote commented 3 years ago

Without doing a lot of restructuring of the app specs and autodetection logic, it seems to me the best way to handle gzipped files that we know are supported by apps is to preferentially pick the longest valid extension to get importers. This means that *.gb.gz will autodetect to Genbank rather than have Genbank and Decompress suggested.

It's a bit fragile if we start getting extensions with lots of dots in them, but that doesn't seem very likely.

The user can always pick Decompress from the dropdown if they wish.

416/473 lines are autogenerated.

MrCreosote commented 3 years ago

Codacy why you do this image

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication