|
@@ -221,6 +221,11 @@ App.ClusterController = Em.Controller.extend({
|
|
|
self.updateLoadStatus('stackComponents');
|
|
|
updater.updateServices(function () {
|
|
|
self.updateLoadStatus('services');
|
|
|
+
|
|
|
+ //hosts should be loaded after services in order to properly populate host-component relation in App.cache.services
|
|
|
+ updater.updateHost(function () {
|
|
|
+ self.set('isHostsLoaded', true);
|
|
|
+ });
|
|
|
App.config.loadConfigsFromStack(App.Service.find().mapProperty('serviceName')).complete(function () {
|
|
|
App.config.loadClusterConfigsFromStack().complete(function () {
|
|
|
self.set('isConfigsPropertiesLoaded', true);
|
|
@@ -245,11 +250,6 @@ App.ClusterController = Em.Controller.extend({
|
|
|
//force clear filters for hosts page to load all data
|
|
|
App.db.setFilterConditions('mainHostController', null);
|
|
|
|
|
|
- // hosts loading doesn't affect overall progress
|
|
|
- updater.updateHost(function () {
|
|
|
- self.set('isHostsLoaded', true);
|
|
|
- });
|
|
|
-
|
|
|
// alerts loading doesn't affect overall progress
|
|
|
console.time('Overall alerts loading time');
|
|
|
updater.updateAlertGroups(function () {
|