You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2014/06/12 01:01:51 UTC
git commit: AMBARI-6094. Strange behavior of 'Quick links' menu on
HBase service page after adding second HBase master.(xiwang)
Repository: ambari
Updated Branches:
refs/heads/trunk f7a78f0e0 -> 6998f9530
AMBARI-6094. Strange behavior of 'Quick links' menu on HBase service page after adding second HBase master.(xiwang)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6998f953
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6998f953
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6998f953
Branch: refs/heads/trunk
Commit: 6998f95307a57130c33a7a36ee9b5b39477f2b2a
Parents: f7a78f0
Author: Xi Wang <xi...@apache.org>
Authored: Wed Jun 11 15:52:07 2014 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Wed Jun 11 16:00:50 2014 -0700
----------------------------------------------------------------------
ambari-web/app/views/common/quick_view_link_view.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/6998f953/ambari-web/app/views/common/quick_view_link_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/quick_view_link_view.js b/ambari-web/app/views/common/quick_view_link_view.js
index b1ffa07..dec05c3 100644
--- a/ambari-web/app/views/common/quick_view_link_view.js
+++ b/ambari-web/app/views/common/quick_view_link_view.js
@@ -88,7 +88,7 @@ App.QuickViewLinks = Em.View.extend({
data: {
clusterName: App.get('clusterName'),
masterComponents: App.StackServiceComponent.find().filterProperty('isMaster', true).mapProperty('componentName').join(','),
- urlParams: ',host_components/component/metrics/hbase/master/IsActiveMaster'
+ urlParams: ',host_components/metrics/hbase/master/IsActiveMaster'
},
success: 'setQuickLinksSuccessCallback'
});
@@ -141,13 +141,13 @@ App.QuickViewLinks = Em.View.extend({
var activeMaster, standbyMasters, otherMasters;
if (App.supports.multipleHBaseMasters) {
activeMaster = masterComponents.filter(function (item) {
- return item.host_components.mapProperty('component')[0].mapProperty('metrics.hbase.master.IsActiveMaster').contains('true');
+ return item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('true');
});
standbyMasters = masterComponents.filter(function (item) {
- return item.host_components.mapProperty('component')[0].mapProperty('metrics.hbase.master.IsActiveMaster').contains('false');
+ return item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('false');
});
otherMasters = masterComponents.filter(function (item) {
- return item.host_components.mapProperty('component')[0].mapProperty('metrics.hbase.master.IsActiveMaster').contains(undefined);
+ return !(item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('true') || item.host_components.mapProperty('metrics.hbase.master.IsActiveMaster').contains('false')) ;
});
}
if (masterComponents) {
@@ -231,8 +231,8 @@ App.QuickViewLinks = Em.View.extend({
}
quickLinksArray.push(quickLinks);
}, this);
-
this.set('quickLinksArray', quickLinksArray);
+ this.set('isLoaded', true);
}
},