Skip to content
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

docs: Slack integration requires "chat:write" permissions scope #15904

Merged
merged 1 commit into from
Jul 27, 2021
Merged

docs: Slack integration requires "chat:write" permissions scope #15904

merged 1 commit into from
Jul 27, 2021

Conversation

jpuris
Copy link
Contributor

@jpuris jpuris commented Jul 27, 2021

SUMMARY

Slack requires chat:write as part of "OAuth & Permissions" for the slack integration to be able to post messages.
If the mentioned scope is not defined, one will receive following error from Slack API

Error: The request to the Slack API failed. The server responded with: {'ok': False, 'error': 'missing_scope', 'needed': 'chat:write:bot', 'provided': 'incoming-webhook,files:write'}

TESTING INSTRUCTIONS

To reproduce the problem

  1. Add slack integration as per current instructions
  2. Invite the app to the target slack channel
  3. Schedule an alert to be posted on specific channel
  4. Error. The request to the Slack API failed. The server responded with: {'ok': False, 'error': 'missing_scope', 'needed': 'chat:write:bot', 'provided': 'incoming-webhook,files:write'}

Testing the fix

  1. Add slack integration as per current instructions, if already done, then skip to next step
  2. Add additional scope chat:write
  3. If step 2 was done after initial installation of slack app, then reinstall the slack app on workspace
  4. Invite the app to the target slack channel
  5. Schedule an alert to be posted on specific channel
  6. Message is posted as expected

ADDITIONAL INFORMATION

Slack requires `chat:write` as part of "OAuth & Permissions" for the slack integration to be able to post messages.
@srinify
Copy link
Contributor

srinify commented Jul 27, 2021

Thanks @jpuris for adding this !

@jpuris jpuris changed the title Update alerts_reports.mdx docs: Slack integration requires "chat:write" permissions scope Jul 27, 2021
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - big thanks for the PR! 🎉 👍

@srinify srinify merged commit 019e746 into apache:master Jul 27, 2021
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
Slack requires `chat:write` as part of "OAuth & Permissions" for the slack integration to be able to post messages.
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
Slack requires `chat:write` as part of "OAuth & Permissions" for the slack integration to be able to post messages.
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
Slack requires `chat:write` as part of "OAuth & Permissions" for the slack integration to be able to post messages.
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Feb 19, 2024
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
Slack requires `chat:write` as part of "OAuth & Permissions" for the slack integration to be able to post messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants