mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
feat(streaming): Streaming CSV uploads for over 100k records for constant memory usage (#35478)
This commit is contained in:
@@ -40,6 +40,7 @@ import ReportModal from 'src/features/reports/ReportModal';
|
||||
import { deleteActiveReport } from 'src/features/reports/ReportModal/actions';
|
||||
import { useUnsavedChangesPrompt } from 'src/hooks/useUnsavedChangesPrompt';
|
||||
import { getChartFormDiffs } from 'src/utils/getChartFormDiffs';
|
||||
import { StreamingExportModal } from 'src/components/StreamingExportModal';
|
||||
import { useExploreAdditionalActionsMenu } from '../useExploreAdditionalActionsMenu';
|
||||
import { useExploreMetadataBar } from './useExploreMetadataBar';
|
||||
|
||||
@@ -173,7 +174,7 @@ export const ExploreChartHeader = ({
|
||||
[redirectSQLLab, history],
|
||||
);
|
||||
|
||||
const [menu, isDropdownVisible, setIsDropdownVisible] =
|
||||
const [menu, isDropdownVisible, setIsDropdownVisible, streamingExportState] =
|
||||
useExploreAdditionalActionsMenu(
|
||||
latestQueryFormData,
|
||||
canDownload,
|
||||
@@ -346,6 +347,14 @@ export const ExploreChartHeader = ({
|
||||
onConfirmNavigation={handleConfirmNavigation}
|
||||
handleSave={handleSaveAndCloseModal}
|
||||
/>
|
||||
|
||||
<StreamingExportModal
|
||||
visible={streamingExportState.isVisible}
|
||||
onCancel={streamingExportState.onCancel}
|
||||
onRetry={streamingExportState.onRetry}
|
||||
onDownload={streamingExportState.onDownload}
|
||||
progress={streamingExportState.progress}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user