Page MenuHomeSoftware Heritage

loader.core/package: Call storage's (skipped_)content_add endpoints
ClosedPublic

Authored by ardumont on Feb 6 2020, 3:15 PM.

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

swh/loader/core/converters.py
18–22

I don't find the name and docstring explicit enough, but I don't have any better idea for the name :/

18–37

why not switch to passing model objects instead of converting them back to dicts?

swh/loader/core/converters.py
18

contents_for_storage, prepare_contents_for_storage?

18–37

because right now, it's not supported.
so might as well convert here to avoid impacts in other callers.

This revision is now accepted and ready to land.Feb 6 2020, 3:23 PM