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

Fix misrepresentation of alerts. #4

Merged
merged 1 commit into from Oct 14, 2018
Merged

Conversation

rewbycraft
Copy link

Previously, when only a subset of alerts in a group resolves, the program will post the message as if all alerts in the group are firing. This is incorrect.
This PR changes the behavior such that resolved alerts are displayed as resolved.

The source of the problem is that the program is currently only looking at the "common" status of the alerts, not at the individual alerts' status. This PR changes that by first sorting the alerts into lists based on their status, and then sending individual messages for each of the lists.

@benjojo benjojo merged commit f581cbc into benjojo:master Oct 14, 2018
@benjojo
Copy link
Owner

benjojo commented Oct 14, 2018

PSA: @funkypenguin @intrand if you are still using this, you will want to update your versions since it could mis-report the status of some alerts

@funkypenguin
Copy link
Contributor

Thanks @benjojo ;)

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

3 participants