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

Sorting with only one annotation #178

Open
mzur opened this issue Jul 17, 2024 · 1 comment · May be fixed by #200
Open

Sorting with only one annotation #178

mzur opened this issue Jul 17, 2024 · 1 comment · May be fixed by #200

Comments

@mzur
Copy link
Member

mzur commented Jul 17, 2024

If there is only one annotation in Largo and I select it as a reference for sorting by similarity it is shown twice:

image

While sorting with only one annotation makes no sense, this should be handled gracefully. No request should be sent to the backend and with similarity sorting only the pinned annotation should be shown.

@mzur mzur added the bug label Jul 17, 2024
@mzur mzur moved this to Medium Priority in BIIGLE Roadmap Jul 17, 2024
@mzur
Copy link
Member Author

mzur commented Jul 24, 2024

This is the code that is called when a new similarity sorting should be active. Maybe it is enough to fall through to the else case with an empty array when there is only a single annotation.

abezine pushed a commit to abezine/largo that referenced this issue Sep 18, 2024
abezine pushed a commit to abezine/largo that referenced this issue Dec 11, 2024
@mzur mzur linked a pull request Dec 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Medium Priority
Development

Successfully merging a pull request may close this issue.

2 participants