Add a new method to the storage interface in order to list all archived
origins in a paginated way.
Related T1399
Paths
| Differential D958 Authored by anlambert on Jan 16 2019, 11:01 AM.
Details
Summary Add a new method to the storage interface in order to list all archived Related T1399
Diff Detail
Event TimelineComment Actions Build is green Harbormaster completed remote builds in B3555: Diff 3049.Jan 16 2019, 11:05 AM2019-01-16 11:05:07 (UTC+1) Comment Actions You should rename origins_get to origin_get_range, for consistance with content_get_range. And it could use more testing of edge cases for origin_from. Other than that, lgtm This revision is now accepted and ready to land.Jan 16 2019, 6:13 PM2019-01-16 18:13:17 (UTC+1) anlambert retitled this revision from storage: Add origins_get method to list all archived origins to storage: Add origin_get_range method to list all archived origins.Jan 17 2019, 11:44 AM2019-01-17 11:44:21 (UTC+1) Comment Actions Build is green Harbormaster completed remote builds in B3578: Diff 3069.Jan 17 2019, 11:47 AM2019-01-17 11:47:22 (UTC+1) Comment Actions Build is green Harbormaster completed remote builds in B3581: Diff 3072.Jan 17 2019, 11:54 AM2019-01-17 11:54:42 (UTC+1) Closed by commit rDSTO76d7838c01e5: storage: Add origin_get_range method to list all archived origins (authored by anlambert). · Explain WhyJan 17 2019, 12:04 PM2019-01-17 12:04:53 (UTC+1) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 3076 swh/storage/api/client.py
swh/storage/api/server.py
swh/storage/db.py
swh/storage/in_memory.py
|
A parameterized test could be useful to ensure having visits (eventful/uneventful) in any order gives the expected result
Please have a look at the equivalent on the scheduler:
https://forge.softwareheritage.org/source/swh-scheduler/browse/master/swh/scheduler/tests/test_journal_client.py$418