From cccfb037ab97878a180b388b2204f9fb7abe33e2 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Mon, 15 Nov 2021 09:57:05 -0800 Subject: [PATCH] use full resultType with csv download on chart in dashboard (#17431) --- .../dashboard/components/gridComponents/Chart_spec.jsx | 2 +- .../src/dashboard/components/gridComponents/Chart.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/spec/javascripts/dashboard/components/gridComponents/Chart_spec.jsx b/superset-frontend/spec/javascripts/dashboard/components/gridComponents/Chart_spec.jsx index fdbd766f7607..b2acc42766e1 100644 --- a/superset-frontend/spec/javascripts/dashboard/components/gridComponents/Chart_spec.jsx +++ b/superset-frontend/spec/javascripts/dashboard/components/gridComponents/Chart_spec.jsx @@ -116,7 +116,7 @@ describe('Chart', () => { expect(stubbedExportCSV.lastCall.args[0]).toEqual( expect.objectContaining({ formData: expect.anything(), - resultType: 'results', + resultType: 'full', resultFormat: 'csv', }), ); diff --git a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx index b77df1b699f5..93c6d6ea5d6d 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx @@ -252,7 +252,7 @@ export default class Chart extends React.Component { formData: isFullCSV ? { ...this.props.formData, row_limit: this.props.maxRows } : this.props.formData, - resultType: 'results', + resultType: 'full', resultFormat: 'csv', }); }