You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs don't give an example on how to fully use pagination.
It only has an example of doing a listing with page=1, per_page=10
Is there a way, for example, to know ahead of time how many pages there will be?
For example I'm calling gl.project_issues.list(project_id=project.id, per_page=10, page=n)
By incrementing n beyond the actual number of pages I see that I don't get an exception of any kind, instead just empty lists.
I only found that out by digging into it. I don't see it documented anywhere.
The text was updated successfully, but these errors were encountered:
There are still some improvements to be made in the RESTObjectList object (the "public" object returned by list() methods) but the basics are in place.
Docs don't give an example on how to fully use pagination.
It only has an example of doing a listing with
page=1, per_page=10
Is there a way, for example, to know ahead of time how many pages there will be?
For example I'm calling
gl.project_issues.list(project_id=project.id, per_page=10, page=n)
By incrementing
n
beyond the actual number of pages I see that I don't get an exception of any kind, instead just empty lists.I only found that out by digging into it. I don't see it documented anywhere.
The text was updated successfully, but these errors were encountered: