zulip/zerver/webhooks
Mateusz Mandera f81e514d07 slack: Fetch workspace users from /users.list in the correct manner.
1. Fetching from the `/users.list` endpoint is supposed to use
   pagination. Slack will return at most 1000 results in a single
   request. This means that our Slack import system hasn't worked
   properly for workspaces with more than 1000 users. Users after the
   first 1000 would be considered by our tool as mirror dummies and thus
   created with is_active=False,is_mirror_dummy=True.
   Ref https://api.slack.com/methods/users.list

2. Workspaces with a lot of users, and therefore requiring the use of
   paginated requests to fetch them all, might also get us to run into
   Slack's rate limits, since we'll be doing repeating requests to the
   endpoint.
   Therefore, the API fetch needs to also handle rate limiting errors
   correctly.
   Per, https://api.slack.com/apis/rate-limits#headers, we can just read
   the retry-after header from the rsponse and wait the indicated number
   of seconds before repeating the requests. This is an easy approach to
   implement, so that's what we go with here.
2025-01-24 16:41:53 -08:00
..
airbrake integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
airbyte integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
alertmanager integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
ansibletower integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
appfollow integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
appveyor webhooks/appveyor: Refactor to reduce redundancy in payload extraction. 2025-01-04 19:10:04 -08:00
azuredevops integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
basecamp integrations: Refine Basecamp example screenshot. 2024-11-21 11:09:40 -08:00
beanstalk ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
beeminder integrations: Fix $ position in Beeminder message template. 2024-11-26 12:43:31 -08:00
bitbucket ruff: Fix UP007 Use X | Y for type annotations. 2024-07-13 22:28:22 -07:00
bitbucket2 integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
bitbucket3 integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
buildbot webhooks: Rename remaining stream references to channel. 2024-05-06 09:07:57 -07:00
canarytoken integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
circleci integration-docs: Remove the second screenshot from CircleCI doc. 2024-12-12 15:04:02 -08:00
clubhouse integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
codeship integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
crashlytics integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
delighted integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
dialogflow webhooks: Rename create-stream.md to create-channel.md. 2024-05-06 09:07:57 -07:00
dropbox integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
errbit integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
flock integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
freshdesk integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
freshping integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
freshstatus integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
front ruff: Partially reformat Python with Ruff 0.9 (2025 style). 2025-01-14 09:42:16 -08:00
gitea integrations: Refine Gitea example screenshot. 2024-11-21 11:09:40 -08:00
github webhooks/github: Suppress "comment edited" events when body is same. 2025-01-03 15:18:39 -08:00
gitlab integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
gocd integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
gogs integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
gosquared integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
grafana integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
greenhouse integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
groove integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
harbor integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
hellosign integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
helloworld integration-docs: Update Hello World for new doc format. 2024-07-08 16:29:02 -07:00
heroku integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
homeassistant webhooks: Rename remaining stream references to channel. 2024-05-06 09:07:57 -07:00
honeybadger/fixtures inetgrations: Add webhook payloads for Honeybadger. 2018-01-02 11:45:33 -05:00
ifttt integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
insping integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
intercom integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
jira integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
jotform integrations: Fix Jotform integration by accepting form-data payloads. 2024-12-02 18:08:58 -08:00
json integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
librato integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
lidarr integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
linear integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
mention integrations: Refine Mention example screenshot. 2024-11-21 11:09:40 -08:00
netlify integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
newrelic integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
opencollective integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
opsgenie webhooks/opsgenie: Refactor to reduce redundancy in payload extraction. 2025-01-04 19:10:04 -08:00
pagerduty integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
papertrail integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
patreon integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
pingdom integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
pivotal integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
radarr integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
raygun integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
reviewboard integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
rhodecode integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
rollbar/fixtures integrations: Add webhook payloads for rollbar. 2018-01-11 06:32:37 -05:00
rundeck integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
runscope/fixtures integrations: Add webhook payloads for Runscope. 2017-12-29 07:27:20 -05:00
semaphore integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
sentry integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
slack slack: Fetch workspace users from /users.list in the correct manner. 2025-01-24 16:41:53 -08:00
slack_incoming integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
sonarqube integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
sonarr integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
splunk ruff: Partially reformat Python with Ruff 0.9 (2025 style). 2025-01-14 09:42:16 -08:00
statuspage integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
stripe integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
taiga integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
teamcity integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
thinkst integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
transifex integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
travis integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
trello integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
updown integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
uptimerobot integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
wekan integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
wordpress integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
zabbix integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
zapier integration-docs: Update Zapier for new doc format. 2024-07-15 16:42:22 -07:00
zendesk integration-docs: Remove create channel for generate webhook URL docs. 2024-11-19 13:02:01 -08:00
__init__.py