-
Notifications
You must be signed in to change notification settings - Fork 5k
Source Slack: Increase page_size/limit param for API calls #24126
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
Conversation
Slack APIs are heavily rate limited, and this minor change improves the performance of this connector by 10x with no impact to quality.
| url_base = "https://slack.com/api/" | ||
| primary_key = "id" | ||
| page_size = 100 | ||
| page_size = 999 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did you read in Slack documentation saying the limit is 999?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this documentation saying the limit is 1000 https://api.slack.com/docs/pagination
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I triggered tests to validate the change.
|
/test connector=connectors/source-slack
Build FailedTest summary info: |
|
/test connector=connectors/source-slack
Build PassedTest summary info: |
|
@davydov-d can you check this change? From Slack documentation
The tests works with 1000 limit... should we update it? |
|
/publish connector=connectors/source-slack
if you have connectors that successfully published but failed definition generation, follow step 4 here |
* Update page size for slack requests to 999 Slack APIs are heavily rate limited, and this minor change improves the performance of this connector by 10x with no impact to quality. * update page_size limit to 1000 * bump connector version * auto-bump connector version --------- Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: marcosmarxm <marcosmarxm@gmail.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
* Update page size for slack requests to 999 Slack APIs are heavily rate limited, and this minor change improves the performance of this connector by 10x with no impact to quality. * update page_size limit to 1000 * bump connector version * auto-bump connector version --------- Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com> Co-authored-by: marcosmarxm <marcosmarxm@gmail.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
What
Slack APIs are heavily rate limited, and this minor change improves the performance of this connector by 10x with no impact to quality.
How
It updates the page size of the connector
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing/publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changes