HomeSoftware Heritage

storage: Fix objects loading when using generator parameters

Description

storage: Fix objects loading when using generator parameters

Some objects (directories, origins, releases, revisions) will not be added
into the storage if they are provided as generator parameters to the *_add
methods instead of lists.

So ensure to transform generators into lists before processing the objects.

Details

Provenance
anlambertAuthored on Jan 16 2020, 5:16 PM
vlorentzPushed on Jan 17 2020, 4:28 PM
Differential Revision
D2543: Fix objects loading when using generator parameters
Parents
rDSTOC8dcac2b0c3a7: retry: Implement content_add_metadata endpoint with retry policy
Branches
Unknown
Tags
Unknown