Note that this means it stops creating origin visits in the storage backend.
Which regarding reading origin_visit changes nothing as this uses origin_visit_status anyway.
Related to T2310
Differential D3253
loader: Migrate to use origin visit status add storage endpoint ardumont on Jun 10 2020, 12:36 PM. Authored by
Details
Note that this means it stops creating origin visits in the storage backend. Which regarding reading origin_visit changes nothing as this uses origin_visit_status anyway. Related to T2310 tox
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D3253 (id=11538)Rebasing onto c28799f674... Current branch diff-target is up to date. Changes applied before testcommit 5bc737d34655e7742f07c770769bd0bb10386cc7 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Jun 9 17:39:58 2020 +0200 loader: Migrate to origin visit status Related to T2310 Link to build: https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/61/ Comment Actions Build is green Patch application report for D3253 (id=11540)Could not rebase; Attempt merge onto c28799f674... Updating c28799f..5df8a7b Fast-forward requirements-swh.txt | 2 +- swh/loader/core/loader.py | 22 ++++++++++++++-------- swh/loader/package/deposit/tests/test_deposit.py | 14 +++++++------- swh/loader/package/loader.py | 15 +++++++++++---- 4 files changed, 33 insertions(+), 20 deletions(-) Changes applied before testcommit 5df8a7b5ebca3d8dfc1985428ae6fa21730a93cb Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Jun 9 17:39:58 2020 +0200 loader: Migrate to origin visit status Related to T2310 commit 810073dd947181aa69d9f75922492bbf3cf86e88 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Wed Jun 10 13:00:05 2020 +0200 test_deposits: Fix origin_metadata_get which is a paginated endpoint See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/63/ for more details. Comment Actions Build is green Patch application report for D3253 (id=11543)Rebasing onto 39e050b763... Current branch diff-target is up to date. Changes applied before testcommit f57c29909129a4649a1947e358172da932a99534 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Jun 9 17:39:58 2020 +0200 loader: Migrate to origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/65/ for more details.
Comment Actions Build is green Patch application report for D3253 (id=11547)Rebasing onto 39e050b763... Current branch diff-target is up to date. Changes applied before testcommit 1191cafdb1b85f87a586163826436a7d2c7c8403 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Jun 9 17:39:58 2020 +0200 loader: Migrate to origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/66/ for more details.
Comment Actions Add comment as to why we use the intermediary variable (sole ok solution i found) The other ways i tried, mypy is unhappy:
[1] swh/loader/package/loader.py:294: error: Argument "snapshot" to "OriginVisitStatus" has incompatible type "Union[Snapshot, None, bytes]"; expected "Optional[bytes]" [2] swh/loader/package/loader.py:289: error: "None" has no attribute "id" Comment Actions Build is green Patch application report for D3253 (id=11560)Rebasing onto 39e050b763... Current branch diff-target is up to date. Changes applied before testcommit 65eb70d7b704204b327bc45900d2eeef40c336e7 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Jun 9 17:39:58 2020 +0200 loader: Migrate to origin visit status Related to T2310 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/67/ for more details. |