Closed ssssarah closed 7 months ago
Attention: 42 lines
in your changes are missing coverage. Please review.
Comparison is base (
46f06eb
) 74.66% compared to head (ee95349
) 74.67%.
Files | Patch % | Lines |
---|---|---|
kgforge/specializations/stores/bluebrain_nexus.py | 6.66% | 42 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks like retrieving using resolvers and /source doesn't support annotate=True, https://bluebrainnexus.io//docs/delta/api/resolvers-api.html#fetch-original-resource-payload-using-resolvers
So there is still one use case where a separate call for metadata is necessary. I just requested the feature https://github.com/BlueBrain/nexus/issues/4717
Use annotate=True when retrieving a resource's original payload, to get the metadata with it https://bluebrainnexus.io//docs/delta/api/resources-api.html#fetch-original-payload
Use the metadata included in the response when retrieving a resource with /fetch https://bluebrainnexus.io//docs/delta/api/resources-api.html#fetch
Removes the second api call for metadata