-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
dispatch: fix missing receivers in Groups() #1964
dispatch: fix missing receivers in Groups() #1964
Conversation
c6595bd
to
613a5ad
Compare
sort.Sort(groups) | ||
for i := range groups { | ||
sort.Sort(groups[i].Alerts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was very much needed for the tests to pass :)
@prymitive can you tell me if it fixes the issue for you? |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
613a5ad
to
110dd75
Compare
I can do some testing after work and update here |
Test using master branch:
There's either Test using this PR as HEAD:
Both receivers are always present as expected, so the issue is gone. |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Can it be that this issue was not fully fixed?
That is the part of my config that generates the duplicate alerts in the UI, Also they are inheriting the group_by from the main config. |
@fcastello can you share a screenshot and the full AlertManager configuration? I tried to reproduce but couldn't spot the issue. |
Closes #1959