YUKI Hiroshi
null+****@clear*****
Fri Sep 23 12:57:46 JST 2016
YUKI Hiroshi 2016-09-23 12:57:46 +0900 (Fri, 23 Sep 2016) New Revision: e6e2364cb67e863a4f2c09955c35a179818b55f4 https://github.com/groonga/groonga-admin/commit/e6e2364cb67e863a4f2c09955c35a179818b55f4 Message: Do only one schema command request Modified files: app/scripts/services/schema-loader.js Modified: app/scripts/services/schema-loader.js (+1 -5) =================================================================== --- app/scripts/services/schema-loader.js 2016-09-23 12:36:57 +0900 (df371b9) +++ app/scripts/services/schema-loader.js 2016-09-23 12:57:46 +0900 (5382a03) @@ -252,13 +252,10 @@ angular.module('groongaAdminApp') .success(function(response) { schema.tables = buildTables(response); - var fetchColumnsTasks = []; angular.forEach(schema.tables, function(table) { - fetchColumnsTasks.push(fetchColumns(table)); + table.columns = buildColumns(response.tables()[table.name]); }); - return $q.all(fetchColumnsTasks) - .then(function() { resolveIndexes(schema); fetched = true; fetching = false; @@ -267,7 +264,6 @@ angular.module('groongaAdminApp') }); waitingDeferes = []; return schema; - }); }); } -------------- next part -------------- HTML����������������������������... Download