feat: finalize Word Cloud move to new chart data endpoint (#9975)

* remove word cloud from viz.py

* Fix Run in SQL Lab

* remove deprecated python tests

* break out legacy endpoint type into function

* Break out exploreChart from exportChart and implement results type

* Fix jest tests and refactor accordingly

* lint

* Rename v1 payload function

* Add dashboard id to v1 chart data request url params

* Add support for domain sharding to v1 chart data request
This commit is contained in:
Ville Brofeldt
2020-06-05 14:08:46 +03:00
committed by GitHub
parent 619fbc9557
commit 5c4d4f16b3
15 changed files with 177 additions and 198 deletions

View File

@@ -77,7 +77,7 @@ class ExploreCtasResultsButton extends React.PureComponent {
);
// open new window for data visualization
exportChart(formData);
exportChart({ formData });
})
.catch(() => {
this.props.actions.addDangerToast(

View File

@@ -27,7 +27,7 @@ import { t } from '@superset-ui/translation';
import { InfoTooltipWithTrigger } from '@superset-ui/control-utils';
import shortid from 'shortid';
import { exportChart } from '../../explore/exploreUtils';
import { exploreChart } from '../../explore/exploreUtils';
import * as actions from '../actions/sqlLab';
import Button from '../../components/Button';
@@ -150,7 +150,7 @@ class ExploreResultsButton extends React.PureComponent {
);
// open new window for data visualization
exportChart(formData);
exploreChart(formData);
})
.catch(() => {
this.props.actions.addDangerToast(