-
Notifications
You must be signed in to change notification settings - Fork 358
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
Replace cloud provider forms with an API-driven DDF approach #6698
Conversation
684f66d
to
3561b5c
Compare
3561b5c
to
3faddeb
Compare
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.
So far so good. I am excited about the tests 😉
app/javascript/forms/provider-forms/cloud-provider-form/index.jsx
Outdated
Show resolved
Hide resolved
I'm sure I'm not able to write tests, so I will rely on the experts 😁 @brumik can you help me in a followup pr? |
I think so :) |
3faddeb
to
c486843
Compare
c486843
to
5667bb0
Compare
5667bb0
to
63af036
Compare
app/javascript/forms/provider-forms/cloud-provider-form/index.jsx
Outdated
Show resolved
Hide resolved
16d83e1
to
551ab3c
Compare
app/javascript/forms/provider-forms/cloud-provider-form/index.jsx
Outdated
Show resolved
Hide resolved
app/javascript/forms/provider-forms/cloud-provider-form/index.jsx
Outdated
Show resolved
Hide resolved
app/javascript/forms/provider-forms/cloud-provider-form/index.jsx
Outdated
Show resolved
Hide resolved
551ab3c
to
1a68e57
Compare
3598c6c
to
b39068f
Compare
@skateman you can use https://data-driven-forms.org/renderer/global-component-props if you want to override global props. |
That's great, but does this work on DDFv1? |
@skateman oh right sorry. No its v2 feature. I keep forgetting. |
This pull request is not mergeable. Please rebase and repush. |
b39068f
to
d8febd3
Compare
|
Fixed
I'm not entirely sure why is this necessary, the reset doesn't do a server roundtrip anymore so there's no way it would fail due to a server error.
Maybe it's possible to do it, but I'd like to take it into a separate PR and especially after we are on DDFv2. |
d8febd3
to
603a578
Compare
I feel the Save should not be allowed while credentials are being validated, that will give user an opportunity to change/fix them in case validation failed. Let's do the disabling of Save button in a separate PR I am not sure about removing the Reset flash message, we do have that in other DDF forms tho, is there a plan to remove it from all new forms? |
603a578
to
4e9d756
Compare
Okay, I'll put it there...but will create an issue about getting rid of this. |
Checked commits skateman/manageiq-ui-classic@48e04b3~...4e9d756 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint app/views/ems_cloud/edit.html.haml
app/views/ems_cloud/new.html.haml
|
Depends on: ManageIQ/manageiq-api#741 ManageIQ/manageiq-api#830
Replaces: #6402
Parent issue: ManageIQ/manageiq#18818
The following providers are already supported:
Known issues:
Schema change for determining endpoint/authentication typesNOT NECESSARY@miq-bot add_label react, enhancement, compute/cloud