Bug 1502304 - [RFE] Show buttons only if certain condition exists (Button Filtering)
Summary: [RFE] Show buttons only if certain condition exists (Button Filtering)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - Service
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: Ohad Levy
QA Contact: Anurag
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-15 15:01 UTC by Loic Avenel
Modified: 2018-03-01 13:19 UTC (History)
5 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-01 13:19:54 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (70.21 KB, image/png)
2017-11-28 07:02 UTC, Anurag
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0380 0 normal SHIPPED_LIVE Moderate: Red Hat CloudForms security, bug fix, and enhancement update 2018-03-01 18:37:12 UTC

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


Note You need to log in before you can comment on or make changes to this bug.