-
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
Sort dispatched alerts by job+instance in the correct order (#1178) #1339
Conversation
ce208b0
to
5aa4256
Compare
@tzz Don't you believe you should switch the true/false on lines 433 and 437 as well? |
5aa4256
to
d1f5589
Compare
@tiagoapimenta yes you're right. Fixed. This really should have an acceptance test to avoid the hassle but I don't know how to write it. |
…us#1178) Signed-off-by: Ted Zlatanov <[email protected]>
d1f5589
to
cde5c77
Compare
AFAICT the existing sort algorithm on Lines 269 to 271 in cecfe5b
I guess that you can replace it by what you have implemented in |
@simonpasquier thanks for the advice. Is the test a blocker for this PR or can we add it later (so it won't block the 0.15 release)? I definitely can't work on it in the next 2 weeks. |
I would rather have some unit tests because it may surface other sorting problems. I could give it a try if you don't mind. |
Please do! I would really appreciate it. |
Alert order was wrongly implemented, trivial change. Followup fix to #1234