Repository navigation
notification/slack: update existing messages with status - #2004
Merged
Merged
Conversation
Lanithane
previously approved these changes
Nov 1, 2021
Contributor
There was a problem hiding this comment.
As a personal preference, I think it could look a bit cleaner without the nested quote line for the details- LGTM!
Member
Author
|
@forfold Maybe we can try tweaking it during the two-way interaction work; we'll be changing the rendering logic for that into its final state. I added it so it would stand out since there's no pre-processing for markdown -> slack markdown, but I agree the double color-bar isn't ideal. |
Contributor
|
@mastercactapus That sounds good! Yeah I definitely don't think something like that should hold us back, so it has my approval :) |
Contributor
|
It could be neat to have a button to show the full details (rendered with |
dctalbot
suggested changes
Nov 2, 2021
dctalbot
approved these changes
Nov 2, 2021
Lanithane
approved these changes
Nov 3, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This PR updates the Slack notifier to include a color bar with alert messages and update the existing message instead of posting status updates in-thread.
Unacked alerts will have a red bar and details included:

Acked alerts will reflect the latest log entry, a yellow bar, and retain details:

When escalated, the alert summary and link is broadcast to the channel:

When closed, details of the alert is hidden, bar turns green, and the link remains with the last log entry:
