@@ -304,9 +304,6 @@ export const ForecasterDetail = (props: ForecasterDetailProps) => {
304304
305305 // Reset forecast point selection
306306 setForecastFrom ( undefined ) ;
307-
308- // debugging msg
309- console . log ( 'Chart state reset after forecaster operation' ) ;
310307 } ;
311308
312309 const handleStartTest = async ( ) => {
@@ -417,8 +414,6 @@ export const ForecasterDetail = (props: ForecasterDetailProps) => {
417414 ? 60000 // 1 minute for INITIALIZING_FORECAST
418415 : 1000 ; // 1 second for other states
419416
420- console . log ( `Setting polling interval to ${ pollingInterval } ms for state: ${ forecaster . curState } ` ) ;
421-
422417 const intervalId = setInterval ( ( ) => {
423418 dispatch ( getForecaster ( forecasterId , dataSourceId ) ) ;
424419 } , pollingInterval ) ;
@@ -441,9 +436,7 @@ export const ForecasterDetail = (props: ForecasterDetailProps) => {
441436
442437 // Set up polling interval
443438 const intervalId = setInterval ( ( ) => {
444- console . log ( 'forecaster.forecastInterval.period.interval' , forecaster . forecastInterval . period . interval ) ;
445439 dispatch ( getForecaster ( forecasterId , dataSourceId ) ) ;
446- console . log ( 'checkLatestResults' ) ;
447440 checkLatestResults ( ) ;
448441 } , forecaster . forecastInterval . period . interval * 60000 ) ; // 60000ms = 1 minute
449442
@@ -498,7 +491,6 @@ export const ForecasterDetail = (props: ForecasterDetailProps) => {
498491 // Convert the new date range to epoch for comparison
499492 const { startDate : newStartEpoch } = convertToEpochRange ( newDateRange ) ;
500493
501- console . log ( 'newStartEpoch' , newStartEpoch , earliestAllowedTime , lastUiBreakingTime ) ;
502494 // Check if the start date is earlier than allowed
503495 if ( lastUiBreakingTime > 0 && newStartEpoch < earliestAllowedTime ) {
504496 if ( ! initialFetchExecutedRef . current ) {
@@ -594,7 +586,6 @@ export const ForecasterDetail = (props: ForecasterDetailProps) => {
594586 while ( isTest && currentRetry < maxRetries &&
595587 ( currentRetry === 0 || ( rawResults . length - prevResultsCount ) >= MIN_NEW_RESULTS_THRESHOLD ) ) {
596588 currentRetry ++ ;
597- console . log ( `Retry attempt ${ currentRetry } /${ maxRetries } , previous results: ${ prevResultsCount } , current results: ${ rawResults . length } , delta: ${ rawResults . length - prevResultsCount } ` ) ;
598589
599590 // Wait for the current delay
600591 await new Promise ( resolve => setTimeout ( resolve , currentDelay ) ) ;
@@ -677,11 +668,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
677668 isResultsLoadingRef . current = true ;
678669 setIsResultsLoading ( true ) ;
679670
680- console . log ( 'fetchForecasterResults call' , {
681- source,
682- callTime : new Date ( ) . toISOString ( )
683- } ) ;
684-
685671 try {
686672 if ( ! forecaster ) {
687673 console . warn ( 'No forecaster available' ) ;
@@ -702,8 +688,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
702688 const active = isActiveState ( forecaster ?. curState ) ;
703689 const testComplete = forecaster ?. curState === FORECASTER_STATE . TEST_COMPLETE && forecaster ?. taskId !== '' ;
704690
705- console . log ( 'currentDateRange' , currentDateRange , startEpoch , endEpoch , active , testComplete , forecaster ?. curState ) ;
706-
707691 // Early return if conditions aren't met
708692 if ( ! active && ! testComplete ) {
709693 console . log ( 'Skipping fetch: forecaster not active or test not complete' ) ;
@@ -735,7 +719,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
735719 throw new Error ( 'No forecast data end time found in response' ) ;
736720 }
737721 const params = buildVisualizationParams ( forecaster , effectiveOptions , maxPlotTime , maxEntities ) ;
738- console . log ( 'params' , params ) ;
739722
740723 const topResultsResponse = await dispatch (
741724 getTopForecastResults ( forecaster . id , dataSourceId , ! active , params )
@@ -766,8 +749,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
766749 selectedEntityList
767750 ) ;
768751
769- console . log ( 'requestParams' , requestParams ) ;
770-
771752 // Choose the correct id and test flag based on the forecaster state
772753 const id = active ? forecasterId : forecaster . taskId ;
773754 const isTest = ! active ;
@@ -789,8 +770,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
789770 forecaster . resultIndex || ''
790771 ) ;
791772
792- console . log ( 'rawForecastResults' , rawForecastResults ) ;
793-
794773 // Update state with the new forecast results
795774 setAtomicForecastResults ( rawForecastResults ) ;
796775
@@ -823,8 +802,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
823802
824803 // Only fetch if we detect the specific transition
825804 if ( isCompletingTest ) {
826- console . log ( 'Test completed - fetching results' ) ;
827-
828805 fetchForecasterResults ( { source : "useEffect - test complete" } ) ;
829806 }
830807
@@ -837,8 +814,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
837814 // Only proceed if forecaster is loaded and curState is defined
838815 if ( ! forecaster || forecaster . curState === undefined ) return ;
839816
840- console . log ( 'Forecaster available with state' , forecaster . id , forecaster . curState ) ;
841-
842817 // If this is the first time we've seen the forecaster and we haven't fetched yet
843818 if ( ! initialFetchExecutedRef . current ) {
844819 // Fetch results directly
@@ -851,8 +826,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
851826
852827 // Keep the dateRange effect, but make it only respond to out of range changes
853828 useEffect ( ( ) => {
854- console . log ( 'User changed dateRange' , dateRange , initialFetchExecutedRef . current ) ;
855-
856829 // Skip if we haven't done the initial fetch yet
857830 if ( ! initialFetchExecutedRef . current ) {
858831 // Just update the ref and return
@@ -902,7 +875,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
902875 // Now we know this is a user-initiated change that requires new data
903876 dateRangeRef . current = dateRange ;
904877 if ( forecaster ) {
905- console . log ( 'Fetching new data for date range change' ) ;
906878 fetchForecasterResults ( { source : "useEffect - date range change" } ) ;
907879 }
908880 } , [ dateRange ] ) ;
@@ -1162,7 +1134,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
11621134 validateForecaster ( validationForecaster , 'model' , dataSourceId )
11631135 )
11641136 . then ( ( resp : any ) => {
1165- console . log ( 'validateForecaster resp' , resp ) ;
11661137 if ( isEmpty ( Object . keys ( resp . response ) ) ) {
11671138 setValidForecasterSettings ( true ) ;
11681139 setValidModelConfigurations ( true ) ;
@@ -1339,7 +1310,6 @@ const [visualizationOptions, setVisualizationOptions] = useState<VisualizationOp
13391310 // get all index mappings based on forecaster's selected index
13401311 useEffect ( ( ) => {
13411312 if ( forecaster ) {
1342- console . log ( 'setIsHCForecaster from forecaster check' , Date . now ( ) ) ;
13431313 if ( get ( forecaster , 'categoryField' , [ ] ) . length > 0 ) {
13441314 setIsHCForecaster ( true ) ;
13451315 } else {
0 commit comments