diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/index_mappings.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/index_mappings.tsx
index 3968fecb22a49..b7e5a117c638f 100644
--- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/index_mappings.tsx
+++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/index_mappings.tsx
@@ -144,19 +144,19 @@ export const SearchIndexIndexMappings: React.FC = () => {
date,
keyword: keyword,
number: number,
- date: date,
}}
/>
-
+
{i18n.translate('xpack.enterpriseSearch.content.searchIndex.mappings.docLink', {
- defaultMessage: 'Learn more',
+ defaultMessage: 'Learn how to customize index mappings and settings',
})}
diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts b/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts
index 17968ab39790f..3706a73af2627 100644
--- a/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts
+++ b/x-pack/plugins/enterprise_search/public/applications/shared/doc_links/doc_links.ts
@@ -65,6 +65,7 @@ class DocLinks {
public clientsRustOverview: string;
public cloudIndexManagement: string;
public connectors: string;
+ public connectorsMappings: string;
public connectorsAzureBlobStorage: string;
public connectorsBox: string;
public connectorsClients: string;
@@ -239,6 +240,7 @@ class DocLinks {
this.clientsRustOverview = '';
this.cloudIndexManagement = '';
this.connectors = '';
+ this.connectorsMappings = '';
this.connectorsAzureBlobStorage = '';
this.connectorsBox = '';
this.connectorsConfluence = '';
@@ -414,6 +416,7 @@ class DocLinks {
this.clientsRustOverview = docLinks.links.clients.rustOverview;
this.cloudIndexManagement = docLinks.links.cloud.indexManagement;
this.connectors = docLinks.links.enterpriseSearch.connectors;
+ this.connectorsMappings = docLinks.links.enterpriseSearch.connectorsMappings;
this.connectorsAzureBlobStorage = docLinks.links.enterpriseSearch.connectorsAzureBlobStorage;
this.connectorsBox = docLinks.links.enterpriseSearch.connectorsBox;
this.connectorsConfluence = docLinks.links.enterpriseSearch.connectorsConfluence;
From 531dd0f62cdd56bc4e580f1357c7db63d83392a5 Mon Sep 17 00:00:00 2001
From: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
Date: Fri, 29 Mar 2024 13:46:50 +0100
Subject: [PATCH 03/22] Set ruleType thrown errors as Framework error (#179656)
This is a follow-on PR of
https://github.com/elastic/kibana/issues/174035.
As we decided to set the errors reported by addLastRunError as Framework
Error, this PR aligns the other errors thrown by the ruleTypes by
switching from USER to FRAMEWORK.
## To verify
Throw an error in any of the ruleType executor, and expect to see
framework error metrics in :
`/api/task_manager/metrics?reset=false`
---
x-pack/plugins/alerting/server/task_runner/rule_type_runner.ts | 2 +-
x-pack/plugins/alerting/server/task_runner/task_runner.test.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/x-pack/plugins/alerting/server/task_runner/rule_type_runner.ts b/x-pack/plugins/alerting/server/task_runner/rule_type_runner.ts
index ca0757aa69351..b105c412d07b1 100644
--- a/x-pack/plugins/alerting/server/task_runner/rule_type_runner.ts
+++ b/x-pack/plugins/alerting/server/task_runner/rule_type_runner.ts
@@ -249,7 +249,7 @@ export class RuleTypeRunner<
return {
error: createTaskRunError(
new ErrorWithReason(RuleExecutionStatusErrorReasons.Execute, err),
- TaskErrorSource.USER
+ TaskErrorSource.FRAMEWORK
),
stackTrace: { message: err, stackTrace: err.stack },
};
diff --git a/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts b/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts
index 47f8a3a83716c..a75a73a124953 100644
--- a/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts
+++ b/x-pack/plugins/alerting/server/task_runner/task_runner.test.ts
@@ -1954,7 +1954,7 @@ describe('Task Runner', () => {
expect(loggerMeta?.tags).toEqual(['test', '1', 'rule-run-failed']);
expect(loggerMeta?.error?.stack_trace).toBeDefined();
expect(logger.error).toBeCalledTimes(1);
- expect(getErrorSource(runnerResult.taskRunError as Error)).toBe(TaskErrorSource.USER);
+ expect(getErrorSource(runnerResult.taskRunError as Error)).toBe(TaskErrorSource.FRAMEWORK);
});
test('recovers gracefully when the Rule Task Runner throws an exception when loading rule to prepare for run', async () => {
From a464a6636aab0f32f54b12690ddc77cdf4c7a36f Mon Sep 17 00:00:00 2001
From: Matthias Wilhelm