Bug 691792

Summary: when no alert priority/event severity filters are selected, don't return data
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Core UIAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0.Beta1CC: hrupp, skondkar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 01:09:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Mazzitelli 2011-03-29 13:43:13 UTC
Go to the alert history or event history pages where you do have alerts/events.

go to the alert priority/event severity filter - deselect all priorities/severities.

notice you get all rows.

the thought was that we do not have any filters, so return everything.

however, because the UI renders these options with checkboxes, it doesn't make sense - if I check all the filter options, I should get all the data, but if I de-select all the filter options, I should get no data.

We should change this so when nothing is selected (priority/severity filter is empty, nothing checked), we should return no data.

Comment 1 John Mazzitelli 2011-03-29 13:45:06 UTC
commit 769949fb28b0beeeba6c076130708c8a534cce88

to test:

1) get alerts and events into the DB
2) go to the alert history, de-select all priorities in the alert priority filter
3) see that no alerts are returned
4) select all priorities and see that all alerts are shown
5) go to the event history page and do the same (de-select all severities, see no data, select all severities, see all data)

Comment 2 Sunil Kondkar 2011-04-29 11:00:55 UTC
Verified on build#39 (Version: 4.0.0-SNAPSHOT Build Number: 15a53e5)

Created and triggered alerts of different priorities on a resource and enabled events.
Navigated to the alert history page. On de-selecting all priorities in the alert priority filter does not return any alerts. on selecting all the priorities, all alerts are shown.
Also tested this on event history page. The data is displayed according to the selected severity only in the severity filter.

Marking as verified.

Comment 3 Corey Welton 2011-05-24 01:09:50 UTC
Bookkeeping - closing bug - fixed in recent release.