mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [ML] Removes check for forecast duration is no more than 8 weeks * [ML] Edit to translations file for removal of duration limit text
This commit is contained in:
parent
8671acf2aa
commit
dc88f3fe80
4 changed files with 1 additions and 18 deletions
|
@ -269,12 +269,6 @@ export const getTooltips = () => {
|
|||
defaultMessage: 'A string that is a unique identifier to a list. Only applicable and required when conditionType is categorical.'
|
||||
})
|
||||
},
|
||||
forecasting_modal_run_duration: {
|
||||
text: i18n.translate('xpack.ml.tooltips.forecastingModalRunDurationTooltip', {
|
||||
defaultMessage: 'Length of forecast, up to a maximum of 8 weeks. ' +
|
||||
'Use s for seconds, m for minutes, h for hours, d for days, w for weeks.'
|
||||
})
|
||||
},
|
||||
forecasting_modal_view_list: {
|
||||
text: i18n.translate('xpack.ml.tooltips.forecastingModalViewListTooltip', {
|
||||
defaultMessage: 'Lists a maximum of five of the most recently run forecasts.'
|
||||
|
|
|
@ -37,7 +37,6 @@ import { FormattedMessage, injectI18n } from '@kbn/i18n/react';
|
|||
|
||||
const FORECAST_JOB_MIN_VERSION = '6.1.0'; // Forecasting only allowed for jobs created >= 6.1.0.
|
||||
const FORECASTS_VIEW_MAX = 5; // Display links to a maximum of 5 forecasts.
|
||||
const FORECAST_DURATION_MAX_MS = 4838400000; // Max forecast duration of 8 weeks.
|
||||
const WARN_NUM_PARTITIONS = 100; // Warn about running a forecast with this number of field values.
|
||||
const FORECAST_STATS_POLL_FREQUENCY = 250; // Frequency in ms at which to poll for forecast request stats.
|
||||
const WARN_NO_PROGRESS_MS = 120000; // If no progress in forecast request, abort check and warn.
|
||||
|
@ -103,14 +102,6 @@ export const ForecastingModal = injectI18n(class ForecastingModal extends Compon
|
|||
defaultMessage: 'Invalid duration format',
|
||||
})
|
||||
);
|
||||
} else if (duration.asMilliseconds() > FORECAST_DURATION_MAX_MS) {
|
||||
isNewForecastDurationValid = false;
|
||||
newForecastDurationErrors.push(
|
||||
intl.formatMessage({
|
||||
id: 'xpack.ml.timeSeriesExplorer.forecastingModal.forecastDurationMustNotBeGreaterThanMaximumErrorMessage',
|
||||
defaultMessage: 'Forecast duration must not be greater than {maximumForecastDurationValue} weeks',
|
||||
}, { maximumForecastDurationValue: 8 })
|
||||
);
|
||||
} else if (duration.asMilliseconds() === 0) {
|
||||
isNewForecastDurationValid = false;
|
||||
newForecastDurationErrors.push(
|
||||
|
|
|
@ -138,7 +138,7 @@ export function RunControls({
|
|||
error={newForecastDurationErrors}
|
||||
helpText={<FormattedMessage
|
||||
id="xpack.ml.timeSeriesExplorer.runControls.forecastMaximumLengthHelpText"
|
||||
defaultMessage="Length of forecast, up to a maximum of 8 weeks.
|
||||
defaultMessage="Length of forecast.
|
||||
Use s for seconds, m for minutes, h for hours, d for days, w for weeks."
|
||||
/>}
|
||||
>
|
||||
|
|
|
@ -5864,7 +5864,6 @@
|
|||
"xpack.ml.timeSeriesExplorer.forecastingModal.errorWithObtainingListOfPreviousForecastsErrorMessage": "获取之前的预测时出错",
|
||||
"xpack.ml.timeSeriesExplorer.forecastingModal.errorWithOpeningJobBeforeRunningForecastErrorMessage": "在运行预测之前打开作业时出错",
|
||||
"xpack.ml.timeSeriesExplorer.forecastingModal.forecastButtonLabel": "预测",
|
||||
"xpack.ml.timeSeriesExplorer.forecastingModal.forecastDurationMustNotBeGreaterThanMaximumErrorMessage": "预测持续时间不得大于 {maximumForecastDurationValue} 周",
|
||||
"xpack.ml.timeSeriesExplorer.forecastingModal.forecastDurationMustNotBeZeroErrorMessage": "预测持续时间不得为零",
|
||||
"xpack.ml.timeSeriesExplorer.forecastingModal.forecastingNotAvailableForPopulationDetectorsMessage": "预测不可用于具有 over 字段的人口检测工具",
|
||||
"xpack.ml.timeSeriesExplorer.forecastingModal.forecastingOnlyAvailableForJobsCreatedInSpecifiedVersionMessage": "预测仅可用于在版本 {minVersion} 或更高版本中创建的作业",
|
||||
|
@ -5922,7 +5921,6 @@
|
|||
"xpack.ml.timeSeriesExplorer.timeSeriesChart.zoomLabel": "缩放:",
|
||||
"xpack.ml.timeSeriesExplorer.tryWideningTheTimeSelectionDescription": "请尝试扩大时间选择范围或进一步向前追溯",
|
||||
"xpack.ml.timeSeriesExplorer.youCanViewOneJobAtTimeWarningMessage": "在此仪表板中,一次仅可以查看一个作业",
|
||||
"xpack.ml.tooltips.forecastingModalRunDurationTooltip": "预测时长,最多 8 周。使用 s 表示秒,m 表示分钟,h 表示小时,d 表示天,w 表示周。",
|
||||
"xpack.ml.tooltips.forecastingModalViewListTooltip": "最多列出五个最近运行的预测。",
|
||||
"xpack.ml.tooltips.newActionConditionsConnectiveTooltip": "ruleConditions 的逻辑连接词",
|
||||
"xpack.ml.tooltips.newActionConditionTooltip": "比较 fieldValue 和值的条件。",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue