storage*: origin_visit_get_by -> Optional[OriginVisit]
Impacts:
- swh-web
$ grep -r 'origin_visit_get_by' */swh/** | grep -v "swh-storage"
swh-web/swh/web/common/service.py: visit = storage.origin_visit_get_by(origin_url, visit_id)
swh-web/swh/web/tests/api/views/test_origin.py: expected_visit = archive_data.origin_visit_get_by(new_origin.url, visit_id)
swh-web/swh/web/tests/api/views/test_origin.py: expected_visit = archive_data.origin_visit_get_by(new_origin.url, visit_ids[1])
swh-web/swh/web/tests/common/test_origin_visits.py: expected_visit = archive_data.origin_visit_get_by(new_origin.url, visits[1])
swh-web/swh/web/tests/common/test_origin_visits.py: expected_visit = archive_data.origin_visit_get_by(new_origin.url, visits[2])
swh-web/swh/web/tests/common/test_origin_visits.py: expected_visit = archive_data.origin_visit_get_by(new_origin.url, visits[-1])
swh-web/swh/web/tests/common/test_service.py: expected_visit = dict(archive_data.origin_visit_get_by(new_origin.url, visit))
swh-web/swh/web/tests/conftest.py: def origin_visit_get_by(self, origin_url, visit_id):
swh-web/swh/web/tests/conftest.py: visit = self.storage.origin_visit_get_by(origin_url, visit_id)
Related to T645
Migrated from D3625 (view on Phabricator)