Skip to content

Conversation

@corneliusroemer
Copy link
Contributor

@corneliusroemer corneliusroemer commented Dec 4, 2025

We now have maxSequencesPerEntry explicitly set in submissionDataTypes per organism (see #5559)

Makes sense to use this in website code as well when applicable to simplify (there might be more places where it could be used).

Tested submission on preview

PR Checklist

  • The implemented feature is covered by appropriate, automated tests.
  • Any manual testing that has been done is documented (i.e. what exactly was tested?)

🚀 Preview: https://use-max-sequences-per-ent.loculus.org

@corneliusroemer corneliusroemer added website Tasks related to the web application review please PR waiting for final review multipath preview Triggers a deployment to argocd labels Dec 4, 2025
Copy link
Contributor

@anna-parker anna-parker left a comment

Choose a reason for hiding this comment

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

of the top of my head I created a function called isMultiSegmentedOrganism on the website before we added the maxSequencesPerEntry field - this should probably be refactored as well - but I think this can also happen after we merge the feature branch

@corneliusroemer
Copy link
Contributor Author

Yeah this is no longer needed now - I'll add all the simplifications to this PR, give me one sec

@anna-parker anna-parker force-pushed the use-max-sequences-per-entry branch from 20a5c74 to 163db58 Compare December 5, 2025 08:58
Base automatically changed from edit-page-anya to main December 5, 2025 13:44
@corneliusroemer corneliusroemer force-pushed the use-max-sequences-per-entry branch 3 times, most recently from 09b5a50 to 17d320f Compare December 5, 2025 15:47
Copy link
Contributor

@anna-parker anna-parker left a comment

Choose a reason for hiding this comment

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

I found a bug when downloading the csv file - all rows are appended without creating a new line

Screen.Recording.2025-12-05.at.17.07.28.mov

Copy link
Contributor

@anna-parker anna-parker left a comment

Choose a reason for hiding this comment

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

please add my bug fix before merging :-)

…ckend to simplify

Fix test and add new one so all cases are covered

Make more readable

Remove now unused function

Further simplifications removing getreferenceGenomeLightweightSchema when no longer needed now

Resolve #3984

Remove unnecessary lightweight schema in more places

Apply suggestions from code review

Co-authored-by: Anna (Anya) Parker <50943381+anna-parker@users.noreply.github.com>

Dummy for builds

(cherry picked from commit 69a4836)

# Conflicts:
#	website/src/components/Edit/SequencesForm.spec.tsx

Merge conflicts and use constants consistenly

Update website/src/components/Edit/SequencesForm.spec.tsx

# Conflicts:
#	website/src/components/Edit/EditableSequences.spec.ts
#	website/src/components/Edit/SequencesForm.tsx
#	website/src/components/Submission/FormOrUploadWrapper.tsx
@corneliusroemer corneliusroemer force-pushed the use-max-sequences-per-entry branch from 1a0454f to 08abc49 Compare December 8, 2025 09:45
@corneliusroemer corneliusroemer merged commit 6b69145 into main Dec 8, 2025
42 checks passed
@corneliusroemer corneliusroemer deleted the use-max-sequences-per-entry branch December 8, 2025 10:33
maverbiest pushed a commit that referenced this pull request Dec 8, 2025
…ckend to simplify (#5631)

We now have maxSequencesPerEntry explicitly set in submissionDataTypes
per organism (see #5559)

Makes sense to use this in website code as well when applicable to
simplify (there might be more places where it could be used).

Tested submission on preview

### PR Checklist
- [x] The implemented feature is covered by appropriate, automated
tests.
- [x] Any manual testing that has been done is documented (i.e. what
exactly was tested?)

🚀 Preview: https://use-max-sequences-per-ent.loculus.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multipath preview Triggers a deployment to argocd review please PR waiting for final review website Tasks related to the web application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants