Skip to content

Commit

Permalink
Merge branch 'main' into canvas/fix-return-path
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Nov 24, 2021
2 parents c20a6f3 + 147042e commit 215c4b6
Show file tree
Hide file tree
Showing 108 changed files with 1,102 additions and 699 deletions.
2 changes: 2 additions & 0 deletions .buildkite/scripts/common/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export TEST_BROWSER_HEADLESS=1

export ELASTIC_APM_ENVIRONMENT=ci
export ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1
export ELASTIC_APM_SERVER_URL=https://kibana-ci-apm.apm.us-central1.gcp.cloud.es.io
export ELASTIC_APM_SECRET_TOKEN=7YKhoXsO4MzjhXjx2c

if is_pr; then
if [[ "${GITHUB_PR_LABELS:-}" == *"ci:collect-apm"* ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ checks-reporter-with-killswitch "Build TS Refs" \
--no-cache \
--force

set +e;
echo "--- running check types and build api docs in parallel";

checks-reporter-with-killswitch "Check Types" \
node scripts/type_check &> target/check_types.log &
check_types_pid=$!
Expand Down
37 changes: 24 additions & 13 deletions api_docs/advanced_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,14 @@
"type": "Function",
"tags": [],
"label": "register",
"description": [],
"description": [
"/**\n * Attempts to register the provided component, with the ability to optionally allow\n * the component to override an existing one.\n *\n * If the intent is to override, then `allowOverride` must be set to true, otherwise an exception is thrown.\n *\n * @param id the id of the component to register\n * @param component the component\n * @param allowOverride (default: false) - optional flag to allow this component to override a previously registered component\n */"
],
"signature": [
"(id: Id, component: React.ComponentType<Record<string, any> | undefined>, allowOverride?: boolean) => void"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false,
"returnComment": [],
"children": [
{
"parentPluginId": "advancedSettings",
Expand All @@ -138,10 +139,11 @@
"label": "id",
"description": [],
"signature": [
"\"advanced_settings_page_title\" | \"advanced_settings_page_subtitle\" | \"advanced_settings_page_footer\""
"Id"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
},
{
"parentPluginId": "advancedSettings",
Expand All @@ -151,10 +153,11 @@
"label": "component",
"description": [],
"signature": [
"React.ComponentClass<Record<string, any> | undefined, any> | React.FunctionComponent<Record<string, any> | undefined>"
"React.ComponentType<Record<string, any> | undefined>"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
},
{
"parentPluginId": "advancedSettings",
Expand All @@ -163,10 +166,15 @@
"tags": [],
"label": "allowOverride",
"description": [],
"signature": [
"boolean"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
}
]
],
"returnComment": []
}
]
},
Expand Down Expand Up @@ -199,13 +207,14 @@
"type": "Function",
"tags": [],
"label": "get",
"description": [],
"description": [
"/**\n * Retrieve a registered component by its ID.\n * If the component does not exist, then an exception is thrown.\n *\n * @param id the ID of the component to retrieve\n */"
],
"signature": [
"(id: Id) => React.ComponentType<Record<string, any> | undefined>"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false,
"returnComment": [],
"children": [
{
"parentPluginId": "advancedSettings",
Expand All @@ -215,12 +224,14 @@
"label": "id",
"description": [],
"signature": [
"\"advanced_settings_page_title\" | \"advanced_settings_page_subtitle\" | \"advanced_settings_page_footer\""
"Id"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
}
]
],
"returnComment": []
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion api_docs/advanced_settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors)

| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
| 23 | 0 | 22 | 1 |
| 23 | 0 | 20 | 1 |

## Client

Expand Down
4 changes: 2 additions & 2 deletions api_docs/charts.json
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@
"id": "def-public.ColorMap.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: RawColorSchema",
"label": "[key: string]: RawColorSchema",
"description": [],
"signature": [
"[key: string]: ",
Expand Down Expand Up @@ -3292,7 +3292,7 @@
"id": "def-common.ColorMap.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: RawColorSchema",
"label": "[key: string]: RawColorSchema",
"description": [],
"signature": [
"[key: string]: ",
Expand Down
14 changes: 7 additions & 7 deletions api_docs/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
"id": "def-public.Capabilities.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: Record<string, boolean | Record<string, boolean>>",
"label": "[key: string]: Record<string, boolean | Record<string, boolean>>",
"description": [
"Custom capabilities, registered by plugins."
],
Expand Down Expand Up @@ -4459,7 +4459,7 @@
"id": "def-public.SavedObjectAttributes.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: SavedObjectAttribute",
"label": "[key: string]: SavedObjectAttribute",
"description": [],
"signature": [
"[key: string]: ",
Expand Down Expand Up @@ -5915,7 +5915,7 @@
"id": "def-public.SavedObjectsMigrationVersion.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[pluginName: string}]: string",
"label": "[pluginName: string]: string",
"description": [],
"signature": [
"[pluginName: string]: string"
Expand Down Expand Up @@ -6375,7 +6375,7 @@
"id": "def-public.UiSettingsState.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: Pick<UiSettingsParams<unknown>, \"name\" | \"type\" | \"description\" | \"options\" | \"order\" | \"value\" | \"category\" | \"optionLabels\" | \"requiresPageReload\" | \"readonly\" | \"sensitive\" | \"deprecation\" | \"metric\"> & UserProvidedValues<...>",
"label": "[key: string]: Pick<UiSettingsParams<unknown>, \"name\" | \"type\" | \"description\" | \"options\" | \"order\" | \"value\" | \"category\" | \"optionLabels\" | \"requiresPageReload\" | \"readonly\" | \"sensitive\" | \"deprecation\" | \"metric\"> & UserProvidedValues<...>",
"description": [],
"signature": [
"[key: string]: Pick<",
Expand Down Expand Up @@ -8353,7 +8353,7 @@
"id": "def-server.Capabilities.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: Record<string, boolean | Record<string, boolean>>",
"label": "[key: string]: Record<string, boolean | Record<string, boolean>>",
"description": [
"Custom capabilities, registered by plugins."
],
Expand Down Expand Up @@ -16090,7 +16090,7 @@
"id": "def-server.SavedObjectAttributes.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: SavedObjectAttribute",
"label": "[key: string]: SavedObjectAttribute",
"description": [],
"signature": [
"[key: string]: ",
Expand Down Expand Up @@ -16164,7 +16164,7 @@
"id": "def-server.SavedObjectsMigrationVersion.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[pluginName: string}]: string",
"label": "[pluginName: string]: string",
"description": [],
"signature": [
"[pluginName: string]: string"
Expand Down
4 changes: 2 additions & 2 deletions api_docs/core_http.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"id": "def-public.HttpFetchQuery.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: string | number | boolean | string[] | number[] | boolean[] | null | undefined",
"label": "[key: string]: string | number | boolean | string[] | number[] | boolean[] | null | undefined",
"description": [
"\nTypeScript note: Technically we should use this interface instead, but @types/node uses the below stricter\ndefinition, so to avoid TypeScript errors, we'll restrict our version.\n\n[key: string]:\n | string\n | number\n | boolean\n | Array<string | number | boolean>\n | undefined\n | null;"
],
Expand Down Expand Up @@ -293,7 +293,7 @@
"id": "def-public.HttpHeadersInit.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[name: string}]: any",
"label": "[name: string]: any",
"description": [],
"signature": [
"[name: string]: any"
Expand Down
4 changes: 2 additions & 2 deletions api_docs/core_saved_objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -9734,7 +9734,7 @@
"id": "def-server.SavedObjectMigrationMap.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[version: string}]: SavedObjectMigrationFn<any, any>",
"label": "[version: string]: SavedObjectMigrationFn<any, any>",
"description": [],
"signature": [
"[version: string]: ",
Expand Down Expand Up @@ -13259,7 +13259,7 @@
"id": "def-server.SavedObjectsMappingProperties.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[field: string}]: SavedObjectsFieldMapping",
"label": "[field: string]: SavedObjectsFieldMapping",
"description": [],
"signature": [
"[field: string]: ",
Expand Down
2 changes: 1 addition & 1 deletion api_docs/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2872,7 +2872,7 @@
"id": "def-common.migratePanelsTo730.$4.Unnamed",
"type": "IndexSignature",
"tags": [],
"label": "[key: string}]: SerializableRecord",
"label": "[key: string]: SerializableRecord",
"description": [],
"signature": [
"[key: string]: ",
Expand Down
Loading

0 comments on commit 215c4b6

Please sign in to comment.