Bug 1533818

Summary: Route creating settings can not get to the weight percentage bar again after switch to integers editing input boxes
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, jokerman, mmccomas, spadgett
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: No option was provided to enable the service weight percentage slider after the "edit weights as integers" option was selected on the "Create Route" page. Consequence: Once editing service weights as integers, the user could not switch back to using the percentage slider. Fix: Added a button which allows the user to re-enable the percentage slider, as long as there is only one alternate service. Result: User can now switch back and forth between editing service weights as integers or a percentage slider.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-29 12:46:39 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 2018-01-12 10:01:24 UTC
Description of problem:
Create 2 services and from Route page create a new route, check on "Split traffic across multiple services" the percentage weight bar shows, but after clicked "edit weights as integers." it can not to switch back to weight bar 

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

How reproducible:
Always

Steps to Reproduce:
1. Create 2 services for a project
2. Go to Route page and create a new route, check on "Split traffic across multiple services" for route settings
3. Click "edit weights as integers." and try to switch back to the percentage weight bar 

Actual results:
2. The percentage weight bar shows which is correct
3. There is no way to find the percentage weight bar back

Expected results:
3. There should be a link button to switch back to the percentage weight bar 

Additional info:

Comment 1 Jon Jackson 2018-01-24 14:40:15 UTC
See PR https://github.com/openshift/origin-web-console/pull/2656

Comment 2 openshift-github-bot 2018-01-26 00:21:13 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/2f87aedc9e617e3b41bf953f90e2863abd1f4e44
Merge pull request #2656 from TheRealJon/bug-1533818

Automatic merge from submit-queue.

Add link to re-enable percentage slider when editing service weights on the create route page

A link now appears next to the alternate service action links to re-enable the slider once it is disabled. Fixes [Bugzilla Bug 1533818](https://bugzilla.redhat.com/show_bug.cgi?id=1533818)

![screenshot-localhost-9000-2018-01-12-17-31-45-372](https://user-images.githubusercontent.com/22625502/34897938-8ec75762-f7be-11e7-813f-0b6fb2946b71.png)

Comment 4 XiaochuanWang 2018-01-29 03:35:49 UTC
Verified on:
OpenShift Master:         v3.9.0-0.31.0
OpenShift Web Console:    v3.9.0-0.31.0.0 

The "Edit Weights Using Percentage Slider" works for balancing weight of services.