Revision 3a9b2fc4baa4e5080e9a17c974035550db7dab4d authored by Valentin Lorentz on 12 March 2021, 13:13:29 UTC, committed by Valentin Lorentz on 15 March 2021, 12:57:21 UTC
Deposits with code objects are loaded as their own origin, so we can
look them up in the deposit database from their metadata (which hold the
origin as a context).

This is not true for metadata-only deposits, because we don't create an
origin for them; so we need to store this information somewhere.
The naive solution would be to insert them in the Atom entry provided by
the client, but it means altering a document before we archive it, which
is bad.

This commit makes the deposit server write a "metametadata" object (ie.
a metadata object with an other metadata object as target) the metadata
storage.
This metametadata contains information on the deposit itself: id,
client, and collection.
1 parent 22d3f3e
History
File Mode Size
bin
docs
resources
swh
.gitignore -rw-r--r-- 270 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 117 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 14 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 339 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 831 bytes
README.md -rw-r--r-- 618 bytes
conftest.py -rw-r--r-- 569 bytes
mypy.ini -rw-r--r-- 796 bytes
pyproject.toml -rw-r--r-- 237 bytes
pytest.ini -rw-r--r-- 367 bytes
requirements-server.txt -rw-r--r-- 42 bytes
requirements-swh-server.txt -rw-r--r-- 90 bytes
requirements-swh.txt -rw-r--r-- 41 bytes
requirements-test.txt -rw-r--r-- 191 bytes
requirements.txt -rw-r--r-- 33 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.6 KB
tox.ini -rw-r--r-- 843 bytes

README.md

back to top