Skip to content

Query operator OR breaks with two true/non-negated fields #6486

Closed
@bronwyncombs

Description

@bronwyncombs

Describe the bug
A clear and concise description of what the bug is.

Queries run with the OR operator, such that more than one value is true (not negated), don't return results in v7.10.2.2

To Reproduce
Steps to reproduce the behavior:

  1. Go to DB running v7.10.2.2
  2. Run query with OR operator and more than true field (not-negated field)
  3. See no results
  4. Compare to same query in v7.9, see results

Expected behavior
Return results as queries upon and received in previous versions

Screenshots

v7.9

Image

v7.10

Image

v7.10 | results when only one OR value is true

Image

Please fill out the following information manually:

  • OS: macOS
  • Browser: Chrome
  • Specify 7 Version: v7.10.2.2 (not present in 7.10.1)
  • Database Name: uw-geocollections
  • Collection name: vertebrate fossils
  • User Name: spadmin
  • URL: test panel

Reported By
Nate Shoobs @ OSU Mollusks

Additional context

Nate reported this issue to the forum (see post). The post there includes additional screenshots, JSON for query used, and links to both instances they have running on two separate versions. The OSU one runs a commit from 3 months ago (SHA: e1e47642f98ffc3e7e54c6cba50f79c3d38f9b2e) and the other in on NA server

I recreated this on the test panel using Nate's query, adjusting taxon values for the UW-GeoCollections taxon data.

Metadata

Metadata

Assignees

Labels

2 - QueriesIssues that are related to the query builder or queries in generalregressionThis is behavior that once worked that has broken. Must be resolved before the next release.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions