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
[EmbeddedAnsible] verify_ssl field on repository #7768
[EmbeddedAnsible] verify_ssl field on repository #7768
Conversation
%input{:type => "checkbox", | ||
:name => "verify_ssl", | ||
:id => "verify_ssl", | ||
'ng-model' => "vm.repositoryModel.verify_ssl"} |
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.
Note to anyone else who might not be aware...
If you use "required" => ""
here, it will make it so that the checkbox is required to be checked...
This was not clear to be at the beginning, so I spent a few hours trying to figure out what else I had done wrong until I realized that modifier was the problem.
2b1ba53
to
332dda6
Compare
@miq-bot assign @kavyanekkalapu Just an FYI: I added on to the existing form instead of trying to wait for a DDF form conversion. We can tackle that at another time, but this gets us over the hump of enabling this feature for |
LGTM, approved. |
app/javascript/oldjs/controllers/ansible_repository/repository_form_controller.js
Outdated
Show resolved
Hide resolved
Adds `verify_ssl` checkbox for the `EmbeddedAnsible` repository form. On the backend, this actually ends up saving the field on not the `ConfigurationScriptSource`, but the associated `GitRepository` object, but that is mostly a backend concern that is not visiable on the client side.
332dda6
to
f6dd8c3
Compare
Checked commit NickLaMuro@f6dd8c3 with ruby 2.6.3, rubocop 1.13.0, haml-lint 0.35.0, and yamllint app/views/ansible_repository/_repository_form.html.haml
|
@Fryguy are you now good with this change? |
Backported to
|
…_ssl [EmbeddedAnsible] verify_ssl field on repository (cherry picked from commit 18c9e17)
Requires: ManageIQ/manageiq#21298
Adds
verify_ssl
checkbox for theEmbeddedAnsible
repository form. On the backend, this actually ends up saving the field on not theConfigurationScriptSource
, but the associatedGitRepository
object, but that is mostly a backend concern that is not visiable on the client side.Screenshots
Before
After
TODO
Merge the following:
Steps for Testing/QA
Verify SSL
is checkedsimulate_queue_worker
verify_ssl
is checkedMuch of what we want to confirm here is that the UI is properly setting and tracking the
virtual_attribute :verify_ssl
here. Hence the multiple save steps and checking that the UI properly reflects the state in the checkbox