Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Graph] Rename Index pattern to Data view #110403

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -11096,11 +11096,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 @@ -11201,7 +11198,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 @@ -11217,11 +11217,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 @@ -11322,7 +11319,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