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, page always returns the first page #116

Closed
wadoadi opened this issue Oct 21, 2021 · 2 comments · Fixed by #119
Closed

pagination, page always returns the first page #116

wadoadi opened this issue Oct 21, 2021 · 2 comments · Fixed by #119

Comments

@wadoadi
Copy link

wadoadi commented Oct 21, 2021

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

@yakky yakky mentioned this issue Oct 23, 2021
5 tasks
@yakky
Copy link
Member

yakky commented Oct 23, 2021

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

@wadoadi
Copy link
Author

wadoadi commented Oct 23, 2021

Great, thank you, will test when available…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants