-
Notifications
You must be signed in to change notification settings - Fork 661
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
Adopt pagination standard with a default page size for methods which support it #343
Comments
thanks for the issue report @Akujin. i agree that 500 errors on large teams is quite unacceptable. unfortunately, without a pagination solution as you recommended at the API Platform level, there's nothing we can do in the SDK to mitigate this situation. but be aware that we are working on a pagination solution at Slack so we can prevent these types of issues from happening. i also agree that the fix should be made here, and not at the as far as the data list being loaded into memory, there are two issues here:
|
Thank you for the detailed response. So when I submitted a support ticket initially I was actually told of undocumented API variables for
I know this isn't true pagination since you can't just call page N but it would allow I'm a little perplexed by I tried searching for it in https://github.com/slackapi/hubot-slack/ but only found it as a regular variable and not an environmental variable. Right now I'm just commenting out these three lines of code to prevent users.list from being called I want to avoid forking hubot-slack just to edit |
@hparadiz that's my fault actually, i always thought it was read from an environment variable and now i see that it's not. i've created slackapi/hubot-slack#421 to track getting this implemented. if you have the ability and would like to help, i'd be happy to assign the task to you. otherwise it might take a few weeks to get this out given current priorities. the undocumented pagination technique is not something i'm willing to implement in the SDK because it will break and the new pagination technique is right around the corner. in the meantime, i'm thinking the following changes would comprise support for this feature:
feedback on this feature is welcome! |
This has become more relevant since the pagination spec is now standard across API methods. See https://slack.engineering/evolving-api-pagination-at-slack-1c1f644f8e12. Here are a few of the methods that could benefit:
|
Description
Reproducible in:
hubot-slack version: latest
OS version(s): any
Device(s): any
Steps to reproduce:
Expected result:
Actual result:
Notes
The text was updated successfully, but these errors were encountered: