portal Query Builder produces incorrect results for boolean any operator #2587
Labels
bug
portals
Anything related to portals
query builder
relates to the QueryBuilderView, used in the EditCollecionView
Describe the bug
When building a data collection query in the portal Query Builder, using the 'any' dropdown produces incorrect results. It appears the multiple query rules are AND'ed rather than being OR'ed. This bug was reported by an ADC user, and verified through several variants by @mbjones
To Reproduce
Expected behavior
An OR'ed query generally should be the same size or larger.
Screenshots
First query, 9 results:
Second query: 8 results (should be > 4,084 and < 4093
For any two subqueries that produce results with counts of x and y, the OR'ed query should produce at least as many as the larger resultset, and potentially as many as x+y combined. This could probably be encoded in a test to ensure the system does not regress.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: