dronefly-garden/dronefly

taxon: rank used with `in` should not be order-dependent

synrg opened this issue · 2 comments

synrg commented

The natural way to express rank filter terms when used with an in filter is:

,tab duck hybrid in ducks

but this yields:

Sorry No matching taxon found

This works, but is counter-intuitive:

,tab duck in ducks hybrid

Observations of Anas superciliosa × platyrhynchos (Pacific Black Duck × Mallard hybrid) (Gray Duck × Mallard)

That is, it matches a taxon with "duck" in the name that is a hybrid that is in the taxon with "ducks" in the name, and not a taxon with "duck" in the name that is in a taxon with "ducks" in the name that is a hybrid.

synrg commented

Never mind that ,tab should probably apply the hybrid term as an observation filter, not a taxon filter. I'll file a separate issue about that. This issue equally affects taxon searches with the ,taxon command, e.g. ,t duck in ducks hybrid is the only way to make it work. The intuitive order ,t duck hybrid in ducks does not work!

synrg commented

Fixed in 67b9d0a