PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.83k stars 1.55k forks source link

Proper formatting for Flow Run notifications sent to MSTeams #6967

Open hateyouinfinity opened 1 year ago

hateyouinfinity commented 1 year ago

First check

Prefect Version

2.x

Describe the current behavior

Currently MSTeams notifications sent to notify of a flow run state change are not formatted properly. Example: improperly formatted notification

By default notification payload is generated via DEFAULT_MESSAGE_TEMPLATE which uses newlines. However, MSTeams notifications are parsed as Markdown (ref) => multiple newlines are collapsed into a single newline, while a single newline is ignored.

Describe the proposed behavior

Use a different template for MSTeams notifications.

How a notification would look with <br>s instead of newlines: properly formatted notification

Example Use

No response

Additional context

No response

bunchesofdonald commented 1 year ago

Thanks for the issue report @hateyouinfinity !