Skip to content
Snippets Groups Projects
Commit e2aad696 authored by Jérémy Bobbio (Lunar)'s avatar Jérémy Bobbio (Lunar)
Browse files

Add StorageInterface.skipped_content_find()

To create recovery bundle, `swh-alter` needs to be able to retrieve
full SkippedContent objects from the storage.

The new method `skipped_content_find()` allows to retrieve all
SkippedContent objects matching a given set of hashes. Usually, this
should only be one, but multiple objects might be returned in case of
hash collisions.

While implementing this, swh-storage#4693 was identified which prevent
testing the implementation with the PostgreSQL storage in the case
a SkippedContent references a known origin.

Thanks to olasd and vlorentz for the reviews and suggesting small
improvements.
parent 0f4a3e76
No related branches found
No related tags found
Loading
Pipeline #4009 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment