Bug 1720216

Summary: 'NOT' element can not be deleted for VM Advanced Filters in CloudForms
Product: Red Hat CloudForms Management Engine Reporter: Khushbu Borole <kborole>
Component: UI - ServiceAssignee: Eric Winchell <ewinchel>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.0CC: bmidwood, dmetzger, lavenel, mshriver, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1763861 (view as bug list) Environment:
Last Closed: 2019-12-13 14:55:02 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: 1763861    
Attachments:
Description Flags
NOT element in Expression none

Description Khushbu Borole 2019-06-13 12:14:23 UTC
Created attachment 1580264 [details]
NOT element in Expression

Description of problem:
Advanced Filters for the VMs can be used with 'AND' 'OR' and 'NOT' elemets for expression
User can edit expression with 'AND' and 'OR' element but not the 'NOT' element

Version-Release number of selected component (if applicable):
Red Hat CloudForms 4.7

How reproducible:
Always while using 'NOT' element

Steps to Reproduce:
1. Create VM Advanced Filter at Compute -> Infrastructure -> VMs with 'NOT' element
2. Try to edit the 'NOT' element

Actual results:
Can not edit the expression with 'NOT' element
The 'X' option for the 'NOT' element is not present

Expected results:
User should be able to edit the 'NOT' element expression

Comment 3 CFME Bot 2019-06-14 17:56:31 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/6843c15f0c0fb37c5bfb1ff8d0a7ae55a7bf4bc1
commit 6843c15f0c0fb37c5bfb1ff8d0a7ae55a7bf4bc1
Author:     Eric Winchell <ewinchel>
AuthorDate: Fri Jun 14 11:54:06 2019 -0400
Commit:     Eric Winchell <ewinchel>
CommitDate: Fri Jun 14 11:54:06 2019 -0400

    Expression Editor fix

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

 app/controllers/application_controller/filter.rb | 5 +-
 1 file changed, 1 insertion(+), 4 deletions(-)

Comment 4 Angelina Vasileva 2019-07-02 09:56:14 UTC
Fixed and verified in CFME 5.11.0.11.20190625161125_392c61e.

It's possible to remove the 'NOT' element.