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
and now it it also fails like when called with pyhon-taiga.
I simply think this is the situation: now the number of public projects at taiga.io has recently grown too large to be included in one GET request to the project listing API endpoint. But before it was small enough to work.
A user of my project taiga-stats reported this last week.
I guess python-taiga should be adapted to use pagination for requests, so it can handle large taiga instances, like taiga.io now is. And I think this is prioritized to to, as I guess taiga.io is the most used instance of Taiga of them all!
The text was updated successfully, but these errors were encountered:
Nice investigation!
We are happy that taiga.io now exceeds this limit :)
We definitely need to implement pagination support, I'm wondering what the most useful way to do it would be: any suggestion?
Yes me too, happy that there are so many projects :).
I was thinking shortly about this. I guess we have a few options
Don't expose functions to the users that requires pagination, like api.projects.list()
Keep the current interface for python-taiga and hide the fact that things are paginated and collected in the background before returning.
Make a new major version of pyhon-taiga which exposes the pagination to the user, so the user of the library have the burden or the possibility to deal with pagination.
I think option 1 is out of the picture.
But I think a combination of options 2 and 3 would be good; keep the current library functions, but make them fetch all pages if the results returned from the first HTTP GET exceeds one page. AND introduce new functions which allows the user to fetch one page per time. This way, I think we would cover the most use cases for this library!
@erikw what do you think of the preliminary pagination API. It implements your suggestion regarding a mix of 2 and 3 in a backward compatible way
Tests are needed, but I am interested in your feedback on the API details
Hello,
I noticed that if you use python-taiga against https://api.taiga.io/ to list projects it fails.
No output fed in to the JSON decoding? So I decided to get down to my friend command line, and this works as expected:
So I drilled down the code and noticed that python-taiga always send the header
x-disable-pagination: True
to disable pagination and get everything at once.
So I plugged this in to the the previous command line
and now it it also fails like when called with pyhon-taiga.
I simply think this is the situation: now the number of public projects at taiga.io has recently grown too large to be included in one GET request to the project listing API endpoint. But before it was small enough to work.
A user of my project taiga-stats reported this last week.
I guess python-taiga should be adapted to use pagination for requests, so it can handle large taiga instances, like taiga.io now is. And I think this is prioritized to to, as I guess taiga.io is the most used instance of Taiga of them all!
The text was updated successfully, but these errors were encountered: