Bug 1640608

Summary: Variables field in provisioning a new service catalog item (Ansible playbook) changes when typing information into it
Product: Red Hat CloudForms Management Engine Reporter: Angelina Vasileva <anikifor>
Component: UI - OPSAssignee: Eric Winchell <ewinchel>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.9.5CC: dmetzger, hkataria, lavenel, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.21 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1640629 (view as bug list) Environment:
Last Closed: 2019-02-12 16:50:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1640629    
Attachments:
Description Flags
Fields when the Value is filled none

Description Angelina Vasileva 2018-10-18 12:01:19 UTC
Created attachment 1495279 [details]
Fields when the Value is filled

Description of problem:
While adding a new catalog item (Ansible playbook) there're fields "Variables & Default Values". If something is written in a field, it becomes required. If something is written in the Value filed, this field jumps below the Variable field.

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

How reproducible:
Always

Steps to Reproduce:
1. Activate Embedded Ansible role
2. Wait for the role to be activated
3. Go to Services -> Catalogs -> Catalog Items 
4. Configuration -> Add a New Catalog Item
5. Select Ansible Playbook
6. Type something in Variables & Default Values fields

Actual results:
When typing something in one field, this field becomes required.
If something is written only in the Value filed, this field jumps below the Variable field.

Expected results:
When typing something in one field, the other is required.
Fields stay at the same place.

Additional info:

Comment 4 CFME Bot 2018-10-18 20:51:41 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/548c46caea2fb0aa123728dc8fe35be73a731a16
commit 548c46caea2fb0aa123728dc8fe35be73a731a16
Author:     Eric Winchell <ewinchel>
AuthorDate: Thu Oct 18 12:53:25 2018 -0400
Commit:     Eric Winchell <ewinchel>
CommitDate: Thu Oct 18 12:53:25 2018 -0400

    Fix New Catalog item styling issue

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

 app/views/layouts/angular/_ansible_form_options_angular.html.haml | 9 +-
 1 file changed, 6 insertions(+), 3 deletions(-)

Comment 5 CFME Bot 2018-10-18 22:06:34 UTC
New commit detected on ManageIQ/manageiq-ui-classic/hammer:

https://github.com/ManageIQ/manageiq-ui-classic/commit/01924a92f02aa98cf6c6f5e114658f356d70f56f
commit 01924a92f02aa98cf6c6f5e114658f356d70f56f
Author:     Harpreet Kataria <hkataria>
AuthorDate: Thu Oct 18 16:49:50 2018 -0400
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu Oct 18 16:49:50 2018 -0400

    Merge pull request #4794 from epwinchell/1640608

     Fix Ansible Playbook 'New Catalog Item' styling issue

    (cherry picked from commit dc8e7d0638b007a0e7c74b2d7cb5f8563d6c18bd)

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

 app/views/layouts/angular/_ansible_form_options_angular.html.haml | 9 +-
 1 file changed, 6 insertions(+), 3 deletions(-)

Comment 6 Angelina Vasileva 2018-10-29 11:26:00 UTC
Verified in 5.10.0.21.20181023151612_4c11b0d:

When typing something in one field, the other is required.
Fields stay at the same place.