Page MenuHomeSoftware Heritage

storage: Add origin_get_range method to list all archived origins
ClosedPublic

Authored by anlambert on Jan 16 2019, 11:01 AM.

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added a subscriber: vlorentz.

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 PM

Ack, will update accordingly before landing that diff.

Update:

  • rename new method to origin_get_range
  • improve unit test
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 AM

Update: simplify test in in_memory.storage.origin_get_range

This revision was automatically updated to reflect the committed changes.