Bug 1502304

Summary: [RFE] Show buttons only if certain condition exists (Button Filtering)
Product: Red Hat CloudForms Management Engine Reporter: Loic Avenel <lavenel>
Component: UI - ServiceAssignee: Ohad Levy <ohadlevy>
Status: CLOSED ERRATA QA Contact: Anurag <ansinha>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: dclarizi, jhardy, lavenel, obarenbo, simaishi
Target Milestone: GAKeywords: FutureFeature, RFE
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-01 13:19:54 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:
Embargoed:
Attachments:
Description Flags
Screenshot none

Description Loic Avenel 2017-10-15 15:01:31 UTC
Description of problem: As a user, I only want to see buttons if certain condition exist (Button Filtering)

Comment 2 Dave Johnson 2017-10-15 15:03:40 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Chris Kacerguis 2017-10-15 15:52:44 UTC
This is a function of the API (as it will only return the buttons that are needed).  However, in discussion of this, we wanted to add a 3rd state of disabled.  Here is the PR for that - https://github.com/ManageIQ/manageiq-ui-service/pull/1012

Comment 4 Dave Johnson 2017-11-15 05:22:03 UTC
Aziza, please work with Shveta on this one please.

Comment 5 Aziza Karol 2017-11-21 10:15:20 UTC
Assigning it to Anurag as it is API related.

Comment 6 Anurag 2017-11-28 07:02:27 UTC
Created attachment 1359689 [details]
Screenshot

Hello Team,

This feature is working fine, verified on version: Version: 5.9.0.9.20171115202245_7429f75. Thanks for working on this enhancement feature :)

Thanks
-Anurag Sinha

Comment 7 Anurag 2017-11-28 07:26:09 UTC
Steps used for verification:
1.Create a custom button (Unassigned Button) for services
2.Provide an Enablement expression for disabling the custom button. (e.g: COUNT OF Service.VMs > 5000 )
3.Add "Disabled Button Text"
4.Click on save
5.Login on to SSUI page
6.Goto Service and check the button is disabled
7.Hover over button to check the disable text.

Hence the changing the state from on_qa to verified.

Comment 11 errata-xmlrpc 2018-03-01 13:19:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2018:0380