Skip to content
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

Edit Authentications API #14319

Merged
merged 3 commits into from
Mar 16, 2017
Merged

Edit Authentications API #14319

merged 3 commits into from
Mar 16, 2017

Conversation

jntullo
Copy link

@jntullo jntullo commented Mar 14, 2017

Edit authentications using update_in_provider_queue(params)

Dependent on #14305
@miq-bot add_label enhancement, api, wip
@miq-bot assign @abellotti

@jntullo jntullo changed the title [WIP] Edit Authentications API Edit Authentications API Mar 14, 2017
@jntullo
Copy link
Author

jntullo commented Mar 14, 2017

@miq-bot remove_label wip

@miq-bot miq-bot removed the wip label Mar 14, 2017
def edit_resource(type, id, data)
auth = resource_search(id, type, collection_class(:authentications))
task_id = auth.update_in_provider_queue(data)
action_result(true, "Updating Authentication with id #{id}", :task_id => task_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I don't think we've ever had edits return action results. I'll need to test the api client gem.

task_id = auth.update_in_provider_queue(data)
action_result(true, "Updating Authentication with id #{id}", :task_id => task_id)
rescue => err
raise "Could not update Authentication - #{err}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same idea for bulks, if edits for authentications return action result, so are the failures. Thanks.

@miq-bot
Copy link
Member

miq-bot commented Mar 16, 2017

This pull request is not mergeable. Please rebase and repush.

@miq-bot
Copy link
Member

miq-bot commented Mar 16, 2017

Checked commits jntullo/manageiq@aed46b5~...7197086 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 👍

@abellotti
Copy link
Member

Thanks @jntullo for the enhancement !! 😍

@abellotti abellotti merged commit 6cb8ae3 into ManageIQ:master Mar 16, 2017
@abellotti abellotti added this to the Sprint 57 Ending Mar 27, 2017 milestone Mar 16, 2017
@jntullo jntullo deleted the enhancement/update_authentication branch November 28, 2017 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants