Bug 1434064

Summary: All Endpoints' [Validate] buttons disabled/enabled according to main endpoint fields
Product: Red Hat CloudForms Management Engine Reporter: Beni Paskin-Cherniavsky <cben>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Stefanisin <jistefan>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, hkataria, jhardy, jistefan, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.0.7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1434096 1434848 (view as bug list) Environment:
Last Closed: 2017-06-12 17:30:14 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: 1434096, 1434848    

Description Beni Paskin-Cherniavsky 2017-03-20 16:29:06 UTC
Description of problem:
When adding/editing provider or host with several Endpoints,
each Endpoint has a [Validate] button that should become disabled or enabled according to this Endpoint's fields.

Version-Release number of selected component (if applicable):
Problem appeared in Since https://github.com/ManageIQ/manageiq-ui-classic/pull/68, backported to euwe and darga.
Fixes just got merged on master, bug still happens on euwe and darga.

How reproducible: always

Steps to Reproduce:

1. Compute -> Containers -> Providers -> Configuration -> Add new / Edit
2. Fill all common fields and Default endpoint fields.
   Expected results: Default's [Validate] turns blue,
                     Hawkular's [Validate] should remain disabled grey.
   Actual results: Both Default & Hawkular are blue.
3. Fill all Hawkular fields, clear Default port.
   (note: do not clear Default token — it's also needed by Hawkular)
   Expected results: Default's [Validate] turns disabled grey,
                     Hawkular's [Validate] should become blue.
   Actual results: Both Default & Hawkular are grey.

Same with other multi-endpoint providers e.g. RHV.
Same with Hosts:

1. Compute -> Infrastructure -> Hosts/Nodes -> Configuration -> Add new / Edit Host
2. Fill common fields & Default Username.
   Expected: only Default [Validate] blue, Actual: all 4 blue.
3. Clear Default Username, fill other 3 Usernames
   Expected: Default [Validate] grey, other 3 blue, Actual: all 4 grey.

Additional info:
controller's changeAuthTab() was not getting called, so validation function always checked Default fields.
https://github.com/ManageIQ/manageiq-ui-classic/pull/706 fixes this.

master also required https://github.com/ManageIQ/manageiq-ui-classic/pull/713 fixing another bug making Hawkular [Validate] always disabled.
darga & euwe don't need this fix, 706 is enough.

So master just got fixed, but this needs 5.6, 5.7 clones to backport.