[ https://issues.apache.org/jira/browse/AMBARI-20290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhangxiaolu updated AMBARI-20290: --------------------------------- Description: drawWidget: function () { if (this.get('isLoaded')) { var hostToValueMap = this.calculateValues(); var hostNames = []; if (this.get('racks').everyProperty('isLoaded', true)) { this.get('racks').forEach(function (rack) { hostNames = hostNames.concat(rack.hosts.mapProperty('hostName')); }); } var metricObject = App.MainChartHeatmapMetric.create({ name: this.get('content.displayName'), units: this.get('content.properties.display_unit'), maximumValue: this.get('controller.inputMaximum'), hostNames: hostNames, hostToValueMap: hostToValueMap }); this.set('controller.selectedMetric', metricObject); App.loadTimer.finish('Heatmaps Page'); App.loadTimer.finish('Service Heatmaps Page'); } }.observes('racks.@each.isLoaded'), as loaded like top: this.get('content.displayName') is always null was: drawWidget: function () { if (this.get('isLoaded')) { var hostToValueMap = this.calculateValues(); var hostNames = []; if (this.get('racks').everyProperty('isLoaded', true)) { this.get('racks').forEach(function (rack) { hostNames = hostNames.concat(rack.hosts.mapProperty('hostName')); }); } var metricObject = App.MainChartHeatmapMetric.create({ name: this.get('content.displayName'), units: this.get('content.properties.display_unit'), maximumValue: this.get('controller.inputMaximum'), hostNames: hostNames, hostToValueMap: hostToValueMap }); this.set('controller.selectedMetric', metricObject); App.loadTimer.finish('Heatmaps Page'); App.loadTimer.finish('Service Heatmaps Page'); } }.observes('racks.@each.isLoaded'), > null in heapmap page > -------------------- > > Key: AMBARI-20290 > URL: https://issues.apache.org/jira/browse/AMBARI-20290 > Project: Ambari > Issue Type: Bug > Affects Versions: trunk > Reporter: zhangxiaolu > Fix For: trunk > > > drawWidget: function () { > if (this.get('isLoaded')) { > var hostToValueMap = this.calculateValues(); > var hostNames = []; > if (this.get('racks').everyProperty('isLoaded', true)) { > this.get('racks').forEach(function (rack) { > hostNames = hostNames.concat(rack.hosts.mapProperty('hostName')); > }); > } > var metricObject = App.MainChartHeatmapMetric.create({ > name: this.get('content.displayName'), > units: this.get('content.properties.display_unit'), > maximumValue: this.get('controller.inputMaximum'), > hostNames: hostNames, > hostToValueMap: hostToValueMap > }); > this.set('controller.selectedMetric', metricObject); > App.loadTimer.finish('Heatmaps Page'); > App.loadTimer.finish('Service Heatmaps Page'); > } > }.observes('racks.@each.isLoaded'), > as loaded like top: > this.get('content.displayName') is always null -- This message was sent by Atlassian JIRA (v6.3.15#6346)