bigcommerce/bigcommerce-api-python

Order status .iterall() infinite loop

Closed this issue · 0 comments

Expected behavior

list(client.OrderStatuses.iterall()) should yield a list identical (in this case, since there's only one page) to client.OrderStatuses.all()

Actual behavior

iterall() appears to infinite loop, presumably because it doesn't accept a page parameter, ignores that field and therefore will always return rows.

It seems like the simplest fix here would be to define an override, either through mixin or directly on any listable model which doesn't support paging.