We found a bug in the new
taxon_id support in the
/v1/taxa/autocomplete endpoint. Here’s a test URL, specifying
taxon_id=7823 (Corvidae) and
Surprisingly, this returns 2 records, the first of which does not include
7823 in the
ancestor_ids and the second of which does.
- Actinopterygii (Ray-finned Fishes) with
- Corvus ossifragus (Fish Crow) with
Compare the results with the return from the
/v1/taxa endpoint for the same query:
This correctly only matches the 2nd record above, the “Fish crow” record.
As a workaround, I will iterate over the returned records and return the first one that contains the ancestor
Please look into this & fix.