Bug 1552439

Summary: [UI] - Alerts - wrong message when clearing all Alerts
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: Frontend.WebAdminAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: samuel macko <smacko>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.2.2CC: bugs, gshereme, lsvaty, mperina, tjelinek
Target Milestone: ovirt-4.2.3Flags: rule-engine: ovirt-4.2+
lsvaty: testing_ack+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:30:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine log none

Description Michael Burman 2018-03-07 07:09:54 UTC
Description of problem:
Now when clear all Alerts was fixed, the message in the audit log is wrong. 
When clearing all Alerts(only alerts), the next message appears - 

All events were removed. (User: admin@internal-authz)
3/7/189:03:15 AM

But it is confusing and wrong, it should be 'All alerts were removed' 

- When clearing only events, the message is ok(All events were removed. (User: admin@internal-authz)

Version-Release number of selected component (if applicable):
4.2.2.2-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Clear all Alerts only

Actual results:
All events were removed. (User: admin@internal-authz)
3/7/189:03:15 AM

Expected results:
All "Alerts" were removed. (User: admin@internal-authz)
3/7/189:03:15 AM

Comment 1 Michael Burman 2018-03-07 07:14:39 UTC
Created attachment 1405158 [details]
engine log

Comment 2 Alexander Wels 2018-03-08 20:35:59 UTC
@Tomas

The UI simply displays the stuff from the table. so whomever fixed the backend forgot to fix the associated message. Can you assign it to them, as the UI simply displays the string it gets from the backend.

Comment 3 samuel macko 2018-04-16 12:37:14 UTC
Verified in ovirt version 4.2.3-0.1.el7.

Verified by following the reproducer.

Comment 4 Sandro Bonazzola 2018-05-10 06:30:31 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.