-
Notifications
You must be signed in to change notification settings - Fork 897
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
Update service template API #14068
Update service template API #14068
Conversation
how different are the update payloads without and with this PR ? I think previous release service_templates edit was basic stuff, name/description which should still valid with this PR. |
@abellotti the payloads now take in the |
Ahh ok, no need to bump version then. However, I'm trying to just edit name (no config_info in update payload), and I'm getting the following:
Maybe there needs to be a fix to the update_catalog_item() method ? Could you also add a test that exercises above failure ? i.e. just update name. Thanks |
@abellotti ah well now that you mention that, I guess there is more to it 😳 - the |
@abellotti LMK what you think about this update. We can keep it so that it uses the super class unless |
Thanks for adding a test for update with just name attribute. While this works, it might be better if update_catalog_item() could handle both cases. Could you see what it would take to update that method ? i.e. maybe only call update_service_resources and update_resource_actions only if config_info is present. |
@bzwei would appreciate your input here - should the API allow for updating of |
I don't have personal preference. Our current backend code would require it. If we make If from common API practice any field is optional and missing field means do not update, then yes, |
@abellotti going to check for |
update service template to return the reload
Checked commit jntullo@200ff70 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
This PR updates the way update on a service template works.
Previously, it was using the generic method, but it requires the
update_catalog_item
method added in #13811 with the same format required increate
and returned viashow
:@abellotti since update was already implemented, I am not sure if this is considered a breaking change that requires a version bump.
@miq-bot add_label enhancement, api
@miq-bot assign @abellotti