This is an automated email from the ASF dual-hosted git repository.
ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 14e8bcd AMBARI-24114 Ranger server password checks are not performed
during Cluster Install Wizard. (ababiichuk)
14e8bcd is described below
commit 14e8bcd5d7c8bfb2c5568372a2af5ff763b61af4
Author: ababiichuk <[email protected]>
AuthorDate: Fri Jun 15 16:59:27 2018 +0300
AMBARI-24114 Ranger server password checks are not performed during Cluster
Install Wizard. (ababiichuk)
---
.../app/controllers/wizard/step7_controller.js | 24 +++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/controllers/wizard/step7_controller.js
b/ambari-web/app/controllers/wizard/step7_controller.js
index 70c8c03..204d4be 100644
--- a/ambari-web/app/controllers/wizard/step7_controller.js
+++ b/ambari-web/app/controllers/wizard/step7_controller.js
@@ -1900,6 +1900,7 @@ App.WizardStep7Controller =
Em.Controller.extend(App.ServerValidatorMixin, App.E
isActive: false,
isDisabled: false,
isSkipped: false,
+ validateOnSwitch: false,
tabView: App.CredentialsTabOnStep7View
}),
Em.Object.create({
@@ -1909,6 +1910,7 @@ App.WizardStep7Controller =
Em.Controller.extend(App.ServerValidatorMixin, App.E
isActive: false,
isDisabled: false,
isSkipped: false,
+ validateOnSwitch: false,
tabView: App.DatabasesTabOnStep7View
}),
Em.Object.create({
@@ -1918,6 +1920,7 @@ App.WizardStep7Controller =
Em.Controller.extend(App.ServerValidatorMixin, App.E
isActive: false,
isDisabled: false,
isSkipped: false,
+ validateOnSwitch: false,
selectedServiceName: null,
tabView: App.DirectoriesTabOnStep7View
}),
@@ -1928,6 +1931,7 @@ App.WizardStep7Controller =
Em.Controller.extend(App.ServerValidatorMixin, App.E
isActive: false,
isDisabled: false,
isSkipped: false,
+ validateOnSwitch: false,
tabView: App.AccountsTabOnStep7View
}),
Em.Object.create({
@@ -1937,6 +1941,7 @@ App.WizardStep7Controller =
Em.Controller.extend(App.ServerValidatorMixin, App.E
isActive: false,
isDisabled: false,
isSkipped: false,
+ validateOnSwitch: true,
selectedServiceName: null,
tabView: App.ServicesConfigView
})
@@ -2117,6 +2122,23 @@ App.WizardStep7Controller =
Em.Controller.extend(App.ServerValidatorMixin, App.E
updateConfigAttributesFromThemes: function () {
this.get('allSelectedServiceNames').forEach(serviceName =>
this.updateAttributesFromTheme(serviceName));
- }
+ },
+
+ validateOnTabSwitch: function () {
+ const activeTab = this.get('tabs')[this.get('currentTabIndex')];
+ if (activeTab && activeTab.get('validateOnSwitch')) {
+ if (this.get('requestTimer')) {
+ clearTimeout(this.get('requestTimer'));
+ }
+ if (this.get('validationRequest')) {
+ this.get('validationRequest').abort();
+ }
+ if (this.get('recommendationsInProgress')) {
+ this.valueObserver();
+ } else {
+ this.runServerSideValidation().done(() =>
this.set('validationRequest', null));
+ }
+ }
+ }.observes('currentTabIndex')
});
--
To stop receiving notification emails like this one, please contact
[email protected].