Skip to content

Commit dcd8cbc

Browse files
Merge branch 'main' into data_views_rest_usage_counters
2 parents 51f0f66 + 73db13f commit dcd8cbc

File tree

1,695 files changed

+32168
-32998
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,695 files changed

+32168
-32998
lines changed

.buildkite/scripts/steps/storybooks/build_and_upload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const STORYBOOKS = [
1515
'apm',
1616
'canvas',
1717
'ci_composite',
18+
'cloud',
1819
'codeeditor',
1920
'custom_integrations',
2021
'dashboard_enhanced',

.eslintrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,13 @@ module.exports = {
10701070
'@typescript-eslint/no-duplicate-imports': ['error'],
10711071
},
10721072
},
1073+
{
1074+
files: ['x-pack/plugins/cases/public/**/*.{js,mjs,ts,tsx}'],
1075+
excludedFiles: ['x-pack/plugins/cases/**/*.{test,mock,test_helper}.{ts,tsx}'],
1076+
rules: {
1077+
'react/display-name': ['error', { ignoreTranspilerName: true }],
1078+
},
1079+
},
10731080

10741081
/**
10751082
* Lists overrides. These rules below are maintained and owned by

.github/CODEOWNERS

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@
9898
/x-pack/plugins/observability/ @elastic/observability-ui
9999

100100
# Unified Observability
101-
/x-pack/plugins/observability/public/pages/overview @elastic/unified-observability
101+
/x-pack/plugins/observability/public/components/shared/exploratory_view @elastic/unified-observability
102+
/x-pack/plugins/observability/public/context @elastic/unified-observability
102103
/x-pack/plugins/observability/public/pages/home @elastic/unified-observability
103104
/x-pack/plugins/observability/public/pages/landing @elastic/unified-observability
104-
/x-pack/plugins/observability/public/context @elastic/unified-observability
105+
/x-pack/plugins/observability/public/pages/overview @elastic/unified-observability
105106

106107
# Actionable Observability
107108
/x-pack/plugins/observability/common/rules @elastic/actionable-observability
@@ -135,7 +136,6 @@
135136

136137
# Uptime
137138
/x-pack/plugins/uptime @elastic/uptime
138-
/x-pack/plugins/observability/public/components/shared/exploratory_view @elastic/uptime
139139
/x-pack/test/functional_with_es_ssl/apps/uptime @elastic/uptime
140140
/x-pack/test/functional/apps/uptime @elastic/uptime
141141
/x-pack/test/functional/es_archives/uptime @elastic/uptime
@@ -184,6 +184,8 @@
184184
/x-pack/test/functional_with_es_ssl/apps/ml/ @elastic/ml-ui
185185
/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/ml_rule_types/ @elastic/ml-ui
186186
/x-pack/test/alerting_api_integration/spaces_only/tests/alerting/transform_rule_types/ @elastic/ml-ui
187+
/x-pack/test/screenshot_creation/apps/ml_docs @elastic/ml-ui
188+
/x-pack/test/screenshot_creation/services/ml_screenshots.ts @elastic/ml-ui
187189

188190
# ML team owns and maintains the transform plugin despite it living in the Data management section.
189191
/x-pack/plugins/transform/ @elastic/ml-ui
@@ -339,8 +341,8 @@
339341
/docs/user/alerting/ @elastic/response-ops
340342
/docs/management/connectors/ @elastic/response-ops
341343
#CC# /x-pack/plugins/stack_alerts @elastic/response-ops
342-
/x-pack/plugins/cases @elastic/response-ops
343-
/x-pack/test/cases_api_integration @elastic/response-ops
344+
/x-pack/plugins/cases/ @elastic/response-ops
345+
/x-pack/test/cases_api_integration/ @elastic/response-ops
344346

345347
# Enterprise Search
346348
/x-pack/plugins/enterprise_search @elastic/enterprise-search-frontend

api_docs/actions.json renamed to api_docs/actions.devdocs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@
709709
"label": "ActionParamsType",
710710
"description": [],
711711
"signature": [
712-
"{ readonly message: string; readonly level: \"error\" | \"info\" | \"trace\" | \"debug\" | \"warn\" | \"fatal\"; }"
712+
"{ readonly message: string; readonly level: \"error\" | \"info\" | \"debug\" | \"trace\" | \"warn\" | \"fatal\"; }"
713713
],
714714
"path": "x-pack/plugins/actions/server/builtin_action_types/server_log.ts",
715715
"deprecated": false,

api_docs/actions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2020-11-16
88
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
99
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
1010
---
11-
import actionsObj from './actions.json';
11+
import actionsObj from './actions.devdocs.json';
1212

1313

1414

File renamed without changes.

api_docs/advanced_settings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2020-11-16
88
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
99
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
1010
---
11-
import advancedSettingsObj from './advanced_settings.json';
11+
import advancedSettingsObj from './advanced_settings.devdocs.json';
1212

1313

1414

api_docs/alerting.json renamed to api_docs/alerting.devdocs.json

Lines changed: 143 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@
4141
"label": "alert",
4242
"description": [],
4343
"signature": [
44-
"{ id: string; name: string; tags: string[]; enabled: boolean; params: never; actions: ",
44+
"{ id: string; monitoring?: ",
45+
{
46+
"pluginId": "alerting",
47+
"scope": "common",
48+
"docId": "kibAlertingPluginApi",
49+
"section": "def-common.RuleMonitoring",
50+
"text": "RuleMonitoring"
51+
},
52+
" | undefined; name: string; tags: string[]; enabled: boolean; params: never; actions: ",
4553
{
4654
"pluginId": "alerting",
4755
"scope": "common",
@@ -770,6 +778,63 @@
770778
}
771779
],
772780
"functions": [
781+
{
782+
"parentPluginId": "alerting",
783+
"id": "def-server.createAbortableEsClientFactory",
784+
"type": "Function",
785+
"tags": [],
786+
"label": "createAbortableEsClientFactory",
787+
"description": [],
788+
"signature": [
789+
"(opts: ",
790+
"CreateAbortableEsClientFactoryOpts",
791+
") => { asInternalUser: { search: <TDocument = unknown, TAggregations = Record<string, ",
792+
"AggregationsAggregate",
793+
">>(query: ",
794+
"SearchRequest",
795+
" | ",
796+
"SearchRequest",
797+
", options?: ",
798+
"TransportRequestOptions",
799+
" | undefined) => Promise<",
800+
"TransportResult",
801+
"<",
802+
"SearchResponse",
803+
"<TDocument, TAggregations>, unknown>>; }; asCurrentUser: { search: <TDocument = unknown, TAggregations = Record<string, ",
804+
"AggregationsAggregate",
805+
">>(query: ",
806+
"SearchRequest",
807+
" | ",
808+
"SearchRequest",
809+
", options?: ",
810+
"TransportRequestOptions",
811+
" | undefined) => Promise<",
812+
"TransportResult",
813+
"<",
814+
"SearchResponse",
815+
"<TDocument, TAggregations>, unknown>>; }; }"
816+
],
817+
"path": "x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts",
818+
"deprecated": false,
819+
"children": [
820+
{
821+
"parentPluginId": "alerting",
822+
"id": "def-server.createAbortableEsClientFactory.$1",
823+
"type": "Object",
824+
"tags": [],
825+
"label": "opts",
826+
"description": [],
827+
"signature": [
828+
"CreateAbortableEsClientFactoryOpts"
829+
],
830+
"path": "x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts",
831+
"deprecated": false,
832+
"isRequired": true
833+
}
834+
],
835+
"returnComment": [],
836+
"initialIsOpen": false
837+
},
773838
{
774839
"parentPluginId": "alerting",
775840
"id": "def-server.getEsErrorMessage",
@@ -912,6 +977,16 @@
912977
"path": "x-pack/plugins/alerting/server/types.ts",
913978
"deprecated": false
914979
},
980+
{
981+
"parentPluginId": "alerting",
982+
"id": "def-server.AlertExecutorOptions.executionId",
983+
"type": "string",
984+
"tags": [],
985+
"label": "executionId",
986+
"description": [],
987+
"path": "x-pack/plugins/alerting/server/types.ts",
988+
"deprecated": false
989+
},
915990
{
916991
"parentPluginId": "alerting",
917992
"id": "def-server.AlertExecutorOptions.startedAt",
@@ -2484,7 +2559,7 @@
24842559
"section": "def-server.PartialAlert",
24852560
"text": "PartialAlert"
24862561
},
2487-
"<Params>>; enable: ({ id }: { id: string; }) => Promise<void>; disable: ({ id }: { id: string; }) => Promise<void>; muteAll: ({ id }: { id: string; }) => Promise<void>; getAlertState: ({ id }: { id: string; }) => Promise<void | { alertTypeState?: { [x: string]: unknown; } | undefined; alertInstances?: { [x: string]: { state?: { [x: string]: unknown; } | undefined; meta?: { lastScheduledActions?: ({ subgroup?: string | undefined; } & { group: string; date: Date; }) | undefined; } | undefined; }; } | undefined; previousStartedAt?: Date | null | undefined; }>; getAlertSummary: ({ id, dateStart }: ",
2562+
"<Params>>; enable: ({ id }: { id: string; }) => Promise<void>; disable: ({ id }: { id: string; }) => Promise<void>; muteAll: ({ id }: { id: string; }) => Promise<void>; getAlertState: ({ id }: { id: string; }) => Promise<void | { alertTypeState?: { [x: string]: unknown; } | undefined; alertInstances?: { [x: string]: { state?: { [x: string]: unknown; } | undefined; meta?: { lastScheduledActions?: ({ subgroup?: string | undefined; } & { group: string; date: Date; }) | undefined; } | undefined; }; } | undefined; previousStartedAt?: Date | null | undefined; }>; getAlertSummary: ({ id, dateStart, numberOfExecutions, }: ",
24882563
"GetAlertSummaryParams",
24892564
") => Promise<",
24902565
{
@@ -3205,6 +3280,26 @@
32053280
],
32063281
"path": "x-pack/plugins/alerting/common/alert.ts",
32073282
"deprecated": false
3283+
},
3284+
{
3285+
"parentPluginId": "alerting",
3286+
"id": "def-common.Alert.monitoring",
3287+
"type": "Object",
3288+
"tags": [],
3289+
"label": "monitoring",
3290+
"description": [],
3291+
"signature": [
3292+
{
3293+
"pluginId": "alerting",
3294+
"scope": "common",
3295+
"docId": "kibAlertingPluginApi",
3296+
"section": "def-common.RuleMonitoring",
3297+
"text": "RuleMonitoring"
3298+
},
3299+
" | undefined"
3300+
],
3301+
"path": "x-pack/plugins/alerting/common/alert.ts",
3302+
"deprecated": false
32083303
}
32093304
],
32103305
"initialIsOpen": false
@@ -3910,6 +4005,43 @@
39104005
],
39114006
"initialIsOpen": false
39124007
},
4008+
{
4009+
"parentPluginId": "alerting",
4010+
"id": "def-common.RuleMonitoring",
4011+
"type": "Interface",
4012+
"tags": [],
4013+
"label": "RuleMonitoring",
4014+
"description": [],
4015+
"signature": [
4016+
{
4017+
"pluginId": "alerting",
4018+
"scope": "common",
4019+
"docId": "kibAlertingPluginApi",
4020+
"section": "def-common.RuleMonitoring",
4021+
"text": "RuleMonitoring"
4022+
},
4023+
" extends ",
4024+
"SavedObjectAttributes"
4025+
],
4026+
"path": "x-pack/plugins/alerting/common/alert.ts",
4027+
"deprecated": false,
4028+
"children": [
4029+
{
4030+
"parentPluginId": "alerting",
4031+
"id": "def-common.RuleMonitoring.execution",
4032+
"type": "Object",
4033+
"tags": [],
4034+
"label": "execution",
4035+
"description": [],
4036+
"signature": [
4037+
"{ history: { success: boolean; timestamp: number; }[]; calculated_metrics: { success_ratio: number; }; }"
4038+
],
4039+
"path": "x-pack/plugins/alerting/common/alert.ts",
4040+
"deprecated": false
4041+
}
4042+
],
4043+
"initialIsOpen": false
4044+
},
39134045
{
39144046
"parentPluginId": "alerting",
39154047
"id": "def-common.RuleType",
@@ -4532,7 +4664,15 @@
45324664
"label": "SanitizedAlert",
45334665
"description": [],
45344666
"signature": [
4535-
"{ id: string; name: string; tags: string[]; enabled: boolean; params: Params; actions: ",
4667+
"{ id: string; monitoring?: ",
4668+
{
4669+
"pluginId": "alerting",
4670+
"scope": "common",
4671+
"docId": "kibAlertingPluginApi",
4672+
"section": "def-common.RuleMonitoring",
4673+
"text": "RuleMonitoring"
4674+
},
4675+
" | undefined; name: string; tags: string[]; enabled: boolean; params: Params; actions: ",
45364676
{
45374677
"pluginId": "alerting",
45384678
"scope": "common",

api_docs/alerting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2020-11-16
88
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
99
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info.
1010
---
11-
import alertingObj from './alerting.json';
11+
import alertingObj from './alerting.devdocs.json';
1212

1313

1414

@@ -18,7 +18,7 @@ Contact [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-
1818

1919
| Public API count | Any count | Items lacking comments | Missing exports |
2020
|-------------------|-----------|------------------------|-----------------|
21-
| 277 | 0 | 269 | 18 |
21+
| 283 | 0 | 275 | 19 |
2222

2323
## Client
2424

0 commit comments

Comments
 (0)