Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Notifications] Fix Slack Notifications With Long Messages #5489

Merged
merged 12 commits into from
May 2, 2024

Conversation

quaark
Copy link
Member

@quaark quaark commented May 2, 2024

https://iguazio.atlassian.net/browse/ML-6324

Slack notifications now use headers for making the notification message bold. However these header sections are limited to 150 characters. Any message longer than that resulted in a 400 Bad Request from slack servers.

Mostly this arose from Pipeline start notifications which contain a long url in them.
So now we truncate the header to the nearest , or 150 characters, whichever comes first, and the rest is set in another section below the header.

Attached are images showing before (only section, no header):
Screenshot 2024-05-02 at 11 40 16

And after (section and header):
Screenshot 2024-05-02 at 11 40 35

Copy link
Member

@liranbg liranbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@liranbg liranbg changed the title [Notifications] - Fix Slack Notifications With Long Messages [Notifications] Fix Slack Notifications With Long Messages May 2, 2024
@quaark quaark merged commit f3c0222 into mlrun:development May 2, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants