Skip to content

Iterate over paged data sets#72

Merged
mattpass merged 1 commit intogithub-tools:masterfrom
kpdecker:auto-paging
Oct 23, 2013
Merged

Iterate over paged data sets#72
mattpass merged 1 commit intogithub-tools:masterfrom
kpdecker:auto-paging

Conversation

@kpdecker
Copy link
Copy Markdown
Contributor

Some APIs do not honor the per_page API (at least for large values) and
require that we actually walk the links headers to pull all data.

In particular this was seen on the orgRepos call with approximately
125 repos. Only 100 were returned without iteration.

Some APIs do not honor the per_page API (at least for large values) and
require that we actually walk the links headers to pull all data.
This was referenced Oct 22, 2013
@mattpass
Copy link
Copy Markdown
Collaborator

Sorry for the delay in replying here, I'm slowly ploughing thru issues/PR's to give Michael a hand.

This is a great PR, many thanks. However, user.repos seems to stop working from this update, gives back a 401 unauthorised error (and works just fine prior to this).

user.userRepos and user.orgRepos work OK with your updated code, it's just user.repos that appears to stop working.

Can you confirm/thoughts?

@mattpass mattpass merged commit ffc4af1 into github-tools:master Oct 23, 2013
@kpdecker kpdecker deleted the auto-paging branch January 7, 2015 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants