Closed Bug 1191380 Opened 11 years ago Closed 11 years ago

Enable fetching of full sets of paginated items

Categories

(Tree Management Graveyard :: Treeherder: Client Libraries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
mdoglio
: review+
Details | Review
Some treeherder collections will only allow fetching N items at a time. This is something that every API user currently has to work around because there isn't any abstraction for it in the client.
Attached file patch
Attachment #8643768 - Flags: review?(mdoglio)
Attachment #8643768 - Flags: review?(mdoglio) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/962d19ba84c23c6601c63fad8f8d3239a1a22c7f Bug 1191380 - Support for getting a complete list from paginated collections, r=mdoglio Some collections can only return a limited number of results at a time. This change allows the user to get all results by passing count=None to the relevant get_ method of TreeherderClient, and letting the client perform enough requests to fetch all results.
Assignee: nobody → james
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: