You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From @bomeara on gitter:
"It now appears that looking up ot:focalCladeOTTTaxonName is now case sensitive. This gives studies:
curl -X POST https://api.opentreeoflife.org/v3/studies/find_studies -H "content-type:application/json" -d '{"property":"ot:focalCladeOTTTaxonName","value":"Mammalia","verbose":true}'
but this does not:
curl -X POST https://api.opentreeoflife.org/v3/studies/find_studies -H "content-type:application/json" -d '{"property":"ot:focalCladeOTTTaxonName","value":"mammalia","verbose":true}'
It came up b/c the R rotl package documentation has lower case examples that used to work but don't any longer -- it's easy enough to fix this in the documentation, but I just wanted to make sure this is intended behavior"
This search is an example of searching the jsonb data blob (i.e. ot:focalCladeOTTTaxonName is not an explicit column in the study table, but a key that might exist in the jsonb column for a study). Based on a github search, there are no instances of lower case 'mammalia' as ot:focalCladeOTTTaxonName in phylesystem. There is no explicit conversion to lowercase in the script that loads the nexsons, and dicts / json are case sensitive, as is the jsonb column in postgres.
From @bomeara on gitter:
"It now appears that looking up ot:focalCladeOTTTaxonName is now case sensitive. This gives studies:
curl -X POST https://api.opentreeoflife.org/v3/studies/find_studies -H "content-type:application/json" -d '{"property":"ot:focalCladeOTTTaxonName","value":"Mammalia","verbose":true}'
but this does not:
curl -X POST https://api.opentreeoflife.org/v3/studies/find_studies -H "content-type:application/json" -d '{"property":"ot:focalCladeOTTTaxonName","value":"mammalia","verbose":true}'
It came up b/c the R rotl package documentation has lower case examples that used to work but don't any longer -- it's easy enough to fix this in the documentation, but I just wanted to make sure this is intended behavior"
Originally opened in OpenTreeOfLife/otcetera#96 but really belongs here.
I think I understand why the case sensitivity, but I am confused about this being a change in behaviour (why did it ever work with lower case?)
The text was updated successfully, but these errors were encountered: