Hide Forgot
Description of problem: On create app from image, create route page and edit routes page, there is no way to hide the options after expand them by "Show options for secured routes" Version-Release number of selected component (if applicable): openshift v1.4.0-alpha.0+c728fe9(latest origin-web-console, latest commit is 03b49b4, manually vendored) kubernetes v1.4.0+776c994 etcd 3.1.0-alpha.1 How reproducible: Always Steps to Reproduce: 1. Create a project and go to Applications -> Routes -> Create Route page 2. Check and click the link "Show options for secured routes" 3. Go back to project -> "Add to Project" -> select a app such as "php:56" 4. Expand the options by "Show advanced routing, build, and deployment options" 5. Check and click the "Show options for secured routes" Actual results: 2. After clicked the link, there is no way to hide options for secured routes 5. Same as above Expected results: 2. After clicked the link, there should be a link "Hide options for secured routes" 5. Same as above Additional info:
What if there is a validation error for a field that's hidden? What if I make a change in advanced options, then hide the options. Will my change be saved or reset? I feel like there are a lot of potential usability problems with a hide advanced options link.
Just for a reference, please try directly the step3 and step4, here is hidden options by "Show advanced routing, build, and deployment options". Does it make senses for your concern? HDYT? Error message highlights the field as soon as user input the invalid value. (eg. invalid value for routing hostname) Then ignore it and hide the options, the field will reset to empty. If there is a change in hidden options (gave a valid hostname for routing), hide it, the value shall be the same when it expand again.
(In reply to XiaochuanWang from comment #2) > Error message highlights the field as soon as user input the invalid value. > (eg. invalid value for routing hostname) > Then ignore it and hide the options, the field will reset to empty. As a user, I definitely wouldn't expect the field to be cleared. It seems bad to let the user type something, close the section, and click "Save" without it being saved... If you edit a route with SSL enabled, we expand the advanced section on load so you can see what you're editing and saving. The section is only ever collapsed if the route doesn't have SSL.
@Jessica, maybe we should have a "secure route" checkbox rather than advanced link. If it's checked, show the additional route termination fields. If not, hide them.
https://github.com/openshift/origin-web-console/pull/708
origin bug, moving to ON_QA
Using "Secure route" check box for more options, this is verified on: OpenShift Master: v3.6.0-alpha.1+6acabdc-1064 Kubernetes Master: v1.6.1+5115d708d7