Skip to content

BI-2967: Wire frontend VCF genotype upload limit through environment config - #482

Merged
HMS17 merged 1 commit into
developfrom
feature/BI-2967
Jul 29, 2026
Merged

HMS17 merged 1 commit into
developfrom
feature/BI-2967

Conversation

@humsika

@humsika humsika commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

Story: BI-2967

This PR updates the Genotype Data Import frontend to use the deployment-configured VCF upload size limit.

Summary of changes:

  • added frontend support for the configured genotype VCF upload limit from environment config
  • updated the error message to display the active configured maximum size in MB
  • added safe fallback handling when the configured value is missing or invalid
  • kept the existing genotype import flow unchanged for valid files

Dependencies

bi-web: feature/BI-2967
bi-api: develop

Testing

  • open the Genotype Data Import page
  • select a .vcf file smaller than the configured limit and verify upload proceeds normally
  • select a .vcf file larger than the configured limit and verify:
    • upload is blocked before the API request is sent
    • the user sees an error message showing the configured max size in MB

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 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
  • I have run SiteImprove on pages impacted by changes

…size validation and updated the properties files as needed.
@humsika
humsika requested a review from HMS17 July 23, 2026 21:54

@HMS17 HMS17 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good and tests passed locally!

@HMS17
HMS17 merged commit 4d75612 into develop Jul 29, 2026
2 checks passed
@HMS17
HMS17 deleted the feature/BI-2967 branch July 29, 2026 18:47
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