You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ra...@apache.org on 2017/02/28 12:08:57 UTC

[1/2] git commit: updated refs/heads/master to 61ce75e

Repository: cloudstack
Updated Branches:
  refs/heads/master 559fc612d -> 61ce75e90


CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/36abc63b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/36abc63b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/36abc63b

Branch: refs/heads/master
Commit: 36abc63b91cce72d1bee96eea630252c348f2450
Parents: 9d8eebf
Author: Nitesh Sarda <ni...@accelerite.com>
Authored: Tue Feb 14 21:29:21 2017 +0530
Committer: Nitesh Sarda <ni...@accelerite.com>
Committed: Tue Feb 14 21:29:21 2017 +0530

----------------------------------------------------------------------
 ui/scripts/system.js | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/36abc63b/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 369dfbf..c3aa787 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -17228,9 +17228,16 @@
                                                     }
                                                 },
                                                 dataProvider: function (args) {
-                                                    var items = gpugroupObj.vgpu.sort(function(a, b) {
-                                                        return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
-                                                    });
+                                                    var items;
+
+                                                    if(typeof(gpugroupObj.vgpu) != "undefined") {
+                                                        items = gpugroupObj.vgpu.sort(function(a, b) {
+                                                            return a.maxvgpuperpgpu >= b.maxvgpuperpgpu;
+                                                        });
+                                                    }
+                                                    else {
+                                                        items = gpugroupObj.vgpu;
+                                                    }
                                                     $(items).each(function () {
                                                         this.maxresolution = (this.maxresolutionx == null || this.maxresolutionx == 0
                                                                 || this.maxresolutiony == null || this.maxresolutiony == 0)


[2/2] git commit: updated refs/heads/master to 61ce75e

Posted by ra...@apache.org.
Merge pull request #1942 from Accelerite/CS-50422

CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.ISSUE
==================

When GPU tab of the host is selected on the management server UI, no GPU detail is displayed.

RESOLUTION
==================

In the javascript file "system.js" while fetching the GPU details, sort functionality in dataprovider is returning value as undefined and hence it throwing an exception. So handled the output as undefined gracefully to avoid exception.

**Screenshot before applying fix :**

![screenshot before applying fix](https://cloud.githubusercontent.com/assets/25146827/23017606/f63fe470-f460-11e6-8d26-553e98bb0664.PNG)

**Screenshot after applying fix :**

![screenshot after applying fix](https://cloud.githubusercontent.com/assets/25146827/23017627/07d5a8b4-f461-11e6-814e-3c27b1bbda41.PNG)

* pr/1942:
  CLOUDSTACK-9784 : GPU detail not displayed in GPU tab of management server UI.

Signed-off-by: Rajani Karuturi <ra...@accelerite.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/61ce75e9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/61ce75e9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/61ce75e9

Branch: refs/heads/master
Commit: 61ce75e901a9d319284dced0d304c7ecc7559f45
Parents: 559fc61 36abc63
Author: Rajani Karuturi <ra...@accelerite.com>
Authored: Tue Feb 28 17:38:25 2017 +0530
Committer: Rajani Karuturi <ra...@accelerite.com>
Committed: Tue Feb 28 17:38:25 2017 +0530

----------------------------------------------------------------------
 ui/scripts/system.js | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/61ce75e9/ui/scripts/system.js
----------------------------------------------------------------------