Page MenuHomeSoftware Heritage
Paste P906

metadata-only deposit with deposit v0.7.3 on staging

Authored by ardumont on Dec 15 2020, 12:22 PM.
$ cat deposit-swh-metadata-only-xml
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns=""
<codemeta:name>Metadata only deposit tryout</codemeta:name>
<codemeta:name>GNU General Public License v3.0 only</codemeta:name>
<swh:object swhid="swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb" />
$ swh deposit metadata-only --username swh --password $PASS \
--url \
--metadata ../deposit-swh.metadata-only.xml \
--format json | jq .
"deposit_id": "35",
"deposit_status": "done",
"deposit_date": "Dec. 15, 2020, 11:37 a.m."
$ swh deposit status --url \
--username swh \
--password $PASS \
--deposit-id 35 --format json | jq .
"deposit_id": "35",
"deposit_status": "done",
"deposit_status_detail": "The deposit has been successfully loaded into the Software Heritage archive",
"deposit_swh_id": "swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb",
"deposit_swh_id_context": "swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb",
"deposit_external_id": null

Event Timeline

ardumont changed the title of this paste from metadata-only deposit to metadata-only deposit with deposit v0.7.3 on staging.

Related to T2886

Looks good!
I have a couple of questions:

  1. What should be in the status receipt deposit_external_id (in a normal deposit)?
  2. The SWHID given is returned in the receipt, but the SWHID doesn't give access to the deposit in the archive, should we add a url or identifier to the entry in the ERMDS? (@vlorentz)