jpuris opened a new pull request #15904:
URL: https://github.com/apache/superset/pull/15904


   ### 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
   5. Invite the app to the target slack channel
   6. Schedule an alert to be posted on specific channel
   7. Message is posted as expected
   
   ### ADDITIONAL INFORMATION
   - [x] Has associated issue: https://github.com/apache/superset/issues/15903


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to