redash icon indicating copy to clipboard operation
redash copied to clipboard

Alert Destination Slack

Open pankaj-cashify opened this issue 8 months ago • 0 comments

Issue Summary

Formatting issue while sending custom message on slack

Steps to Reproduce

  1. Create alert with custom template with body. - Following Queries Are Blocked For More Then 10 Seconds. {{QUERY_RESULT_ROWS}}. Simple SQL query 'SELECT 0 AS PROCESS_ID, '' AS DATABASE_NAME, '' AS USER, '' AS QUERY_INFO, 0 AS TIME' can be used for testing.

  2. Above alert is sent to slack alert destination

The message received on slack is gabled like below

Following Queries Are Blocked For More Then 10 Seconds. [{'PROCESS_ID': 0.0, 'DATABASE_NAME': '', 'USER': '', 'QUERY_INFO': '', 'TIME': 0}]

I expect this to be

Following Queries Are Blocked For More Then 10 Seconds.
[{'PROCESS_ID': 0, 'DATABASE_NAME': '', 'USER': '', 'QUERY_INFO': '', 'TIME': 0}]

This used to work perfectly fine in earlier version of redash 10.0.0

Technical details:

  • Redash Version: 25.1.0
  • How did you install Redash: Docker self hosted

pankaj-cashify avatar Mar 05 '25 12:03 pankaj-cashify