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
Update Slack implementation from Bot to App #12383
Comments
|
Enumerating the methods we currently use and their docs/deprecation status based on slack.clj:
That said, I created a new Bot app and added the necessary scopes and images and the MetaBot avatar aren't getting set properly.
|
|
@dacort nit |
|
I'm attempting to set this up now at my organization--is it still a requirement that the API be set-up specifically for a channel called |
Yes, although it can be archived if you like. Note that you still need to create a “bot” user and not an app. |
Also, this is a bit misleading. I think what you mean is you must create an app, and a bot user for that app. There is no "just a bot user" option anymore, everything is encapsulated in the Slack API app service now. |
|
@ctivanovich Please take a look at the workaround in #12382 - we're still using the "bot" user in Slack and have not migrated to proper apps yet. You can still create a bot user using the link in that ticket. This ticket is for researching what the required permissions are to move to an app. |
|
It would also be great if metabot could send files into private channels. |
|
We just received a notification (below) from Slack that the API used by the Metabase Bot will be deprecated on 24th February 2021. Rewriting the bot as an app before then would be greatly appreciated.
|
|
@nmuldoon Thanks for the notice, Slack integration is certainly critical so will address this in an upcoming release. |
|
We don't use |
|
The date above rapidly approaching, are there still plans to address this before then? |
|
@Limess Which date? Metabase has been using Conversations API since 0.36.0. Additional information would be appreciated. |
|
Ah thanks, I didn't find it clear from the above that this was changed - if this is the case that's great. As an aside, while re-adding metabot to our slack install, I tried creating a new Slack app, and adding the appropriate scopes - rather than using a bot integration, and received this error in the metabase logs: Is that mechanism supported? |
|
@Limess That's what this issue is - about updating Metabase to allow using the App instead of the Bot. |
|
@flamber I just upgraded from 0.35.3 to 0.37.6, but I see no changes in the Slack integration, which I expected to do. Do I understand correctly that, while the integration in Metabase has switched over to the Conversations API, there's still stuff in the Bots Slack app that allows use of the old API, and that's why it still shows up in the warnings in my Slack admin interface? |
|
@cernael Metabase does not support App, only the Bot. That is what this issue is about. I don't know what warning you're seeing. |
|
@flamber In my Slack admin page, Bots show up on this warning page. And Metabot is the only one we're using. As someone with very limited knowledge of how Slack apps in general, and the Bots app in particular, work, the warning here makes me a bit uneasy. On reflection, it seems reasonable that the warning arises because some Bot, somewhere, still uses the deprecated API, and that the shutdown only will mean that that bot breaks. But it's not really clear that that is the case. |
|
@cernael If you have just upgraded, then you'll see MetaBot on that list - as it says:
While we are trying to become better at making release notes, in 0.36.0 release notes it links to the issue #12678 and was fixed by PR #12921. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I've received a notice that the metabase slack bot |

Is your feature request related to a problem? Please describe.
Slack has made the move more towards apps than bots. This appears to be largely due to their old "bot" implementation requiring global permissions and new apps are more appropriately scoped. The current bot implementation is not deprecated, but we don't know if or when it will be.
From https://api.slack.com/authentication/quickstart
Describe the solution you'd like
Option 1: Update our documentation to reflect the current best practice approach
Option 2: Overhaul our Slack implementation to use a proper "App"
How important is this feature to you?
Slack is an important way that folks share Metabase questions.
Additional context
Discovered while looking into #12382
⬇️ Please click the 👍 reaction instead of leaving a
+1orupdate?commentThe text was updated successfully, but these errors were encountered: