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 with page_size set is not querying for the next page #915

Open
nnyx7 opened this issue Nov 24, 2024 · 0 comments
Open

Pagination with page_size set is not querying for the next page #915

nnyx7 opened this issue Nov 24, 2024 · 0 comments
Labels

Comments

@nnyx7
Copy link

nnyx7 commented Nov 24, 2024

Pagination with page_size set is not working as expected. Possibly pagination in general, but I haven't tested with the default page size.

I have 4 site pages. When I set page_size=2 the iterator gives me just the top 2 pages and exits. I've checked that in this case collection.has_next is never set to true. Without setting page_size I get all 4 pages as expected.

for page in ctx.site_pages.pages.paged(page_size).get().execute_query():
    pages += [page]

Can you check what might be the cause of this issue?
Thanks

@vgrem vgrem added the bug label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants