specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
66 stars 36 forks source link

Preferred Taxon Queries do not include Taxa without a Preferred Taxon #4973

Open alesan99 opened 5 months ago

alesan99 commented 5 months ago

Describe the bug If you make a Taxon Query with Preferred Taxon it sometimes does not display the Taxa without a defined 'Preferred Taxon'

To Reproduce Steps to reproduce the behavior:

  1. Ensure you have a Taxon without a Preferred Taxon and one that does have one.

  2. Make a new Query matching the screenshots below OR import one of these: SynonymizedTaxaSwitch.json prefTaxon.json

  3. Run the Query and look at the results

  4. Switch the order of the Query field lines

  5. Run the Query and see if the results changed

Expected behavior The query results should still show Taxa without any Preferred Taxon, regardless of the order of the Query fields. Specify 6 handles this well.

Screenshots Undesired result: image Switching the order fixes it image

Results on Specify 6 (Using the order from the first screenshot): image

Please, also fill out the following information manually:

combs-a commented 5 months ago

It's specifically when the Preferred Taxon query is of a specific rank. (any rank) seems to work as normal.

i.e. when a query has (any rank) -> Preferred Taxon -> Rank -> etc...

emenslin commented 3 months ago

Can recreate in edge (7.9.6)

lexiclevenger commented 1 month ago

Eyal from hujinnhc reported that Determination queries with Taxon and Preferred Taxon also return results for rank fullName incorrectly. The results for EITHER the Taxon OR Preferred Taxon table will appear in both columns depending on which table appears first in the mapping.

Screenshot 2024-09-16 at 4 09 04 PM

Specify 7 results:

Screenshot 2024-09-16 at 4 09 23 PM

Specify 6 results:

Screenshot 2024-09-16 at 3 50 17 PM