You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Slack pagination and bug fixes
The Slack integration had some issues, which this PR solves. Namely:
- The channels endpoint didn't support pagination and that could lead to some unexpected behaviors due to the inherent weirdness of the slack API. See context here: https://github.com/GitbookIO/support-bucket/issues/961
- The README was missing the signing secret step for publishing an integration.
- There was a bug where the signature validation code would lock the body by reading it, which made it throw once the event tried to read from it again. Solved with a request clone.
- There was an issue in the slack manifests where we would call the events path for `url_verifications`, but that should happen under `events_task`.
* Add changeset
* Improve changeset with the PR description
* Update the handle to keep asynchronicity
* Forgot to remove a test return
* Update integrations/slack/slack-manifest.yaml
* Update integrations/slack/README.md
- The channels endpoint didn't support pagination and that could lead to some unexpected behaviors due to the inherent weirdness of the slack API. See context here: https://github.com/GitbookIO/support-bucket/issues/961
8
+
- The README was missing the signing secret step for publishing an integration.
9
+
- There was a bug where the signature validation code would lock the body by reading it, which made it throw once the event tried to read from it again. Solved with a request clone.
10
+
- There was an issue in the slack manifests where we would call the events path for `url_verifications`, but that should happen under `events_task`.
Copy file name to clipboardExpand all lines: integrations/slack/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
To configure it for your environment, create an application on Slack and use the `slack-manifest.yaml` file to configure it. Don't forget to update the URLs to natch your environment.
4
4
5
5
6
-
To publish it, run the command with the `SLACK_CLIENT_ID`and `SLACK_CLIENT_SECRET` environment variables defined:
6
+
To publish it, run the command with the `SLACK_CLIENT_ID`, `SLACK_CLIENT_SECRET`, and `SLACK_SIGNING_SECRET ` environment variables defined:
7
7
8
8
```
9
-
SLACK_CLIENT_ID=xxx SLACK_CLIENT_SECRET=xxxx npm run publish-integrations
9
+
SLACK_CLIENT_ID=xxx SLACK_CLIENT_SECRET=xxxx SLACK_SIGNING_SECRET=xxxx npm run publish-integrations
0 commit comments