From 89749ae2c4afb23df63f4c767f5627d2d335a5a1 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:44:58 -0600 Subject: [PATCH] [Enterprise Search] Update copy for pipeline name uniqueness (#141548) (#141717) * Update copy for pipeline name uniqueness. * Update copy Co-authored-by: Davey Holler Co-authored-by: tsclausing Co-authored-by: Davey Holler Co-authored-by: tsclausing Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 674f758d2a9f3e2ca445718bb1192edc1ac2c235) Co-authored-by: Brian McGue --- .../pipelines/ml_inference/configure_pipeline.tsx | 2 +- .../server/routes/enterprise_search/indices.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/configure_pipeline.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/configure_pipeline.tsx index da95bd6d081f4..0d8c5b7c71f1f 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/configure_pipeline.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/configure_pipeline.tsx @@ -78,7 +78,7 @@ export const ConfigurePipeline: React.FC = () => { 'xpack.enterpriseSearch.content.indices.pipelines.addInferencePipelineModal.steps.configure.name.helpText', { defaultMessage: - 'Pipeline names can only contain letters, numbers, underscores, and hyphens. The pipeline name will be automatically prefixed with "ml-inference-".', + 'Pipeline names are unique within a deployment and can only contain letters, numbers, underscores, and hyphens. The pipeline name will be automatically prefixed with "ml-inference-".', } ) } diff --git a/x-pack/plugins/enterprise_search/server/routes/enterprise_search/indices.ts b/x-pack/plugins/enterprise_search/server/routes/enterprise_search/indices.ts index d781258599b0a..fd4452ccb46af 100644 --- a/x-pack/plugins/enterprise_search/server/routes/enterprise_search/indices.ts +++ b/x-pack/plugins/enterprise_search/server/routes/enterprise_search/indices.ts @@ -368,7 +368,11 @@ export function registerIndexRoutes({ if ((error as Error).message === ErrorCode.PIPELINE_ALREADY_EXISTS) { return createError({ errorCode: (error as Error).message as ErrorCode, - message: 'Pipeline already exists', + message: ` + A pipeline with the name "${getPrefixedInferencePipelineProcessorName(pipelineName)}" + already exists. Pipelines names are unique within a deployment. Consider adding the + index name for uniqueness. + `, response, statusCode: 409, });