grafana / grafana/alerting

Teams: Multiple newlines in heading now render as code block

Open
#527 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
89
Forks
74
Avg merge
2d 7h
Merged PRs (30d)
8

Description

Since a few days ago, the headings of MS Teams adaptive cards sent by Mimir looked strange. What was previously a heading was now rendered as a code block. This change also retroactively changed the look of cards sent before the update.

Image

The issue was that our custom template for the heading added newlines to the beginning of the string. This seems to be rendered as a code block now. Mimir should probably strip whitespace from the heading string to avoid this problem.

Contributor guide

Open the contributing guide

Research direction

Start by locating the custom template that builds the MS Teams adaptive-card heading and reproduce the rendering described in issue #527. Update the heading handling so leading and trailing whitespace no longer turns it into a code block, then verify that headings render normally, including for cards created before the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.