You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2017/11/15 14:48:22 UTC

ignite git commit: IGNITE-4394 Web Console: Select only server nodes for local queries on Queries screen.

Repository: ignite
Updated Branches:
  refs/heads/master fa52789d7 -> 63b628da4


IGNITE-4394 Web Console: Select only server nodes for local queries on Queries screen.


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

Branch: refs/heads/master
Commit: 63b628da4863ec79ddca211958fb32abc07f9c7d
Parents: fa52789
Author: alexdel <ve...@yandex.ru>
Authored: Wed Nov 15 21:48:15 2017 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Wed Nov 15 21:48:15 2017 +0700

----------------------------------------------------------------------
 modules/web-console/frontend/app/modules/sql/sql.controller.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/63b628da/modules/web-console/frontend/app/modules/sql/sql.controller.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/sql/sql.controller.js b/modules/web-console/frontend/app/modules/sql/sql.controller.js
index b4c8a6f..f5edb04 100644
--- a/modules/web-console/frontend/app/modules/sql/sql.controller.js
+++ b/modules/web-console/frontend/app/modules/sql/sql.controller.js
@@ -871,7 +871,8 @@ export default ['$rootScope', '$scope', '$http', '$q', '$timeout', '$interval',
                                 ip: _.head(node.attributes['org.apache.ignite.ips'].split(', ')),
                                 version: node.attributes['org.apache.ignite.build.ver'],
                                 gridName: node.attributes['org.apache.ignite.ignite.name'],
-                                os: `${node.attributes['os.name']} ${node.attributes['os.arch']} ${node.attributes['os.version']}`
+                                os: `${node.attributes['os.name']} ${node.attributes['os.arch']} ${node.attributes['os.version']}`,
+                                client: node.attributes['org.apache.ignite.cache.client']
                             });
                         });
 
@@ -1338,7 +1339,7 @@ export default ['$rootScope', '$scope', '$http', '$q', '$timeout', '$interval',
             if (_.isEmpty(name))
                 return Promise.resolve(null);
 
-            const nodes = cacheNodes(name);
+            const nodes = _.filter(cacheNodes(name), (node) => !node.client);
 
             if (local) {
                 return Nodes.selectNode(nodes, name)