storage*: Rename and type content_get(List[Sha1]) -> List[Optional[Content]]
Impacts:
- swh-indexer!452 (closed) indexer
- swh-loader-core!399 (closed) loader-core
- swh-web!1013 (closed) web
$ grep -r "content_get_metadata(" $SWH_ENVIRONMENT_HOME/**/swh/* | grep -v swh-storage
/home/tony/work/inria/repo/swh/swh-environment/swh-indexer/swh/indexer/rehash.py: ] = self.storage.content_get_metadata( # noqa
/home/tony/work/inria/repo/swh/swh-environment/swh-loader-core/swh/loader/package/npm/tests/test_npm.py: contents_d = loader.storage.content_get_metadata(_expected_new_contents_first_visit)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/browse/views/test_content.py: content_data = archive_data.content_get_metadata(content["sha1"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/api/views/test_content.py: expected_data = archive_data.content_get_metadata(content["sha1"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/data.py: result = storage.content_get_metadata(contents)
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_service.py: content_metadata = archive_data.content_get_metadata(content["sha1"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_service.py: expected_content = archive_data.content_get_metadata(content["sha1"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/common/test_service.py: expected_content = archive_data.content_get_metadata(content["sha1"])
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/conftest.py: def content_get_metadata(self, cnt_id):
/home/tony/work/inria/repo/swh/swh-environment/swh-web/swh/web/tests/conftest.py: metadata = self.storage.content_get_metadata([cnt_id_bytes])
Related to T645
Test Plan
tox
Migrated from D3733 (view on Phabricator)