[ 
https://issues.apache.org/jira/browse/AMBARI-20290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangxiaolu updated AMBARI-20290:
---------------------------------
    Attachment: screenshot-2.png

> 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
>
>         Attachments: AMBARI-20290.patch, screenshot-1.png, screenshot-2.png
>
>
>   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)

Reply via email to