ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-11015 JS error after Host configs page reload. (ababiichuk)
Date Fri, 08 May 2015 10:12:22 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 8c3d2acd4 -> f8d75a608


AMBARI-11015 JS error after Host configs page reload. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: f8d75a60870d1942d85f1ed1d3d2e393b681a7d8
Parents: 8c3d2ac
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Fri May 8 12:16:54 2015 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Fri May 8 12:16:54 2015 +0300

----------------------------------------------------------------------
 .../controllers/global/cluster_controller.js    | 34 ++++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f8d75a60/ambari-web/app/controllers/global/cluster_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/global/cluster_controller.js b/ambari-web/app/controllers/global/cluster_controller.js
index 954f155..1c064c8 100644
--- a/ambari-web/app/controllers/global/cluster_controller.js
+++ b/ambari-web/app/controllers/global/cluster_controller.js
@@ -283,24 +283,24 @@ App.ClusterController = Em.Controller.extend({
         });
 
         updater.updateServiceMetric(function () {
-          App.config.loadConfigsFromStack(App.Service.find().mapProperty('serviceName'));
-
-          updater.updateComponentConfig(function () {
-            self.updateLoadStatus('componentConfigs');
-          });
+          App.config.loadConfigsFromStack(App.Service.find().mapProperty('serviceName')).complete(function()
{
+            updater.updateComponentConfig(function () {
+              self.updateLoadStatus('componentConfigs');
+            });
 
-          updater.updateComponentsState(function () {
-            self.updateLoadStatus('componentsState');
-          });
-          self.updateLoadStatus('serviceMetrics');
-
-          updater.updateAlertGroups(function () {
-            updater.updateAlertDefinitions(function() {
-              updater.updateAlertDefinitionSummary(function () {
-                updater.updateUnhealthyAlertInstances(function () {
-                  self.updateLoadStatus('alertGroups');
-                  self.updateLoadStatus('alertDefinitions');
-                  self.updateLoadStatus('alertInstancesUnhealthy');
+            updater.updateComponentsState(function () {
+              self.updateLoadStatus('componentsState');
+            });
+            self.updateLoadStatus('serviceMetrics');
+
+            updater.updateAlertGroups(function () {
+              updater.updateAlertDefinitions(function() {
+                updater.updateAlertDefinitionSummary(function () {
+                  updater.updateUnhealthyAlertInstances(function () {
+                    self.updateLoadStatus('alertGroups');
+                    self.updateLoadStatus('alertDefinitions');
+                    self.updateLoadStatus('alertInstancesUnhealthy');
+                  });
                 });
               });
             });


Mime
View raw message