Skip to content

Commit 2b9e0a5

Browse files
Merge branch 'main' into retain-created_by-when-exporting-jobs
2 parents da86d3b + 7a87c36 commit 2b9e0a5

790 files changed

Lines changed: 6682 additions & 2198 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/steps/check_types_commits.sh

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,28 @@ if [[ "${CI-}" == "true" ]]; then
99
sha1=$(git merge-base $GITHUB_PR_TARGET_BRANCH $GITHUB_PR_TRIGGERED_SHA)
1010
sha2="${GITHUB_PR_TRIGGERED_SHA-}"
1111
else
12-
# Script take between 0 and 2 arguments representing two commit SHA's:
13-
# If 0, it will diff HEAD and HEAD^
14-
# If 1 (SHA1), it will diff SHA1 and SHA1^
15-
# If 2 (SHA1, SHA2), it will diff SHA1 and SHA2
16-
sha1="${1-HEAD}"
17-
sha2="${2-$sha1^}"
12+
if [[ "${1-}" == "--cached" ]]; then
13+
# Only check staged files
14+
sha1=$1
15+
sha2=""
16+
else
17+
# Script take between 0 and 2 arguments representing two commit SHA's:
18+
# If 0, it will diff HEAD and HEAD^
19+
# If 1 (SHA1), it will diff SHA1 and SHA1^
20+
# If 2 (SHA1, SHA2), it will diff SHA1 and SHA2
21+
sha1="${1-HEAD}"
22+
sha2="${2-$sha1^}"
23+
fi
1824
fi
1925

2026
uniq_dirs=()
2127
uniq_tsconfigs=()
2228

23-
echo "Detecting files changed between $sha1 and $sha2..."
29+
if [[ "$sha1" == "--cached" ]]; then
30+
echo "Detecting files changed in staging area..."
31+
else
32+
echo "Detecting files changed between $sha1 and $sha2..."
33+
fi
2434

2535
files=($(git diff --name-only $sha1 $sha2))
2636

@@ -102,7 +112,11 @@ do
102112
done
103113

104114
if [ ${#uniq_tsconfigs[@]} -eq 0 ]; then
105-
echo "No tsconfig.json files found for changes in $sha1 $sha2"
115+
if [[ "$sha1" == "--cached" ]]; then
116+
echo "No tsconfig.json files found for staged changes"
117+
else
118+
echo "No tsconfig.json files found for changes between $sha1 and $sha2"
119+
fi
106120
exit
107121
fi
108122

api_docs/actions.mdx

Lines changed: 1 addition & 1 deletion
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: 2023-09-26
11+
date: 2023-09-27
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
1313
---
1414
import actionsObj from './actions.devdocs.json';

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: 2023-09-26
11+
date: 2023-09-27
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: 2023-09-26
11+
date: 2023-09-27
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
1313
---
1414
import aiopsObj from './aiops.devdocs.json';

api_docs/alerting.devdocs.json

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4846,27 +4846,9 @@
48464846
"section": "def-common.IExecutionErrorsResult",
48474847
"text": "IExecutionErrorsResult"
48484848
},
4849-
">; bulkDeleteRules: (options: ",
4850-
"BulkOptions",
4851-
") => Promise<{ errors: ",
4852-
{
4853-
"pluginId": "alerting",
4854-
"scope": "server",
4855-
"docId": "kibAlertingPluginApi",
4856-
"section": "def-server.BulkOperationError",
4857-
"text": "BulkOperationError"
4858-
},
4859-
"[]; total: number; rules: (",
4860-
{
4861-
"pluginId": "alerting",
4862-
"scope": "common",
4863-
"docId": "kibAlertingPluginApi",
4864-
"section": "def-common.Rule",
4865-
"text": "Rule"
4866-
},
4867-
"<never> | ",
4868-
"RuleWithLegacyId",
4869-
"<never>)[]; taskIdsFailedToBeDeleted: string[]; }>; bulkEdit: <Params extends ",
4849+
">; bulkDeleteRules: (options: Readonly<{ filter?: string | undefined; ids?: string[] | undefined; } & {}>) => Promise<",
4850+
"BulkDeleteRulesResult",
4851+
"<Record<string, any>>>; bulkEdit: <Params extends ",
48704852
{
48714853
"pluginId": "alerting",
48724854
"scope": "common",

api_docs/alerting.mdx

Lines changed: 2 additions & 2 deletions
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: 2023-09-26
11+
date: 2023-09-27
1212
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
1313
---
1414
import alertingObj from './alerting.devdocs.json';
@@ -21,7 +21,7 @@ Contact [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-o
2121

2222
| Public API count | Any count | Items lacking comments | Missing exports |
2323
|-------------------|-----------|------------------------|-----------------|
24-
| 772 | 1 | 741 | 50 |
24+
| 772 | 1 | 741 | 51 |
2525

2626
## Client
2727

api_docs/apm.devdocs.json

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5852,14 +5852,46 @@
58525852
"<{ serviceName: ",
58535853
"StringC",
58545854
"; }>; query: ",
5855+
"IntersectionC",
5856+
"<[",
58555857
"TypeC",
58565858
"<{ start: ",
58575859
"Type",
58585860
"<number, string, unknown>; end: ",
58595861
"Type",
5860-
"<number, string, unknown>; }>; }> | undefined; handler: ({}: ",
5862+
"<number, string, unknown>; }>, ",
5863+
"TypeC",
5864+
"<{ environment: ",
5865+
"UnionC",
5866+
"<[",
5867+
"LiteralC",
5868+
"<\"ENVIRONMENT_NOT_DEFINED\">, ",
5869+
"LiteralC",
5870+
"<\"ENVIRONMENT_ALL\">, ",
5871+
"BrandC",
5872+
"<",
5873+
"StringC",
5874+
", ",
5875+
{
5876+
"pluginId": "@kbn/io-ts-utils",
5877+
"scope": "common",
5878+
"docId": "kibKbnIoTsUtilsPluginApi",
5879+
"section": "def-common.NonEmptyStringBrand",
5880+
"text": "NonEmptyStringBrand"
5881+
},
5882+
">]>; }>]>; }> | undefined; handler: ({}: ",
58615883
"APMRouteHandlerResources",
5862-
" & { params: { path: { serviceName: string; }; query: { start: number; end: number; }; }; }) => Promise<",
5884+
" & { params: { path: { serviceName: string; }; query: { start: number; end: number; } & { environment: \"ENVIRONMENT_NOT_DEFINED\" | \"ENVIRONMENT_ALL\" | ",
5885+
"Branded",
5886+
"<string, ",
5887+
{
5888+
"pluginId": "@kbn/io-ts-utils",
5889+
"scope": "common",
5890+
"docId": "kibKbnIoTsUtilsPluginApi",
5891+
"section": "def-common.NonEmptyStringBrand",
5892+
"text": "NonEmptyStringBrand"
5893+
},
5894+
">; }; }; }) => Promise<",
58635895
"ServiceMetadataDetails",
58645896
">; } & ",
58655897
"APMRouteCreateOptions",

api_docs/apm.mdx

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

api_docs/apm_data_access.mdx

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

api_docs/asset_manager.mdx

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

0 commit comments

Comments
 (0)