Fix for #6590: Numeric values in columns sometimes returned as quoted strings (#6591)

* Fix: https://github.com/apache/incubator-superset/issues/6590, also depends on https://github.com/apache-superset/superset-ui/pull/71

* Bumped version of superset-ui-connector

* Added @babel/polyfill import

* Reset mock history before each test, not after each test

* Update CONTRIBUTING.md
This commit is contained in:
Christopher Council
2019-01-14 15:35:28 -08:00
committed by Krist Wongsuphasawat
parent f480a52074
commit 207d9529b2
8 changed files with 31 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import shortid from 'shortid';
import JSONbig from 'json-bigint';
import { t } from '@superset-ui/translation';
import { SupersetClient } from '@superset-ui/connection';
@@ -111,11 +110,9 @@ export function fetchQueryResults(query) {
return SupersetClient.get({
endpoint: `/superset/results/${query.resultsKey}/`,
parseMethod: 'text',
})
.then(({ text = '{}' }) => {
const bigIntJson = JSONbig.parse(text);
dispatch(querySuccess(query, bigIntJson));
.then(({ json = {} }) => {
dispatch(querySuccess(query, json));
})
.catch(response =>
getClientErrorObject(response).then((error) => {