diff --git a/src/plugins/data/common/search/aggs/param_types/field.ts b/src/plugins/data/common/search/aggs/param_types/field.ts index 05e1302475d044..dd9f91ceea2236 100644 --- a/src/plugins/data/common/search/aggs/param_types/field.ts +++ b/src/plugins/data/common/search/aggs/param_types/field.ts @@ -56,7 +56,7 @@ export class FieldParamType extends BaseParamType { 'data.search.aggs.paramTypes.field.notFoundSavedFieldParameterErrorMessage', { defaultMessage: - 'The field "{fieldParameter}" associated with this object no longer exists in the index pattern. Please use another field.', + 'The field "{fieldParameter}" associated with this object no longer exists in the data view. Please use another field.', values: { fieldParameter: field.name, }, @@ -75,7 +75,7 @@ export class FieldParamType extends BaseParamType { 'data.search.aggs.paramTypes.field.invalidSavedFieldParameterErrorMessage', { defaultMessage: - 'Saved field "{fieldParameter}" of index pattern "{indexPatternTitle}" is invalid for use with the "{aggType}" aggregation. Please select a new field.', + 'Saved field "{fieldParameter}" of data view "{indexPatternTitle}" is invalid for use with the "{aggType}" aggregation. Please select a new field.', values: { fieldParameter: field.name, aggType: aggConfig?.type?.title, diff --git a/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts b/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts index 09d68177c3ec37..792b28408c5ff4 100644 --- a/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts +++ b/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts @@ -62,7 +62,7 @@ export const getEsaggsMeta: () => Omit types: ['index_pattern'], required: true, help: i18n.translate('data.search.functions.esaggs.index.help', { - defaultMessage: 'Index pattern retrieved with indexPatternLoad', + defaultMessage: 'Data view retrieved with indexPatternLoad', }), }, aggs: { diff --git a/src/plugins/data/common/search/expressions/esdsl.ts b/src/plugins/data/common/search/expressions/esdsl.ts index c5b116073c06b8..faa43dab65657b 100644 --- a/src/plugins/data/common/search/expressions/esdsl.ts +++ b/src/plugins/data/common/search/expressions/esdsl.ts @@ -115,12 +115,12 @@ export const getEsdslFn = ({ request.stats({ indexPattern: { - label: i18n.translate('data.search.es_search.indexPatternLabel', { - defaultMessage: 'Index pattern', + label: i18n.translate('data.search.es_search.dataViewLabel', { + defaultMessage: 'Data view', }), value: args.index, description: i18n.translate('data.search.es_search.indexPatternDescription', { - defaultMessage: 'The index pattern that connected to the Elasticsearch indices.', + defaultMessage: 'The data view that connected to the Elasticsearch indices.', }), }, }); diff --git a/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts b/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts index e5a3acc23eee89..67c23fb16b8ded 100644 --- a/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts +++ b/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts @@ -25,17 +25,17 @@ export function getRequestInspectorStats(searchSource: ISearchSource) { if (index) { stats.indexPattern = { - label: i18n.translate('data.search.searchSource.indexPatternLabel', { - defaultMessage: 'Index pattern', + label: i18n.translate('data.search.searchSource.dataViewLabel', { + defaultMessage: 'Data view', }), value: index.title, - description: i18n.translate('data.search.searchSource.indexPatternDescription', { - defaultMessage: 'The index pattern that connected to the Elasticsearch indices.', + description: i18n.translate('data.search.searchSource.dataViewDescription', { + defaultMessage: 'The data view that was queried.', }), }; stats.indexPatternId = { - label: i18n.translate('data.search.searchSource.indexPatternIdLabel', { - defaultMessage: 'Index pattern ID', + label: i18n.translate('data.search.searchSource.dataViewIdLabel', { + defaultMessage: 'Data view ID', }), value: index.id!, description: i18n.translate('data.search.searchSource.indexPatternIdDescription', { diff --git a/src/plugins/data_views/common/data_views/data_views.ts b/src/plugins/data_views/common/data_views/data_views.ts index a76b531668162d..e5c83b28dee96f 100644 --- a/src/plugins/data_views/common/data_views/data_views.ts +++ b/src/plugins/data_views/common/data_views/data_views.ts @@ -295,7 +295,7 @@ export class DataViewsService { this.onError(err, { title: i18n.translate('dataViews.fetchFieldErrorTitle', { - defaultMessage: 'Error fetching fields for index pattern {title} (ID: {id})', + defaultMessage: 'Error fetching fields for data view {title} (ID: {id})', values: { id: indexPattern.id, title: indexPattern.title }, }), }); @@ -341,7 +341,7 @@ export class DataViewsService { this.onError(err, { title: i18n.translate('dataViews.fetchFieldErrorTitle', { - defaultMessage: 'Error fetching fields for index pattern {title} (ID: {id})', + defaultMessage: 'Error fetching fields for data view {title} (ID: {id})', values: { id, title }, }), }); @@ -483,7 +483,7 @@ export class DataViewsService { } else { this.onError(err, { title: i18n.translate('dataViews.fetchFieldErrorTitle', { - defaultMessage: 'Error fetching fields for index pattern {title} (ID: {id})', + defaultMessage: 'Error fetching fields for data view {title} (ID: {id})', values: { id: savedObject.id, title }, }), }); @@ -654,7 +654,7 @@ export class DataViewsService { } const title = i18n.translate('dataViews.unableWriteLabel', { defaultMessage: - 'Unable to write index pattern! Refresh the page to get the most up to date changes for this index pattern.', + 'Unable to write data view! Refresh the page to get the most up to date changes for this data view.', }); this.onNotification({ title, color: 'danger' }); diff --git a/src/plugins/data_views/common/expressions/load_index_pattern.ts b/src/plugins/data_views/common/expressions/load_index_pattern.ts index ca0c1090ceea8a..3c923597a5063d 100644 --- a/src/plugins/data_views/common/expressions/load_index_pattern.ts +++ b/src/plugins/data_views/common/expressions/load_index_pattern.ts @@ -46,15 +46,15 @@ export const getIndexPatternLoadMeta = (): Omit< name, type, inputTypes: ['null'], - help: i18n.translate('dataViews.indexPatternLoad.help', { - defaultMessage: 'Loads an index pattern', + help: i18n.translate('dataViews.functions.dataViewLoad.help', { + defaultMessage: 'Loads a data view', }), args: { id: { types: ['string'], required: true, - help: i18n.translate('dataViews.functions.indexPatternLoad.id.help', { - defaultMessage: 'index pattern id to load', + help: i18n.translate('dataViews.functions.dataViewLoad.id.help', { + defaultMessage: 'data view id to load', }), }, }, diff --git a/src/plugins/data_views/common/lib/errors.ts b/src/plugins/data_views/common/lib/errors.ts index f8422a6e5dd0d5..c75ad7fe299307 100644 --- a/src/plugins/data_views/common/lib/errors.ts +++ b/src/plugins/data_views/common/lib/errors.ts @@ -15,7 +15,7 @@ import { KbnError } from '../../../kibana_utils/common'; */ export class DataViewMissingIndices extends KbnError { constructor(message: string) { - const defaultMessage = "IndexPattern's configured pattern does not match any indices"; + const defaultMessage = "Data view's title does not match any indices"; super( message && message.length ? `No matching indices found: ${message}` : defaultMessage diff --git a/src/plugins/data_views/server/deprecations/scripted_fields.ts b/src/plugins/data_views/server/deprecations/scripted_fields.ts index 9ee2d64e25cb58..684115a19299a7 100644 --- a/src/plugins/data_views/server/deprecations/scripted_fields.ts +++ b/src/plugins/data_views/server/deprecations/scripted_fields.ts @@ -42,10 +42,10 @@ export const createScriptedFieldsDeprecationsConfig: ( return [ { title: i18n.translate('dataViews.deprecations.scriptedFieldsTitle', { - defaultMessage: 'Found index patterns using scripted fields', + defaultMessage: 'Found data views using scripted fields', }), message: i18n.translate('dataViews.deprecations.scriptedFieldsMessage', { - defaultMessage: `You have {numberOfIndexPatternsWithScriptedFields} index patterns ({titlesPreview}...) that use scripted fields. Scripted fields are deprecated and will be removed in future. Use runtime fields instead.`, + defaultMessage: `You have {numberOfIndexPatternsWithScriptedFields} data views ({titlesPreview}...) that use scripted fields. Scripted fields are deprecated and will be removed in future. Use runtime fields instead.`, values: { titlesPreview: indexPatternTitles.slice(0, PREVIEW_LIMIT).join('; '), numberOfIndexPatternsWithScriptedFields: indexPatternsWithScriptedFields.length, @@ -57,11 +57,11 @@ export const createScriptedFieldsDeprecationsConfig: ( correctiveActions: { manualSteps: [ i18n.translate('dataViews.deprecations.scriptedFields.manualStepOneMessage', { - defaultMessage: 'Navigate to Stack Management > Kibana > Index Patterns.', + defaultMessage: 'Navigate to Stack Management > Kibana > Data Views.', }), i18n.translate('dataViews.deprecations.scriptedFields.manualStepTwoMessage', { defaultMessage: - 'Update {numberOfIndexPatternsWithScriptedFields} index patterns that have scripted fields to use runtime fields instead. In most cases, to migrate existing scripts, you will need to change "return ;" to "emit();". Index patterns with at least one scripted field: {allTitles}', + 'Update {numberOfIndexPatternsWithScriptedFields} data views that have scripted fields to use runtime fields instead. In most cases, to migrate existing scripts, you will need to change "return ;" to "emit();". Data views with at least one scripted field: {allTitles}', values: { allTitles: indexPatternTitles.join('; '), numberOfIndexPatternsWithScriptedFields: indexPatternsWithScriptedFields.length, diff --git a/src/plugins/data_views/server/saved_objects/data_views.ts b/src/plugins/data_views/server/saved_objects/data_views.ts index d340732873235c..68443609f3fc65 100644 --- a/src/plugins/data_views/server/saved_objects/data_views.ts +++ b/src/plugins/data_views/server/saved_objects/data_views.ts @@ -15,6 +15,7 @@ export const dataViewSavedObjectType: SavedObjectsType = { hidden: false, namespaceType: 'single', management: { + displayName: 'Data view', icon: 'indexPatternApp', defaultSearchField: 'title', importableAndExportable: true, diff --git a/src/plugins/discover/public/application/apps/doc/components/doc.tsx b/src/plugins/discover/public/application/apps/doc/components/doc.tsx index c6cfad3953e95a..7ccf77d2a29d48 100644 --- a/src/plugins/discover/public/application/apps/doc/components/doc.tsx +++ b/src/plugins/discover/public/application/apps/doc/components/doc.tsx @@ -48,8 +48,8 @@ export function Doc(props: DocProps) { iconType="alert" title={ } diff --git a/src/plugins/discover/public/application/apps/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap b/src/plugins/discover/public/application/apps/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap index 02e2879476a5e6..6cb6a15aa0f663 100644 --- a/src/plugins/discover/public/application/apps/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap +++ b/src/plugins/discover/public/application/apps/main/components/sidebar/__snapshots__/discover_index_pattern_management.test.tsx.snap @@ -671,7 +671,7 @@ exports[`Discover IndexPattern Management renders correctly 1`] = ` anchorPosition="downCenter" button={