-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let users paste certificate values #1068
Conversation
When creating or editing a route, let users paste in the certificate values if they need to. Previously you could only upload from a file.
Working through this, a few thoughts, but probably not to hold up your PR.
|
Agree on this, although we'd have to decide how to make it look on the add to project page, which uses those heading for major sections. Maybe a smaller header?
Yeah, maybe not. Trying to decide if we should show it and keep the existing warning if a value will be removed. Maybe a stronger warning there saying the value will be removed from the route. |
@benjaminapetersen I'm glad you made these comments because it got me testing. There's some stuff broken with routes (although they're fine in our 1.4 release). Working on fixes. |
Ah, that totally makes sense if it has a value already but the type is changed so the value is no longer needed. |
@benjaminapetersen I have showing and hiding the fields working, but it feels strange. The different termination types all support different certs. It's a bit disconcerting to see things appear and disappear when changing types. Since the certs are the last thing on the page, it can cause the page to jump/scroll when removed. Thinking we should table that. |
Yeah, that works for me. Figured it was a note/discussion, but prob not holding up the PR if it makes things quirky. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On that note, LGTM!
Oh wait, just saw your comment about broken stuff with routes. Not a concern now, but will be? |
About to push an update. There's an error creating edge routes currently. Also includes some improvement to the form (section headers). |
00736c9
to
b139986
Compare
@benjaminapetersen updated, PTAL at the second commit |
* Make "Split traffic across multiple services" a checkbox like "Secure route" * Add consistent section headings for "Alernate Services" and "Security" * Fix bug where `insecureEdgeTerminationPolicy` was initialized to an invalid value, causing an error creating edge terminated routes * Fix a bug where the range slider was not properly initialized for existing values
b139986
to
7816a26
Compare
Checking it now |
Yeah I don't disagree on the a/b services usability. I think we should revisit that (although probably a follow on at this point). We changed it to use the slider very recently. |
Related PR #1053 |
Was just typing the same thing--I don't think that these observations relate to "paste cert value" so can def pull that out. I'll create an issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one nit in the code besides our discussion about the experience. Good to go!
@@ -24,7 +23,7 @@ angular.module('openshiftConsole') | |||
var dropMessageSelector = "#" + scope.dropMessageID, | |||
highlightDropZone = false, | |||
showDropZone = false, | |||
inputFileField = element.find('input[type=file]')[0]; | |||
inputFileField = element.find('input[type=file]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we could do inputFileField = element.find('input[type=file]')[0];
or inputFileField = _.first(element.find())
here & not have to repeat the [0]
a few places below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I can't because I need the jQuery object in one place :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, true, because of the .change
on 73, no worries!
thanks @benjaminapetersen ! [merge] |
Evaluated for origin web console merge up to 7816a26 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/891/) (Base Commit: ab61c6f) |
When creating or editing a route, let users paste in the certificate values if they need to. Previously you could only upload from a file.
Fixes #964