swh:1:snp:eb70f1f85391e4b077c211bec36af0061c4bf937
Revision 2d610ab3847b2ca49fd0bdef1e21d08cff5f5fd8 authored by Valentin Lorentz on 13 June 2019, 14:31:07 UTC, committed by Valentin Lorentz on 14 June 2019, 11:28:49 UTC
snapshot_get_latest did two things: find the latest origin, and get its snapshot.
Now, it only calls origin_visit_get_latest, then snapshot_get.

snapshot_get_latest should also be deprecated, because it only fetches some of
the branches (for large snapshots).

Finally, with the new data model (types are associated to visits, not origins),
origin_visit_get_latest is required to know the type of the loader that
got the snapshot (needed in swh-indexer).

Also, note that origin_visit_get_latest only supports URLs as argument, not
origin ids. Since we are migrating away from origin ids, I don't think
it makes sense to add support for origin ids in a new endpoint.
1 parent df461d1
History
Tip revision: 728c3eeaae84a7e249a712a5545cc9ba682403c3 authored by David Douard on 08 January 2021, 09:39:42 UTC
Allow to use the JAVA_HOME environment for cassandra tests
Tip revision: 728c3ee
File Mode Size
bin
docs
sql
swh
utils
.gitignore -rw-r--r-- 123 bytes
AUTHORS -rw-r--r-- 112 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 192 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 36 bytes
README.md -rw-r--r-- 4.2 KB
conftest.py -rw-r--r-- 292 bytes
pytest.ini -rw-r--r-- 30 bytes
requirements-swh.txt -rw-r--r-- 97 bytes
requirements-test.txt -rw-r--r-- 28 bytes
requirements.txt -rw-r--r-- 57 bytes
setup.py -rwxr-xr-x 2.3 KB
tox.ini -rw-r--r-- 469 bytes

README.md

back to top