Skip to content

Commit

Permalink
[Graph] Rename Index pattern to Data view (#110403)
Browse files Browse the repository at this point in the history
* [Graph] Rename Index pattern to Data view

* Grammar fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
DianaDerevyankina and kibanamachine authored Oct 8, 2021
1 parent d393aeb commit f21d74e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ function GuidancePanelComponent(props: GuidancePanelProps) {
<p>
<FormattedMessage
id="xpack.graph.noDataSourceNotificationMessageText"
defaultMessage="No data sources found. Go to {managementIndexPatternsLink} and create an index pattern for your Elasticsearch indices."
defaultMessage="No data sources found. Go to {managementIndexPatternsLink} and create a data view for your Elasticsearch indices."
values={{
managementIndexPatternsLink: (
<a href={indexPatternUrl}>
<FormattedMessage
id="xpack.graph.noDataSourceNotificationMessageText.managementIndexPatternLinkText"
defaultMessage="Management &gt; Index Patterns"
id="xpack.graph.noDataSourceNotificationMessageText.managementDataViewLinkText"
defaultMessage="Management &gt; Data views"
/>
</a>
),
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/graph/public/components/source_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function SourcePicker({
{
type: 'index-pattern',
getIconForSavedObject: () => 'indexPatternApp',
name: i18n.translate('xpack.graph.sourceModal.savedObjectType.indexPattern', {
defaultMessage: 'Index pattern',
name: i18n.translate('xpack.graph.sourceModal.savedObjectType.dataView', {
defaultMessage: 'Data view',
}),
showSavedObject: (indexPattern) => !indexPattern.attributes.type,
includeFields: ['type'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export const datasourceSaga = ({
// in case of errors, reset the datasource and show notification
yield put(setDatasource({ type: 'none' }));
notifications.toasts.addDanger(
i18n.translate('xpack.graph.loadWorkspace.missingIndexPatternErrorMessage', {
defaultMessage: 'Index pattern "{name}" not found',
i18n.translate('xpack.graph.loadWorkspace.missingDataViewErrorMessage', {
defaultMessage: 'Data view "{name}" not found',
values: {
name: action.payload.title,
},
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/graph/public/state_management/persistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const loadingSaga = ({
const migrationStatus = migrateLegacyIndexPatternRef(savedWorkspace, indexPatterns);
if (!migrationStatus.success) {
notifications.toasts.addDanger(
i18n.translate('xpack.graph.loadWorkspace.missingIndexPatternErrorMessage', {
defaultMessage: 'Index pattern "{name}" not found',
i18n.translate('xpack.graph.loadWorkspace.missingDataViewErrorMessage', {
defaultMessage: 'Data view "{name}" not found',
values: {
name: migrationStatus.missingIndexPattern,
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/graph/server/sample_data/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export function registerLogsSampleData(sampleDataRegistry: SampleDataRegistrySet
attributes: {
title: 'Kibana Sample Data - Data Logs',
description:
'This is a sample graph based on the data logs index, which shows agents, extensions, source geography of the log, and response codes. The graph has 200 and 404 response codes blocked, as they have low cardinality.',
'This is a sample graph based on the data logs data view, which shows agents, extensions, source geography of the log, and response codes. The graph has 200 and 404 response codes blocked, as they have low cardinality.',
numLinks: 61,
numVertices: 27,
version: 1,
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -11061,11 +11061,8 @@
"xpack.graph.listing.table.entityName": "グラフ",
"xpack.graph.listing.table.entityNamePlural": "グラフ",
"xpack.graph.listing.table.titleColumnName": "タイトル",
"xpack.graph.loadWorkspace.missingIndexPatternErrorMessage": "インデックスパターン「{name}」が見つかりません",
"xpack.graph.missingWorkspaceErrorMessage": "ID でグラフを読み込めませんでした",
"xpack.graph.newGraphTitle": "保存されていないグラフ",
"xpack.graph.noDataSourceNotificationMessageText": "データソースが見つかりませんでした。{managementIndexPatternsLink} に移動して Elasticsearch インデックスのインデックスパターンを作成してください。",
"xpack.graph.noDataSourceNotificationMessageText.managementIndexPatternLinkText": "管理>インデックスパターン",
"xpack.graph.noDataSourceNotificationMessageTitle": "データソースがありません",
"xpack.graph.outlinkEncoders.esqPlainDescription": "標準 URL エンコードの JSON",
"xpack.graph.outlinkEncoders.esqPlainTitle": "Elasticsearch クエリ(プレインエンコード)",
Expand Down Expand Up @@ -11166,7 +11163,6 @@
"xpack.graph.sidebar.ungroupButtonLabel": "グループ解除",
"xpack.graph.sidebar.ungroupButtonTooltip": "ungroup {latestSelectionLabel}",
"xpack.graph.sourceModal.notFoundLabel": "データソースが見つかりませんでした。",
"xpack.graph.sourceModal.savedObjectType.indexPattern": "インデックスパターン",
"xpack.graph.sourceModal.title": "データソースを選択",
"xpack.graph.templates.addLabel": "新規ドリルダウン",
"xpack.graph.templates.newTemplateFormLabel": "ドリルダウンを追加",
Expand Down
4 changes: 0 additions & 4 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -11182,11 +11182,8 @@
"xpack.graph.listing.table.entityName": "图表",
"xpack.graph.listing.table.entityNamePlural": "图表",
"xpack.graph.listing.table.titleColumnName": "标题",
"xpack.graph.loadWorkspace.missingIndexPatternErrorMessage": "未找到索引模式“{name}”",
"xpack.graph.missingWorkspaceErrorMessage": "无法使用 ID 加载图表",
"xpack.graph.newGraphTitle": "未保存图表",
"xpack.graph.noDataSourceNotificationMessageText": "未找到数据源。前往 {managementIndexPatternsLink},为您的 Elasticsearch 索引创建索引模式。",
"xpack.graph.noDataSourceNotificationMessageText.managementIndexPatternLinkText": "“管理”>“索引模式”",
"xpack.graph.noDataSourceNotificationMessageTitle": "无数据源",
"xpack.graph.outlinkEncoders.esqPlainDescription": "使用标准 URL 编码的 JSON",
"xpack.graph.outlinkEncoders.esqPlainTitle": "Elasticsearch 查询(纯编码)",
Expand Down Expand Up @@ -11287,7 +11284,6 @@
"xpack.graph.sidebar.ungroupButtonLabel": "取消分组",
"xpack.graph.sidebar.ungroupButtonTooltip": "取消分组 {latestSelectionLabel}",
"xpack.graph.sourceModal.notFoundLabel": "未找到数据源。",
"xpack.graph.sourceModal.savedObjectType.indexPattern": "索引模式",
"xpack.graph.sourceModal.title": "选择数据源",
"xpack.graph.templates.addLabel": "新向下钻取",
"xpack.graph.templates.newTemplateFormLabel": "添加向下钻取",
Expand Down

0 comments on commit f21d74e

Please sign in to comment.