This is an automated email from the ASF dual-hosted git repository. beto pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push: new f6fe29d feat: use new API endpoint to build CSV reports (#15830) f6fe29d is described below commit f6fe29db87424356c3f12d48406a76f813ce4366 Author: Beto Dealmeida <robe...@dealmeida.net> AuthorDate: Wed Jul 21 17:50:56 2021 -0700 feat: use new API endpoint to build CSV reports (#15830) * feat: add `GET /api/v1/chart/{chart_id}/data/?format{format}` API * feat: use new API endpoint to build CSV reports --- superset/reports/commands/execute.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset/reports/commands/execute.py b/superset/reports/commands/execute.py index cc7222e..2ce1346 100644 --- a/superset/reports/commands/execute.py +++ b/superset/reports/commands/execute.py @@ -142,9 +142,9 @@ class BaseReportState: if self._report_schedule.chart: if csv: return get_url_path( - "Superset.explore_json", - csv="true", - form_data=json.dumps({"slice_id": self._report_schedule.chart_id}), + "ChartRestApi.get_data", + pk=self._report_schedule.chart_id, + format="csv", ) return get_url_path( "Superset.slice",