https://github.com/SoftwareHeritage/swh-storage
Revision 348bc7b2204f047ef01cc231aa34fbdbfba98472 authored by Antoine R. Dumont (@ardumont) on 03 July 2020, 14:31:22 UTC, committed by Antoine R. Dumont (@ardumont) on 03 July 2020, 14:42:20 UTC
The initial desired behavior was to allow creation of origin-visit if they
already had their id set. This is the what's needed for the replayer to actually
work.

But somehow, this left the possibility to update the origin-visit...
This commit fixes it by dropping conflictual origin-visits if any.
In effect, we can no longer overwrite origin-visits (pg-storage wise).

Related to T2310
1 parent 248c277
History
Tip revision: 348bc7b2204f047ef01cc231aa34fbdbfba98472 authored by Antoine R. Dumont (@ardumont) on 03 July 2020, 14:31:22 UTC
storage.db: Drop db.origin_visit_upsert behavior
Tip revision: 348bc7b
File Mode Size
bin
docs
sql
swh
.gitignore -rw-r--r-- 136 bytes
.pre-commit-config.yaml -rw-r--r-- 1.1 KB
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 46 bytes
LICENSE -rw-r--r-- 34.3 KB
MANIFEST.in -rw-r--r-- 242 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 69 bytes
README.md -rw-r--r-- 4.5 KB
mypy.ini -rw-r--r-- 1.2 KB
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 392 bytes
requirements-swh-journal.txt -rw-r--r-- 21 bytes
requirements-swh.txt -rw-r--r-- 72 bytes
requirements-test.txt -rw-r--r-- 318 bytes
requirements.txt -rw-r--r-- 99 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.5 KB
tox.ini -rw-r--r-- 637 bytes

README.md

back to top