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

Preferred Taxon/Taxon difference with "Full Name" = 'Any' filtering results incorrectly #5402

Open
grantfitzsimmons opened this issue Nov 15, 2024 · 0 comments
Labels
1 - Bug Incorrect behavior of the product 2 - Queries Issues that are related to the query builder or queries in general

Comments

@grantfitzsimmons
Copy link
Member

grantfitzsimmons commented Nov 15, 2024

Describe the bug
In this simple query, when the line Determinations --> Taxon --> Genus --> Full Name --> Any is present alongside the line Determinations --> Preferred Taxon --> Species --> Full Name --> Any, the search that should return a CO does not. It seems that this can be any higher rank in the taxon tree, and all result in no result being shown.

It seems that the mismatch between "Preferred Taxon" and "Taxon" may be causing an issue here.

To Reproduce
Steps to reproduce the behavior:

image
  1. Go to nbm_mnb_2024_11_15 on the test panel
  2. Go to https://nbm-mnb.specifycloud.org/specify/query/46/ (Simple query (Test 2))
  3. Run the query and see that no results are returned
  4. Remove the line Determinations --> Taxon --> Genus --> Full Name --> Any (or switch it to Determinations --> Preferred Taxon --> Genus --> Full Name --> Any)
  5. Run the query and see that 1 result is now returned

Expected behavior
Since Determinations --> Taxon --> Genus --> Full Name --> Any does not add any additional filters, the single result should be returned in any case.

Screenshots
https://github.com/user-attachments/assets/9428dc33-4a90-430a-8577-7a772985396c

Crash Report

If the bug resulted in an error message, please click on "Download Error Message" and attach it here. If there is no error, please follow these instructions to download your System Information.

Please fill out the following information manually:

Reported By
Amanda at NBM

@grantfitzsimmons grantfitzsimmons added 1 - Bug Incorrect behavior of the product 2 - Queries Issues that are related to the query builder or queries in general labels Nov 15, 2024
@grantfitzsimmons grantfitzsimmons changed the title Higher taxonomy "Full Name" = 'Any' filtering results incorrectly Preferred Taxon/Taxon difference with "Full Name" = 'Any' filtering results incorrectly Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product 2 - Queries Issues that are related to the query builder or queries in general
Projects
None yet
Development

No branches or pull requests

1 participant