HomeSoftware Heritage

Move load-deposit task creation code in the deposit-check private API endpoint

Description

Move load-deposit task creation code in the deposit-check private API endpoint

Also replace utils.origin_url_from() by a Deposit.origin_url property, and
ensure the archive file format of the uploaded file is supported.

The rename of invalid.tar.gz as invalid.gz is required for tests to pass
which should not be the case. It will be investigated in a later revision,
but for now we want tests to be green.

This requires to make config dict available in SWHPrivateAPIView so we can
have access to a scheduler from there.

Details

Provenance
douarddaAuthored on Dec 16 2019, 12:56 PM
douarddaPushed on Jan 7 2020, 10:24 AM
Differential Revision
D2472: Move load-deposit task creation code in the deposit-check private API endpoint
Parents
rDDEP5c85e6de2572: Make load-deposit and check-deposit URL argument absolute
Branches
Unknown
Tags
Unknown
Build Status
Buildable 9980
Build 14751: test-and-buildJenkins