Skip to content
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

fix(lapis): don't show the single segmented sequence download when there are no nucleotide sequences #1054

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fengelniederhammer
Copy link
Contributor

@fengelniederhammer fengelniederhammer commented Jan 17, 2025

In the context of loculus-project/loculus#3388

This will simply show no endpoint to download nucleotide sequences when there are none in the reference genomes. Without this change, it shows the single segmented endpoints that throw index out of bounds exceptions:

PR Checklist

- [ ] All necessary documentation has been adapted.
- [ ] The implemented feature is covered by an appropriate test.

Copy link

vercel bot commented Jan 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lapis ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 3:21pm

@fengelniederhammer fengelniederhammer self-assigned this Jan 17, 2025
Copy link
Contributor

This is a preview of the changelog of the next release. If this branch is not up-to-date with the current main branch, the changelog may not be accurate. Rebase your branch on the main branch to get the most accurate changelog.

Note that this might contain changes that are on main, but not yet released.

Changelog:

0.3.11 (2025-01-17)

Bug Fixes

  • lapis: don't show the single segmented sequence download when there are no nucleotide sequences (c33cd62)
  • lapis: fix description of mutation objects in OpenApi spec (#1051) (c6f625e)

Copy link
Contributor

@JonasKellerer JonasKellerer left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -41,7 +41,8 @@ import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.bind.annotation.RestController

const val IS_SINGLE_SEGMENT_SEQUENCE_EXPRESSION =
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we rename this variable to something like

Suggested change
const val IS_SINGLE_SEGMENT_SEQUENCE_EXPRESSION =
const val SHOW_SINGLE_SEGMENTED_CONTROLLER =

Copy link
Member

Choose a reason for hiding this comment

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

Is this distinguishing aligned and non-aligned sequences? It should be possible to have one of them and disable the other.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, neither LAPIS nor SILO currently distinguish aligned and non-aligned sequences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants