Skip to content

Commit 30c6e7d

Browse files
authored
Merge branch 'main' into tty_option_text_updates
2 parents c3e66a5 + 33a8dbe commit 30c6e7d

806 files changed

Lines changed: 14111 additions & 3809 deletions

File tree

Some content is hidden

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

.buildkite/scripts/common/setup_bazel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cat <<EOF > $KIBANA_DIR/.bazelrc
1111
build --build_metadata=ROLE=CI
1212
EOF
1313

14-
BAZEL_CACHE_MODE=${BAZEL_CACHE_MODE:-gcs}
14+
BAZEL_CACHE_MODE=none
1515

1616
if [[ "$BAZEL_CACHE_MODE" == "gcs" ]]; then
1717
echo "[bazel] enabling caching with GCS buckets"

.buildkite/scripts/steps/lint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ echo '--- Lint: eslint'
1616
# after possibly commiting fixed files to the repo
1717
set +e;
1818
if is_pr && ! is_auto_commit_disabled; then
19-
git ls-files | grep -E '\.(js|mjs|ts|tsx)$' | xargs -n 250 -P 6 node scripts/eslint --no-cache --fix
19+
git ls-files | grep -E '\.(js|mjs|ts|tsx)$' | xargs -n 250 -P 4 node scripts/eslint --no-cache --fix
2020
else
21-
git ls-files | grep -E '\.(js|mjs|ts|tsx)$' | xargs -n 250 -P 6 node scripts/eslint --no-cache
21+
git ls-files | grep -E '\.(js|mjs|ts|tsx)$' | xargs -n 250 -P 4 node scripts/eslint --no-cache
2222
fi
2323

2424
eslint_exit=$?

.eslintrc.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,30 @@ module.exports = {
14061406
],
14071407
},
14081408
},
1409+
/**
1410+
* Allows snake_case variables in the server, because that's how we return API properties
1411+
*/
1412+
{
1413+
files: ['x-pack/plugins/enterprise_search/server/**/*.{ts,tsx}'],
1414+
rules: {
1415+
'@typescript-eslint/naming-convention': [
1416+
'error',
1417+
{
1418+
selector: 'variable',
1419+
modifiers: ['destructured'],
1420+
format: null,
1421+
leadingUnderscore: 'allow',
1422+
trailingUnderscore: 'allow',
1423+
},
1424+
{
1425+
selector: 'variable',
1426+
format: ['camelCase', 'UPPER_CASE'],
1427+
leadingUnderscore: 'allow',
1428+
trailingUnderscore: 'allow',
1429+
},
1430+
],
1431+
},
1432+
},
14091433
{
14101434
// Source files only - allow `any` in test/mock files
14111435
files: ['x-pack/plugins/enterprise_search/**/*.{ts,tsx}'],

.github/CODEOWNERS

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ x-pack/examples/files_example @elastic/kibana-app-services
332332
/x-pack/plugins/event_log/ @elastic/response-ops
333333
/x-pack/plugins/task_manager/ @elastic/response-ops
334334
/x-pack/plugins/stack_connectors/ @elastic/response-ops
335-
/x-pack/plugins/stack_connectors/public/connector_types/stack/ @elastic/response-ops-execution
336-
/x-pack/plugins/stack_connectors/server/connector_types/stack/ @elastic/response-ops-execution
337-
/x-pack/plugins/stack_connectors/public/connector_types/cases/ @elastic/response-ops-cases
338-
/x-pack/plugins/stack_connectors/server/connector_types/cases/ @elastic/response-ops-cases
335+
/x-pack/plugins/stack_connectors/public/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
336+
/x-pack/plugins/stack_connectors/server/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
337+
/x-pack/plugins/stack_connectors/public/connector_types/cases/ @elastic/response-ops @elastic/response-ops-cases
338+
/x-pack/plugins/stack_connectors/server/connector_types/cases/ @elastic/response-ops @elastic/response-ops-cases
339339
/x-pack/test/alerting_api_integration/ @elastic/response-ops
340-
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/stack/ @elastic/response-ops-execution
341-
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/cases/ @elastic/response-ops-cases
342-
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/stack/ @elastic/response-ops-execution
343-
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases/ @elastic/response-ops-cases
340+
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
341+
/x-pack/test/alerting_api_integration/basic/tests/actions/connector_types/cases/ @elastic/response-ops @elastic/response-ops-cases
342+
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/stack/ @elastic/response-ops @elastic/response-ops-execution
343+
/x-pack/test/alerting_api_integration/security_and_spaces/group2/tests/actions/connector_types/cases/ @elastic/response-ops @elastic/response-ops-cases
344344
/x-pack/test/plugin_api_integration/test_suites/task_manager/ @elastic/response-ops
345345
/x-pack/plugins/triggers_actions_ui/ @elastic/response-ops
346346
/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/ @elastic/response-ops
@@ -833,6 +833,7 @@ packages/core/status/core-status-server-internal @elastic/kibana-core
833833
packages/core/status/core-status-server-mocks @elastic/kibana-core
834834
packages/core/test-helpers/core-test-helpers-deprecations-getters @elastic/kibana-core
835835
packages/core/test-helpers/core-test-helpers-http-setup-browser @elastic/kibana-core
836+
packages/core/test-helpers/core-test-helpers-so-type-serializer @elastic/kibana-core
836837
packages/core/theme/core-theme-browser @elastic/kibana-core
837838
packages/core/theme/core-theme-browser-internal @elastic/kibana-core
838839
packages/core/theme/core-theme-browser-mocks @elastic/kibana-core

api_docs/actions.devdocs.json

Lines changed: 8 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,9 @@
741741
"label": "request",
742742
"description": [],
743743
"signature": [
744-
"<R>({ url, data, method, responseSchema, headers, ...config }: { url: string; responseSchema: ",
745-
"Type",
746-
"<R>; method?: ",
747-
"Method",
748-
" | undefined; } & ",
749-
"AxiosRequestConfig",
750-
"<any>) => Promise<",
744+
"<R>({ url, data, method, responseSchema, headers, ...config }: ",
745+
"SubActionRequestParams",
746+
"<R>) => Promise<",
751747
"AxiosResponse",
752748
"<R, any>>"
753749
],
@@ -763,13 +759,8 @@
763759
"label": "{\n url,\n data,\n method = 'get',\n responseSchema,\n headers,\n ...config\n }",
764760
"description": [],
765761
"signature": [
766-
"{ url: string; responseSchema: ",
767-
"Type",
768-
"<R>; method?: ",
769-
"Method",
770-
" | undefined; } & ",
771-
"AxiosRequestConfig",
772-
"<any>"
762+
"SubActionRequestParams",
763+
"<R>"
773764
],
774765
"path": "x-pack/plugins/actions/server/sub_action_framework/sub_action_connector.ts",
775766
"deprecated": false,
@@ -1246,59 +1237,12 @@
12461237
"label": "renderParameterTemplates",
12471238
"description": [],
12481239
"signature": [
1249-
"((params: Params, variables: Record<string, unknown>, actionId?: string | undefined) => Params) | undefined"
1240+
"RenderParameterTemplates",
1241+
"<Params> | undefined"
12501242
],
12511243
"path": "x-pack/plugins/actions/server/types.ts",
12521244
"deprecated": false,
1253-
"trackAdoption": false,
1254-
"children": [
1255-
{
1256-
"parentPluginId": "actions",
1257-
"id": "def-server.ActionType.renderParameterTemplates.$1",
1258-
"type": "Uncategorized",
1259-
"tags": [],
1260-
"label": "params",
1261-
"description": [],
1262-
"signature": [
1263-
"Params"
1264-
],
1265-
"path": "x-pack/plugins/actions/server/types.ts",
1266-
"deprecated": false,
1267-
"trackAdoption": false,
1268-
"isRequired": true
1269-
},
1270-
{
1271-
"parentPluginId": "actions",
1272-
"id": "def-server.ActionType.renderParameterTemplates.$2",
1273-
"type": "Object",
1274-
"tags": [],
1275-
"label": "variables",
1276-
"description": [],
1277-
"signature": [
1278-
"Record<string, unknown>"
1279-
],
1280-
"path": "x-pack/plugins/actions/server/types.ts",
1281-
"deprecated": false,
1282-
"trackAdoption": false,
1283-
"isRequired": true
1284-
},
1285-
{
1286-
"parentPluginId": "actions",
1287-
"id": "def-server.ActionType.renderParameterTemplates.$3",
1288-
"type": "string",
1289-
"tags": [],
1290-
"label": "actionId",
1291-
"description": [],
1292-
"signature": [
1293-
"string | undefined"
1294-
],
1295-
"path": "x-pack/plugins/actions/server/types.ts",
1296-
"deprecated": false,
1297-
"trackAdoption": false,
1298-
"isRequired": false
1299-
}
1300-
],
1301-
"returnComment": []
1245+
"trackAdoption": false
13021246
},
13031247
{
13041248
"parentPluginId": "actions",

api_docs/actions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions
88
title: "actions"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the actions plugin
11-
date: 2022-10-05
11+
date: 2022-10-08
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
1313
---
1414
import actionsObj from './actions.devdocs.json';
@@ -21,7 +21,7 @@ Contact [Response Ops](https://github.com/orgs/elastic/teams/response-ops) for q
2121

2222
| Public API count | Any count | Items lacking comments | Missing exports |
2323
|-------------------|-----------|------------------------|-----------------|
24-
| 216 | 0 | 211 | 21 |
24+
| 213 | 0 | 208 | 23 |
2525

2626
## Client
2727

api_docs/advanced_settings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings
88
title: "advancedSettings"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the advancedSettings plugin
11-
date: 2022-10-05
11+
date: 2022-10-08
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
1313
---
1414
import advancedSettingsObj from './advanced_settings.devdocs.json';

api_docs/aiops.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiops
88
title: "aiops"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the aiops plugin
11-
date: 2022-10-05
11+
date: 2022-10-08
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
1313
---
1414
import aiopsObj from './aiops.devdocs.json';

api_docs/alerting.devdocs.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@
551551
", filterOpts: ",
552552
"AlertingAuthorizationFilterOpts",
553553
") => Promise<{ filter?: ",
554-
"KueryNode",
555-
" | ",
556554
"JsonObject",
555+
" | ",
556+
"KueryNode",
557557
" | undefined; ensureRuleTypeIsAuthorized: (ruleTypeId: string, consumer: string, auth: string) => void; }>"
558558
],
559559
"path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts",
@@ -634,9 +634,9 @@
634634
"text": "WriteOperations"
635635
},
636636
") => Promise<{ filter?: ",
637-
"KueryNode",
638-
" | ",
639637
"JsonObject",
638+
" | ",
639+
"KueryNode",
640640
" | undefined; ensureRuleTypeIsAuthorized: (ruleTypeId: string, consumer: string, auth: string) => void; }>"
641641
],
642642
"path": "x-pack/plugins/alerting/server/authorization/alerting_authorization.ts",

api_docs/alerting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/alerting
88
title: "alerting"
99
image: https://source.unsplash.com/400x175/?github
1010
description: API docs for the alerting plugin
11-
date: 2022-10-05
11+
date: 2022-10-08
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
1313
---
1414
import alertingObj from './alerting.devdocs.json';

0 commit comments

Comments
 (0)