Staging instance, all changes can be removed at any time

Skip to content

admin/deposit: Extract origin from swh_anchor_id according to latest change

In the deposit, the swh_anchor_id is in the new format:

swh:1:dir:<hash>;?origin=<origin>;visit=<snp-hash>;...

When, previously in the format:

swh:1:dir:<hash>;?origin=<origin>

This adapts the extraction to take into account the new format and provides the end bound the data.slice call.

Related to swh-deposit#2398 (closed) Related to #2409 (closed)

Test Plan

No idea how to test this


Migrated from D3162 (view on Phabricator)

Merge request reports

Loading