Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1411266

Summary: Save button is disabled when single command is removed from command editor
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-09 14:13:06 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:

Description XiaochuanWang 2017-01-09 10:01:35 UTC
Description of problem:
After successfully added multiple independent commands, remove one command but the Save button is disabled. The button is only enabled when user removed multiple independent commands.

Version-Release number of selected component (if applicable):
openshift v3.4.0.39

How reproducible:
Always

Steps to Reproduce:
1. oc run dc --image=aosqe/hello-openshift
2. From web console, go to dc edit page "https://xxx:8443/console/project/myproject/edit/dc/dc".
Click "advanced strategy options." and add 2 commands "echo test 1" and "echo test 2" in Pre Lifecycle Hook, hit "Add" in the right of the input box and hit "Save"
3. Go to dc edit page again, click "advanced strategy options."
Remove one command and check "Save" button
4. Remove another command and check "Save" button

Actual results:
Step 3. Save button is disabled.
Step 4. Save button is enabled.

Expected results:
Step 3. Save button should be enabled.

Additional info:
After user edited one command in step 3, the Save button is enabled, then user removed the edited command, the button is still enabled.
This is a common issue, also reproduced in dc health check edit page.

Comment 1 Samuel Padgett 2017-01-09 14:13:06 UTC
Same underlying cause as https://bugzilla.redhat.com/show_bug.cgi?id=1411258

*** This bug has been marked as a duplicate of bug 1411258 ***