-
Notifications
You must be signed in to change notification settings - Fork 356
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
Converted Catalog form #5139
Converted Catalog form #5139
Conversation
3c31286
to
0ba8b50
Compare
38ead6f
to
c3865b2
Compare
96c5c9c
to
97e0d96
Compare
@miq-bot add_label hammer/no, services, react, refactoring |
5f2aa37
to
7ab2c4d
Compare
7ab2c4d
to
95253b3
Compare
95253b3
to
c13a3a9
Compare
@ZitaNemeckova fixed! 👍 |
@rvsia Try to save a Catalog with a name of existing one Otherwise it works perfectly in UI 👍 |
When we show message "name has been already taken", we need to show what area of UI this message refers to. If we had more fields, the user would have no idea where the error occured. |
You mean something like focus the field for instance? |
show in the form what exact area needs to be edited or changed. Example is here |
6b58529
to
314c691
Compare
@ZitaNemeckova Great catch! Fixed the error message (@Hyperkid123 please re-re-review catch blocks 🙏 ), and I was trying to get any other error to test it, but this seems as only one which is possible to get from API. Is that right? |
@rvsia I think so. I tried every possible combination and this was only API error I got. |
@ZitaNemeckova Ok, great! Thanks! |
@terezanovotna what about async validation? Meaning instead of waiting for submit the form would check the availability of the name (or whatever) when the user is typing? |
314c691
to
dd9c62a
Compare
that sounds as an even better solution |
dd9c62a
to
98b9917
Compare
Checked commits rvsia/manageiq-ui-classic@ac2345d~...98b9917 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@martinpovolny There is an issue with errors in this form: When you add a new Catalog with used name it returns 400 error Do you know to whom address this issue? |
I think this one is good to go. @martinpovolny can we merge this one? I think all possible bugs have been taken care of. @terezanovotna Ok we will design some sane way to make this. We will do it in different PR because we want to make a global solution that can be used in future. Right now the form behaves the same way as before and we will add the async validation ASAP. |
Can you please open a manageiq-api issue, with the backtrace? |
@himdel ok! 👍 |
Description
Converts
Services > Catalogs > Catalogs > Configuration > New/Edit
to data-driven forms<hr>
component to DDRBefore
After
Checklist