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

add authentications sub collection to ConfigurationScriptPayload #14002

Merged
merged 1 commit into from
Mar 1, 2017
Merged

add authentications sub collection to ConfigurationScriptPayload #14002

merged 1 commit into from
Mar 1, 2017

Conversation

jntullo
Copy link

@jntullo jntullo commented Feb 21, 2017

This adds an authentications subcollection to ConfigurationScriptPayload as needed to return authentications available on a playbook in the UI.

cc: @h-kataria
@miq-bot add_label enhancement, api
@miq-bot assign @abellotti

@jntullo
Copy link
Author

jntullo commented Feb 27, 2017

ping @abellotti

module Subcollections
module Authentications
def authentications_query_resource(object)
object.try(:authentications) || []
Copy link
Member

Choose a reason for hiding this comment

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

would prefer:

object.respond_to?(:authentications) ? object.authentications : []

actual nil vs. [] is dealt differently in renderer. Thanks.

@miq-bot
Copy link
Member

miq-bot commented Mar 1, 2017

Checked commit jntullo@2f9b1fb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
3 files checked, 0 offenses detected
Everything looks good. ⭐

@abellotti
Copy link
Member

Thanks @jntullo for the update. This LGTM!!

@abellotti abellotti merged commit d9a0cf5 into ManageIQ:master Mar 1, 2017
@abellotti abellotti added this to the Sprint 56 Ending Mar 13, 2017 milestone Mar 1, 2017
@chrisarcand chrisarcand deleted the show_authentication branch November 28, 2017 19:28
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