python-taiga icon indicating copy to clipboard operation
python-taiga copied to clipboard

pagination, page always returns the first page

Open wadoadi opened this issue 4 years ago • 2 comments

Description

when you have more than 300 User stories (2071 in the one I'm working with) setting page=y will return the same results no matter the value of y

Steps to reproduce

    the_page_size = 100

    for y in range(1,10):
        stories = api.user_stories.list(project=44, page=y, page_size=the_page_size)
        for x in stories:
            print(x.subject)
        print("*** Page *** ", y, "Len: ",len(stories))

Versions

Expected behaviour

when incrementing "page" and re calling I would expect the next page of results to be returned

Actual behaviour

whatever value is set the first page is returned

Additional information

wadoadi avatar Oct 21 '21 11:10 wadoadi

@wadoadi oops, thanks for spotting this #119 fixes the issue if you want to test it We plan to release this really soon

yakky avatar Oct 23 '21 09:10 yakky

Great, thank you, will test when available…

wadoadi avatar Oct 23 '21 22:10 wadoadi