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

feat: Improve slack message formatting for generic messages #124

Merged
merged 2 commits into from
Feb 21, 2021
Merged

feat: Improve slack message formatting for generic messages #124

merged 2 commits into from
Feb 21, 2021

Conversation

chrissng
Copy link
Contributor

@chrissng chrissng commented Feb 10, 2021

Description

Improves readability of generic messages sent by AWS services.

Before this PR:
alert0
With this PR:
alert

Motivation and Context

Currently messages other than the ones from Cloudwatch are sent as slack messages in verbatim as json strings. I thought by formatting the messages it would enhance its readability. For instance, this happens to messages received from AWS DMS events.

Breaking Changes

No breaking changes

How Has This Been Tested?

Ran existing test according to test setup instructions. Existing tests fixtures already provide coverage and this change only affects the formatting of the default notification.

@chrissng chrissng marked this pull request as ready for review February 10, 2021 02:47
@chrissng
Copy link
Contributor Author

Hello @antonbabenko, would you be able to review this PR?

@antonbabenko
Copy link
Member

@chrissng Sorry, I can't promise that I find time for this so soon. Maybe someone else from @terraform-aws-modules/triage-supporters can look into this PR (and in this repo)?

@DrFaust92
Copy link
Contributor

@chrissng Looks good, is it possible to ask you to add some unit tests for this?

@chrissng
Copy link
Contributor Author

chrissng commented Feb 20, 2021

Sure! I have added a test case which contains an example of a typical AWS event.

Annotation 2021-02-20 223005

@DrFaust92
Copy link
Contributor

Awesome, if you can just rebase your branch we are good to go!
@antonbabenko

@antonbabenko antonbabenko merged commit c5059f5 into terraform-aws-modules:master Feb 21, 2021
@antonbabenko
Copy link
Member

Thanks @chrissng and @DrFaust92 for the review!

v4.11.0 has been just released.

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants