-
Notifications
You must be signed in to change notification settings - Fork 9
refactor(website): use maxSequencesPerEntry that's already used by backend to simplify #5631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
anna-parker
left a comment
There was a problem hiding this 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
|
Yeah this is no longer needed now - I'll add all the simplifications to this PR, give me one sec |
bce2b8a to
2213cec
Compare
20a5c74 to
163db58
Compare
09b5a50 to
17d320f
Compare
anna-parker
left a comment
There was a problem hiding this 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
anna-parker
left a comment
There was a problem hiding this 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
1a0454f to
08abc49
Compare
…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
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
🚀 Preview: https://use-max-sequences-per-ent.loculus.org