Bug 1499881 - Unable to validate automate method
Summary: Unable to validate automate method
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.10.0
Assignee: Harpreet Kataria
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On:
Blocks: 1513146
TreeView+ depends on / blocked
 
Reported: 2017-10-09 14:22 UTC by Milan Falešník
Modified: 2018-06-21 21:15 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1513146 (view as bug list)
Environment:
Last Closed: 2018-06-21 21:15:28 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
mfalesni: automate_bug+


Attachments (Terms of Use)

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(+)


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