ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843 Fixed load metadata indexes from database.
Date Tue, 29 Dec 2015 07:52:59 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 b1bbb239f -> f08625be0


IGNITE-843 Fixed load metadata indexes from database.


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

Branch: refs/heads/ignite-843-rc2
Commit: f08625be02ce67bdc38e79387d8388fb451adc59
Parents: b1bbb23
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Tue Dec 29 14:52:50 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Tue Dec 29 14:52:50 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/metadata-controller.js    | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f08625be/modules/control-center-web/src/main/js/controllers/metadata-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/metadata-controller.js b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
index 10a047a..c0d2f59 100644
--- a/modules/control-center-web/src/main/js/controllers/metadata-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/metadata-controller.js
@@ -649,21 +649,15 @@ consoleModule.controller('metadataController', function ($filter, $http,
$timeou
 
                         containKey &= _containKey;
 
-                        var idxs = table.idxs;
-
                         if (table.idxs) {
-                            var tblIndexes = Object.keys(idxs);
-
-                            _.forEach(tblIndexes, function (indexName) {
-                                var index = idxs[indexName];
-
-                                var fields = Object.keys(index);
+                            _.forEach(table.idxs, function (idx) {
+                                var fields = Object.keys(idx.fields);
 
                                 indexes.push(
-                                    {name: indexName, indexType: 'SORTED', fields: _.map(fields,
function (fieldName) {
+                                    {name: idx.name, indexType: 'SORTED', fields: _.map(fields,
function (fieldName) {
                                         return {
                                             name: toJavaName(fieldName),
-                                            direction: !index[fieldName]
+                                            direction: !idx.fields[fieldName]
                                         };
                                     })});
                             });


Mime
View raw message