As I understand, all notifications will be fired using one discourse user. For me that’s a bit rigid. Ideally I need different users for different channels. Our discourse will serve company wide purposes, andalso support projects, which are kind of private.
But, as a workaround / simple solution I can live with a setup, where there are implicit rules like: mute all categories, which are not public. That way if I create a new category for a new project, posts from that new category won’t appear in the company wide channel.
Yes, the issue was related to the SSL certificate. It has been solved. Thanks for the immediate help
Another big thing is, I am embedding the discourse subdomain into our react product. Whenever a user clicks on slack notification of topic/post creation , our intended goal is to redirect user to our product’s domain, instead of discourse subdomain. I am not able to set this redirection. Kindly suggest any way.
I created the slack app as per the instructions. The issue I’m having is that other users want to add notifications to private channels I don’t have access to.
Is there a way to notify private slack channels that the creator of the slack app doesn’t have access too?
Or how can other users grant permissions to the app?
Also if I understand correctly, those slack app tokens that are entered into the Discourse’s plugin configuration allow access to my private channels, correct? This might be undesirable since any Discourse admin can see those tokens in the settings section. Would be good to warn about that, or remove from the instructions the groups:history and im:history grants.
Our makerforums discourse is intended to bring together a lot of related but separate communities. These communities are organized in our discourse by category or sub-category. Some of these communities have their own slack spaces.
At least one community, associated with a sub-category, would like slack integration, but as far as I can tell, there can be only one for the whole discourse.
Unfortunately you can only have one slack community connected at the moment. It would be nice to allow multiple connections per-provider in the future.
Thanks for confirming. It looks like it would be substantial work to move to installing arbitrarily many chat integrations, especially to do so without backward compatibility problems.
For anyone else with this problem: As an alternative we are exploring for one-way notification in slack that posts have been made in discourse, we realized that it makes sense to take advantage of Discourse’s RSS support and hook up the slack RSS app:
For the next person who sees this: I saw 422 No Record in the slack integration when trying to send a test message from the admin interface in my discourse.
The logs (https://mydiscourse/logs) showed the real error, which was in my case "{\"ok\":false,\"error\":\"channel_not_found\"}"}
The reason was that /discourse watch in a private channel of the Staff category showed up with a slack channel name like #private instead of the actual channel name, so I had to set the correct channel name in the discourse administrative interface to the actual channel name; then it worked.
Bonjour @david, existe-t-il un moyen de configurer une intégration unidirectionnelle (Discourse vers Slack) en utilisant le plugin discourse-chat-integration ?
Je souhaite configurer un webhook Slack vers lequel les messages seraient envoyés, sans avoir à créer une nouvelle application sur Slack.
J’ai suivi les instructions de Discourse to Slack (one-way) integration, mais sans succès. Après avoir activé le plugin et configuré l’URL du webhook, je n’ai trouvé aucun tableau de bord pour poursuivre la configuration.
J’ai suivi ce tutoriel pour configurer notre intégration Discourse avec Slack.
Lors du test de la règle, je reçois l’erreur DiscourseChat::ProviderError, mais sans aucun détail, même la console du navigateur ne donne pas beaucoup d’informations sur l’erreur.
Avez-vous une idée de la cause ?
Malheureusement, Slack ne nous fournit pas le nom de canal spécifié par l’utilisateur dans l’API des commandes slash, nous devons donc utiliser l’ID. (plus de détails dans le message du commit). Si vous utilisez toujours des commandes slash pour gérer les règles, cela ne fera aucune différence.
J’essaie depuis trop longtemps de faire fonctionner le bot Slack avec un canal. Y a-t-il un secret que j’ignore pour permettre à Discourse de publier dans un canal public ? Je peux recevoir des notifications directement depuis Discourse, mais Discourse ne semble pas pouvoir publier dans un canal. Je comptais ajouter le webhook entrant à l’intégration, mais l’info-bulle de l’outil Discourse indique que ce n’est pas recommandé. Toute aide serait grandement appréciée.
Ok — J’ai trouvé un post sur un autre forum qui m’a indiqué un autre emplacement pour les journaux. L’erreur était assez claire : il fallait ajouter l’utilisateur du bot dans le canal public pour pouvoir y publier. Je ne m’attendais pas à ce que cela soit nécessaire, mais c’est la solution !