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
The reviews feed returns pageInfo.endCursor as null and hasNextPage as true on
every page, including the empty page past the last record. SyncPage trusted
has_more alone and then called the fetcher with a None cursor, which dropped the
`after` query parameter and silently re-requested the first page. As a result
client.reviews.list(...).auto_paging_iter() never terminated: it walked the feed
and then restarted it, re-yielding every record indefinitely.
Two guards, both on SyncPage so every paginated resource is covered rather than
just reviews:
- next_page() returns None when there is no cursor to page from.
- auto_paging_iter() stops on a page that comes back with no records.
Also expose the feed's totalCount as page.total on reviews.list, matching what
locations.list already did.
Set pythonpath = ["src"] for pytest. An installed build of the package was
shadowing src/, so the suite was exercising code that is not in this checkout
and reported nine failures because of it. Against the working tree the suite is
green: 77 passing.
0 commit comments