Closed eweitz closed 3 weeks ago
Attention: Patch coverage is 33.33333%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 69.57%. Comparing base (
b6abf58
) to head (efb3522
). Report is 4 commits behind head on development.
Files with missing lines | Patch % | Lines |
---|---|---|
app/javascript/lib/validation/validate-file.js | 0.00% | 3 Missing and 1 partial :warning: |
The build failure is a false positive that will be fixed by #2143:
Total elapsed time: 26 minutes, 31 seconds
### FAILURES and ERRORS ###
*** Yarn test failures ***
FAIL test/js/lib/validate-anndata.test.js
✕ Parses AnnData headers (448 ms)
✕ Reports AnnData with valid headers as valid (114 ms)
✕ Reports AnnData with invalid headers as invalid (224 ms)
✕ Parses AnnData rows and reports invalid ontology IDs (257 ms)
FAIL test/js/lib/validate-anndata.test.js
*** Rails test failures ***
Exiting with code: 1
This refines validation for Seurat data, and lets admins disable client-side validation for files uploaded via bucket path.
Impact
Previously, Single Cell Portal did not account for a convention in the R community to omit .gz extensions from gzip-compressed RDS files. Incidentally, this revealed a need to allow staff to occasionally disable client-side validation (CSFV) for remote files.
Now, RDS files can be gzipped or not, and won't throw any gzip-related error message. And admins can now disable CSFV for remote files, like they already can for local files.
Demo
Here's how it looks.
Enable remote CSFV bypass
https://github.com/user-attachments/assets/c16332d1-b86a-491a-b34d-f142fae48acc
Omit .gz check for RDS files
https://github.com/user-attachments/assets/47a6ff9a-c7da-4b1a-8c59-fb905b537c15
Test
An automated test verifies omitting the .gz check for RDS files. Optionally, to manually test:
test/test_data/anndata
)test/test_data/validation/missing_gz_extension.rds
This satisfies SCP-5821.