-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Backport This will backport the following commits from `8.x` to `8.18`: - [[UA] ML anomaly job indices special handling (#211407)](#211407) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jean-Louis Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2025-02-18T11:40:27Z","message":"[UA] ML anomaly job indices special handling (#211407)\n\nClose https://github.com/elastic/kibana-team/issues/1501\r\n\r\n\r\n<img width=\"535\" alt=\"Screenshot 2025-02-17 at 11 43 19\"\r\nsrc=\"https://github.com/user-attachments/assets/648cc007-aef8-4959-add8-6aec943e9e41\"\r\n/>","sha":"5d3fb74647d24decd1adca486004244809b79957","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","Feature:Upgrade Assistant","backport:version","v8.18.0","v8.19.0"],"title":"[UA] ML anomaly job indices special handling","number":211407,"url":"https://github.com/elastic/kibana/pull/211407","mergeCommit":{"message":"[UA] ML anomaly job indices special handling (#211407)\n\nClose https://github.com/elastic/kibana-team/issues/1501\r\n\r\n\r\n<img width=\"535\" alt=\"Screenshot 2025-02-17 at 11 43 19\"\r\nsrc=\"https://github.com/user-attachments/assets/648cc007-aef8-4959-add8-6aec943e9e41\"\r\n/>","sha":"5d3fb74647d24decd1adca486004244809b79957"}},"sourceBranch":"8.x","suggestedTargetBranches":["8.18"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information
1 parent
f8fc8e7
commit d5437f2
Showing
4 changed files
with
224 additions
and
19 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
98 changes: 98 additions & 0 deletions
98
...ts/es_deprecations/deprecation_types/indices/flyout/steps/details/ml_anomaly_guidance.tsx
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,98 @@ | ||
/* | ||
* 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 type { FunctionComponent } from 'react'; | ||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import { EuiCallOut, EuiDescriptionList, EuiLink, EuiText } from '@elastic/eui'; | ||
import { useAppContext } from '../../../../../../../app_context'; | ||
|
||
export const MlAnomalyGuidance: FunctionComponent = () => { | ||
const { | ||
services: { | ||
core: { docLinks }, | ||
}, | ||
} = useAppContext(); | ||
return ( | ||
<> | ||
<p> | ||
<EuiCallOut | ||
title={i18n.translate( | ||
'xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.notCompatibleMlAnomalyIndexTitle', | ||
{ defaultMessage: 'ML anomaly index detected' } | ||
)} | ||
> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.notCompatibleMlAnomalyIndexText" | ||
defaultMessage="Anomaly result indices that were created in 7.x must be either reindexed, marked as read-only, or deleted before upgrading to 9.x. {learnMore}." | ||
values={{ | ||
learnMore: ( | ||
<EuiLink target="_blank" href={docLinks.links.ml.anomalyMigrationGuide}> | ||
{i18n.translate( | ||
'xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.notCompatibleMlAnomalyIndexText.learnMore', | ||
{ defaultMessage: 'Learn more' } | ||
)} | ||
</EuiLink> | ||
), | ||
}} | ||
/> | ||
</EuiCallOut> | ||
</p> | ||
<EuiDescriptionList | ||
rowGutterSize="m" | ||
listItems={[ | ||
{ | ||
title: 'Option 1: Reindex data', | ||
description: ( | ||
<EuiText size="m"> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.reindexMlAnomalyIndexText" | ||
defaultMessage="While anomaly detection results are being reindexed, jobs continue to run and process new data. However, you cannot completely delete an anomaly detection job that stores results in this index until the reindexing is complete." | ||
/> | ||
</EuiText> | ||
), | ||
}, | ||
{ | ||
title: 'Option 2: Mark as read-only', | ||
description: ( | ||
<EuiText size="m"> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.readOnlyMlAnomalyIndexText" | ||
defaultMessage="This skips reindexing and will mark the result index as read-only. It is useful for large indices that contain the results of only one or a few anomaly detection jobs. If you delete these jobs later, you will not be able to create a new job with the same name. {learnMore} about write blocks." | ||
values={{ | ||
learnMore: ( | ||
<EuiLink target="_blank" href={docLinks.links.upgradeAssistant.indexBlocks}> | ||
{i18n.translate( | ||
'xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.learnMoreLinkLabel', | ||
{ | ||
defaultMessage: 'Learn more', | ||
} | ||
)} | ||
</EuiLink> | ||
), | ||
}} | ||
/> | ||
</EuiText> | ||
), | ||
}, | ||
{ | ||
title: 'Option 3: Delete this index', | ||
description: ( | ||
<EuiText size="m"> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.deleteMlAnomalyIndexText" | ||
defaultMessage="Use the ML UI to delete jobs that are no longer needed. The result index is deleted when all jobs that store results in it have been deleted." | ||
/> | ||
</EuiText> | ||
), | ||
}, | ||
]} | ||
/> | ||
</> | ||
); | ||
}; |
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