|
@@ -129,7 +129,8 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
|
|
|
'17', '18', '19', '20', '23', // all yarn
|
|
|
'21', // storm
|
|
|
'22', // flume
|
|
|
- '24' // hawq
|
|
|
+ '24', // hawq
|
|
|
+ '25' // pxf
|
|
|
]; // all in order
|
|
|
var hiddenFull = [
|
|
|
['15', 'Region In Transition']
|
|
@@ -180,6 +181,12 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
|
|
|
visibleFull = visibleFull.without(item);
|
|
|
}, this);
|
|
|
}
|
|
|
+ if (this.get('pxf_model') == null) {
|
|
|
+ var pxf = ['25'];
|
|
|
+ pxf.forEach(function (item) {
|
|
|
+ visibleFull = visibleFull.without(item);
|
|
|
+ }, this);
|
|
|
+ }
|
|
|
var obj = this.get('initPrefObject');
|
|
|
obj.set('visible', visibleFull);
|
|
|
obj.set('hidden', hiddenFull);
|
|
@@ -201,6 +208,8 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
|
|
|
|
|
|
hawq_model: null,
|
|
|
|
|
|
+ pxf_model: null,
|
|
|
+
|
|
|
/**
|
|
|
* List of visible widgets
|
|
|
* @type {Ember.Enumerable}
|
|
@@ -395,7 +404,8 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
|
|
|
yarn_model: ['17', '18', '19', '20', '23'],
|
|
|
storm_model: ['21'],
|
|
|
flume_model: ['22'],
|
|
|
- hawq_model: ['24']
|
|
|
+ hawq_model: ['24'],
|
|
|
+ pxf_model: ['25']
|
|
|
};
|
|
|
|
|
|
// check each service, find out the newly added service and already deleted service
|
|
@@ -463,7 +473,8 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
|
|
|
'21': App.SuperVisorUpView,
|
|
|
'22': App.FlumeAgentUpView,
|
|
|
'23': App.YARNLinksView,
|
|
|
- '24': App.HawqSegmentUpView
|
|
|
+ '24': App.HawqSegmentUpView,
|
|
|
+ '25': App.PxfUpView
|
|
|
}, id);
|
|
|
},
|
|
|
|
|
@@ -480,7 +491,7 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
|
|
|
visible: [],
|
|
|
hidden: [],
|
|
|
threshold: {1: [80, 90], 2: [85, 95], 3: [90, 95], 4: [80, 90], 5: [1000, 3000], 6: [], 7: [], 8: [], 9: [], 10: [], 11: [], 12: [], 13: [70, 90], 14: [150, 250], 15: [3, 10], 16: [],
|
|
|
- 17: [70, 90], 18: [], 19: [50, 75], 20: [50, 75], 21: [85, 95], 22: [85, 95], 23: [], 24: [75, 90]} // id:[thresh1, thresh2]
|
|
|
+ 17: [70, 90], 18: [], 19: [50, 75], 20: [50, 75], 21: [85, 95], 22: [85, 95], 23: [], 24: [75, 90], 25: [75, 90]} // id:[thresh1, thresh2]
|
|
|
}),
|
|
|
|
|
|
/**
|