-
Notifications
You must be signed in to change notification settings - Fork 898
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
Set value of static text box to default when default exists #17631
Set value of static text box to default when default exists #17631
Conversation
Travis failure looks to be unrelated. |
@miq-bot add_label bug |
@miq-bot assign @gmcculloug |
@miq-bot add_label gaprindashvili/yes |
@miq-bot add_label blocker |
@d-m-u Tests? |
081f35c
to
0198f83
Compare
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.
Just thinking about why this change is necessary?
The #automate_output_value
method is meant to be called after the automate method has been called, so when the automate method ends up setting the default_value
, that seems like the wrong thing to be setting. It's a text box, the default_value
and value
should just be the same thing for dynamic ones. If it were static, a default_value
makes sense.
So to me it seems like this is either fixing a problem where the configuration of the automate method needs to change, or we have a different problem that I'm misinterpreting.
I was thinking of the #extract_dynamic_values
method in my above "rant", but still talking it through, we need some other way to determine whether or not to simply use the default_value. If we blindly use default_value
if it exists, if they've changed the text box from the default, they won't see the results they want.
@@ -337,6 +337,10 @@ | |||
described_class.new(:value => "12test", :data_type => data_type, :protected => protected_attr) | |||
end | |||
|
|||
let(:dialog_field_with_default_value) 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.
I know this is pedantic but can you move this into the context that uses it?
0198f83
to
f348c2f
Compare
f348c2f
to
0a705d3
Compare
Checked commit d-m-u@0a705d3 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Still think the Travis failure is unrelated. |
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.
Looks fine to me now, not sure why travis is failing?
…t_value Set value of static text box to default when default exists (cherry picked from commit 71f88fa) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1591425
Gaprindashvili backport details:
|
's for this idiocy: https://bugzilla.redhat.com/show_bug.cgi?id=1576107
If the value is blank and the field is static, the value should be set to the default if the default exists. 😭