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

Inconsistent Query Behavior with Negate Button Ignoring Blank Fields #4147

Open
grantfitzsimmons opened this issue Oct 23, 2023 · 2 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
Contributor

Another non-intuitive query behavior I have discovered, only today, (and I’m not sure if this is intentional or a bug) is that querying with the negate button active and then querying again with the negate button inactive does not return all possible records - it ignores all records where that field is totally blank even though a blank field necessarily satisfies the ‘negate’ condition.

For example if I query records where field number contains “SMP” I get 977 results. When I query records where field number does NOT contain “SMP” I get 1511 results. Looks like I have only 2488 records - but there are another 3541 records with blank field number that didn’t appear in either search. This has caused me a lot of confusion and probably reporting wrong numbers to granting agencies in progress reports. I propose that the “negate” operation should include records where the queried field is empty since they logically fall under that category. Or at least make this behavior more explicit in the interface somehow.

Update: This only seems to be true for Specify7 - Specify6 includes empty results when you query for ‘NOT’ values.

Reported by: Paul at FWRI (Speciforum)

@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 Oct 23, 2023
@specifysoftware
Copy link

This issue has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/specify-7-query-builder/289/6

@CarolineDenis
Copy link
Contributor

@grantfitzsimmons, would it be possible to have screen shots of the queries?

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

3 participants