Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support paging when fetching organization members #66

Merged
merged 1 commit into from
Mar 28, 2014
Merged

Support paging when fetching organization members #66

merged 1 commit into from
Mar 28, 2014

Conversation

ryankennedy
Copy link
Contributor

Organization members are a paged list in the V3 GitHub API. Previously the code would fetch only the first page of ~30 members and return that. This change switches the return to a PagedIterable so clients can fetch the entire organization's member list.

Organization members are a paged list in the V3 GitHub API. Previously the code would fetch only the first page of ~30 members and return that. This change switches the return to a PagedIterable<GHUser> so clients can fetch the entire organization's member list.
@buildhive
Copy link

Kohsuke Kawaguchi » github-api #125 SUCCESS
This pull request looks good
(what's this?)

@lindseydew
Copy link

this looks good, can it be merged?

rtyley added a commit to guardian/gu-who that referenced this pull request Feb 14, 2014
...just because he got there first with the pull-request!

hub4j/github-api#66

(let's hope it gets merged- if not, I can release a fork)
rtyley added a commit to guardian/gu-who that referenced this pull request Feb 24, 2014
I've published a small fork of the github-api, which includes these
pull-requests we need:

hub4j/github-api#66 - org member paging
hub4j/github-api#68 - org-member filtering
rtyley added a commit to rtyley/github-api that referenced this pull request Mar 14, 2014
This fixes an issue introduced with PR hub4j#66 in commit fee02a3 - the
`getMembers()` method switched to using paging, but lost the code that
populated the users with a full set of values.

This commit just applies 'wrapping' to all users returned, so that methods
like `user.getCreatedAt()` can be called on returned users without throwing
a NullPointerException - the reference to 'root' allows the user objects to
populate themselves.
@kohsuke kohsuke merged commit fee02a3 into hub4j:master Mar 28, 2014
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.

4 participants