-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Transforms: Fixes max page search size limit (#159052)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
0095c57
commit 87dc7ae
Showing
12 changed files
with
123 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
x-pack/plugins/transform/public/app/common/constants/validation_messages.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
export const numberRangeMinus1To100NotValidErrorMessage = i18n.translate( | ||
'xpack.transform.transformSettingValidations.numberGreaterThanOrEqualToNegativeOneNotValidErrorMessage', | ||
{ | ||
defaultMessage: 'Number of retries needs to be between 0 and 100, or -1 for infinite retries.', | ||
} | ||
); | ||
|
||
export const numberRange10To10000NotValidErrorMessage = i18n.translate( | ||
'xpack.transform.transformSettingValidations.numberRange10To10000NotValidErrorMessage', | ||
{ | ||
defaultMessage: 'Value needs to be an integer between 10 and 10000.', | ||
} | ||
); | ||
|
||
export const pageSearchSizeInvalidErrorMessage = i18n.translate( | ||
'xpack.transform.transformSettingValidations.maxPageSearchSizeInvalidMessage', | ||
{ | ||
defaultMessage: 'Maximum page search size needs to be an integer between 10 and 65536.', | ||
} | ||
); | ||
|
||
// Retention policy max age validator | ||
export const retentionPolicyMaxAgeInvalidErrorMessage = i18n.translate( | ||
'xpack.transform.transformSettingValidations.retentionPolicyMaxAgeInvalidMessage', | ||
{ | ||
defaultMessage: 'Invalid max age format. Minimum of 60s required.', | ||
} | ||
); | ||
|
||
// xpack.transform.transformList.numberOfRetriesInvalidErrorMessage | ||
export const numberOfRetriesInvalidErrorMessage = i18n.translate( | ||
'xpack.transform.transformSettingsValidations.numberOfRetriesInvalidErrorMessage', | ||
{ | ||
defaultMessage: 'Number of retries needs to be between 0 and 100, or -1 for infinite retries.', | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.