[ML] Renaming index patterns for job wizards (#116250) (#116935)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: James Gowdy <jgowdy@elastic.co>
This commit is contained in:
Kibana Machine 2021-11-01 11:42:04 -04:00 committed by GitHub
parent 79351bab25
commit 50f3b3105b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 15 deletions

View file

@ -130,7 +130,7 @@ export const ChangeDataViewModal: FC<Props> = ({ onClose }) => {
<EuiModalHeaderTitle>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.step0.title"
defaultMessage="Change index pattern"
defaultMessage="Change data view"
/>
</EuiModalHeaderTitle>
</EuiModalHeader>
@ -140,7 +140,7 @@ export const ChangeDataViewModal: FC<Props> = ({ onClose }) => {
<>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.step1.title"
defaultMessage="Select new index pattern for the job"
defaultMessage="Select new data view for the job"
/>
<EuiSpacer size="s" />
@ -162,7 +162,7 @@ export const ChangeDataViewModal: FC<Props> = ({ onClose }) => {
name: i18n.translate(
'xpack.ml.newJob.wizard.datafeedStep.dataView.step1.dataView',
{
defaultMessage: 'Index pattern',
defaultMessage: 'Data view',
}
),
},
@ -188,7 +188,7 @@ export const ChangeDataViewModal: FC<Props> = ({ onClose }) => {
<EuiLoadingSpinner />
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.step2.validatingText"
defaultMessage="Checking index pattern and job compatibility"
defaultMessage="Checking data view and job compatibility"
/>
</>
) : (
@ -244,14 +244,14 @@ const ValidationMessage: FC<{
title={i18n.translate(
'xpack.ml.newJob.wizard.datafeedStep.dataView.validation.noDetectors.title',
{
defaultMessage: 'Index pattern valid',
defaultMessage: 'Data view valid',
}
)}
color="primary"
>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.validation.noDetectors.message"
defaultMessage="No detectors have been configured; this index pattern can be applied to the job."
defaultMessage="No detectors have been configured; this data view can be applied to the job."
/>
</EuiCallOut>
);
@ -263,14 +263,14 @@ const ValidationMessage: FC<{
title={i18n.translate(
'xpack.ml.newJob.wizard.datafeedStep.dataView.validation.valid.title',
{
defaultMessage: 'Index pattern valid',
defaultMessage: 'Data view valid',
}
)}
color="primary"
>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.validation.valid.message"
defaultMessage="This index pattern can be applied to this job."
defaultMessage="This data view can be applied to this job."
/>
</EuiCallOut>
);
@ -280,14 +280,14 @@ const ValidationMessage: FC<{
title={i18n.translate(
'xpack.ml.newJob.wizard.datafeedStep.dataView.validation.possiblyInvalid.title',
{
defaultMessage: 'Index pattern possibly invalid',
defaultMessage: 'Data view possibly invalid',
}
)}
color="warning"
>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.validation.possiblyInvalid.message"
defaultMessage="This index pattern produced no results when previewing the datafeed. There may be no documents in {dataViewTitle}."
defaultMessage="This data view produced no results when previewing the datafeed. There may be no documents in {dataViewTitle}."
values={{ dataViewTitle }}
/>
</EuiCallOut>
@ -299,14 +299,14 @@ const ValidationMessage: FC<{
title={i18n.translate(
'xpack.ml.newJob.wizard.datafeedStep.dataView.validation.invalid.title',
{
defaultMessage: 'Index pattern invalid',
defaultMessage: 'Data view invalid',
}
)}
color="danger"
>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.validation.invalid.message"
defaultMessage="This index pattern produced an error when attempting to preview the datafeed. The fields selected for this job might not exist in {dataViewTitle}."
defaultMessage="This data view produced an error when attempting to preview the datafeed. The fields selected for this job might not exist in {dataViewTitle}."
values={{ dataViewTitle }}
/>

View file

@ -27,7 +27,7 @@ export const ChangeDataView: FC<{ isDisabled: boolean }> = ({ isDisabled }) => {
>
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.changeDataView.button"
defaultMessage="Change index pattern"
defaultMessage="Change data view"
/>
</EuiButtonEmpty>
</Description>

View file

@ -12,7 +12,7 @@ import { EuiDescribedFormGroup, EuiFormRow } from '@elastic/eui';
export const Description: FC = memo(({ children }) => {
const title = i18n.translate('xpack.ml.newJob.wizard.datafeedStep.dataView.title', {
defaultMessage: 'Index pattern',
defaultMessage: 'Data view',
});
return (
<EuiDescribedFormGroup
@ -20,7 +20,7 @@ export const Description: FC = memo(({ children }) => {
description={
<FormattedMessage
id="xpack.ml.newJob.wizard.datafeedStep.dataView.description"
defaultMessage="The index pattern that is currently used for this job."
defaultMessage="The data view that is currently used for this job."
/>
}
>