diff --git a/docs/endpoints/content.rst b/docs/endpoints/content.rst --- a/docs/endpoints/content.rst +++ b/docs/endpoints/content.rst @@ -40,33 +40,7 @@ 1 done The deposit has been successfully loaded into the Software Heritage archive - - - - Oct. 28, 2020, 3:58 p.m. - - - - - test-01243065 - Verifiable online voting system - {'name': 'Belenios', 'email': 'belenios@example.com'} - test - https://gitlab.inria.fr/belenios/belenios - {'codemeta:name': 'Belenios Test User'} - {'codemeta:name': 'GNU Affero General Public License'} - 1.12 - Online voting - test-01243065 - Verifiable online voting system - opam - stable - test - ocaml - - - Oct. 28, 2020, 3:58 p.m. - + Oct. 28, 2020, 3:58 p.m. diff --git a/swh/deposit/templates/deposit/content.xml b/swh/deposit/templates/deposit/content.xml --- a/swh/deposit/templates/deposit/content.xml +++ b/swh/deposit/templates/deposit/content.xml @@ -2,15 +2,7 @@ xmlns:sword="http://purl.org/net/sword/" xmlns:dcterms="http://purl.org/dc/terms/"> {{ deposit_id }} + {{ request.date }} {{ status }} {{ status_detail }} - {% for request in requests %} - - {% if request and request.metadata and request.metadata|length > 0 %} - - {% for k, v in request.metadata.items %}<{{ k }}>{{ v }} - {% endfor %} - {% endif %} - {{ request.date }} - {% endfor %} diff --git a/swh/deposit/tests/api/test_get_file.py b/swh/deposit/tests/api/test_get_file.py --- a/swh/deposit/tests/api/test_get_file.py +++ b/swh/deposit/tests/api/test_get_file.py @@ -31,7 +31,7 @@ response = client.get(url) assert response.status_code == status.HTTP_200_OK actual_deposit = dict(parse_xml(response.content)) - expected_deposit["sword:request"] = actual_deposit["sword:request"] + del actual_deposit["deposit_date"] assert actual_deposit == expected_deposit