Open ManonGros opened 1 month ago
As for the registry console, could we display the parent concepts along with the children concepts?
In the registry I have to do 42 requests for a single keystroke on e.g. PreservationType
It isn't really something I want to do in a public facing product that should perform well. For that we probably need a backend that supports that kind of functionality.
ping @marcos-lg
Currently I can do https://api.gbif.org/v1/vocabularies/PreservationType/concepts/suggest?q=sto&locale=en-AR
that will return
[
{
"key": 1106,
"name": "StorageOutdoors",
"labels": []
},
...
]
getting the label with fallback to english, as well as all the parent labels would make it more usable. Currently I would have to do an extra lookup for each result without a label, and secondly an additional lookup for each parent. And do so for all results. And so we end up with many requests per keystroke
It's fine to me to add English labels and parents in the response. Can you create an issue in the vocabulary repo with it and any other wishes you might have?
Relates to https://github.com/gbif/registry/issues/549 and https://github.com/gbif/registry-console/issues/558.
The drop download lists should reflect the available vocabularies. For example this drop down list should use https://registry.gbif.org/vocabulary/CollectionContentType/concepts: