Page MenuHomeSoftware Heritage

origin_get_with_statuses: Fix case when fetched visits list is empty
ClosedPublic

Authored by anlambert on Apr 12 2022, 12:10 PM.

Details

Summary

Ensure to return an empty list of results when fetched visits list is
empty, for instance when the provided page_token is greater or equal
to latest origin visit.

Related to T4090

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

Build is green

Patch application report for D7552 (id=27381)

Rebasing onto 7c9586a0bb...

Current branch diff-target is up to date.
Changes applied before test
commit d255fb3c8a419cff80305990aae99d87e1d9b894
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Apr 12 12:06:14 2022 +0200

    origin_get_with_statuses: Fix case when fetched visits list is empty
    
    Ensure to return an empty list of results when fetched visits list is
    empty, for instance when the provided page_token is greater or equal
    to latest origin visit.
    
    Related to T4090

See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/1590/ for more details.

This revision is now accepted and ready to land.Apr 12 2022, 12:26 PM