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

Change the criteria for a required field of ContainerTemplateServiceDialog. #15469

Merged

Conversation

lfu
Copy link
Member

@lfu lfu commented Jun 28, 2017

When a container template parameter is required but with auto-generated option, it is not a required service dialog field.

In other words, the dialog field is considered as required only if the container template parameter is required without auto-generated option.

@miq-bot assign @gmcculloug
@miq-bot add_label services, enhancement, providers/containers
cc @bzwei

@@ -74,7 +74,7 @@ def add_parameter_field(param, group, position)
:name => "param_#{param.name}",
:data_type => "string",
:display => "edit",
:required => param.required,
:required => param.required && param.generate.nil?,
Copy link
Member

Choose a reason for hiding this comment

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

@lfu Overall this looks good. Just wondering if param.gererate could ever be an empty string. Suggest using param.generate.blank? unless you know or it is documented to always be nil in this case.

…ialog.

When a container template parameter is required but with auto-generated option, it is not a required service dialog field.
@lfu lfu force-pushed the required_field_container_service_dialog branch from bb4d59b to 1d8a461 Compare June 29, 2017 14:59
@lfu
Copy link
Member Author

lfu commented Jun 29, 2017

@gmcculloug Updated.

@miq-bot
Copy link
Member

miq-bot commented Jun 29, 2017

Checked commit lfu@1d8a461 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@gmcculloug gmcculloug merged commit ce47a5f into ManageIQ:master Jun 29, 2017
@gmcculloug gmcculloug added this to the Sprint 64 Ending Jul 3, 2017 milestone Jun 29, 2017
@lfu lfu deleted the required_field_container_service_dialog branch October 16, 2017 20:14
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