mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Remove duplicate Slack notification title (#58107)
Move mentions to a markdown-formatted pretext field to prevent issues mixing blocks and legacy-attachment content.
This commit is contained in:
@@ -2312,7 +2312,6 @@ var expNonEmailNotifications = map[string][]string{
|
||||
"slack_recv1/slack_test_without_token": {
|
||||
`{
|
||||
"channel": "#test-channel",
|
||||
"text": "Integration Test [FIRING:1] SlackAlert1 (default)",
|
||||
"username": "Integration Test",
|
||||
"icon_emoji": "🚀",
|
||||
"icon_url": "https://awesomeemoji.com/rocket",
|
||||
@@ -2325,16 +2324,9 @@ var expNonEmailNotifications = map[string][]string{
|
||||
"footer": "Grafana v",
|
||||
"footer_icon": "https://grafana.com/assets/img/fav32.png",
|
||||
"color": "#D63232",
|
||||
"ts": %s
|
||||
}
|
||||
],
|
||||
"blocks": [
|
||||
{
|
||||
"text": {
|
||||
"text": "<!here|here> <!subteam^group1><!subteam^group2> <@user1><@user2>",
|
||||
"type": "mrkdwn"
|
||||
},
|
||||
"type": "section"
|
||||
"ts": %s,
|
||||
"mrkdwn_in": ["pretext"],
|
||||
"pretext": "<!here|here> <!subteam^group1><!subteam^group2> <@user1><@user2>"
|
||||
}
|
||||
]
|
||||
}`,
|
||||
@@ -2342,7 +2334,6 @@ var expNonEmailNotifications = map[string][]string{
|
||||
"slack_recvX/slack_testX": {
|
||||
`{
|
||||
"channel": "#test-channel",
|
||||
"text": "[FIRING:1] SlackAlert2 (default)",
|
||||
"username": "Integration Test",
|
||||
"attachments": [
|
||||
{
|
||||
@@ -2353,16 +2344,9 @@ var expNonEmailNotifications = map[string][]string{
|
||||
"footer": "Grafana v",
|
||||
"footer_icon": "https://grafana.com/assets/img/fav32.png",
|
||||
"color": "#D63232",
|
||||
"ts": %s
|
||||
}
|
||||
],
|
||||
"blocks": [
|
||||
{
|
||||
"text": {
|
||||
"text": "<@user1><@user2>",
|
||||
"type": "mrkdwn"
|
||||
},
|
||||
"type": "section"
|
||||
"ts": %s,
|
||||
"mrkdwn_in": ["pretext"],
|
||||
"pretext": "<@user1><@user2>"
|
||||
}
|
||||
]
|
||||
}`,
|
||||
|
||||
Reference in New Issue
Block a user