https://github.com/SoftwareHeritage/swh-model
Revision 3ce412506cd942d1a5e7340bc309f43da2b2adeb authored by Valentin Lorentz on 04 February 2021, 10:02:39 UTC, committed by Valentin Lorentz on 04 March 2021, 10:19:33 UTC
Serializing as ISO8601 makes the hash brittle, because the database may
change the timezone silently and/or lose precision in the microseconds.

As we do not need precise timestamp, using an integer is good enough,
and is consistant with the git format.

The manifest also does not need to contain a timezone, as it only
represents the timezone of the system that fetched this metadata,
which is useless data.
1 parent fc808e1
History
Tip revision: 3ce412506cd942d1a5e7340bc309f43da2b2adeb authored by Valentin Lorentz on 04 February 2021, 10:02:39 UTC
identifiers: Change the manifest format of raw_extrinsic_metadata to use integer instead of ISO8601
Tip revision: 3ce4125
File Mode Size
bin
docs
swh
.gitignore -rw-r--r-- 137 bytes
.pre-commit-config.yaml -rw-r--r-- 1021 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 45 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 157 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 24 bytes
README.md -rw-r--r-- 620 bytes
mypy.ini -rw-r--r-- 571 bytes
pyproject.toml -rw-r--r-- 237 bytes
pytest.ini -rw-r--r-- 135 bytes
requirements-cli.txt -rw-r--r-- 30 bytes
requirements-test.txt -rw-r--r-- 26 bytes
requirements.txt -rw-r--r-- 318 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 517 bytes

README.md

back to top