-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Changing auto_paginate on Octokit doesn't affect current instances #554
Comments
@sb8244 Yeah, that's pretty much by design. Sorry you found that confusing. We'd welcome a patch to update that section of the README to make that a bit clearer. |
Awesome I will do that! I ended up writing a little client extension with a method of def with_pagination
self.auto_paginate = true
yield
ensure
self.auto_paginate = false
end This way I could pass a |
Love the library by the way! Thanks Wynn and other contributors! |
@sb8244 That's pretty nifty. I'd be more inclined to let it ensure the pagination setting without inadvertently flipping the setting, surprising other callers. What about: def with_pagination
pagination_setting = self.auto_paginate
self.auto_paginate = true
yield
ensure
self.auto_paginate = pagination_setting
end Maybe we could even bake this into the |
Good call there! Do you mind if I tackle a simple implementation and tests? On Saturday, January 31, 2015, Wynn Netherland [email protected]
Steve Bussey •SalesLoft •Software Engineer e [email protected] w salesloft.com a 3423 Piedmont Rd NE, Atlanta, GA 30305 [image: Facebook] https://www.facebook.com/SalesLoft [image: Twitter] |
@sb8244 nope, go for it! |
@pengwynn i have been running into same kind of problem. I have enabled auto_paginate which is not able to paginate means it couldn't display for what i ask for? |
@aruzmeister can you share a code snippet to see if you're running into the same issue as the original topic here? |
@pengwynn It's good. auto_paginate works fine the problem was with my server which couldn't get too much request at once. I have already figured out :) |
I think github changed something. It's nearly impossible for me to page the On Wednesday, August 12, 2015, Aruj Parajuli [email protected]
Steve Bussey •SalesLoft •Software Engineer e [email protected] w salesloft.com a 3423 Piedmont Rd NE, Atlanta, GA 30305 [image: Facebook] https://www.facebook.com/SalesLoft [image: Twitter] |
@sb8244 I think so you can configure that by increasing the incoming limit so that it won't freezes. |
👋 Hey Friends, this issue has been automatically marked as |
If you have a client instance, then change
Octokit.auto_paginate
, it doesn't affect the current client instance. Changingclient.auto_paginate
does have the correct effect, of course. It's not really a bug so much as it is confusingThe text was updated successfully, but these errors were encountered: