Page MenuHomeSoftware Heritage

Prevent origin metadata indexer from writing empty records
ClosedPublic

Authored by vlorentz on Feb 27 2019, 3:44 PM.

Diff Detail

Repository
rDCIDX Metadata indexer
Branch
empty-metadata
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4497
Build 5966: tox-on-jenkinsJenkins
Build 5965: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 28 2019, 1:31 PM
zack added a subscriber: zack.

LGTM, please just add a comment on the test case (as discussed in the review) before landing

swh/indexer/metadata.py
304

a comment here explaining that we do not want to store "empty" mappings in this case would be nice

(feel free to amend/land this directly, no need for an extra review round-trip)

This revision is now accepted and ready to land.Mar 1 2019, 10:51 AM
  • explain why we filter out empty mapping lists.

re-apply change that was lost in the rebasing dance

This revision was automatically updated to reflect the committed changes.