Skip to content

Commit

Permalink
[ML] Renaming index patterns for job wizards (#116250)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
jgowdyelastic and kibanamachine authored Nov 1, 2021
1 parent 602e15d commit c9ccfad
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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" />
Expand All @@ -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',
}
),
},
Expand All @@ -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"
/>
</>
) : (
Expand Down Expand Up @@ -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>
);
Expand All @@ -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>
);
Expand All @@ -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>
Expand All @@ -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 }}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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
title={<h3>{title}</h3>}
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."
/>
}
>
Expand Down

0 comments on commit c9ccfad

Please sign in to comment.