HomeSoftware Heritage

proper pagination for IndexerStorage.origin_intrinsic_metadata_search_by_produc…

Description

proper pagination for IndexerStorage.origin_intrinsic_metadata_search_by_producer

replace the 'start' argument by a 'page_token' which is now expected to be
an (not so) opaque token used for pagination.

The 'end' argument is dropped.

The method also returns a dict now (instead of generating the origins) with
2 keys: next_page_token and origins.

Adapt tests and the list_origins_by_producer() helper function (in cli.py)
accordingly.

Details

Provenance
douarddaAuthored on Nov 5 2019, 12:03 PM
douarddaPushed on Nov 8 2019, 4:24 PM
Differential Revision
D2222: proper pagination for IndexerStorage.origin_intrinsic_metadata_search_by_producer
Parents
rDCIDXd27cd133ac34: update indexer for storage 0.0.156
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8909
Build 13010: test-and-buildJenkins