HomeSoftware Heritage

Add a new origin_visit_get_latest endpoint.

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Add a new origin_visit_get_latest endpoint.

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.

Details

Provenance
vlorentzAuthored on Jun 13 2019, 4:31 PM
vlorentzPushed on Jul 9 2019, 3:07 PM
Differential Revision
D1581: Add a new origin_visit_get_latest endpoint.

Commit No Longer Exists

This commit no longer exists in the repository.