origin_visit_upsert: Use OriginVisit objects as input
This aligns with other _add
endpoints [1]
Impacts:
- D2826: swh-journal (replayer)
Related to swh-journal!132 (closed)
- [1] except for origin_visit_add which is next (D2820)
Test Plan
tox
Migrated from D2813 (view on Phabricator)
Merge request reports
Activity
Build is green See https://jenkins.softwareheritage.org/job/DSTO/job/tox/1044/ for more details.
379 379 }) 380 380 cur.execute(query, (*values, *where_values)) 381 381 382 def origin_visit_upsert(self, origin, visit, date, type, status, 383 metadata, snapshot, cur=None): 382 def origin_visit_upsert(self, origin_visit: OriginVisit, cur=None) -> None: Some references in the commit message have been migrated:
- D2812#67298 is now swh-journal!132 (closed)
Build was aborted
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1055/ See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1055/console
Build was aborted
Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1056/ See console output for more information: https://jenkins.softwareheritage.org/job/DSTO/job/tox/1056/console
Build is green See https://jenkins.softwareheritage.org/job/DSTO/job/tox/1059/ for more details.
mentioned in merge request swh-journal!248 (closed)
mentioned in commit swh-journal@d3d5b797