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.
parent
5c85e6de
No related branches found
No related tags found
Showing
- swh/deposit/api/common.py 1 addition, 10 deletionsswh/deposit/api/common.py
- swh/deposit/api/private/__init__.py 2 additions, 2 deletionsswh/deposit/api/private/__init__.py
- swh/deposit/api/private/deposit_check.py 19 additions, 0 deletionsswh/deposit/api/private/deposit_check.py
- swh/deposit/api/private/deposit_read.py 1 addition, 2 deletionsswh/deposit/api/private/deposit_read.py
- swh/deposit/client/__init__.py 3 additions, 2 deletionsswh/deposit/client/__init__.py
- swh/deposit/models.py 5 additions, 0 deletionsswh/deposit/models.py
- swh/deposit/tests/api/test_deposit_private_check.py 1 addition, 1 deletionswh/deposit/tests/api/test_deposit_private_check.py
- swh/deposit/tests/test_utils.py 0 additions, 37 deletionsswh/deposit/tests/test_utils.py
- swh/deposit/utils.py 0 additions, 25 deletionsswh/deposit/utils.py
Loading
Please register or sign in to comment