Page MenuHomeSoftware Heritage

db: check for existing snapshot when with_visit is True in origin_search()
ClosedPublic

Authored by douardda on Nov 18 2019, 12:28 PM.

Details

Summary

and not only for an existing origin visit.

This is needed in situations where the snapshot table is not in sync with the
origin_visit one; typically occurs on mirrors.

Also add tests for with_visit argument.

Diff Detail

Repository
rDSTO Storage manager
Branch
fix-origin-query
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 9079
Build 13280: tox-on-jenkinsJenkins
Build 13279: arc lint + arc unit

Event Timeline

anlambert added a subscriber: anlambert.

Apart the sql upgrade file which should not be here, looks good to me.

sql/upgrades/144.sql
1 ↗(On Diff #7885)

Looks like that file was added by mistake

This revision is now accepted and ready to land.Nov 18 2019, 1:14 PM

Apart the sql upgrade file which should not be here, looks good to me.

damnit! sorry