You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2015/10/30 11:25:35 UTC

[1/2] ambari git commit: AMBARI-13654 Ranger DB host should be left empty by default. (ababiichuk)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 314cbf989 -> 837710b43


AMBARI-13654 Ranger DB host should be left empty by default. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/837710b4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/837710b4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/837710b4

Branch: refs/heads/branch-2.1
Commit: 837710b436f7be3a8adb90767c28f353ffc40124
Parents: 27b1fac
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Fri Oct 30 12:24:51 2015 +0200
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Fri Oct 30 12:25:31 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/utils/configs/config_property_helper.js | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/837710b4/ambari-web/app/utils/configs/config_property_helper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/configs/config_property_helper.js b/ambari-web/app/utils/configs/config_property_helper.js
index d3f0bd5..0477434 100644
--- a/ambari-web/app/utils/configs/config_property_helper.js
+++ b/ambari-web/app/utils/configs/config_property_helper.js
@@ -215,13 +215,6 @@ module.exports = {
           configProperty.set('isRequired', 'false');
         }
         break;
-      case 'db_host':
-        var masterComponent =  masterComponentHostsInDB.findProperty('component', 'RANGER_ADMIN');
-        if (masterComponent) {
-          configProperty.set('value', masterComponent.hostName);
-          configProperty.set('recommendedValue', masterComponent.hostName);
-        }
-        break;
     }
   },
 


[2/2] ambari git commit: AMBARI-13653 Ranger authentication method when updated via recommendation API doe not change the related accordion. (ababiichuk)

Posted by ab...@apache.org.
AMBARI-13653 Ranger authentication method when updated via recommendation API doe not change the related accordion. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/27b1fac3
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/27b1fac3
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/27b1fac3

Branch: refs/heads/branch-2.1
Commit: 27b1fac337376eb0b88b46c3fb6e9673a5eaadff
Parents: 314cbf9
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Fri Oct 30 12:18:42 2015 +0200
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Fri Oct 30 12:25:31 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/controls_view.js | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/27b1fac3/ambari-web/app/views/common/controls_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/controls_view.js b/ambari-web/app/views/common/controls_view.js
index 46df3b4..2a4666d 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -775,13 +775,9 @@ App.ServiceConfigRadioButton = Ember.Checkbox.extend(App.SupportsDependentConfig
     if (this.get('clicked')) {
       this.sendRequestRorDependentConfigs(this.get('parentView.serviceConfig'));
       Em.run.next(this, function() {
-        console.debug('App.ServiceConfigRadioButton.onChecked');
         this.set('parentView.serviceConfig.value', this.get('value'));
-        var components = this.get('parentView.serviceConfig.options');
-        if (components && components.someProperty('foreignKeys')) {
-          this.get('controller.stepConfigs').findProperty('serviceName', this.get('parentView.serviceConfig.serviceName')).propertyDidChange('errorCount');
-        }
         this.set('clicked', false);
+        this.updateForeignKeys();
       });
     }
   }.observes('checked'),
@@ -789,9 +785,18 @@ App.ServiceConfigRadioButton = Ember.Checkbox.extend(App.SupportsDependentConfig
   updateCheck: function() {
     if (!this.get('clicked')) {
       this.set('checked', this.get('parentView.serviceConfig.value') === this.get('value'));
+      this.updateForeignKeys();
     }
   }.observes('parentView.serviceConfig.value'),
 
+  updateForeignKeys: function() {
+    var components = this.get('parentView.serviceConfig.options');
+    if (components && components.someProperty('foreignKeys')) {
+      this.get('controller.stepConfigs').findProperty('serviceName', this.get('parentView.serviceConfig.serviceName')).propertyDidChange('errorCount');
+    }
+  },
+
+
   disabled: function () {
     return !this.get('parentView.serviceConfig.isEditable') ||
       !['addServiceController', 'installerController'].contains(this.get('controller.wizardController.name')) && /^New\s\w+\sDatabase$/.test(this.get('value'));