BI-2973: Prevent Duplicate Variants Error from Blocking Subsequent Genotype Data Imports - #540
Conversation
HMS17
left a comment
There was a problem hiding this comment.
The error messages all look great both on the UI and logs for all the error cases I tried. However when I tried the happy path with multiple vcfs that had worked before, it successfully uploaded to localstack but then when gigwa went to process it it got the error "Gigwa had an error saving the genotype data: Found no data to import!". Changing back to develop the happy path worked, so it seems something is going wrong with the happy path in BI-2973.
|
I checked the BI-2973 against develop, and the only flow change on our side is the added BI-API validation step before processSubmission(...). Once validation passes, the LocalStack upload and Gigwa submission path is the same as before, and the same fileContents byte array is passed through, so I’m not seeing an obvious happy-path logic change in the code that would explain Found no data to import!. Since your test is getting past BI-API validation and successfully uploading to LocalStack, it looks like the issue is happening later when Gigwa processes the uploaded file. I’ll keep digging, but from the code diff alone I’m not seeing a direct happy-path change after validation passes. |
HMS17
left a comment
There was a problem hiding this comment.
All passing locally! Great work!
Description
Story: BI-2973
This PR updates BI-API VCF validation for Genotype Data Import so invalid files are rejected before submission to Gigwa.
Summary of changes:
Dependencies
bi-web: develop
bi-api: feature/BI-2973
Testing
Validated / covered scenarios:
The file is not a valid VCF or contains unsupported REF/ALT allele values.Duplicate chromosomal position(s) detected. CHROM:POS key must be unique for variant type.Suggested reviewer testing:
Xor-and confirm the invalid VCF / unsupported REF-ALT error is shown.Checklist: