/dataSource API call returns wrong results about TAX IDs #653
Labels
bug
project:client
Related to the client/front-end war.
project:web service
Knetminer web service (ws), including search, JSON out, data export, config reading.
This API call is going to be dismissed and replaced by the new
/dataset-info
API. Meanwhile, I need to clarify the following bit, in order to provide a decent new implementation for legacy clients:If I get the original author's intention right, this should yield a JSON fragment with one
speciesTaxId
per available species, something like:However, the code above doesn't produce this output at all, since
summaryJSON
is aMap
and itsspeciesTaxid
is overwritten at each iteration of that loop-like function. In other words, the output reports only one of the available species, and which one exactly is essentially random.I don't plan to fix this gross and irritating bug, rather, the goal of this ticket is investigating which clients use this API, understanding how they use it and seeing how they can be changed to switch to the new
/dataset-info
(which has a different structure, but returns the specie details correctly).As a secondary goal, if we really need to keep this interface alive (eg, due to external clients), we need to understand if this can reasonably be done without returning plain wrong data (eg, is the first specie listed in a configuration the most significant, a default, or alike?).
The
speciesName
included in this old API's output has a similar problem: do the client expect the latin or common name here?The text was updated successfully, but these errors were encountered: