HomeSoftware Heritage

Transit raw metadata to the loader to unify with metadata update scenario
2ecb65d4f534Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Transit raw metadata to the loader to unify with metadata update scenario

The new update scenario now stores new metadata update to the metadata storage.
The loader does not, it currently stores the transformed xml (into json dict).
The loader passes by this deposit_read call to actually retrieve the data.

So prior to adapting the loader, the information returned by deposit_read need
to provide the raw metadata as well.

This also:

  • adds type to impacted methods along the way.
  • simplifies a bit the current deposit_read tests

Related to T2649

Details

Provenance
ardumontAuthored on Sep 30 2020, 2:06 PM
ardumontPushed on Oct 1 2020, 11:58 AM
Parents
R65:4d72d1be529a: deposit*: Rename internally swh_id references to swhid
Branches
Unknown
Tags
Unknown
References
tag: phabricator/diff/14471, tag: phabricator/base/14475

Event Timeline