IGNITE-6463 Web Console: Fixed output of big numbers in SQL query results.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/35589a77 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/35589a77 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/35589a77 Branch: refs/heads/ignite-5937 Commit: 35589a776a33285c212ddb7e0d51982cb61ce338 Parents: 79d94cf Author: Alexey Kuznetsov <akuznet...@apache.org> Authored: Sat Oct 7 00:11:37 2017 +0700 Committer: Alexey Kuznetsov <akuznet...@apache.org> Committed: Sat Oct 7 00:11:37 2017 +0700 ---------------------------------------------------------------------- modules/web-console/backend/package.json | 4 +++- .../frontend/app/modules/agent/decompress.worker.js | 3 ++- modules/web-console/frontend/package.json | 7 +++++-- 3 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/35589a77/modules/web-console/backend/package.json ---------------------------------------------------------------------- diff --git a/modules/web-console/backend/package.json b/modules/web-console/backend/package.json index 837f41c..07af45f 100644 --- a/modules/web-console/backend/package.json +++ b/modules/web-console/backend/package.json @@ -17,7 +17,9 @@ } ], "license": "Apache-2.0", - "keywords": "grid", + "keywords": [ + "Apache Ignite Web console" + ], "homepage": "https://ignite.apache.org/", "engines": { "npm": "^3.x.x", http://git-wip-us.apache.org/repos/asf/ignite/blob/35589a77/modules/web-console/frontend/app/modules/agent/decompress.worker.js ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/app/modules/agent/decompress.worker.js b/modules/web-console/frontend/app/modules/agent/decompress.worker.js index d8e176d..2fd294d 100644 --- a/modules/web-console/frontend/app/modules/agent/decompress.worker.js +++ b/modules/web-console/frontend/app/modules/agent/decompress.worker.js @@ -17,6 +17,7 @@ import _ from 'lodash'; import pako from 'pako'; +import bigIntJSON from 'json-bigint'; /** This worker decode & decompress BASE64/Zipped data and parse to JSON. */ // eslint-disable-next-line no-undef @@ -27,7 +28,7 @@ onmessage = function(e) { const unzipped = pako.inflate(binaryString, {to: 'string'}); - const res = JSON.parse(unzipped); + const res = bigIntJSON({storeAsString: true}).parse(unzipped); postMessage(_.get(res, 'result', res)); }; http://git-wip-us.apache.org/repos/asf/ignite/blob/35589a77/modules/web-console/frontend/package.json ---------------------------------------------------------------------- diff --git a/modules/web-console/frontend/package.json b/modules/web-console/frontend/package.json index 2083640..82c3eea 100644 --- a/modules/web-console/frontend/package.json +++ b/modules/web-console/frontend/package.json @@ -18,7 +18,9 @@ } ], "license": "Apache-2.0", - "keywords": "grid", + "keywords": [ + "Apache Ignite Web console" + ], "homepage": "https://ignite.apache.org/", "engines": { "npm": "3.x.x", @@ -47,7 +49,7 @@ "angular-touch": "1.5.11", "angular-translate": "2.15.2", "angular-tree-control": "0.2.28", - "angular-ui-grid": "4.0.6", + "angular-ui-grid": "4.0.7", "@uirouter/angularjs": "1.0.5", "babel-core": "6.25.0", "babel-eslint": "7.2.3", @@ -76,6 +78,7 @@ "html-webpack-plugin": "2.29.0", "jquery": "3.2.1", "json-loader": "0.5.7", + "json-bigint": "0.2.3", "jszip": "3.1.4", "lodash": "4.17.4", "node-sass": "4.5.3",