Skip to content

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

Open
@nnyx7

Description

@nnyx7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions