hubmapconsortium / search-api

HuBMAP search service and associated pieces to create an index
https://search.api.hubmapconsortium.org
MIT License
2 stars 2 forks source link

Remove `add_datasets_to_entity()` for Collection and Upload #790

Open yuanzhou opened 4 months ago

yuanzhou commented 4 months ago

AFTER the Harvard team addresses the corresponding changes in the portal-ui following the changes described in #754, we should remove the use of Collection.datasets and Upload.datasets from the index procedure.

https://github.com/hubmapconsortium/search-api/blob/a3a10136ed774746ab5c42c9a3dbb91bfd0fa50b/src/hubmap_translator.py#L705

There will be no need to compose a list of datasets: https://github.com/hubmapconsortium/search-api/blob/a3a10136ed774746ab5c42c9a3dbb91bfd0fa50b/src/hubmap_translator.py#L739