Page MenuHomeSoftware Heritage
Paste P906

metadata-only deposit with deposit v0.7.3 on staging
ActivePublic

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="http://www.w3.org/2005/Atom"
xmlns:codemeta="https://doi.org/10.5063/SCHEMA/CODEMETA-2.0"
xmlns:swh="https://www.softwareheritage.org/schema/2018/deposit">
<author>
<name>swh</name>
<email>info@swh.org</email>
</author>
<codemeta:author>
<codemeta:name>ardumont</codemeta:name>
</codemeta:author>
<codemeta:name>Metadata only deposit tryout</codemeta:name>
<codemeta:description>tryout</codemeta:description>
<codemeta:dateCreated>2020-12-15</codemeta:dateCreated>
<codemeta:datePublished>2020-12-15</codemeta:datePublished>
<codemeta:license>
<codemeta:name>GNU General Public License v3.0 only</codemeta:name>
</codemeta:license>
<codemeta:url>https://forge.softwaerheritage.org/source/swh-deposit</codemeta:url>
<codemeta:applicationCategory>test</codemeta:applicationCategory>
<codemeta:programmingLanguage>python</codemeta:programmingLanguage>
<codemeta:operatingSystem>linux</codemeta:operatingSystem>
<codemeta:version>1</codemeta:version>
<codemeta:softwareVersion>0.0.1</codemeta:softwareVersion>
<swh:deposit>
<swh:reference>
<swh:object swhid="swh:1:dir:3b276e18c9b1e70eb84068e3109c0945fc2404eb" />
</swh:reference>
</swh:deposit>
</entry>
$ swh deposit metadata-only --username swh --password $PASS \
--url https://deposit.staging.swh.network \
--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 https://deposit.staging.swh.network \
--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)