mirror of
https://github.com/apache/superset.git
synced 2026-06-04 07:09:22 +00:00
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:
@@ -19,7 +19,7 @@
|
||||
import cx from 'classnames';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { exportChart } from '../../../explore/exploreUtils';
|
||||
import { exploreChart, exportChart } from '../../../explore/exploreUtils';
|
||||
import SliceHeader from '../SliceHeader';
|
||||
import ChartContainer from '../../../chart/ChartContainer';
|
||||
import MissingChart from '../MissingChart';
|
||||
@@ -191,7 +191,7 @@ class Chart extends React.Component {
|
||||
slice_id: this.props.slice.slice_id,
|
||||
is_cached: this.props.isCached,
|
||||
});
|
||||
exportChart(this.props.formData);
|
||||
exploreChart(this.props.formData);
|
||||
}
|
||||
|
||||
exportCSV() {
|
||||
@@ -199,7 +199,11 @@ class Chart extends React.Component {
|
||||
slice_id: this.props.slice.slice_id,
|
||||
is_cached: this.props.isCached,
|
||||
});
|
||||
exportChart(this.props.formData, 'csv');
|
||||
exportChart({
|
||||
formData: this.props.formData,
|
||||
resultType: 'results',
|
||||
resultFormat: 'csv',
|
||||
});
|
||||
}
|
||||
|
||||
forceRefresh() {
|
||||
|
||||
Reference in New Issue
Block a user