Page MenuHomeSoftware Heritage

Adapt fill_storage for 0.40

Authored by olasd on Nov 23 2021, 3:48 PM.



process_replay_objects now expects ModelObjects.

Diff Detail

rDPROV Provenance database
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6674 (id=24245)

Rebasing onto 30d8899bcf...

Current branch diff-target is up to date.
Changes applied before test
commit 94baaab052b9364bc74a9c563cc88808ccdb8bdc
Author: Nicolas Dandrimont <>
Date:   Tue Nov 23 15:30:39 2021 +0100

    Adapt fill_storage for 0.40

See for more details.

olasd requested review of this revision.Nov 23 2021, 3:51 PM
aeviso added inline comments.

I've realized thanks to this fix that the type here can actually be refined to Dict[str, List[Any]]. Also in the declaration of fill_storage


And this function should have been removed before


I did almost the same but also considered

if object_type in OBJECT_FIXERS:
        dict_repr = OBJECT_FIXERS[object_type](dict_repr)

from ModelObjectDeserializer.convert. Hence, I wrote this in a separate function object_from_dict
Not sure if it is really relevant

I forgot the action in the previous submit. I'm good with the revision.
I can add the implement my comments later in another diff anyway.

This revision is now accepted and ready to land.Nov 23 2021, 4:02 PM
This revision was automatically updated to reflect the committed changes.

Yeah, the serialized data can be regenerated at will, so the fixers aren't really critical. I guess adding them is probably the safest way to go though.