Description
Popup alerts show, even if I've disabled them.
I modified the menelaus_web_alerts_srv to generate an "IP change" alert frequently and consistently. I then tried disabling the alert - but it still shows. In the background of the image you can see that I've disabled the alert. Here's a screenshot with it in the foreground:
Also: oddly it looks like the UI configures the "pop_up_alerts" list in the opposite fashion that's intended. E.g. if I check the pop_up_alerts list in the alerts settings for the cluster shown above I see:
$ curl -s localhost:9000/settings/alerts -u Administrator:asdasd | jq .pop_up_alerts
|
[
|
"ip"
|
]
|
That is the "ip" alert is the only one that shows up in the list, which seems backwards as it's the only one that's disabled.
Lastly, the controls to enable / disable the UI popups are only available if email alerts are enabled. But it should be the case that I can manage UI popups even if email alerts are not enabled. This feels like a separate bug, so I'll file a separate ticket for it.
Attachments
For Gerrit Dashboard: MB-45038 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
149077,3 | MB-45038: show defined popup alert as enabled | master | ns_server | Status: MERGED | +2 | +1 |
149451,4 | MB-45038: Popup alerts show even if the popup alert is "disabled" | master | ns_server | Status: MERGED | +2 | +1 |
150605,2 | MB-45038: filter out disableUIPopUp | master | ns_server | Status: MERGED | +2 | +1 |
150995,4 | MB-45038: Return disableUiPopup as actual json boolean not string | master | ns_server | Status: MERGED | +2 | +1 |