diff --git a/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx b/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx index 9479b78275..af6456e541 100644 --- a/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx +++ b/datahub-web-react/src/app/ingest/source/ExecutionRequestDetailsModal.tsx @@ -90,16 +90,10 @@ type Props = { }; export const ExecutionDetailsModal = ({ urn, visible, onClose }: Props) => { - const [showExpandedLogs, setShowExpandedLogs] = useState(true); + const [showExpandedLogs, setShowExpandedLogs] = useState(false); const { data, loading, error, refetch } = useGetIngestionExecutionRequestQuery({ variables: { urn } }); const output = data?.executionRequest?.result?.report || 'No output found.'; - useEffect(() => { - if (output.length > 100) { - setShowExpandedLogs(false); - } - }, [output, setShowExpandedLogs]); - const downloadLogs = () => { downloadFile(output, `exec-${urn}.log`); }; @@ -167,7 +161,7 @@ export const ExecutionDetailsModal = ({ urn, visible, onClose }: Props) => { -
{`${logs}${!showExpandedLogs ? '...' : ''}`}
+
{`${logs}${!showExpandedLogs && isOutputExpandable ? '...' : ''}`}
{isOutputExpandable && ( setShowExpandedLogs(!showExpandedLogs)}> {showExpandedLogs ? 'Hide' : 'Show More'} diff --git a/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx b/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx index 48a56d7dc2..be58795308 100644 --- a/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx +++ b/datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx @@ -137,6 +137,7 @@ export const IngestionSourceList = () => { } } else if (refreshInterval) { clearInterval(refreshInterval); + setRefreshInterval(null); } }, [filteredSources, refreshInterval, onRefresh]);