HomeSoftware Heritage

origin_visits/get_origin_visit: Improve default visit picking strategy

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

Description

origin_visits/get_origin_visit: Improve default visit picking strategy

When no visit info (timestamp, id or snapshot) is provided to that function
return the last full visit with a valid snapshot or the last partial visit
with a valid snapshot otherwise.

This fixes a browsing issue when an origin is no more available but swh keeps
visiting it afterwards.

Use new swh.storage.algos.origin.origin_get_latest_visit_status utility
function in the revised get_origin_visit_implementation.

Details

Provenance
anlambertAuthored on Jun 30 2020, 6:25 PM
anlambertPushed on Jul 2 2020, 11:39 AM
Differential Revision
D3385: origin_visits/get_origin_visit: Improve default visit picking strategy
Build Status
Buildable 13252
Build 20237: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.