diff --git a/x-pack/plugins/ml/public/application/services/forecast_service_provider.ts b/x-pack/plugins/ml/public/application/services/forecast_service_provider.ts index f7cc7382e7cca1..c776a79a6f4751 100644 --- a/x-pack/plugins/ml/public/application/services/forecast_service_provider.ts +++ b/x-pack/plugins/ml/public/application/services/forecast_service_provider.ts @@ -19,6 +19,9 @@ export interface AggType { min: string; } +// TODO Consolidate with legacy code in +// `x-pack/plugins/ml/public/application/services/forecast_service.js` and +// `x-pack/plugins/ml/public/application/services/forecast_service.d.ts`. export function forecastServiceProvider(mlApiServices: MlApiServices) { return { // Gets a basic summary of the most recently run forecasts for the specified diff --git a/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/time_series_search_service.ts b/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/time_series_search_service.ts index bd17989ce8eb8b..ef090083e0b90b 100644 --- a/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/time_series_search_service.ts +++ b/x-pack/plugins/ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/time_series_search_service.ts @@ -19,8 +19,8 @@ import { isModelPlotEnabled, } from '../../../../common/util/job_utils'; -// Note: This is a duplicated of `timeseries_search_service.ts` updated to move away from dependency cache. -// The original file will be removed once all references are replaced with references to this file. +// TODO Consolidate with legacy code in +// `x-pack/plugins/ml/public/application/timeseriesexplorer/timeseries_search_service.ts` export function timeSeriesSearchServiceFactory( mlResultsService: MlResultsService, mlApiServices: MlApiServices diff --git a/x-pack/plugins/ml/public/application/util/index_service.ts b/x-pack/plugins/ml/public/application/util/index_service.ts index 85906a351cf73d..f4b6a1fc13d774 100644 --- a/x-pack/plugins/ml/public/application/util/index_service.ts +++ b/x-pack/plugins/ml/public/application/util/index_service.ts @@ -8,6 +8,7 @@ import type { DataView, DataViewsContract } from '@kbn/data-views-plugin/public'; import type { Job } from '../../../common/types/anomaly_detection_jobs'; +// TODO Consolidate with legacy code in `ml/public/application/util/index_utils.ts`. export function indexServiceFactory(dataViewsService: DataViewsContract) { return { /** diff --git a/x-pack/plugins/ml/public/application/util/time_buckets_service.ts b/x-pack/plugins/ml/public/application/util/time_buckets_service.ts index bccce147854bd7..480f279a603b10 100644 --- a/x-pack/plugins/ml/public/application/util/time_buckets_service.ts +++ b/x-pack/plugins/ml/public/application/util/time_buckets_service.ts @@ -12,6 +12,7 @@ import moment from 'moment'; import { type TimeRangeBounds, type TimeBucketsInterval, TimeBuckets } from './time_buckets'; import { useMlKibana } from '../contexts/kibana'; +// TODO Consolidate with legacy code in `ml/public/application/util/time_buckets.js`. export function timeBucketsServiceFactory(uiSettings: IUiSettingsClient) { function getTimeBuckets(): InstanceType { return new TimeBuckets({ diff --git a/x-pack/plugins/ml/public/application/util/time_series_explorer_service.ts b/x-pack/plugins/ml/public/application/util/time_series_explorer_service.ts index 0f3872b42baa8e..4af8d98093cbdd 100644 --- a/x-pack/plugins/ml/public/application/util/time_series_explorer_service.ts +++ b/x-pack/plugins/ml/public/application/util/time_series_explorer_service.ts @@ -40,6 +40,8 @@ import { forecastServiceProvider } from '../services/forecast_service_provider'; import { timeSeriesSearchServiceFactory } from '../timeseriesexplorer/timeseriesexplorer_utils/time_series_search_service'; import { useMlKibana } from '../contexts/kibana'; +// TODO Consolidate with legacy code in +// `ml/public/application/timeseriesexplorer/timeseriesexplorer_utils/timeseriesexplorer_utils.js`. export function timeSeriesExplorerServiceFactory( uiSettings: IUiSettingsClient, mlApiServices: MlApiServices,