john-bodley commented on code in PR #25894:
URL: https://github.com/apache/superset/pull/25894#discussion_r1411457373


##########
superset/reports/notifications/slack.py:
##########
@@ -60,7 +61,17 @@ class SlackNotification(BaseNotification):  # pylint: 
disable=too-few-public-met
     type = ReportRecipientType.SLACK
 
     def _get_channel(self) -> str:
-        return json.loads(self._recipient.recipient_config_json)["target"]
+        """
+        Get the recipient's channel(s).
+        

Review Comment:
   ```suggestion
   
   ```



##########
superset/reports/notifications/slack.py:
##########
@@ -60,7 +61,17 @@ class SlackNotification(BaseNotification):  # pylint: 
disable=too-few-public-met
     type = ReportRecipientType.SLACK
 
     def _get_channel(self) -> str:
-        return json.loads(self._recipient.recipient_config_json)["target"]
+        """
+        Get the recipient's channel(s).
+        
+        Note Slack SDK uses "channel" to refer to one or more
+        channels. Multiple channels are demarcated by a comma.
+    

Review Comment:
   ```suggestion
   
   ```



-- 
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: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to