-
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.
[UA] Special handling of ES transforms (#211418)
Close elastic/kibana-team#1293 Related elastic/elasticsearch#122192 <img width="503" alt="Screenshot 2025-02-17 at 14 38 53" src="https://github.com/user-attachments/assets/06131482-8547-4296-bd7e-e1c7c879fb89" />
- Loading branch information
1 parent
e86ca4b
commit c6e0eeb
Showing
8 changed files
with
260 additions
and
18 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
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
79 changes: 79 additions & 0 deletions
79
...recations/deprecation_types/indices/flyout/steps/details/es_transform_target_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,79 @@ | ||
/* | ||
* 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'; | ||
import { EuiCallOut, EuiLink, EuiText, EuiSpacer } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import type { EnrichedDeprecationInfo } from '../../../../../../../../../common/types'; | ||
import { useAppContext } from '../../../../../../../app_context'; | ||
|
||
interface Props { | ||
deprecation: EnrichedDeprecationInfo; | ||
} | ||
|
||
/** | ||
* We get copy directly from ES. This contains information that applies to indices | ||
* that are read-only or not. | ||
*/ | ||
export const ESTransformsTargetGuidance = ({ deprecation }: Props) => { | ||
const { | ||
services: { | ||
core: { http }, | ||
}, | ||
} = useAppContext(); | ||
return ( | ||
<> | ||
<EuiCallOut | ||
title={i18n.translate( | ||
'xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.esTransform.calloutTitle', | ||
{ defaultMessage: 'Transforms detected' } | ||
)} | ||
data-test-subj="esTransformsGuidance" | ||
color="warning" | ||
> | ||
{deprecation.details} | ||
</EuiCallOut> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="m"> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.esTransform.description1" | ||
defaultMessage="The reindex operation will copy all of the existing documents into a new index and remove the old one. During the reindex operation your data will be in a read-only state and transforms writing to this index will be paused." | ||
/> | ||
</p> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.esTransform.description2" | ||
defaultMessage="Depending on size and resources, reindexing may take an extended time. For indices with more than 10GB of data or to avoid transform downtime refer to the {migrationGuideLink} or {transformsLink} to manage transforms writing to this index." | ||
values={{ | ||
migrationGuideLink: ( | ||
<EuiLink target="_blank" href={deprecation.url}> | ||
{i18n.translate( | ||
'xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.esTransform.migrationGuideLink', | ||
{ defaultMessage: 'migration guide' } | ||
)} | ||
</EuiLink> | ||
), | ||
transformsLink: ( | ||
<EuiLink | ||
target="_blank" | ||
href={`${http.basePath.prepend('/app/management/data/transform')}`} | ||
> | ||
<FormattedMessage | ||
id="xpack.upgradeAssistant.esDeprecations.indices.indexFlyout.detailsStep.esTransform.transfromsLink" | ||
defaultMessage="go to transforms" | ||
/> | ||
</EuiLink> | ||
), | ||
}} | ||
/> | ||
</p> | ||
</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
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
18 changes: 17 additions & 1 deletion
18
...vate/upgrade_assistant/server/lib/es_deprecations_status/__snapshots__/index.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.