-
Notifications
You must be signed in to change notification settings - Fork 146
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 For Limiting Auto-Pagination Depth #150
Comments
FYI I was able to get a rough pass of this behavior working in my fork here: https://github.com/tyler-domitrovich/go-bitbucket/tree/adjustable-pagination-depth If you have any interest in this feature let me know and I will create a PR! |
Umm.. https://github.com/ktrysmt/go-bitbucket/blob/master/client.go#L24 |
I don't believe so. It looks like |
Certainly. If you have a large number of pages, it may be important to limit the number of pages. |
It would be nice to be able to limit how many pages of results are returned. Consider the case where we want to retrieve the most recent 20 commits for the main branch of a very active repository. Currently, the auto-pagination will recurse through all pages of results which is time consuming and unnecessary since we would have all of the results we require for this example after the first couple of pages.
The text was updated successfully, but these errors were encountered: