Page MenuHomeSoftware Heritage

Make origin_visit_upsert take an origin dict instead of int.
ClosedPublic

Authored by vlorentz on Jul 2 2019, 4:53 PM.

Details

Diff Detail

Repository
rDSTO Storage manager
Branch
upsert-origin-dict
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 6629
Build 9256: tox-on-jenkinsJenkins
Build 9255: arc lint + arc unit

Event Timeline

douardda added inline comments.
swh/storage/in_memory.py
1284

why this deepcopy necessary? I mean at this point, visits is already a deepcopy of the given visits argument.

1284

there is behavior change here (no more ValueError raised), it could be documented in the commit message I guess.

swh/storage/storage.py
1295

same question a above.

vlorentz added inline comments.
swh/storage/in_memory.py
1284

because the list of visits is re-used below, and it needs the 'id'.

This revision is now accepted and ready to land.Jul 3 2019, 3:56 PM
This revision was automatically updated to reflect the committed changes.