ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject incubator-ignite git commit: IGNITE-843: Fixed case when no caches.
Date Mon, 20 Jul 2015 12:17:15 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 064ea503e -> fffdbdbf7


IGNITE-843: Fixed case when no caches.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/fffdbdbf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/fffdbdbf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/fffdbdbf

Branch: refs/heads/ignite-843
Commit: fffdbdbf7e14f783ccb2d3ee92ce41f07e832b95
Parents: 064ea50
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Mon Jul 20 19:17:07 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Mon Jul 20 19:17:07 2015 +0700

----------------------------------------------------------------------
 .../web-control-center/nodejs/controllers/clusters-controller.js   | 2 +-
 modules/web-control-center/nodejs/routes/generator/common.js       | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/fffdbdbf/modules/web-control-center/nodejs/controllers/clusters-controller.js
----------------------------------------------------------------------
diff --git a/modules/web-control-center/nodejs/controllers/clusters-controller.js b/modules/web-control-center/nodejs/controllers/clusters-controller.js
index 8a5dc45..36f783a 100644
--- a/modules/web-control-center/nodejs/controllers/clusters-controller.js
+++ b/modules/web-control-center/nodejs/controllers/clusters-controller.js
@@ -195,7 +195,7 @@ controlCenterModule.controller('clustersController', ['$scope', '$http',
'$commo
 
         // Check cluster logical consistency.
         function validate(item) {
-            if (!item.swapSpaceSpi || !item.swapSpaceSpi.kind) {
+            if (!item.swapSpaceSpi || !item.swapSpaceSpi.kind && item.caches) {
                 for (var i = 0; i < item.caches.length; i++) {
                     var idx = $scope.indexOfCache(item.caches[i]);
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/fffdbdbf/modules/web-control-center/nodejs/routes/generator/common.js
----------------------------------------------------------------------
diff --git a/modules/web-control-center/nodejs/routes/generator/common.js b/modules/web-control-center/nodejs/routes/generator/common.js
index ed65d6b..dcbf156 100644
--- a/modules/web-control-center/nodejs/routes/generator/common.js
+++ b/modules/web-control-center/nodejs/routes/generator/common.js
@@ -272,7 +272,6 @@ exports.generateProperties = function (cluster) {
     var datasources = [];
 
     if (cluster.caches && cluster.caches.length > 0) {
-
         _.forEach(cluster.caches, function (cache) {
             if (cache.cacheStoreFactory && cache.cacheStoreFactory.kind) {
                 var storeFactory = cache.cacheStoreFactory[cache.cacheStoreFactory.kind];


Mime
View raw message