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

omeroweb.webgateway.obj_id_bitmask: handle empty query results #580

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented Sep 12, 2024

See ome/openmicroscopy#6411

The current implementation behaves incorrectly when getWhereList returns an empty list (no matches). This is due to the fact that the contract of table.slice() is to return all rows if row_numbers is empty or None.

Instead, this fix detects the scenario where row_numbers is empty and return the corresponding bitmask as an HTTP response

@sbesson sbesson requested a review from knabar September 12, 2024 11:39
@knabar knabar added this to the 5.28.0 milestone Oct 18, 2024
@knabar knabar merged commit 213bb61 into ome:master Nov 1, 2024
10 checks passed
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