-
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
Project 'nameTaken' not being set properly in controllers #1955
Comments
Should be resolved similar to createSecret, or deployImage |
Just tested the different areas. deployImage, processTemplate, and fromFile throw a toast notification when a project name is already taken: orderService and createFromBuilder shows an inline error message, this should probably be changed to throw a toast instead. The So I don't think we need the
I think initially this component was relying on parent controllers to indicate whether the project name was taken, but IMO, what needs to be done for this issue is:
@spadgett, does this seem reasonable? -thanks |
@dtaylor113 I think the biggest usability issue is entering a bunch of information into one of these forms and then seeing error on the results page with no way to recover. It's particularly a problem for environments like online that have thousands of projects and you can't know what's already used. I'd like to try to fix at least that aspect of this issue for 3.7. cc @jwforres |
I do like that name taken highlights the specific field in error and forces you to change that before resubmitting the form. |
So for deployImage, processTemplate, and fromFile which do the toast notification you never leave the wizard page, so the form is still filled in and available. We need to switch orderService and createFromBuilder to use the toast notifications in the same way. |
Hi @spadgett, I think we need to decide if we need both a toast notification and an form validation error. Currently, it only throws a toast notification for 'projNameTaken' error is returned from server, and it only shows the form invalid for osc-unique. And should I/we be hiding the help text if there is an error? |
We should not be toasting this error, we should be using the form
validation.
…On Wed, Nov 1, 2017 at 11:02 AM, David Taylor ***@***.***> wrote:
Hi @spadgett <https://github.com/spadgett>, I think we need to decide if
we need both a toast notification and an form validation error. Currently,
it only throws a toast notification for 'projNameTaken' error is returned
from server, and it only shows the form invalid for osc-unique.
I've wired up deployImage for when it gets a 'projNameTaken' from server
to do both the existing toast notification, and through proper use of the
<select-project>'s name-taken attribute, the form now also gets the form
invalid look...but do we need both?
[image: image]
<https://user-images.githubusercontent.com/12733153/32279644-c118f3ae-beef-11e7-922c-e6738842685b.png>
And should I/we be hiding the help text if there is an error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1955 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZk7QoE9roeeykFgfKICwI2Dbe796UFks5syIgWgaJpZM4O9cvc>
.
|
@jwforres, ok that's easy enough change. NotificationService has a 'skipToast' attribute. I'm trying to find an example in the code but do you happen to know what the standard is for these errors? Do we hide the help text when error? Seems strange to have the help text shown in red, seems like we should just show the error msg. -thanks |
@dtaylor113 the request failure shouldn't go to NotificationService at all when we get this particular error code back The help text and the error text need to be in separate nodes, the help text should maintain is normal color. Like in this example from build-config.html |
So we don't want 'project name already exists' failures recorded in the Notification Drawer? |
Doesn't make sense to me in this context. We don't let you continue, and we
don't create anything else. We give you the error inline in the form.
…On Nov 1, 2017 12:41 PM, "David Taylor" ***@***.***> wrote:
So we don't want 'project name already exists' failures recorded in the
Notification Drawer?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1955 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZk7QIM9jAyNTg2lcZ1aYbMNNY_ub3qks5syJ9QgaJpZM4O9cvc>
.
|
Fix for CreateFromBuilder and OrderService wizards up in Catalog PR: openshift/origin-web-catalog#550. |
Automatic merge from submit-queue. Bump origin-web-catalog to 0.0.64 https://github.com/openshift/origin-web-catalog/releases/tag/v0.0.64 Partial fix for #1955 /kind bug /assign @dtaylor113 @jwforres
Automatic merge from submit-queue. Correct ProjectNameTaken error handling in various add-to-projects wizards Updated deployImage, processTemplate, and fromFile wizards. Fixes #1955 
HTML files for process-template, from-file, and deploy-image all have:
<select-project ... name-taken="$ctrl.projectNameTaken"></select-project>
However, the corresponding controllers do not set the variable
projectNameTaken
, which should be set from a failure from the server after attempting to create a project which already has the name.Some comments from @spadgett:
"Normal users can't see all projects in the cluster, so you don't have a complete list of project names (used by
osc-unique
). We still need to handle errors from the server creating the project because the name is already in use by someone else."https://github.com/openshift/origin-web-console/search?utf8=%E2%9C%93&q=name-taken&type=
This is also true for
order-service-controller
in origin-web-catalog.The text was updated successfully, but these errors were encountered: