Skip to content

BI-2941 - Genotype Data Import erroring out when the file size is too Large#475

Merged
nickpalladino merged 1 commit into
developfrom
feature/BI-2941
Jul 7, 2026
Merged

BI-2941 - Genotype Data Import erroring out when the file size is too Large#475
nickpalladino merged 1 commit into
developfrom
feature/BI-2941

Conversation

@humsika

@humsika humsika commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Story: BI-2941

This change updates the Genotype Data import UI to show a clear user-friendly error message when an oversized VCF upload is rejected by the backend.

For BI-2941, the backend size limit issue was addressed by increasing the supported multipart upload size to 800MB. The remaining gap was the user experience when a file larger than the supported limit is uploaded. Previously, the UI displayed the generic Request Entity Too Large message. This PR updates the Genotype Data import flow to catch the backend 413 response and show a clearer message explaining that the uploaded file exceeds the maximum allowed file size.

This keeps the backend as the source of truth for upload limits while satisfying the acceptance criteria for the error message shown in the UI.

Dependencies

bi-web: feature/BI-2941
bi-api: feature/BI-2941

Testing

  1. Open Import Data -> Genotypic Data.
  2. Select a sample submission.
  3. Upload a VCF file below 800MB and confirm the import continues through the normal flow.
  4. Confirm the import job is visible on the Jobs page with the expected status flow.
  5. Upload a VCF file larger than the supported backend file size limit.
  6. Confirm the request fails with a clear UI error message.
  7. Confirm the user does not see the generic Request Entity Too Large message.
    The new error will look as shown below:
image

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have create/modified unit and/or integration tests to cover this change or tests are not applicable
  • I have commented my code, particularly in hard-to-understand areas
  • I have either updated the source of truth or arranged for update with product owner if needed https://breedinginsight.atlassian.net/wiki/spaces/BI/pages/1559953409/Source+of+Truth

…o large" error from backend and display a custom error that better explains the issue related to file size.
@humsika humsika requested a review from nickpalladino July 1, 2026 19:17
@nickpalladino nickpalladino merged commit 420a63f into develop Jul 7, 2026
2 checks passed
@nickpalladino nickpalladino deleted the feature/BI-2941 branch July 7, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants