Bug 1739264

Summary: [RFE] Add ability to clear filter for Saved Reports
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: POST --- QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: unspecifiedCC: dmetzger, hkataria, lavenel
Target Milestone: GAKeywords: FutureFeature
Target Release: 5.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Feature
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot of Host Memory trends Optimization report
none
screen shot of 'clear filters' in SUI none

Description Nandini Chandra 2019-08-08 22:15:34 UTC
Created attachment 1601951 [details]
screenshot of Host Memory trends Optimization report

Description of problem:
--------------------------
It's possible to filter through the available fields while viewing reports under Optimization.

But, it's not possible to clear the filter.See attached screen shot.

I'd like the ability to clear the filter.I have attached an example from the SUI where filters can be cleared.


Version-Release number of selected component (if applicable):
------------------------------------------------------------
5.11.0.17


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1.Navigate to the Overview -> Optimization page.
2.Select any report, for eg: Daily Performance - Host Memory 
3.Select a filter, for eg: Asset name and enter a string to filter through.


Actual results:
---------------
No clear filter option available


Expected results:
-----------------
Clear filter option should be available


Additional info:
----------------

Comment 2 Nandini Chandra 2019-08-08 22:20:09 UTC
Created attachment 1601952 [details]
screen shot of 'clear filters' in SUI

Comment 4 Martin Povolny 2019-08-13 13:02:14 UTC
How to remove the filter:

1. Remove the text in the filter field
2. and press enter.

Do we need a separate button to do that?

Moreover we will be implementing filtering by multiple fields (once the API supports it) and in the UI for the multiple field filtering there are small [x] marks for each filtering field to remove it from the filter so that will solve the issue in a more UX friendly way.

Comment 8 CFME Bot 2019-08-16 13:27:03 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/6449daf5e089ff61bd2f7c178a11fa07a24320d2
commit 6449daf5e089ff61bd2f7c178a11fa07a24320d2
Author:     Martin Povolny <mpovolny>
AuthorDate: Wed Aug 14 15:33:06 2019 -0400
Commit:     Martin Povolny <mpovolny>
CommitDate: Wed Aug 14 15:33:06 2019 -0400

    Report data: add display of active filter. Add empty state.

    The active filter display allows one click clearing of the filters as
    requested by a BZ.

    https://bugzilla.redhat.com/show_bug.cgi?id=1739264

    The display of active filter is partly ready for the multi-criteria
    filtering, once it's available in the API.

    When there are no records, no grid and no paginator is displayed.
    Instead an empty state component with a message is displayed.

    https://bugzilla.redhat.com/show_bug.cgi?id=1740055

 app/javascript/components/report-data-table.jsx | 236 +-
 1 file changed, 155 insertions(+), 81 deletions(-)