Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed May 2, 2023
1 parent 3953aba commit e010e43
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit e010e43

Please sign in to comment.