Bug 1322934

Summary: SSUI - Filters are not working correctly for "Pending" requests
Product: Red Hat CloudForms Management Engine Reporter: Colleen Hart <chart>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: akarve, cpelland, hkataria, jhardy, mfeifer, mpovolny, nachandr, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ssui:filter
Fixed In Version: 5.7.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1344328 (view as bug list) Environment:
Last Closed: 2017-01-11 19:53:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1344328    
Attachments:
Description Flags
Pending Requests none

Description Colleen Hart 2016-03-31 17:21:32 UTC
Created attachment 1142314 [details]
Pending Requests

Description of problem:
When filtering by "Request Status: Pending" there will never be results because the actual pending requests are labeled with "pending_approval" and showing up as a different filter. When the user goes to My Requests and filters by "Request Status: Pending," there are no results. However, if the use clicks on the pending requests from the Dashboard link, the automatically applied filter is different and does show results.


How reproducible:
See steps below to reproduce.


Steps to Reproduce:
1. From the Dashboard click on the #displaying the pending requests
2. One filter should automatically be applied on the Request Status. Add another filter on "Request Status" and filter by "Pending"
3. Both sets of syntax will be displayed. The results could differ depending on which filter is removed.

Comment 3 Shveta 2016-04-12 23:14:45 UTC
Self Service UI does not show pending requests .
I created a service reconfigure request that stayed in pending state.

It didn't show in SSUI .
Is that expected ?

Comment 6 CFME Bot 2016-06-02 16:57:43 UTC
New commit detected on ManageIQ/manageiq-ui-self_service/master:
https://github.com/ManageIQ/manageiq-ui-self_service/commit/5ba7b4afb736cdf29833ee5c108e66111d81a837

commit 5ba7b4afb736cdf29833ee5c108e66111d81a837
Author:     Aparna Karve <akarve>
AuthorDate: Wed Jun 1 10:35:04 2016 -0700
Commit:     Aparna Karve <akarve>
CommitDate: Wed Jun 1 11:09:42 2016 -0700

    List items should be checked with the actual filter value
    
    List items should be checked with the actual filter value as opposed to
    the displayed Filter value String in the UI
    displayed Filter value in the UI - "Pending"
    Actual Filter value 'pending_approval'
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1322934

 client/app/states/dashboard/dashboard.html    |  2 +-
 client/app/states/requests/list/list.state.js | 13 +++++++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

Comment 8 Shveta 2016-09-21 17:29:00 UTC
Fixed.
Verified in 5.7.0.0.20160906172503_12f65cb