Open PuszekSE opened 4 days ago
Hey there, @PuszekSE! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to resolve this issue.
To resolve the issue of sending notifications via Slack failing due to a deprecated Slack API method in your Superset deployment, you should update your Slack app to use the new API methods. Specifically, you should replace the deprecated files_upload
method with the new files_upload_v2
method.
Here is the relevant part of the code that shows the use of the new method:
# files_upload returns SlackResponse as we run it in sync mode.
for channel in channels:
if len(files) > 0:
for file in files:
client.files_upload_v2(
channel=channel,
file=file,
initial_comment=body,
title=title,
)
else:
client.chat_postMessage(channel=channel, text=body)
Ensure that your Slack app has the necessary permissions and scopes to use the new API methods. If the new method fails, the code falls back to the deprecated method, but this should be avoided by updating your Slack app configuration [1].
To continue talking to Dosu, mention @dosu.
Where can i find this code to replace it in superset files?
@dosu
I think this has recently been patched on master. @eschutho would know the most here, I think.
I've checked this on 4.0.2-dev, 1-2 days after its release (although that isn't an option present on the version dropdown list).
Bug description
When attempting to send the notification it seems to be failing due to Slack API deprecation:
How to reproduce the bug
Screenshots/recordings
Superset version
master / latest-dev
Python version
Not applicable
Node version
Not applicable
Browser
Not applicable
Additional context
It's k8s based deployment based on 4.0.2rc-dev image if that matters anyhow.
Checklist