Skip to content

Commit

Permalink
[Enterprise Search] Update copy for pipeline name uniqueness (#141548) (
Browse files Browse the repository at this point in the history
#141717)

* Update copy for pipeline name uniqueness.

* Update copy

Co-authored-by: Davey Holler <[email protected]>
Co-authored-by: tsclausing <[email protected]>

Co-authored-by: Davey Holler <[email protected]>
Co-authored-by: tsclausing <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 674f758)

Co-authored-by: Brian McGue <[email protected]>
  • Loading branch information
kibanamachine and brianmcgue authored Sep 23, 2022
1 parent 8fd0c8b commit 89749ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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-".',
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 89749ae

Please sign in to comment.