-
Notifications
You must be signed in to change notification settings - Fork 357
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
Fix oVirt metrics DB name validation #1379
Fix oVirt metrics DB name validation #1379
Conversation
Currently the 'Database name' field of the 'C & U Database' tab of the authentication for is always mandatory. In addition the presence check is done using the 'required' attribute. The result of that is that the provider can't be edited unless that field is filled, even if the metrics aren't enabled, and the fact that the validation failed isn't explicitly shown in the 'C & U Database' tab header. To fix these issues this patch changes the form to use 'ng-required' instead of 'required', and to make the field mandatory only when the host name is not empty. https://bugzilla.redhat.com/1451301
Checked commit https://github.com/jhernand/manageiq-ui-classic/commit/944f4960d09549afbed0bea45d2238adf97a64aa with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Looks good to me. |
@martinpovolny can you please review? |
@miq-bot add_label fine/yes |
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.
LGTM
looks good |
…dation Fix oVirt metrics DB name validation (cherry picked from commit 76f80da) https://bugzilla.redhat.com/show_bug.cgi?id=1460002
Fine backport details:
|
Currently the 'Database name' field of the 'C & U Database' tab of the
authentication form is always mandatory. In addition the presence check
is done using the 'required' attribute. The result of that is that the
provider can't be edited unless that field is filled, even if the
metrics aren't enabled, and the fact that the validation failed isn't
explicitly shown in the 'C & U Database' tab header. To fix these issues
this patch changes the form to use 'ng-required' instead of 'required',
and to make the field mandatory only when the host name is not empty.
https://bugzilla.redhat.com/1451301