You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "chkang-idk2 (via GitHub)" <gi...@apache.org> on 2024/12/18 09:17:29 UTC
Re: [PR] fix(chart-table): fixed export full csv not working [superset]
chkang-idk2 commented on PR #23554:
URL: https://github.com/apache/superset/pull/23554#issuecomment-2550790669
It looks like it's working when I do this
superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
```
exportTable(format, isFullCSV) {
const logAction =
format === 'csv'
? LOG_ACTIONS_EXPORT_CSV_DASHBOARD_CHART
: LOG_ACTIONS_EXPORT_XLSX_DASHBOARD_CHART;
this.props.logEvent(logAction, {
slice_id: this.props.slice.slice_id,
is_cached: this.props.isCached,
});
exportChart({
formData: isFullCSV
// ? { ...this.props.formData, row_limit: this.props.maxRows }
? { ...this.props.formData, row_limit: this.props.maxRows, isFull:isFullCSV }
: this.props.formData,
resultType: 'full',
resultFormat: format,
force: true,
ownState: this.props.ownState,
});
}
```
superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts
```
// if (formDataCopy.server_pagination) {
if (formData?.isFull !== true && formDataCopy.server_pagination) {
console.info("server_pagination")
moreProps.row_limit =
ownState.pageSize ?? formDataCopy.server_page_length;
moreProps.row_offset =
(ownState.currentPage ?? 0) * (ownState.pageSize ?? 0);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org