-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Slack API files.upload
v1 deprecation
#28353
Comments
I'm guessing in the meantime it might be a good idea updating the docs: Because if slack are true to their word, New superset deployment cannot create the slack integration (assuming operator creates new app in slack console..) |
Updating the Apache Superset documentation to reflect the Slack API changes is indeed a crucial step. The deprecation of For the codebase, transitioning involves:
This process requires adjustments in error handling and response validation to align with the new Slack API methods. It's essential to ensure the Slack SDK version is compatible and to update any relevant configuration settings in Superset. Contributors can update the documentation by:
For testing changes to the Slack integration, unit tests with mock objects can verify the functionality without actual Slack API interaction. This approach ensures the integration works as expected under controlled conditions. Finally, notifying Superset users about these important changes involves updating
|
Randomly caught #28353 and decided to propose a fix. Unclear if this is unit tested properly or not but thought I'd put it out there as it seemed straightforward when I looked at the docs here https://github.com/slackapi/python-slack-sdk/releases/tag/v3.19.0
#28423 should do it, not sure how to test/validate though |
Randomly caught #28353 and decided to propose a fix. Unclear if this is unit tested properly or not but thought I'd put it out there as it seemed straightforward when I looked at the docs here https://github.com/slackapi/python-slack-sdk/releases/tag/v3.19.0
I think the above fix should cover this issue. Thanks for the report @asaf400! |
I've deployed superset using the helm chart. I'm currently using app v3.1.0 and chart v0.12.3 |
The fix is already in master - merged after v4.0.1, so just wait for the next release build, or locally build |
Just FYI, after switching to |
@asaf400 I just deployed 4.0.2 a few minutes ago and am getting this error still. Did this fix make it into 4.0.2 appropriately? Is there a change to deployment documentation to deploy this fix? A new feature flag, perhaps? Thanks in advance for your assistance. |
CC @michael-s-molina regarding whether or not this was cherried into 4.0.2 (or could be cherried into 4.0.3). |
@rusackas This was not included in 4.0.2 but will be in 4.1.0 which will be the next release of Superset @sadpandajoe @eschutho |
The first two attempts to fix the issue wasn't working well. @eschutho created this SIP: #29263 and is currently working on it. |
What is the timeframe for this? As far as I can see, slack notifications are completely inoperable at this point unless one builds from source removing the file upload from the message? |
You can follow this PR: #29264 to see when it gets merged. |
Bug description
The API superset uses for slack reports has been deprecated, and needs to be replaced with the new API:
As described here
files.upload is deprecated and will stop functioning on March 11, 2025. Use [files.getUploadURLExternal](https://api.slack.com/methods/files.getUploadURLExternal) and [files.completeUploadExternal](https://api.slack.com/methods/files.completeUploadExternal) to upload files instead. Newly created apps will be unable to use files.upload beginning May 8, 2024. See [Uploading files](https://api.slack.com/messaging/files#uploading_files) for more details on the process and [this changelog](https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay) for more on the deprecation.
Seems like new slack-sdk version required minimum is v3.19.0
Which Superset already uses
superset/pyproject.toml
Line 88 in f5843fe
additional resources:
slackapi/python-slack-sdk#1272
How to reproduce the bug
Deprecation
Screenshots/recordings
As a slack organization administrator I received the following message by email:
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: