Skip to content

Commit

Permalink
[index pattern editor] index pattern to data view for user facing con…
Browse files Browse the repository at this point in the history
…tent (#109578)

* [index pattern editor] index pattern to data view for user facing content
  • Loading branch information
mattkime authored Aug 24, 2021
1 parent 1601ba8 commit 2220a35
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const allowHiddenAriaLabel = i18n.translate('indexPatternEditor.form.allowHidden
const customIndexPatternIdLabel = i18n.translate(
'indexPatternEditor.form.customIndexPatternIdLabel',
{
defaultMessage: 'Custom index pattern ID',
defaultMessage: 'Custom data view ID',
}
);

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const EmptyIndexListPrompt = ({
link: (
<EuiLink onClick={() => createAnyway()} data-test-subj="createAnyway">
<FormattedMessage
id="indexPatternEditor.createIndexPattern.emptyState.createAnywayLink"
defaultMessage="create an index pattern"
id="indexPatternEditor.createDataView.emptyState.createAnywayLink"
defaultMessage="create a data view"
/>
</EuiLink>
),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export const EmptyIndexPatternPrompt = ({
/>
<br />
<FormattedMessage
id="indexPatternEditor.emptyIndexPatternPrompt.nowCreate"
defaultMessage="Now, create an index pattern."
id="indexPatternEditor.emptyDataViewPrompt.nowCreate"
defaultMessage="Now, create a data view."
/>
</h2>
<p>
<FormattedMessage
id="indexPatternEditor.emptyIndexPatternPrompt.indexPatternExplanation"
defaultMessage="Kibana requires an index pattern to identify which data streams, indices, and index aliases you want to explore. An
index pattern can point to a specific index, for example, your log data from
id="indexPatternEditor.emptyDataViewPrompt.indexPatternExplanation"
defaultMessage="Kibana requires a data view to identify which data streams, indices, and index aliases you want to explore. A
data view can point to a specific index, for example, your log data from
yesterday, or all indices that contain your log data."
/>
</p>
Expand All @@ -72,8 +72,8 @@ export const EmptyIndexPatternPrompt = ({
data-test-subj="createIndexPatternButtonFlyout"
>
<FormattedMessage
id="indexPatternEditor.indexPatternTable.createBtn"
defaultMessage="Create index pattern"
id="indexPatternEditor.dataViewTable.createBtn"
defaultMessage="Create data view"
/>
</EuiButton>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const closeButtonLabel = i18n.translate('indexPatternEditor.editor.flyoutCloseBu
});

const saveButtonLabel = i18n.translate('indexPatternEditor.editor.flyoutSaveButtonLabel', {
defaultMessage: 'Create index pattern',
defaultMessage: 'Create data view',
});

export const Footer = ({ onCancel, onSubmit, submitDisabled }: FooterProps) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ interface TitleFieldProps {
}

const rollupIndexPatternNoMatchError = {
message: i18n.translate('indexPatternEditor.rollupIndexPattern.createIndex.noMatchError', {
defaultMessage: 'Rollup index pattern error: must match one rollup index',
message: i18n.translate('indexPatternEditor.rollupDataView.createIndex.noMatchError', {
defaultMessage: 'Rollup data view error: must match one rollup index',
}),
};

const rollupIndexPatternTooManyMatchesError = {
message: i18n.translate('indexPatternEditor.rollupIndexPattern.createIndex.tooManyMatchesError', {
defaultMessage: 'Rollup index pattern error: can only match one rollup index',
message: i18n.translate('indexPatternEditor.rollupDataView.createIndex.tooManyMatchesError', {
defaultMessage: 'Rollup data view error: can only match one rollup index',
}),
};

Expand All @@ -61,8 +61,8 @@ const createTitlesNoDupesValidator = (
validator: ({ value }) => {
if (namesNotAllowed.includes(value)) {
return {
message: i18n.translate('indexPatternEditor.indexPatternExists.ValidationErrorMessage', {
defaultMessage: 'An index pattern with this title already exists.',
message: i18n.translate('indexPatternEditor.dataViewExists.ValidationErrorMessage', {
defaultMessage: 'A data view with this title already exists.',
}),
};
}
Expand Down Expand Up @@ -109,7 +109,7 @@ const createMatchesIndicesValidator = ({
if (error) {
return {
message: i18n.translate('indexPatternEditor.rollup.uncaughtError', {
defaultMessage: 'Rollup index pattern error: {error}',
defaultMessage: 'Rollup data view error: {error}',
values: {
error,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const standardSelectItem = (
<EuiDescriptionListTitle>
<FormattedMessage
id="indexPatternEditor.typeSelect.standardTitle"
defaultMessage="Standard index pattern"
defaultMessage="Standard data view"
/>
</EuiDescriptionListTitle>
<EuiDescriptionListDescription>
Expand All @@ -51,7 +51,7 @@ const rollupSelectItem = (
<EuiDescriptionListTitle>
<FormattedMessage
id="indexPatternEditor.typeSelect.rollupTitle"
defaultMessage="Rollup index pattern"
defaultMessage="Rollup data view"
/>
&nbsp;
<EuiBadge color={euiColorAccent}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export const schema = {
}),
helpText: i18n.translate('indexPatternEditor.editor.form.customIdHelp', {
defaultMessage:
'Kibana provides a unique identifier for each index pattern, or you can create your own.',
'Kibana provides a unique identifier for each data view, or you can create your own.',
}),
},
type: {
label: i18n.translate('indexPatternEditor.editor.form.TypeLabel', {
defaultMessage: 'Index pattern type',
defaultMessage: 'Data view type',
}),
defaultValue: INDEX_PATTERN_TYPE.DEFAULT,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface Props {
}

const editorTitle = i18n.translate('indexPatternEditor.title', {
defaultMessage: 'Create index pattern',
defaultMessage: 'Create data view',
});

const IndexPatternEditorFlyoutContentComponent = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const IndexPatternFlyoutContentContainer = ({
notifications.toasts.addSuccess(message);
await onSave(indexPattern);
} catch (e) {
const title = i18n.translate('indexPatternEditor.indexPatterns.unableSaveLabel', {
defaultMessage: 'Failed to save index pattern.',
const title = i18n.translate('indexPatternEditor.dataView.unableSaveLabel', {
defaultMessage: 'Failed to save data view.',
});

notifications.toasts.addDanger({ title });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ export const RollupBetaWarning = () => (
<EuiCallOut title={rollupBetaWarningTitle} color="warning" iconType="help">
<p>
<FormattedMessage
id="indexPatternEditor.rollupIndexPattern.warning.textParagraphOne"
defaultMessage="Kibana's support for rollup index patterns is in beta. You might encounter
issues using these patterns in saved searches, visualizations, and dashboards. They
id="indexPatternEditor.rollupDataView.warning.textParagraphOne"
defaultMessage="Kibana has beta support for data views based on rollups. You might encounter
issues using these in saved searches, visualizations, and dashboards. They
are not supported in some advanced features, such as Timelion, and Machine Learning."
/>
</p>
<p>
<FormattedMessage
id="indexPatternEditor.rollupIndexPattern.warning.textParagraphTwo"
defaultMessage="You can match a rollup index pattern against one rollup index and zero or more
regular indices. A rollup index pattern has limited metrics, fields, intervals, and
id="indexPatternEditor.rollupDataView.warning.textParagraphTwo"
defaultMessage="You can match a rollup data view against one rollup index and zero or more
regular indices. A rollup data view has limited metrics, fields, intervals, and
aggregations. A rollup index is limited to indices that have one job configuration,
or multiple jobs with compatible configurations."
/>
Expand Down

0 comments on commit 2220a35

Please sign in to comment.