From e010e438b2c80a29b5eb1687cbec633a911e48c3 Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Tue, 2 May 2023 19:42:26 +0000 Subject: [PATCH] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../ml_inference/text_expansion_callout_logic.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout_logic.ts b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout_logic.ts index 488d0b9aae9e3..dda1be828ee0a 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/text_expansion_callout_logic.ts @@ -5,11 +5,13 @@ * 2.0. */ -import { i18n } from '@kbn/i18n'; import { kea, MakeLogicType } from 'kea'; +import { i18n } from '@kbn/i18n'; + import { HttpError, Status } from '../../../../../../../common/types/api'; import { MlModelDeploymentState } from '../../../../../../../common/types/ml'; +import { getErrorsFromHttpResponse } from '../../../../../shared/flash_messages/handle_api_errors'; import { CreateTextExpansionModelApiLogic, CreateTextExpansionModelApiLogicActions, @@ -24,7 +26,6 @@ import { StartTextExpansionModelApiLogic, StartTextExpansionModelApiLogicActions, } from '../../../../api/ml_models/text_expansion/start_text_expansion_model_api_logic'; -import { getErrorsFromHttpResponse } from '../../../../../shared/flash_messages/handle_api_errors'; const FETCH_TEXT_EXPANSION_MODEL_POLLING_DURATION = 5000; // 5 seconds const FETCH_TEXT_EXPANSION_MODEL_POLLING_DURATION_ON_FAILURE = 30000; // 30 seconds @@ -66,9 +67,9 @@ export interface TextExpansionCalloutValues { /** * Extracts the topmost error in precedence order (create > start > fetch). - * @param createError - * @param fetchError - * @param startError + * @param createError + * @param fetchError + * @param startError * @returns the extracted error or null if there is no error */ export const getTextExpansionError = (