-
Notifications
You must be signed in to change notification settings - Fork 143
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
Extend the existing provider creation with DDF support #723
Conversation
@skateman first thing on Monday |
@skateman I am having an issue with submitting a zone:
I am also getting this error in the amazon provider plugin when doing the options query (not on master only with Adams PR):
Maybe I am missing some other dependency? |
No, I guess the zone field needs a |
Umm, no ... you need the name of the zone, not the ID. See here https://github.com/ManageIQ/manageiq-providers-amazon/pull/580/files#diff-235184baadf210fc9a4d037d8ffa1c37R179 |
Also make sure you're loading Adam's PR mentioned above |
What? Using the name instead of ID? I guess I can try it.
I am using all the PRs mentioned |
Okay, try it. The autoloading error is real, I sent it over to Adam. But he's on PTO this week. |
452d1de
to
ab545b2
Compare
@Hyperkid123 I made some changes, if you send the zone as a string, it goes further. I guess we need the list of the regions in that dropdown to send a correct one, because that's where it's failing now... |
@skateman the regions currently are using the same values as in the original code. We can change that easily. |
218faf1
to
6aee237
Compare
After some hacking around in the UI, I was able to create a form that uses this as an endpoint and successfully created a provider, so this is good to go @lpichler I even added tests to make you happy 😉 |
@miq-bot add_label enhancement |
6aee237
to
2d5606d
Compare
2d5606d
to
4139a83
Compare
Checked commit skateman@4139a83 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@agrare created a new method on the amazon provider that creates a new record from the data submitted from a DDF. In order to keep backwards compatibility and also have the fancy
POST /api/providers
for creation, I added a test for addf
attribute. If this attribute is set, the new creation method will be called and if not, the legacy one is executed. So it is necessary to pass addf: true
attribute with the submitted values.Parent issue: ManageIQ/manageiq#18818
@miq-bot assign @martinpovolny
cc @Hyperkid123 can you test it together with ManageIQ/manageiq-providers-amazon#580 in your code?