-
Notifications
You must be signed in to change notification settings - Fork 125
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 payload validity attributes to configuration_scripts #710
Add payload validity attributes to configuration_scripts #710
Conversation
Add columns to store if the payload of a configuration_script is valid or not, and if not what the error is to help the user fix their scripts.
@@ -0,0 +1,6 @@ | |||
class AddValidToConfigurationScripts < ActiveRecord::Migration[6.1] | |||
def change | |||
add_column :configuration_scripts, :payload_valid, :boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set a default of true (or in Ruby use default_value_for)? Reason I'm asking is that ansible playbooks will be seen as "nil" valid, which is falsey in Ruby, so .payload_valid?
will return false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Checked commits agrare/manageiq-schema@def35ca~...bf65b56 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint |
Moving this to yes? until the parent PR is ready. |
Add columns to store if the payload of a configuration_script is valid or not, and if not what the error is to help the user fix their scripts.