change extras method of MetadataSourceHandler to be async
newgene opened this issue · 3 comments
newgene commented
We should make this extras
method an async method, so that it can be used to call other async functions/methods:
biothings.api/biothings/web/handlers/query.py
Lines 155 to 159 in d3a001a
For use cases without async calls, it can be a simple yield to return updated _meta
value.
newgene commented
We should check other API instances override extras
and make the change to work with this new change.
Here is a use case in MyGene.info repo:
newgene commented
Another place we override extras
: