Skip to content

Conversation

@aaronbauman
Copy link

Most page length limits are 100 per page, not 50 as currently hard-coded in ResultPager.

Perhaps a further improvement would be to add a perPageMax() method to ApiInterface, but a basic fix can be implemented without changing API.

@GrahamCampbell
Copy link
Member

GrahamCampbell commented Jan 28, 2021

The bitbucket API is often hopelessly slow above 50 results per page, which is why this limit is in place, causing the requests to timeout and need to be retried. Also, not all endpoints support more than 50. :)

@GrahamCampbell
Copy link
Member

The main use cases I envisaged for anyone wanting to customise the per page param, was to lower it, using it with the lazy pager, to keep memory usage down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants