HomeSoftware Heritage

model: Add Directory.from_possibly_duplicated_entries factory

Description

model: Add Directory.from_possibly_duplicated_entries factory

It will be used by swh.storage.backfiller (so indirectly, swh.scrubber)
to load directories from the postgresql database, whose schema accidentally
allowed directories with duplicate entries -- without corrupting the
shape of the directory too much.

Details

Provenance
vlorentzAuthored on Jul 6 2022, 11:37 AM
vlorentzPushed on Jul 11 2022, 6:48 PM
Differential Revision
D8080: model: Add Directory.from_possibly_duplicated_entries factory
Parents
rDMOD4073b824ddda: hashutil: Add type annotations to conversion functions
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task
Build Status
Buildable 30378
Build 47488: test-and-buildJenkins console · Jenkins