Page MenuHomeSoftware Heritage

Make snapshot_add validate its input.
ClosedPublic

Authored by vlorentz on Aug 21 2019, 1:49 PM.

Diff Detail

Repository
rDSTO Storage manager
Branch
snapshot_add-validation
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 7385
Build 10510: tox-on-jenkinsJenkins
Build 10509: arc lint + arc unit

Event Timeline

No modification in swh.storage.storage?

Nope, it already errors when this happens (or the tests wouldn't pass)

douardda added inline comments.
swh/storage/in_memory.py
765–766

nitpicking: use a genexp, no need for that list...

894

why do you need to explicitly convert this to a list?

I'm fine with this diff but I'm a bit nitpicky...

This revision now requires changes to proceed.Aug 28 2019, 3:46 PM
This revision is now accepted and ready to land.Aug 29 2019, 1:47 PM
This revision was automatically updated to reflect the committed changes.