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

Pagination #578

Open
j-rewerts opened this issue Aug 25, 2019 · 6 comments
Open

Pagination #578

j-rewerts opened this issue Aug 25, 2019 · 6 comments

Comments

@j-rewerts
Copy link
Member

This issue will track all pagination-related issues. Our goal is to support both loading everything, as well as passing a token through and managing paging yourself.

@j-rewerts
Copy link
Member Author

j-rewerts commented Aug 25, 2019

Documentation

Features

Bugs

@j-rewerts
Copy link
Member Author

Some of these issues are likely outdated.

@j-rewerts
Copy link
Member Author

Our goal will be to have a standardized paging methodology that all functions make use of. Part of the problem right now is that some functions use _requestAllPages and some don't.

If we want to maintain backwards compatibility for our current 3.x.x release, I'm proposing that we default to _requestAllPages, but allow options to be passed in that includes per_page and page.

If we have time, having async-based pagination would be really slick.

@sustained
Copy link

There seem to be a lot of pagination-related issues. I'm happy to try to help get this sorted but I might need a bit of help/guidance because I don't know the codebase.

@j-rewerts
Copy link
Member Author

Yes this is the primary issue with the library right now. The big thing we'd need is standardization. Every function call in our library that hits a GitHub endpoint that allows paging should allow for our users to pass through something like:

{
  per_page: 15,
  page: 3
}

In terms of guidance, I'll try to put together a PR with an example of the direction I'm thinking of going in.

@v1adko
Copy link

v1adko commented Nov 14, 2019

I'd like to add that orgainsation.getRepos( only returns first 100 repositories.

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

No branches or pull requests

3 participants