Page MenuHomeSoftware Heritage

Fix InMemoryStorage.origin_visit_upsert() method
ClosedPublic

Authored by douardda on May 29 2020, 3:59 PM.

Details

Summary

the self._origin_visits[origin_url] list was built one element too big
(since visit ids starts from 1 and not 0).

This is needed to ease writing replayer tests (by comparing these lists).

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.May 29 2020, 4:04 PM

Build is green

Patch application report for D3202 (id=11367)

Rebasing onto 6c6080b4d7...

Current branch diff-target is up to date.
Changes applied before test
commit eef4900db52a391e20ab51e36bace412ac6730d8
Author: David Douard <david.douard@sdfa3.org>
Date:   Fri May 29 14:21:55 2020 +0200

    Fix InMemoryStorage.origin_visit_upsert() method
    
    the self._origin_visits[origin_url] list was built one element too big
    (since visit ids starts from 1 and not 0).
    
    This is needed to ease writing replayer tests (by comparing these lists).

See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/206/ for more details.