Bug 1705139

Summary: Unable to create an alert that has a custom expression
Product: Red Hat CloudForms Management Engine Reporter: John Dupuy <jdupuy>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: John Dupuy <jdupuy>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.0CC: bmidwood, dmetzger, hkataria, jdupuy, lavenel, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: Regression
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-13 15:16:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1658670    
Attachments:
Description Flags
alert details none

Description John Dupuy 2019-05-01 15:30:39 UTC
Created attachment 1560876 [details]
alert details

Description of problem:
Unable to create (or save) an alert with a custom expression. 

Version-Release number of selected component (if applicable):
5.11.0.1.20190424210327_58b5dbd, also present in 5.11.0.2

How reproducible:
100%

Steps to Reproduce:
1. Navigate to "Control"->"Explorer"
2. Create a new alert that has any custom expression (see attachment for possible alert details)
3. Click "Add"

Actual results:
A loading screen appears and the alert is not created, you are stuck on the same page. No flash message appears

Expected results:
The alert should be created, the flash message confirming the alert creation should appear.

Additional info:
The same bug happens if you try to edit an alert and put in a custom expression.

Comment 6 CFME Bot 2019-05-02 12:40:53 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/63c15682a579706824be5dc0ced3ad78f2b60d47
commit 63c15682a579706824be5dc0ced3ad78f2b60d47
Author:     Harpreet Kataria <hkataria>
AuthorDate: Wed May  1 17:18:10 2019 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Wed May  1 17:18:10 2019 -0400

    Fixed a typo introduced in e788bd7fac48704d6637c0e5aa7ef71f68ba663a

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

 app/controllers/miq_policy_controller/alerts.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 7 John Dupuy 2019-05-08 14:48:16 UTC
Verified in CFME 5.11.0.3.20190507174347_a77bd90

Steps of verification:
1. Navigate to "Control"->"Explorer"
2. Create a new alert that has any custom expression (see attachment for possible alert details)
3. Click "Add"
4. Verified that the alert was created