Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 0ed0eeb49 -> e606c9f95


AMBARI-12921. SQLA: DB host field for Hive service is blank after cluster 
installation. (jaimin)


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

Branch: refs/heads/branch-2.1
Commit: e606c9f9578b6abccc7f303127ab0d546b3c5a71
Parents: 0ed0eeb
Author: Jaimin Jetly <[email protected]>
Authored: Fri Aug 28 15:00:42 2015 -0700
Committer: Jaimin Jetly <[email protected]>
Committed: Fri Aug 28 15:00:42 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/views/common/controls_view.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e606c9f9/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 d61c367..92d49c8 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -440,6 +440,14 @@ App.ServiceConfigRadioButtons = 
Ember.View.extend(App.ServiceConfigCalculateId,
   },
 
   /**
+   * Radio buttons that are not DB options and should not trigger any observer 
or change any other property's value
+   * Ranger service -> "Authentication method" property is an example for non 
DB related radio button
+   */
+  nonDBRadioButtons: function() {
+    return this.get('dontUseHandleDbConnection').without('DB_FLAVOR');
+  }.property('dontUseHandleDbConnection'),
+
+  /**
    * properties with these names don'use handleDBConnectionProperty method
    */
   dontUseHandleDbConnection: function () {
@@ -496,8 +504,7 @@ App.ServiceConfigRadioButtons = 
Ember.View.extend(App.ServiceConfigCalculateId,
   }.property('serviceConfig.serviceName', 'serviceConfig.value'),
 
   onOptionsChange: function () {
-    // The following if condition will be satisfied only for installer wizard 
flow
-    if (this.get('hostNameProperty')) {
+    if (this.get('hostNameProperty') && 
!this.get('nonDBRadioButtons').contains(this.get('serviceConfig.name'))) {
       /** if new db is selected host name must be same as master of selected 
service (and can't be changed)**/
       if (this.get('isNewDb')) {
         var initProperty = this.get('hostNameProperty.recommendedValue') || 
this.get('hostNameProperty.savedValue');

Reply via email to