Bug 1499881

Summary: Unable to validate automate method
Product: Red Hat CloudForms Management Engine Reporter: Milan Falešník <mfalesni>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, dmisharo, hkataria, jhardy, mpovolny, obarenbo
Target Milestone: GAKeywords: Regression, TestOnly
Target Release: 5.10.0Flags: mfalesni: automate_bug+
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:
: 1513146 (view as bug list) Environment:
Last Closed: 2018-06-21 21:15:28 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: 1513146    

Description Milan Falešník 2017-10-09 14:22:51 UTC
Description of problem:
When inserting a new automate method, the validate button is enabled until the method code is touched. Then it disables and does not get enabled back.

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

How reproducible:
always

Steps to Reproduce:
1. Open the dialog to create a new method, select inline
2. See that the code editor has the default contents and the validate button is enabled
3. Modify the code

Actual results:
Validate button is disabled

Expected results:
Validate button is enabled

Additional info:
Detected by automation.

Comment 3 CFME Bot 2017-11-13 22:58:40 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/07d5355c3dae689019b309e9b621f9d5cba561fb

commit 07d5355c3dae689019b309e9b621f9d5cba561fb
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon Nov 13 15:01:10 2017 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Mon Nov 13 15:54:27 2017 -0500

    Fixed enable/disable of Validate button.
    
    Styling changes in https://github.com/ManageIQ/manageiq-ui-classic/pull/2004/ have caused `@edit[:new][:data]` value to be set to nil which disables Validate button on screen.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1499881

 app/controllers/miq_ae_class_controller.rb       |  2 ++
 spec/controllers/miq_ae_class_controller_spec.rb | 33 ++++++++++++++++++++++++
 2 files changed, 35 insertions(+)