gatus icon indicating copy to clipboard operation
gatus copied to clipboard

fix(alerting): Make Microsoft Teams title customizable

Open 221bshashank opened this issue 1 year ago • 7 comments

Describe the bug

I have integrated teams alerting system but the alert that I am getting is not as expected. I am not getting the proper icon in the alert.

What do you see?

image

as you can see in this image icon is not getting resolved, I am getting some value "&#x1F6A8"

What do you expect to see?

image I want to see like this, the proper icon

List the steps that must be taken to reproduce this issue

configure teams alerting system

Version

latest

Additional information

@TwiN pls look into this bug

221bshashank avatar Oct 20 '23 10:10 221bshashank

@221bshashank

The issue is limited to the Microsoft Teams classic desktop client. Gatus alert cards are rendered correctly on my phone Teams App and on the web client via Office 365.

Here is the emoji on the MessageCard Title https://www.iemoji.com/view/emoji/865/travel-places/police-car-light

And here it is in Hexadecimal (🚨)

  • https://github.com/TwiN/gatus/blob/16366e169e19a1530329305135ce593aaddddc68/alerting/provider/teams/teams.go#L108

Rodri9o avatar Nov 03 '23 02:11 Rodri9o

I've also experienced this problem, it started when I updated teams a few weeks ago 😞

I'm not using the "Try the new Teams" feature although the same issue exists when I turn it on image

JamesHillyard avatar Nov 08 '23 15:11 JamesHillyard

I think color code needs to be changed (https://github.com/TwiN/gatus/blob/de7256e671c3cc6106a154a8fd49df426f4ce56a/alerting/provider/teams/teams.go#L108), not sure

221bshashank avatar Nov 08 '23 15:11 221bshashank

I don't know what side is wrong on this since other similar tools also got broken notifications...

This topic was recently reported at Microsoft at https://techcommunity.microsoft.com/t5/microsoft-teams/new-teams-unicode-hex-character-and-emoji/m-p/3963936 google also show up earlier similar issues...

Both flavours of Teams (traditional and "new") are affected according to my experience.

amai2012 avatar Nov 10 '23 13:11 amai2012

To be completely honest, that seems more like an issue with Microsoft Teams than with Gatus, however, it's an issue nonetheless.

If allowing the customization of the title in the message generated by the webhook payload sent by Gatus resolves the situation, then I'd be willing to add a new alerting.teams.title field.

There's already a precedent for this anyways: see #602, which was made for Discord's title to be customizable.

TwiN avatar Nov 12 '23 21:11 TwiN

@TwiN sounds like a new feature. thanks

221bshashank avatar Nov 14 '23 10:11 221bshashank

The issue is limited to the Microsoft Teams classic desktop client. Gatus alert cards are rendered correctly on my phone Teams App and on the web client via Office 365.

Rodri9o avatar Jan 13 '24 02:01 Rodri9o