python-gitlab Issue #63 - implement pagination for list()#64
python-gitlab Issue #63 - implement pagination for list()#64gpocentek merged 3 commits intopython-gitlab:masterfrom
Conversation
gitlab/__init__.py
Outdated
There was a problem hiding this comment.
Could you remove the logging code for this change? I'm not against adding some logging but I'd rather do it in another patch.
|
I've removed the logging code as requested, and added unit tests for the current implementation of just the I have nothing against giving a choice to the user, but I'd much rather prefer the iteration to be the default, with disabling it an option. I guess this is personal preference, but I find it very annoying when an API client presents a method like I looked into turning this into a generator, but as far as I can tell, I'd need to drastically change how arguments and return values are passed around to get away from the current recursive pattern. |
python-gitlab Issue #63 - implement pagination for list()
|
Thanks Jason. I've merged your patch as is but I'll probably restore the default behavior to avoid surprises on updates (people will not expect to suddenly retrieve all the items). |
|
Ok, thanks! I'll keep an eye out for it, and update my code to use the pagination once it's released. |
This implements iteration/pagination of list() results for #63