HomeSoftware Heritage

do not always auto-create an OriginVisitStatus object in origin_visit_add()
e0825acb7e17Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

do not always auto-create an OriginVisitStatus object in origin_visit_add()

when the OriginVisit object given as argument to be inserted already
have its visit id set (which is usually the case in a replayer-like
session), it makes no sense to auto-add the first OriginVisitStatus
objects related to this visit; this behavior is expected only when the
origin_visit_add() is called from a loading session.

Adapt tests accordingly -- several tests did depend on the auto-add
behavior of the origin_visit_add method for OriginVisit objects which
visit_id is given in the test dataset.

Details

Provenance
douarddaAuthored on Jul 1 2022, 5:46 PM
douarddaPushed on Jul 6 2022, 5:35 PM
Parents
R65:47caf04ea5e9: Add a Storage.flavor property to the postgresql backend
Branches
Unknown
Tags
Unknown
References
tag: phabricator/diff/29194

Event Timeline