Bug 1509959

Summary: The visibility and enablement expressions for buttons are not honoured in Self Service UI
Product: Red Hat CloudForms Management Engine Reporter: Milan Falešník <mfalesni>
Component: UI - ServiceAssignee: Chris Hale <chhale>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: bascar, dclarizi, jhardy, lavenel, obarenbo, yrudman
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1513498 (view as bug list) Environment:
Last Closed: 2018-06-21 20:38:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1513498    

Description Milan Falešník 2017-11-06 12:59:59 UTC
Description of problem:
When there is a visibility expression on a button, it is never displayed in SSUI and no matter what does the enablement expression return if set, it is always enabled.

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

How reproducible:
always

Steps to Reproduce:
1. Create a button, eg. for Service in this case. Set the visibility and enablement expression to eg. some tags.
2. Create a service
3. Go to the Self Service UI, select the service and look for the button and its status
4. Repeat 3 with setting and unsetting the appropriate tags and also removing either or both of the expressions

Actual results:
When the visibility expression is set, the button is always hidden no matter what is the outcome of it.
Enablement expression seems to have no effect on the buttons as once they are visible, they are clickable.

Expected results:
Buttons displayed exactly like in the Classic UI.

Additional info:

Comment 2 Chris Hale 2017-11-14 19:57:04 UTC
GH PR - https://github.com/ManageIQ/manageiq-ui-service/pull/1239

Comment 4 Yuri Rudman 2018-01-19 15:10:25 UTC
*** Bug 1534025 has been marked as a duplicate of this bug. ***