diff --git a/.bazelrc.common b/.bazelrc.common index 8d865f904d600..7b84ab44af7a9 100644 --- a/.bazelrc.common +++ b/.bazelrc.common @@ -44,9 +44,7 @@ build --experimental_inprocess_symlink_creation # Incompatible flags to run with build --incompatible_no_implicit_file_export -build --incompatible_restrict_string_escapes query --incompatible_no_implicit_file_export -query --incompatible_restrict_string_escapes # Log configs ## different from default diff --git a/.bazelversion b/.bazelversion index fae6e3d04b2ca..0062ac971805f 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -4.2.1 +5.0.0 diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 3a9782ca2c676..76c516ecc605a 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -10,15 +10,15 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # Fetch Node.js rules http_archive( name = "build_bazel_rules_nodejs", - sha256 = "e79c08a488cc5ac40981987d862c7320cee8741122a2649e9b08e850b6f20442", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.8.0/rules_nodejs-3.8.0.tar.gz"], + sha256 = "8a7c981217239085f78acc9898a1f7ba99af887c1996ceb3b4504655383a2c3c", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.0.0/rules_nodejs-4.0.0.tar.gz"], ) # Now that we have the rules let's import from them to complete the work load("@build_bazel_rules_nodejs//:index.bzl", "check_rules_nodejs_version", "node_repositories", "yarn_install") # Assure we have at least a given rules_nodejs version -check_rules_nodejs_version(minimum_version_string = "3.8.0") +check_rules_nodejs_version(minimum_version_string = "4.0.0") # Setup the Node.js toolchain for the architectures we want to support # diff --git a/api_docs/actions.mdx b/api_docs/actions.mdx index c89d6199bb389..f60c99d62ced6 100644 --- a/api_docs/actions.mdx +++ b/api_docs/actions.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/actions title: "actions" image: https://source.unsplash.com/400x175/?github summary: API docs for the actions plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions'] 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. --- diff --git a/api_docs/advanced_settings.mdx b/api_docs/advanced_settings.mdx index 6e94e7be3b4f2..2b6d59e46e5b0 100644 --- a/api_docs/advanced_settings.mdx +++ b/api_docs/advanced_settings.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/advancedSettings title: "advancedSettings" image: https://source.unsplash.com/400x175/?github summary: API docs for the advancedSettings plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings'] 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. --- diff --git a/api_docs/alerting.devdocs.json b/api_docs/alerting.devdocs.json index aab483370e833..389461e4a833d 100644 --- a/api_docs/alerting.devdocs.json +++ b/api_docs/alerting.devdocs.json @@ -57,7 +57,7 @@ "section": "def-common.AlertAction", "text": "AlertAction" }, - "[]; alertTypeId: string; consumer: string; schedule: ", + "[]; throttle: string | null; alertTypeId: string; consumer: string; schedule: ", { "pluginId": "alerting", "scope": "common", @@ -65,7 +65,7 @@ "section": "def-common.IntervalSchedule", "text": "IntervalSchedule" }, - "; scheduledTaskId?: string | undefined; createdBy: string | null; updatedBy: string | null; createdAt: Date; updatedAt: Date; apiKeyOwner: string | null; throttle: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\" | null; muteAll: boolean; mutedInstanceIds: string[]; executionStatus: ", + "; scheduledTaskId?: string | undefined; createdBy: string | null; updatedBy: string | null; createdAt: Date; updatedAt: Date; apiKeyOwner: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\" | null; muteAll: boolean; mutedInstanceIds: string[]; executionStatus: ", { "pluginId": "alerting", "scope": "common", @@ -1075,7 +1075,7 @@ "section": "def-common.SanitizedAlert", "text": "SanitizedAlert" }, - ", \"name\" | \"tags\" | \"enabled\" | \"actions\" | \"consumer\" | \"schedule\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"throttle\" | \"notifyWhen\"> & { producer: string; ruleTypeId: string; ruleTypeName: string; }" + ", \"name\" | \"tags\" | \"enabled\" | \"actions\" | \"throttle\" | \"consumer\" | \"schedule\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"notifyWhen\"> & { producer: string; ruleTypeId: string; ruleTypeName: string; }" ], "path": "x-pack/plugins/alerting/server/types.ts", "deprecated": false @@ -1319,41 +1319,24 @@ "children": [ { "parentPluginId": "alerting", - "id": "def-server.AlertServices.alertInstanceFactory", - "type": "Function", + "id": "def-server.AlertServices.alertFactory", + "type": "Object", "tags": [], - "label": "alertInstanceFactory", + "label": "alertFactory", "description": [], "signature": [ - "(id: string) => ", + "{ create: (id: string) => ", { "pluginId": "alerting", "scope": "server", "docId": "kibAlertingPluginApi", - "section": "def-server.PublicAlertInstance", - "text": "PublicAlertInstance" + "section": "def-server.PublicAlert", + "text": "PublicAlert" }, - "" + "; }" ], "path": "x-pack/plugins/alerting/server/types.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "alerting", - "id": "def-server.AlertServices.alertInstanceFactory.$1", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "signature": [ - "string" - ], - "path": "x-pack/plugins/alerting/server/types.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] + "deprecated": false }, { "parentPluginId": "alerting", @@ -2441,21 +2424,21 @@ }, { "parentPluginId": "alerting", - "id": "def-server.PublicAlertInstance", + "id": "def-server.PublicAlert", "type": "Type", "tags": [], - "label": "PublicAlertInstance", + "label": "PublicAlert", "description": [], "signature": [ "{ getState: () => State; replaceState: (state: State) => ", - "AlertInstance", + "Alert", "; scheduleActions: (actionGroup: ActionGroupIds, context?: Context) => ", - "AlertInstance", + "Alert", "; scheduleActionsWithSubGroup: (actionGroup: ActionGroupIds, subgroup: string, context?: Context) => ", - "AlertInstance", + "Alert", "; }" ], - "path": "x-pack/plugins/alerting/server/alert_instance/alert_instance.ts", + "path": "x-pack/plugins/alerting/server/alert/alert.ts", "deprecated": false, "initialIsOpen": false }, @@ -2497,9 +2480,9 @@ "section": "def-common.AlertTypeParams", "text": "AlertTypeParams" }, - " = never>({ options: { fields, ...options }, }?: { options?: ", + " = never>({ options: { fields, ...options }, excludeFromPublicApi, }?: { options?: ", "FindOptions", - " | undefined; }) => Promise<", + " | undefined; excludeFromPublicApi?: boolean | undefined; }) => Promise<", { "pluginId": "alerting", "scope": "server", @@ -2515,7 +2498,7 @@ "section": "def-common.AlertTypeParams", "text": "AlertTypeParams" }, - " = never>({ id, includeLegacyId, }: { id: string; includeLegacyId?: boolean | undefined; }) => Promise<", + " = never>({ id, includeLegacyId, excludeFromPublicApi, }: { id: string; includeLegacyId?: boolean | undefined; excludeFromPublicApi?: boolean | undefined; }) => Promise<", { "pluginId": "alerting", "scope": "common", @@ -4786,7 +4769,7 @@ "section": "def-common.AlertAction", "text": "AlertAction" }, - "[]; alertTypeId: string; consumer: string; schedule: ", + "[]; throttle: string | null; alertTypeId: string; consumer: string; schedule: ", { "pluginId": "alerting", "scope": "common", @@ -4794,7 +4777,7 @@ "section": "def-common.IntervalSchedule", "text": "IntervalSchedule" }, - "; scheduledTaskId?: string | undefined; createdBy: string | null; updatedBy: string | null; createdAt: Date; updatedAt: Date; apiKeyOwner: string | null; throttle: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\" | null; muteAll: boolean; mutedInstanceIds: string[]; executionStatus: ", + "; scheduledTaskId?: string | undefined; createdBy: string | null; updatedBy: string | null; createdAt: Date; updatedAt: Date; apiKeyOwner: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\" | null; muteAll: boolean; mutedInstanceIds: string[]; executionStatus: ", { "pluginId": "alerting", "scope": "common", @@ -4824,7 +4807,7 @@ "section": "def-common.SanitizedAlert", "text": "SanitizedAlert" }, - ", \"name\" | \"tags\" | \"enabled\" | \"actions\" | \"consumer\" | \"schedule\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"throttle\" | \"notifyWhen\"> & { producer: string; ruleTypeId: string; ruleTypeName: string; }" + ", \"name\" | \"tags\" | \"enabled\" | \"actions\" | \"throttle\" | \"consumer\" | \"schedule\" | \"createdBy\" | \"updatedBy\" | \"createdAt\" | \"updatedAt\" | \"notifyWhen\"> & { producer: string; ruleTypeId: string; ruleTypeName: string; }" ], "path": "x-pack/plugins/alerting/common/alert.ts", "deprecated": false, diff --git a/api_docs/alerting.mdx b/api_docs/alerting.mdx index 0158e7f459ee3..9e42d8dbfabbf 100644 --- a/api_docs/alerting.mdx +++ b/api_docs/alerting.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/alerting title: "alerting" image: https://source.unsplash.com/400x175/?github summary: API docs for the alerting plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting- | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 290 | 0 | 282 | 19 | +| 289 | 0 | 281 | 19 | ## Client diff --git a/api_docs/apm.devdocs.json b/api_docs/apm.devdocs.json index f7e8f96b7614c..04ad9a4d92bad 100644 --- a/api_docs/apm.devdocs.json +++ b/api_docs/apm.devdocs.json @@ -393,13 +393,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "x-pack/plugins/apm/server/routes/typings.ts", "deprecated": false @@ -4873,9 +4867,7 @@ "TypeC", "<{ numBuckets: ", "Type", - "; transactionType: ", - "StringC", - "; groupIds: ", + "; groupIds: ", "Type", "; }>]>; }>, ", { @@ -4935,11 +4927,7 @@ "Type", "; end: ", "Type", - "; }>, ", - "TypeC", - "<{ transactionType: ", - "StringC", - "; }>]>; }>, ", + "; }>]>; }>, ", { "pluginId": "apm", "scope": "server", diff --git a/api_docs/apm.mdx b/api_docs/apm.mdx index 1a97a3448d51d..4c215e864b0a8 100644 --- a/api_docs/apm.mdx +++ b/api_docs/apm.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/apm title: "apm" image: https://source.unsplash.com/400x175/?github summary: API docs for the apm plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm'] 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. --- diff --git a/api_docs/banners.mdx b/api_docs/banners.mdx index eac3ca543a25a..08f3a09434e5a 100644 --- a/api_docs/banners.mdx +++ b/api_docs/banners.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/banners title: "banners" image: https://source.unsplash.com/400x175/?github summary: API docs for the banners plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners'] 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. --- diff --git a/api_docs/bfetch.mdx b/api_docs/bfetch.mdx index 05a6890f0467e..9fcae4a691d20 100644 --- a/api_docs/bfetch.mdx +++ b/api_docs/bfetch.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/bfetch title: "bfetch" image: https://source.unsplash.com/400x175/?github summary: API docs for the bfetch plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'bfetch'] 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. --- diff --git a/api_docs/canvas.mdx b/api_docs/canvas.mdx index 526cabdc930f8..47217436fe639 100644 --- a/api_docs/canvas.mdx +++ b/api_docs/canvas.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/canvas title: "canvas" image: https://source.unsplash.com/400x175/?github summary: API docs for the canvas plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas'] 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. --- diff --git a/api_docs/cases.devdocs.json b/api_docs/cases.devdocs.json index 4e2bd2131268a..a9887264af299 100644 --- a/api_docs/cases.devdocs.json +++ b/api_docs/cases.devdocs.json @@ -929,21 +929,6 @@ "path": "x-pack/plugins/cases/server/client/client.ts", "deprecated": false }, - { - "parentPluginId": "cases", - "id": "def-server.CasesClient.stats", - "type": "Object", - "tags": [], - "label": "stats", - "description": [ - "\nRetrieves an interface for retrieving statistics related to the cases entities." - ], - "signature": [ - "StatsSubClient" - ], - "path": "x-pack/plugins/cases/server/client/client.ts", - "deprecated": false - }, { "parentPluginId": "cases", "id": "def-server.CasesClient.metrics", diff --git a/api_docs/cases.mdx b/api_docs/cases.mdx index 9e0cd20b283ad..1e07e40d42adb 100644 --- a/api_docs/cases.mdx +++ b/api_docs/cases.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/cases title: "cases" image: https://source.unsplash.com/400x175/?github summary: API docs for the cases plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases'] 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. --- @@ -18,7 +18,7 @@ Contact [ResponseOps](https://github.com/orgs/elastic/teams/response-ops) for qu | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 75 | 0 | 51 | 20 | +| 74 | 0 | 51 | 19 | ## Client diff --git a/api_docs/charts.mdx b/api_docs/charts.mdx index 1f3fc0cc92bbe..3cbb943b1bba0 100644 --- a/api_docs/charts.mdx +++ b/api_docs/charts.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/charts title: "charts" image: https://source.unsplash.com/400x175/?github summary: API docs for the charts plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts'] 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. --- diff --git a/api_docs/cloud.mdx b/api_docs/cloud.mdx index ddf99bae6ec80..3924d4cbe40e8 100644 --- a/api_docs/cloud.mdx +++ b/api_docs/cloud.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/cloud title: "cloud" image: https://source.unsplash.com/400x175/?github summary: API docs for the cloud plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud'] 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. --- diff --git a/api_docs/console.mdx b/api_docs/console.mdx index de5ff3fdce3be..cddd0dac25d1e 100644 --- a/api_docs/console.mdx +++ b/api_docs/console.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/console title: "console" image: https://source.unsplash.com/400x175/?github summary: API docs for the console plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'console'] 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. --- diff --git a/api_docs/controls.mdx b/api_docs/controls.mdx index 09e3bca96af98..1807e789987fd 100644 --- a/api_docs/controls.mdx +++ b/api_docs/controls.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/controls title: "controls" image: https://source.unsplash.com/400x175/?github summary: API docs for the controls plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'controls'] 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. --- diff --git a/api_docs/core.devdocs.json b/api_docs/core.devdocs.json index e7dde836fb172..8903cc844a4c3 100644 --- a/api_docs/core.devdocs.json +++ b/api_docs/core.devdocs.json @@ -1686,6 +1686,9 @@ "tags": [], "label": "EnvironmentMode", "description": [], + "signature": [ + "EnvironmentMode" + ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, "children": [ @@ -3986,6 +3989,9 @@ "tags": [], "label": "PackageInfo", "description": [], + "signature": [ + "PackageInfo" + ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, "children": [ @@ -8576,6 +8582,9 @@ "description": [ "\r\nDeprecation context provided to {@link ConfigDeprecation | config deprecations}\r\n" ], + "signature": [ + "ConfigDeprecationContext" + ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, "children": [ @@ -8668,6 +8677,9 @@ "description": [ "\r\nProvides helpers to generates the most commonly used {@link ConfigDeprecation}\r\nwhen invoking a {@link ConfigDeprecationProvider}.\r\n\r\nSee methods documentation for more detailed examples.\r\n" ], + "signature": [ + "ConfigDeprecationFactory" + ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, "children": [ @@ -10587,6 +10599,9 @@ "tags": [], "label": "EnvironmentMode", "description": [], + "signature": [ + "EnvironmentMode" + ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, "children": [ @@ -13268,9 +13283,12 @@ "tags": [], "label": "Logger", "description": [ - "\nLogger exposes all the necessary methods to log any type of information and\nthis is the interface used by the logging consumers including plugins.\n" + "\r\nLogger exposes all the necessary methods to log any type of information and\r\nthis is the interface used by the logging consumers including plugins.\r\n" + ], + "signature": [ + "Logger" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13280,28 +13298,16 @@ "tags": [], "label": "trace", "description": [ - "\nLog messages at the most detailed log level\n" + "\r\nLog messages at the most detailed log level\r\n" ], "signature": [ "(message: string, meta?: Meta | undefined) => void" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13316,7 +13322,7 @@ "signature": [ "string" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true }, @@ -13332,7 +13338,7 @@ "signature": [ "Meta | undefined" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": false } @@ -13346,28 +13352,16 @@ "tags": [], "label": "debug", "description": [ - "\nLog messages useful for debugging and interactive investigation" + "\r\nLog messages useful for debugging and interactive investigation" ], "signature": [ "(message: string, meta?: Meta | undefined) => void" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13382,7 +13376,7 @@ "signature": [ "string" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true }, @@ -13398,7 +13392,7 @@ "signature": [ "Meta | undefined" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": false } @@ -13412,28 +13406,16 @@ "tags": [], "label": "info", "description": [ - "\nLogs messages related to general application flow" + "\r\nLogs messages related to general application flow" ], "signature": [ "(message: string, meta?: Meta | undefined) => void" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13448,7 +13430,7 @@ "signature": [ "string" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true }, @@ -13464,7 +13446,7 @@ "signature": [ "Meta | undefined" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": false } @@ -13478,28 +13460,16 @@ "tags": [], "label": "warn", "description": [ - "\nLogs abnormal or unexpected errors or messages" + "\r\nLogs abnormal or unexpected errors or messages" ], "signature": [ "(errorOrMessage: string | Error, meta?: Meta | undefined) => void" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13514,7 +13484,7 @@ "signature": [ "string | Error" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true }, @@ -13530,7 +13500,7 @@ "signature": [ "Meta | undefined" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": false } @@ -13544,28 +13514,16 @@ "tags": [], "label": "error", "description": [ - "\nLogs abnormal or unexpected errors or messages that caused a failure in the application flow\n" + "\r\nLogs abnormal or unexpected errors or messages that caused a failure in the application flow\r\n" ], "signature": [ "(errorOrMessage: string | Error, meta?: Meta | undefined) => void" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13580,7 +13538,7 @@ "signature": [ "string | Error" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true }, @@ -13596,7 +13554,7 @@ "signature": [ "Meta | undefined" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": false } @@ -13610,28 +13568,16 @@ "tags": [], "label": "fatal", "description": [ - "\nLogs abnormal or unexpected errors or messages that caused an unrecoverable failure\n" + "\r\nLogs abnormal or unexpected errors or messages that caused an unrecoverable failure\r\n" ], "signature": [ "(errorOrMessage: string | Error, meta?: Meta | undefined) => void" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13646,7 +13592,7 @@ "signature": [ "string | Error" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true }, @@ -13662,7 +13608,7 @@ "signature": [ "Meta | undefined" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": false } @@ -13676,19 +13622,13 @@ "tags": [], "label": "get", "description": [ - "\nReturns a new {@link Logger} instance extending the current logger context.\n" + "\r\nReturns a new {@link Logger} instance extending the current logger context.\r\n" ], "signature": [ "(...childContextPaths: string[]) => ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13701,7 +13641,7 @@ "signature": [ "string[]" ], - "path": "node_modules/@kbn/logging/target_types/logger.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true } @@ -13773,9 +13713,12 @@ "tags": [], "label": "LoggerFactory", "description": [ - "\nThe single purpose of `LoggerFactory` interface is to define a way to\nretrieve a context-based logger instance.\n" + "\r\nThe single purpose of `LoggerFactory` interface is to define a way to\r\nretrieve a context-based logger instance.\r\n" ], - "path": "node_modules/@kbn/logging/target_types/logger_factory.d.ts", + "signature": [ + "LoggerFactory" + ], + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13785,19 +13728,13 @@ "tags": [], "label": "get", "description": [ - "\nReturns a `Logger` instance for the specified context.\n" + "\r\nReturns a `Logger` instance for the specified context.\r\n" ], "signature": [ "(...contextParts: string[]) => ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], - "path": "node_modules/@kbn/logging/target_types/logger_factory.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "children": [ { @@ -13807,12 +13744,12 @@ "tags": [], "label": "contextParts", "description": [ - "- Parts of the context to return logger for. For example\nget('plugins', 'pid') will return a logger for the `plugins.pid` context." + "- Parts of the context to return logger for. For example\r\nget('plugins', 'pid') will return a logger for the `plugins.pid` context." ], "signature": [ "string[]" ], - "path": "node_modules/@kbn/logging/target_types/logger_factory.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "isRequired": true } @@ -14470,6 +14407,9 @@ "tags": [], "label": "PackageInfo", "description": [], + "signature": [ + "PackageInfo" + ], "path": "node_modules/@types/kbn__config/index.d.ts", "deprecated": false, "children": [ @@ -14839,13 +14779,7 @@ "\n{@link LoggerFactory | logger factory} instance already bound to the plugin's logging context\n" ], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.LoggerFactory", - "text": "LoggerFactory" - } + "LoggerFactory" ], "path": "src/core/server/plugins/types.ts", "deprecated": false @@ -15140,13 +15074,7 @@ "label": "log", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "src/core/server/elasticsearch/version_check/ensure_es_version.ts", "deprecated": false @@ -17374,83 +17302,12 @@ "tags": [], "label": "Ecs", "description": [ - "\nRepresents the full ECS schema.\n" + "\r\nRepresents the full ECS schema.\r\n" ], "signature": [ - "EcsBase", - " & ", - "EcsTracing", - " & { ecs: EcsField; agent?: ", - "EcsAgent", - " | undefined; as?: ", - "EcsAutonomousSystem", - " | undefined; client?: ", - "EcsClient", - " | undefined; cloud?: ", - "EcsCloud", - " | undefined; container?: ", - "EcsContainer", - " | undefined; data_stream?: ", - "EcsDataStream", - " | undefined; destination?: ", - "EcsDestination", - " | undefined; dns?: ", - "EcsDns", - " | undefined; email?: ", - "EcsEmail", - " | undefined; error?: ", - "EcsError", - " | undefined; event?: ", - "EcsEvent", - " | undefined; file?: ", - "EcsFile", - " | undefined; group?: ", - "EcsGroup", - " | undefined; host?: ", - "EcsHost", - " | undefined; http?: ", - "EcsHttp", - " | undefined; log?: ", - "EcsLog", - " | undefined; network?: ", - "EcsNetwork", - " | undefined; observer?: ", - "EcsObserver", - " | undefined; orchestrator?: ", - "EcsOrchestrator", - " | undefined; organization?: ", - "EcsOrganization", - " | undefined; package?: ", - "EcsPackage", - " | undefined; process?: ", - "EcsProcess", - " | undefined; registry?: ", - "EcsRegistry", - " | undefined; related?: ", - "EcsRelated", - " | undefined; rule?: ", - "EcsRule", - " | undefined; server?: ", - "EcsServer", - " | undefined; service?: ", - "EcsService", - " | undefined; source?: ", - "EcsSource", - " | undefined; threat?: ", - "EcsThreat", - " | undefined; tls?: ", - "EcsTls", - " | undefined; url?: ", - "EcsUrl", - " | undefined; user?: ", - "EcsUser", - " | undefined; user_agent?: ", - "EcsUserAgent", - " | undefined; vulnerability?: ", - "EcsVulnerability", - " | undefined; }" + "EcsBase & EcsTracing & { ecs: EcsField; agent?: EcsAgent | undefined; as?: EcsAutonomousSystem | undefined; client?: EcsClient | undefined; cloud?: EcsCloud | undefined; container?: EcsContainer | undefined; data_stream?: EcsDataStream | undefined; destination?: EcsDestination | undefined; dns?: EcsDns | undefined; email?: EcsEmail | undefined; error?: EcsError | undefined; event?: EcsEvent | undefined; file?: EcsFile | undefined; group?: EcsGroup | undefined; host?: EcsHost | undefined; http?: EcsHttp | undefined; log?: EcsLog | undefined; network?: EcsNetwork | undefined; observer?: EcsObserver | undefined; orchestrator?: EcsOrchestrator | undefined; organization?: EcsOrganization | undefined; package?: EcsPackage | undefined; process?: EcsProcess | undefined; registry?: EcsRegistry | undefined; related?: EcsRelated | undefined; rule?: EcsRule | undefined; server?: EcsServer | undefined; service?: EcsService | undefined; source?: EcsSource | undefined; threat?: EcsThreat | undefined; tls?: EcsTls | undefined; url?: EcsUrl | undefined; user?: EcsUser | undefined; user_agent?: EcsUserAgent | undefined; vulnerability?: EcsVulnerability | undefined; }" ], - "path": "node_modules/@kbn/logging/target_types/ecs/index.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "initialIsOpen": false }, @@ -17464,7 +17321,7 @@ "signature": [ "\"database\" | \"package\" | \"network\" | \"web\" | \"host\" | \"session\" | \"file\" | \"registry\" | \"process\" | \"authentication\" | \"configuration\" | \"driver\" | \"iam\" | \"intrusion_detection\" | \"malware\"" ], - "path": "node_modules/@kbn/logging/target_types/ecs/event.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "initialIsOpen": false }, @@ -17478,7 +17335,7 @@ "signature": [ "\"alert\" | \"metric\" | \"event\" | \"state\" | \"signal\" | \"pipeline_error\"" ], - "path": "node_modules/@kbn/logging/target_types/ecs/event.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "initialIsOpen": false }, @@ -17492,7 +17349,7 @@ "signature": [ "\"unknown\" | \"success\" | \"failure\"" ], - "path": "node_modules/@kbn/logging/target_types/ecs/event.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "initialIsOpen": false }, @@ -17506,7 +17363,7 @@ "signature": [ "\"start\" | \"user\" | \"error\" | \"end\" | \"info\" | \"group\" | \"protocol\" | \"connection\" | \"access\" | \"admin\" | \"allowed\" | \"change\" | \"creation\" | \"deletion\" | \"denied\" | \"installation\"" ], - "path": "node_modules/@kbn/logging/target_types/ecs/event.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "initialIsOpen": false }, @@ -18438,78 +18295,12 @@ "tags": [], "label": "LogMeta", "description": [ - "\nRepresents the ECS schema with the following reserved keys excluded:\n- `ecs`\n- `@timestamp`\n- `message`\n- `log.level`\n- `log.logger`\n" + "\r\nRepresents the ECS schema with the following reserved keys excluded:\r\n- `ecs`\r\n- `@timestamp`\r\n- `message`\r\n- `log.level`\r\n- `log.logger`\r\n" ], "signature": [ - "Omit<", - "EcsBase", - ", \"message\" | \"@timestamp\"> & ", - "EcsTracing", - " & { agent?: ", - "EcsAgent", - " | undefined; as?: ", - "EcsAutonomousSystem", - " | undefined; client?: ", - "EcsClient", - " | undefined; cloud?: ", - "EcsCloud", - " | undefined; container?: ", - "EcsContainer", - " | undefined; destination?: ", - "EcsDestination", - " | undefined; dns?: ", - "EcsDns", - " | undefined; error?: ", - "EcsError", - " | undefined; event?: ", - "EcsEvent", - " | undefined; file?: ", - "EcsFile", - " | undefined; group?: ", - "EcsGroup", - " | undefined; host?: ", - "EcsHost", - " | undefined; http?: ", - "EcsHttp", - " | undefined; log?: Omit<", - "EcsLog", - ", \"logger\" | \"level\"> | undefined; network?: ", - "EcsNetwork", - " | undefined; observer?: ", - "EcsObserver", - " | undefined; organization?: ", - "EcsOrganization", - " | undefined; package?: ", - "EcsPackage", - " | undefined; process?: ", - "EcsProcess", - " | undefined; registry?: ", - "EcsRegistry", - " | undefined; related?: ", - "EcsRelated", - " | undefined; rule?: ", - "EcsRule", - " | undefined; server?: ", - "EcsServer", - " | undefined; service?: ", - "EcsService", - " | undefined; source?: ", - "EcsSource", - " | undefined; threat?: ", - "EcsThreat", - " | undefined; tls?: ", - "EcsTls", - " | undefined; url?: ", - "EcsUrl", - " | undefined; user?: ", - "EcsUser", - " | undefined; user_agent?: ", - "EcsUserAgent", - " | undefined; vulnerability?: ", - "EcsVulnerability", - " | undefined; }" + "Omit & EcsTracing & { agent?: EcsAgent | undefined; as?: EcsAutonomousSystem | undefined; client?: EcsClient | undefined; cloud?: EcsCloud | undefined; container?: EcsContainer | undefined; destination?: EcsDestination | undefined; dns?: EcsDns | undefined; error?: EcsError | undefined; event?: EcsEvent | undefined; file?: EcsFile | undefined; group?: EcsGroup | undefined; host?: EcsHost | undefined; http?: EcsHttp | undefined; log?: Omit | undefined; network?: EcsNetwork | undefined; observer?: EcsObserver | undefined; organization?: EcsOrganization | undefined; package?: EcsPackage | undefined; process?: EcsProcess | undefined; registry?: EcsRegistry | undefined; related?: EcsRelated | undefined; rule?: EcsRule | undefined; server?: EcsServer | undefined; service?: EcsService | undefined; source?: EcsSource | undefined; threat?: EcsThreat | undefined; tls?: EcsTls | undefined; url?: EcsUrl | undefined; user?: EcsUser | undefined; user_agent?: EcsUserAgent | undefined; vulnerability?: EcsVulnerability | undefined; }" ], - "path": "node_modules/@kbn/logging/target_types/log_meta.d.ts", + "path": "node_modules/@types/kbn__logging/index.d.ts", "deprecated": false, "initialIsOpen": false }, diff --git a/api_docs/core.mdx b/api_docs/core.mdx index 583fe04244fec..4cead3ed131ee 100644 --- a/api_docs/core.mdx +++ b/api_docs/core.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/core title: "core" image: https://source.unsplash.com/400x175/?github summary: API docs for the core plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2364 | 15 | 972 | 32 | +| 2366 | 15 | 973 | 32 | ## Client diff --git a/api_docs/core_application.mdx b/api_docs/core_application.mdx index a51a10a02a53a..72545603645f0 100644 --- a/api_docs/core_application.mdx +++ b/api_docs/core_application.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/core-application title: "core.application" image: https://source.unsplash.com/400x175/?github summary: API docs for the core.application plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.application'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2364 | 15 | 972 | 32 | +| 2366 | 15 | 973 | 32 | ## Client diff --git a/api_docs/core_chrome.mdx b/api_docs/core_chrome.mdx index 6d8fccb1e5500..8e50bda60dce5 100644 --- a/api_docs/core_chrome.mdx +++ b/api_docs/core_chrome.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/core-chrome title: "core.chrome" image: https://source.unsplash.com/400x175/?github summary: API docs for the core.chrome plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.chrome'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2364 | 15 | 972 | 32 | +| 2366 | 15 | 973 | 32 | ## Client diff --git a/api_docs/core_http.devdocs.json b/api_docs/core_http.devdocs.json index da58151d20c5b..e69633e60ecfc 100644 --- a/api_docs/core_http.devdocs.json +++ b/api_docs/core_http.devdocs.json @@ -1674,6 +1674,38 @@ "path": "src/core/public/http/types.ts", "deprecated": false, "children": [ + { + "parentPluginId": "core", + "id": "def-public.IExternalUrl.isInternalUrl", + "type": "Function", + "tags": [], + "label": "isInternalUrl", + "description": [ + "\nDetermines if the provided URL is an internal url.\n" + ], + "signature": [ + "(relativeOrAbsoluteUrl: string) => boolean" + ], + "path": "src/core/public/http/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "core", + "id": "def-public.IExternalUrl.isInternalUrl.$1", + "type": "string", + "tags": [], + "label": "relativeOrAbsoluteUrl", + "description": [], + "signature": [ + "string" + ], + "path": "src/core/public/http/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, { "parentPluginId": "core", "id": "def-public.IExternalUrl.validateUrl", diff --git a/api_docs/core_http.mdx b/api_docs/core_http.mdx index e1b446f780217..2ea23af5a885e 100644 --- a/api_docs/core_http.mdx +++ b/api_docs/core_http.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/core-http title: "core.http" image: https://source.unsplash.com/400x175/?github summary: API docs for the core.http plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.http'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2364 | 15 | 972 | 32 | +| 2366 | 15 | 973 | 32 | ## Client diff --git a/api_docs/core_saved_objects.devdocs.json b/api_docs/core_saved_objects.devdocs.json index 66ded7c0d1c79..525b950ddf80e 100644 --- a/api_docs/core_saved_objects.devdocs.json +++ b/api_docs/core_saved_objects.devdocs.json @@ -4849,13 +4849,7 @@ "label": "#log", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "src/core/server/saved_objects/export/saved_objects_exporter.ts", "deprecated": false @@ -5283,13 +5277,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "src/core/server/saved_objects/export/saved_objects_exporter.ts", "deprecated": false @@ -13555,21 +13543,9 @@ "description": [], "signature": [ "(msg: string, meta: Meta) => void" ], "path": "src/core/server/saved_objects/migrations/core/migration_logger.ts", diff --git a/api_docs/core_saved_objects.mdx b/api_docs/core_saved_objects.mdx index 21afde940db79..d472479fa4e30 100644 --- a/api_docs/core_saved_objects.mdx +++ b/api_docs/core_saved_objects.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/core-savedObjects title: "core.savedObjects" image: https://source.unsplash.com/400x175/?github summary: API docs for the core.savedObjects plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core.savedObjects'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2364 | 15 | 972 | 32 | +| 2366 | 15 | 973 | 32 | ## Client diff --git a/api_docs/custom_integrations.mdx b/api_docs/custom_integrations.mdx index efc6f0db5c805..443110cb658e8 100644 --- a/api_docs/custom_integrations.mdx +++ b/api_docs/custom_integrations.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/customIntegrations title: "customIntegrations" image: https://source.unsplash.com/400x175/?github summary: API docs for the customIntegrations plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'customIntegrations'] 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. --- diff --git a/api_docs/dashboard.devdocs.json b/api_docs/dashboard.devdocs.json index bb3b76e516022..b1ffd09f9fab2 100644 --- a/api_docs/dashboard.devdocs.json +++ b/api_docs/dashboard.devdocs.json @@ -1135,64 +1135,6 @@ ], "returnComment": [], "initialIsOpen": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.createDashboardUrlGenerator", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "createDashboardUrlGenerator", - "description": [], - "signature": [ - "(getStartServices: () => Promise<{ appBasePath: string; useHashedUrl: boolean; savedDashboardLoader: ", - { - "pluginId": "savedObjects", - "scope": "public", - "docId": "kibSavedObjectsPluginApi", - "section": "def-public.SavedObjectLoader", - "text": "SavedObjectLoader" - }, - "; }>) => ", - { - "pluginId": "share", - "scope": "public", - "docId": "kibSharePluginApi", - "section": "def-public.UrlGeneratorsDefinition", - "text": "UrlGeneratorsDefinition" - }, - "<\"DASHBOARD_APP_URL_GENERATOR\">" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": true, - "references": [], - "children": [ - { - "parentPluginId": "dashboard", - "id": "def-public.createDashboardUrlGenerator.$1", - "type": "Function", - "tags": [], - "label": "getStartServices", - "description": [], - "signature": [ - "() => Promise<{ appBasePath: string; useHashedUrl: boolean; savedDashboardLoader: ", - { - "pluginId": "savedObjects", - "scope": "public", - "docId": "kibSavedObjectsPluginApi", - "section": "def-public.SavedObjectLoader", - "text": "SavedObjectLoader" - }, - "; }>" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [], - "initialIsOpen": false } ], "interfaces": [ @@ -1964,235 +1906,10 @@ } ], "initialIsOpen": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState", - "type": "Interface", - "tags": [ - "deprecated" - ], - "label": "DashboardUrlGeneratorState", - "description": [], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": true, - "references": [], - "children": [ - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.dashboardId", - "type": "string", - "tags": [], - "label": "dashboardId", - "description": [ - "\nIf given, the dashboard saved object with this id will be loaded. If not given,\na new, unsaved dashboard will be loaded up." - ], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.timeRange", - "type": "Object", - "tags": [], - "label": "timeRange", - "description": [ - "\nOptionally set the time range in the time picker." - ], - "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.TimeRange", - "text": "TimeRange" - }, - " | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.refreshInterval", - "type": "Object", - "tags": [], - "label": "refreshInterval", - "description": [ - "\nOptionally set the refresh interval." - ], - "signature": [ - { - "pluginId": "data", - "scope": "common", - "docId": "kibDataQueryPluginApi", - "section": "def-common.RefreshInterval", - "text": "RefreshInterval" - }, - " | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.filters", - "type": "Array", - "tags": [], - "label": "filters", - "description": [ - "\nOptionally apply filers. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has filters saved with it, this will _replace_ those filters." - ], - "signature": [ - "Filter", - "[] | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.query", - "type": "Object", - "tags": [], - "label": "query", - "description": [ - "\nOptionally set a query. NOTE: if given and used in conjunction with `dashboardId`, and the\nsaved dashboard has a query saved with it, this will _replace_ that query." - ], - "signature": [ - "Query", - " | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.useHash", - "type": "CompoundType", - "tags": [], - "label": "useHash", - "description": [ - "\nIf not given, will use the uiSettings configuration for `storeInSessionStorage`. useHash determines\nwhether to hash the data in the url to avoid url length issues." - ], - "signature": [ - "boolean | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.preserveSavedFilters", - "type": "CompoundType", - "tags": [], - "label": "preserveSavedFilters", - "description": [ - "\nWhen `true` filters from saved filters from destination dashboard as merged with applied filters\nWhen `false` applied filters take precedence and override saved filters\n\ntrue is default" - ], - "signature": [ - "boolean | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.viewMode", - "type": "CompoundType", - "tags": [], - "label": "viewMode", - "description": [ - "\nView mode of the dashboard." - ], - "signature": [ - { - "pluginId": "embeddable", - "scope": "common", - "docId": "kibEmbeddablePluginApi", - "section": "def-common.ViewMode", - "text": "ViewMode" - }, - " | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.searchSessionId", - "type": "string", - "tags": [], - "label": "searchSessionId", - "description": [ - "\nSearch search session ID to restore.\n(Background search)" - ], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.panels", - "type": "Array", - "tags": [], - "label": "panels", - "description": [ - "\nList of dashboard panels" - ], - "signature": [ - { - "pluginId": "dashboard", - "scope": "common", - "docId": "kibDashboardPluginApi", - "section": "def-common.SavedDashboardPanel730ToLatest", - "text": "SavedDashboardPanel730ToLatest" - }, - "[] | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGeneratorState.savedQuery", - "type": "string", - "tags": [], - "label": "savedQuery", - "description": [ - "\nSaved query ID" - ], - "signature": [ - "string | undefined" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false - } - ], - "initialIsOpen": false } ], "enums": [], "misc": [ - { - "parentPluginId": "dashboard", - "id": "def-public.DASHBOARD_APP_URL_GENERATOR", - "type": "string", - "tags": [], - "label": "DASHBOARD_APP_URL_GENERATOR", - "description": [], - "signature": [ - "\"DASHBOARD_APP_URL_GENERATOR\"" - ], - "path": "src/plugins/dashboard/public/url_generator.ts", - "deprecated": false, - "initialIsOpen": false - }, { "parentPluginId": "dashboard", "id": "def-public.DASHBOARD_CONTAINER_TYPE", @@ -2290,27 +2007,6 @@ "deprecated": false, "initialIsOpen": false }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardUrlGenerator", - "type": "Type", - "tags": [], - "label": "DashboardUrlGenerator", - "description": [], - "signature": [ - { - "pluginId": "share", - "scope": "public", - "docId": "kibSharePluginApi", - "section": "def-public.UrlGeneratorContract", - "text": "UrlGeneratorContract" - }, - "<\"DASHBOARD_APP_URL_GENERATOR\">" - ], - "path": "src/plugins/dashboard/public/plugin.tsx", - "deprecated": false, - "initialIsOpen": false - }, { "parentPluginId": "dashboard", "id": "def-public.SavedDashboardPanel", @@ -2514,13 +2210,7 @@ "description": [], "signature": [ "() => ", - { - "pluginId": "savedObjects", - "scope": "public", - "docId": "kibSavedObjectsPluginApi", - "section": "def-public.SavedObjectLoader", - "text": "SavedObjectLoader" - } + "SavedObjectLoader" ], "path": "src/plugins/dashboard/public/plugin.tsx", "deprecated": false, @@ -2542,34 +2232,6 @@ "children": [], "returnComment": [] }, - { - "parentPluginId": "dashboard", - "id": "def-public.DashboardStart.dashboardUrlGenerator", - "type": "Object", - "tags": [ - "deprecated" - ], - "label": "dashboardUrlGenerator", - "description": [], - "signature": [ - { - "pluginId": "dashboard", - "scope": "public", - "docId": "kibDashboardPluginApi", - "section": "def-public.DashboardUrlGenerator", - "text": "DashboardUrlGenerator" - }, - " | undefined" - ], - "path": "src/plugins/dashboard/public/plugin.tsx", - "deprecated": true, - "references": [ - { - "plugin": "securitySolution", - "path": "x-pack/plugins/security_solution/public/overview/containers/overview_risky_host_links/use_risky_hosts_dashboard_button_href.ts" - } - ] - }, { "parentPluginId": "dashboard", "id": "def-public.DashboardStart.locator", diff --git a/api_docs/dashboard.mdx b/api_docs/dashboard.mdx index 7572edad88166..9440593e200d9 100644 --- a/api_docs/dashboard.mdx +++ b/api_docs/dashboard.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dashboard title: "dashboard" image: https://source.unsplash.com/400x175/?github summary: API docs for the dashboard plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboard'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-prese | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 155 | 0 | 142 | 13 | +| 138 | 0 | 136 | 14 | ## Client diff --git a/api_docs/dashboard_enhanced.devdocs.json b/api_docs/dashboard_enhanced.devdocs.json index c0abe4eabceda..7bfbf4fb30ef7 100644 --- a/api_docs/dashboard_enhanced.devdocs.json +++ b/api_docs/dashboard_enhanced.devdocs.json @@ -598,8 +598,14 @@ ") => void; } & { urlGenerators: ", "UrlGeneratorsSetup", "; url: ", - "UrlService", - "; navigate(options: ", + { + "pluginId": "share", + "scope": "public", + "docId": "kibSharePluginApi", + "section": "def-public.BrowserUrlService", + "text": "BrowserUrlService" + }, + "; navigate(options: ", "RedirectOptions", "<", "SerializableRecord", @@ -705,8 +711,14 @@ ") => void; } & { urlGenerators: ", "UrlGeneratorsStart", "; url: ", - "UrlService", - "; navigate(options: ", + { + "pluginId": "share", + "scope": "public", + "docId": "kibSharePluginApi", + "section": "def-public.BrowserUrlService", + "text": "BrowserUrlService" + }, + "; navigate(options: ", "RedirectOptions", "<", "SerializableRecord", diff --git a/api_docs/dashboard_enhanced.mdx b/api_docs/dashboard_enhanced.mdx index 4fdb45e82a8a0..95cc9f0affbb2 100644 --- a/api_docs/dashboard_enhanced.mdx +++ b/api_docs/dashboard_enhanced.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dashboardEnhanced title: "dashboardEnhanced" image: https://source.unsplash.com/400x175/?github summary: API docs for the dashboardEnhanced plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboardEnhanced'] 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. --- diff --git a/api_docs/data.devdocs.json b/api_docs/data.devdocs.json index 44a2ae1d43c4d..df156d4840ea5 100644 --- a/api_docs/data.devdocs.json +++ b/api_docs/data.devdocs.json @@ -2679,10 +2679,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts" @@ -2755,70 +2751,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_app_index_pattern.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" @@ -2911,14 +2843,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx" }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/common/types/index.ts" @@ -2959,14 +2883,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/existing_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" @@ -2984,20 +2900,12 @@ "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { "plugin": "visTypeTimeseries", @@ -3032,12 +2940,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { "plugin": "dataViews", @@ -3148,36 +3056,8 @@ "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" }, { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" + "plugin": "lens", + "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" }, { "plugin": "lens", @@ -3247,186 +3127,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" @@ -3659,38 +3359,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" @@ -3699,14 +3367,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" @@ -3719,98 +3379,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" @@ -3959,6 +3527,34 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts" @@ -4067,6 +3663,26 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" @@ -4079,6 +3695,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" @@ -4156,18 +3780,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts" @@ -4240,18 +3852,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/field_stats.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts" @@ -4336,66 +3936,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" @@ -4408,14 +3948,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" @@ -4440,14 +3972,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" @@ -4480,34 +4004,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" @@ -4524,38 +4020,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" @@ -4596,14 +4060,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" @@ -4624,66 +4080,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" @@ -4740,46 +4136,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" @@ -4792,14 +4148,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" @@ -9492,14 +8840,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/data_views/data_view.ts" }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx" @@ -11046,16 +10386,7 @@ ], "path": "src/plugins/data/common/search/search_source/types.ts", "deprecated": true, - "references": [ - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - } - ] + "references": [] }, { "parentPluginId": "data", @@ -11215,6 +10546,9 @@ "tags": [], "label": "ES_FIELD_TYPES", "description": [], + "signature": [ + "ES_FIELD_TYPES" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -11226,6 +10560,9 @@ "tags": [], "label": "KBN_FIELD_TYPES", "description": [], + "signature": [ + "KBN_FIELD_TYPES" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -12169,30 +11506,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_filter_state.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx" @@ -12201,34 +11514,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -12281,14 +11566,6 @@ "plugin": "urlDrilldown", "path": "x-pack/plugins/drilldowns/url_drilldown/public/lib/test/data.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -12321,14 +11598,6 @@ "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/vis_controller.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts" @@ -12405,94 +11674,6 @@ "plugin": "discover", "path": "src/plugins/discover/public/utils/get_sharing_data.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_component.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_component.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_visualization.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts" @@ -12509,26 +11690,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/context/services/context.d.ts" @@ -13054,30 +12215,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/public/index.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" @@ -13269,34 +12406,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-public.IndexPatternSpec", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IndexPatternSpec", - "description": [], - "signature": [ - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.DataViewSpec", - "text": "DataViewSpec" - } - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "dataViews", - "path": "src/plugins/data_views/common/index.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-public.ISearchGeneric", @@ -13649,6 +12758,9 @@ ], "label": "KueryNode", "description": [], + "signature": [ + "KueryNode" + ], "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", @@ -13873,6 +12985,9 @@ ], "label": "RangeFilterParams", "description": [], + "signature": [ + "RangeFilterParams" + ], "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", @@ -14147,122 +13262,6 @@ "plugin": "discover", "path": "src/plugins/discover/public/plugin.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/save_dashboard.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/save_dashboard.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/plugin.tsx" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/plugin.tsx" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_embeddable.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/locators.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/locators.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/locators.ts" - }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -14290,42 +13289,6 @@ { "plugin": "maps", "path": "x-pack/plugins/maps/public/locators.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts" } ], "children": [ @@ -15883,26 +14846,6 @@ "plugin": "graph", "path": "x-pack/plugins/graph/public/components/search_bar.tsx" }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/lib/kuery.ts" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/lib/kuery.ts" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/lib/kuery.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/index.tsx" @@ -18327,14 +17270,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/plugin.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/dashboard_router.tsx" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/dashboard_router.tsx" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx" @@ -18371,14 +17306,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/public/plugin.ts" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/pages/alerts/containers/alerts_page/alerts_page.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/kibana_services.ts" @@ -18491,50 +17418,6 @@ "plugin": "uptime", "path": "x-pack/plugins/uptime/public/contexts/uptime_index_pattern_context.tsx" }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, - { - "plugin": "observability", - "path": "x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" @@ -18571,6 +17454,10 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts" @@ -18611,10 +17498,6 @@ "plugin": "securitySolution", "path": "x-pack/plugins/security_solution/public/common/mock/endpoint/dependencies_start_mock.ts" }, - { - "plugin": "dataViewManagement", - "path": "src/plugins/data_view_management/public/mocks.ts" - }, { "plugin": "savedObjects", "path": "src/plugins/saved_objects/public/saved_object/saved_object.test.ts" @@ -18737,33 +17620,33 @@ "plugin": "visTypeVislib", "path": "src/plugins/vis_types/vislib/public/plugin.ts" }, - { - "plugin": "expressionPie", - "path": "src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts" - }, { "plugin": "dataViewFieldEditor", "path": "src/plugins/data_view_field_editor/target/types/public/components/field_format_editor/field_format_editor.d.ts" }, { - "plugin": "expressionPie", - "path": "src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts" + "plugin": "expressionPartitionVis", + "path": "src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts" + }, + { + "plugin": "expressionPartitionVis", + "path": "src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts" }, { - "plugin": "expressionPie", - "path": "src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts" + "plugin": "expressionPartitionVis", + "path": "src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts" }, { - "plugin": "expressionPie", - "path": "src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts" + "plugin": "expressionPartitionVis", + "path": "src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts" }, { - "plugin": "expressionPie", - "path": "src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts" + "plugin": "expressionPartitionVis", + "path": "src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts" }, { - "plugin": "expressionPie", - "path": "src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts" + "plugin": "expressionPartitionVis", + "path": "src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts" } ] }, @@ -20662,10 +19545,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts" @@ -20738,70 +19617,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_app_index_pattern.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" @@ -20894,14 +19709,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx" }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/common/types/index.ts" @@ -20942,14 +19749,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/existing_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" @@ -20967,20 +19766,12 @@ "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { "plugin": "visTypeTimeseries", @@ -21015,12 +19806,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { "plugin": "dataViews", @@ -21131,36 +19922,8 @@ "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" }, { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" + "plugin": "lens", + "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" }, { "plugin": "lens", @@ -21230,186 +19993,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" @@ -21642,38 +20225,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" @@ -21682,14 +20233,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" @@ -21702,98 +20245,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" @@ -21942,6 +20393,34 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts" @@ -22050,6 +20529,26 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" @@ -22062,6 +20561,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" @@ -22139,18 +20646,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts" @@ -22223,18 +20718,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/field_stats.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts" @@ -22319,66 +20802,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" @@ -22391,14 +20814,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" @@ -22423,14 +20838,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" @@ -22463,34 +20870,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" @@ -22507,42 +20886,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" @@ -22565,7 +20908,7 @@ }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", @@ -22581,11 +20924,7 @@ }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", @@ -22607,66 +20946,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" @@ -22723,46 +21002,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" @@ -22775,14 +21014,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" @@ -24166,14 +22397,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/data_views/data_view.ts" }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx" @@ -24741,6 +22964,9 @@ "tags": [], "label": "ES_FIELD_TYPES", "description": [], + "signature": [ + "ES_FIELD_TYPES" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -24752,6 +22978,9 @@ "tags": [], "label": "KBN_FIELD_TYPES", "description": [], + "signature": [ + "KBN_FIELD_TYPES" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -24958,30 +23187,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_filter_state.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx" @@ -24990,34 +23195,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -25070,14 +23247,6 @@ "plugin": "urlDrilldown", "path": "x-pack/plugins/drilldowns/url_drilldown/public/lib/test/data.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -25110,14 +23279,6 @@ "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/vis_controller.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts" @@ -25194,94 +23355,6 @@ "plugin": "discover", "path": "src/plugins/discover/public/utils/get_sharing_data.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_component.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_component.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_visualization.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts" @@ -25298,26 +23371,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/context/services/context.d.ts" @@ -25485,6 +23538,9 @@ ], "label": "KueryNode", "description": [], + "signature": [ + "KueryNode" + ], "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", @@ -29788,7 +27844,7 @@ } ], "returnComment": [ - "IndexPatternSpec" + "DataViewSpec" ] }, { @@ -30297,10 +28353,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts" @@ -30373,70 +28425,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_app_index_pattern.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" @@ -30529,14 +28517,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx" }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/common/types/index.ts" @@ -30577,14 +28557,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/existing_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" @@ -30602,20 +28574,12 @@ "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { "plugin": "visTypeTimeseries", @@ -30650,12 +28614,12 @@ "path": "src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/index_pattern_select.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { "plugin": "dataViews", @@ -30766,36 +28730,8 @@ "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" }, { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" + "plugin": "lens", + "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" }, { "plugin": "lens", @@ -30865,186 +28801,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" @@ -31277,38 +29033,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" @@ -31317,14 +29041,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" @@ -31337,98 +29053,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" @@ -31577,6 +29201,34 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts" @@ -31685,6 +29337,26 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" @@ -31697,6 +29369,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" @@ -31774,18 +29454,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/index.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts" @@ -31858,18 +29526,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/field_stats.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts" @@ -31954,66 +29610,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" @@ -32026,14 +29622,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" @@ -32058,14 +29646,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" @@ -32098,34 +29678,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" @@ -32142,38 +29694,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" @@ -32214,14 +29734,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" @@ -32242,66 +29754,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" @@ -32358,46 +29810,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" @@ -32410,14 +29822,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" @@ -32846,6 +30250,9 @@ "tags": [], "label": "KbnFieldType", "description": [], + "signature": [ + "KbnFieldType" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "children": [ @@ -36822,14 +34229,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/common/data_views/data_view.ts" }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx" @@ -38049,6 +35448,9 @@ "tags": [], "label": "KbnFieldTypeOptions", "description": [], + "signature": [ + "KbnFieldTypeOptions" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "children": [ @@ -38898,6 +36300,9 @@ "tags": [], "label": "ES_FIELD_TYPES", "description": [], + "signature": [ + "ES_FIELD_TYPES" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -38911,6 +36316,9 @@ "description": [ "\r\n Filter,\r\nAn enum to denote whether a filter is specific to an application's context or whether it should be applied globally." ], + "signature": [ + "FilterStateStore" + ], "path": "node_modules/@types/kbn__es-query/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -38922,6 +36330,9 @@ "tags": [], "label": "KBN_FIELD_TYPES", "description": [], + "signature": [ + "KBN_FIELD_TYPES" + ], "path": "node_modules/@types/kbn__field-types/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -39482,30 +36893,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_filter_state.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx" @@ -39514,34 +36901,6 @@ "plugin": "dashboard", "path": "src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/locator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, { "plugin": "dashboardEnhanced", "path": "x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx" @@ -39594,14 +36953,6 @@ "plugin": "urlDrilldown", "path": "x-pack/plugins/drilldowns/url_drilldown/public/lib/test/data.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" @@ -39634,14 +36985,6 @@ "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/vis_controller.tsx" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts" - }, { "plugin": "inputControlVis", "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts" @@ -39718,94 +37061,6 @@ "plugin": "discover", "path": "src/plugins/discover/public/utils/get_sharing_data.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_component.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/map_component.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/region_map/region_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_fn.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_visualization.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/legacy_visualizations/tile_map/tile_map_visualization.tsx" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts" @@ -39822,26 +37077,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/context/services/context.d.ts" @@ -39939,42 +37174,6 @@ "references": [], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-common.IIndexPatternsApiClient", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IIndexPatternsApiClient", - "description": [], - "signature": [ - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.IDataViewsApiClient", - "text": "IDataViewsApiClient" - } - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "dataViews", - "path": "src/plugins/data_views/common/index.ts" - }, - { - "plugin": "dataViews", - "path": "src/plugins/data_views/server/index_patterns_api_client.ts" - }, - { - "plugin": "dataViews", - "path": "src/plugins/data_views/server/index_patterns_api_client.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.INDEX_PATTERN_SAVED_OBJECT_TYPE", @@ -40010,26 +37209,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/utils/saved_visualization_references/timeseries_references.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts" - }, { "plugin": "visualizations", "path": "src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts" @@ -40129,36 +37308,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-common.IndexPatternFieldMap", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IndexPatternFieldMap", - "description": [], - "signature": [ - "{ [x: string]: ", - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.FieldSpec", - "text": "FieldSpec" - }, - "; }" - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "dataViews", - "path": "src/plugins/data_views/common/index.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.IndexPatternLoadExpressionFunctionDefinition", @@ -40429,30 +37578,6 @@ "plugin": "dataViews", "path": "src/plugins/data_views/public/index.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" @@ -40644,34 +37769,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "data", - "id": "def-common.IndexPatternSpec", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IndexPatternSpec", - "description": [], - "signature": [ - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.DataViewSpec", - "text": "DataViewSpec" - } - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "dataViews", - "path": "src/plugins/data_views/common/index.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "data", "id": "def-common.KIBANA_USER_QUERY_LANGUAGE_KEY", @@ -40695,6 +37792,9 @@ ], "label": "KueryNode", "description": [], + "signature": [ + "KueryNode" + ], "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", @@ -41030,6 +38130,9 @@ ], "label": "RangeFilterParams", "description": [], + "signature": [ + "RangeFilterParams" + ], "path": "src/plugins/data/common/es_query/index.ts", "deprecated": true, "removeBy": "8.1", diff --git a/api_docs/data.mdx b/api_docs/data.mdx index 4e4aa7f1e7a51..83578e4206fba 100644 --- a/api_docs/data.mdx +++ b/api_docs/data.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/data title: "data" image: https://source.unsplash.com/400x175/?github summary: API docs for the data plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3390 | 40 | 2795 | 26 | +| 3386 | 40 | 2791 | 26 | ## Client diff --git a/api_docs/data_autocomplete.mdx b/api_docs/data_autocomplete.mdx index b7cacb27a9908..03d9948ab4606 100644 --- a/api_docs/data_autocomplete.mdx +++ b/api_docs/data_autocomplete.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/data-autocomplete title: "data.autocomplete" image: https://source.unsplash.com/400x175/?github summary: API docs for the data.autocomplete plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.autocomplete'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3390 | 40 | 2795 | 26 | +| 3386 | 40 | 2791 | 26 | ## Client diff --git a/api_docs/data_enhanced.mdx b/api_docs/data_enhanced.mdx index 0197bc82e3de8..23567d436cb56 100644 --- a/api_docs/data_enhanced.mdx +++ b/api_docs/data_enhanced.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dataEnhanced title: "dataEnhanced" image: https://source.unsplash.com/400x175/?github summary: API docs for the dataEnhanced plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataEnhanced'] 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. --- diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx index f2ecd8fcfaf7d..5b27cb9570bf5 100644 --- a/api_docs/data_query.mdx +++ b/api_docs/data_query.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/data-query title: "data.query" image: https://source.unsplash.com/400x175/?github summary: API docs for the data.query plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.query'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3390 | 40 | 2795 | 26 | +| 3386 | 40 | 2791 | 26 | ## Client diff --git a/api_docs/data_search.devdocs.json b/api_docs/data_search.devdocs.json index 3b091aac8e423..e31eeecd66eba 100644 --- a/api_docs/data_search.devdocs.json +++ b/api_docs/data_search.devdocs.json @@ -23692,16 +23692,7 @@ ], "path": "src/plugins/data/common/search/search_source/types.ts", "deprecated": true, - "references": [ - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - }, - { - "plugin": "reporting", - "path": "x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts" - } - ] + "references": [] }, { "parentPluginId": "data", diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx index f14ebb080e7bc..12468c8bc7a4e 100644 --- a/api_docs/data_search.mdx +++ b/api_docs/data_search.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/data-search title: "data.search" image: https://source.unsplash.com/400x175/?github summary: API docs for the data.search plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.search'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3390 | 40 | 2795 | 26 | +| 3386 | 40 | 2791 | 26 | ## Client diff --git a/api_docs/data_ui.mdx b/api_docs/data_ui.mdx index 23f5146cead77..aa6a8118f3215 100644 --- a/api_docs/data_ui.mdx +++ b/api_docs/data_ui.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/data-ui title: "data.ui" image: https://source.unsplash.com/400x175/?github summary: API docs for the data.ui plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.ui'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 3390 | 40 | 2795 | 26 | +| 3386 | 40 | 2791 | 26 | ## Client diff --git a/api_docs/data_view_editor.mdx b/api_docs/data_view_editor.mdx index 9b8c092e70d81..f94b095a4fb6b 100644 --- a/api_docs/data_view_editor.mdx +++ b/api_docs/data_view_editor.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dataViewEditor title: "dataViewEditor" image: https://source.unsplash.com/400x175/?github summary: API docs for the dataViewEditor plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewEditor'] 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. --- diff --git a/api_docs/data_view_field_editor.mdx b/api_docs/data_view_field_editor.mdx index a48950bcdeefe..2e3ffc6ef478d 100644 --- a/api_docs/data_view_field_editor.mdx +++ b/api_docs/data_view_field_editor.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dataViewFieldEditor title: "dataViewFieldEditor" image: https://source.unsplash.com/400x175/?github summary: API docs for the dataViewFieldEditor plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewFieldEditor'] 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. --- diff --git a/api_docs/data_view_management.mdx b/api_docs/data_view_management.mdx index ea7aa8b5fa958..37f551b5cfdc7 100644 --- a/api_docs/data_view_management.mdx +++ b/api_docs/data_view_management.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dataViewManagement title: "dataViewManagement" image: https://source.unsplash.com/400x175/?github summary: API docs for the dataViewManagement plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewManagement'] 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. --- diff --git a/api_docs/data_views.devdocs.json b/api_docs/data_views.devdocs.json index f35dd54c38832..677b535526246 100644 --- a/api_docs/data_views.devdocs.json +++ b/api_docs/data_views.devdocs.json @@ -3084,7 +3084,7 @@ } ], "returnComment": [ - "IndexPatternSpec" + "DataViewSpec" ] }, { @@ -3536,10 +3536,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts" @@ -3752,70 +3748,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_app_index_pattern.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" @@ -3908,14 +3840,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx" }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/common/types/index.ts" @@ -3956,14 +3880,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/existing_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" @@ -3981,20 +3897,12 @@ "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { "plugin": "visTypeTimeseries", @@ -4277,12 +4185,12 @@ "path": "src/plugins/data/common/search/expressions/esaggs/request_handler.test.ts" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { "plugin": "data", @@ -4409,36 +4317,8 @@ "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" }, { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" + "plugin": "lens", + "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" }, { "plugin": "lens", @@ -4508,186 +4388,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" @@ -4922,183 +4622,51 @@ }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" + "plugin": "stackAlerts", + "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "plugin": "stackAlerts", + "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "plugin": "transform", + "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" + "plugin": "transform", + "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "stackAlerts", - "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "stackAlerts", - "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "transform", - "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" - }, - { - "plugin": "transform", - "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" }, { "plugin": "inputControlVis", @@ -5220,6 +4788,34 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts" @@ -5328,6 +4924,26 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" @@ -5340,6 +4956,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" @@ -5441,18 +5065,6 @@ "plugin": "data", "path": "src/plugins/data/server/index.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts" @@ -5525,18 +5137,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/field_stats.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts" @@ -5679,487 +5279,235 @@ }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" + "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" + "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metrics_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metrics_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.d.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/single_field_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metrics_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metrics_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.d.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/list_control_factory.ts" }, { "plugin": "inputControlVis", @@ -8611,30 +7959,6 @@ "plugin": "data", "path": "src/plugins/data/public/search/search_service.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" @@ -9736,13 +9060,7 @@ "description": [], "signature": [ "({ logger, uiSettings, fieldFormats, capabilities, }: { logger: ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", "; uiSettings: ", { "pluginId": "core", @@ -9822,13 +9140,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "src/plugins/data_views/server/data_views_service_factory.ts", "deprecated": false @@ -14287,7 +13599,7 @@ } ], "returnComment": [ - "IndexPatternSpec" + "DataViewSpec" ] }, { @@ -14792,10 +14104,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/target/types/public/vis_types/base_vis_type.d.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts" - }, { "plugin": "discover", "path": "src/plugins/discover/target/types/public/application/main/utils/use_discover_state.d.ts" @@ -15009,80 +14317,16 @@ "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/hooks/use_app_index_pattern.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" + "plugin": "dataVisualizer", + "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/embeddable/types.ts" + "plugin": "dataVisualizer", + "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/geo_point_content_with_map/geo_point_content_with_map.tsx" - }, - { - "plugin": "dataVisualizer", - "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx" + "plugin": "dataVisualizer", + "path": "x-pack/plugins/data_visualizer/public/application/common/components/expanded_row/index_based_expanded_row.tsx" }, { "plugin": "dataVisualizer", @@ -15164,14 +14408,6 @@ "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/index_data_visualizer_view/index_data_visualizer_view.tsx" }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, - { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx" - }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/common/types/index.ts" @@ -15212,14 +14448,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/existing_fields.test.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx" @@ -15237,20 +14465,12 @@ "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/percentile_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/routes/map_page/map_app/map_app.d.ts" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx" }, { "plugin": "visTypeTimeseries", @@ -15533,12 +14753,12 @@ "path": "src/plugins/data/common/search/expressions/esaggs/request_handler.test.ts" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { - "plugin": "apm", - "path": "x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx" + "plugin": "ux", + "path": "x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx" }, { "plugin": "data", @@ -15665,36 +14885,8 @@ "path": "src/plugins/visualizations/public/visualize_app/components/visualize_top_nav.tsx" }, { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" + "plugin": "lens", + "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" }, { "plugin": "lens", @@ -15764,186 +14956,6 @@ "plugin": "observability", "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/components/filter_label.tsx" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_agg_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/count_agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/agg_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_agg_source/es_agg_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_index_pattern_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/filter_editor/filter_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/create_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/index_data_visualizer/components/full_time_range_selector/full_time_range_selector_service.ts" @@ -16178,183 +15190,51 @@ }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/es_search_source.d.ts" + "plugin": "stackAlerts", + "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "plugin": "stackAlerts", + "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "plugin": "transform", + "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" + "plugin": "transform", + "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/count_agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/agg/agg_field.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/geo_line_form.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/filter_editor/filter_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/where_expression.d.ts" - }, - { - "plugin": "stackAlerts", - "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "stackAlerts", - "path": "x-pack/plugins/stack_alerts/target/types/public/alert_types/geo_containment/query_builder/util_components/geo_index_pattern_select.d.ts" - }, - { - "plugin": "transform", - "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" - }, - { - "plugin": "transform", - "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" - }, - { - "plugin": "inputControlVis", - "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" + "plugin": "inputControlVis", + "path": "src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts" }, { "plugin": "inputControlVis", @@ -16476,6 +15356,34 @@ "plugin": "visDefaultEditor", "path": "src/plugins/vis_default_editor/public/components/agg_params_helper.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/panel_config/types.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/annotations_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/public/application/components/vis_editor.tsx" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts" @@ -16584,6 +15492,26 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/annotations_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/vis_editor.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" @@ -16596,6 +15524,14 @@ "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/lib/convert_series_to_datatable.d.ts" }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, + { + "plugin": "visTypeTimeseries", + "path": "src/plugins/vis_types/timeseries/target/types/public/application/components/panel_config/types.d.ts" + }, { "plugin": "visTypeTimeseries", "path": "src/plugins/vis_types/timeseries/public/metrics_type.ts" @@ -16697,18 +15633,6 @@ "plugin": "data", "path": "src/plugins/data/server/index.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts" - }, { "plugin": "dataVisualizer", "path": "x-pack/plugins/data_visualizer/public/application/common/components/stats_table/types/field_data_row.ts" @@ -16781,18 +15705,6 @@ "plugin": "lens", "path": "x-pack/plugins/lens/server/routes/field_stats.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts" @@ -16851,435 +15763,231 @@ }, { "plugin": "data", - "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" - }, - { - "plugin": "data", - "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" - }, - { - "plugin": "data", - "path": "src/plugins/data/common/search/aggs/utils/infer_time_zone.test.ts" - }, - { - "plugin": "data", - "path": "src/plugins/data/common/search/aggs/utils/infer_time_zone.test.ts" - }, - { - "plugin": "data", - "path": "src/plugins/data/public/index.ts" - }, - { - "plugin": "dataViewEditor", - "path": "src/plugins/data_view_editor/public/shared_imports.ts" - }, - { - "plugin": "dataViewEditor", - "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" - }, - { - "plugin": "dataViewEditor", - "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" + "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/buckets/terms.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/utils/infer_time_zone.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" + "plugin": "data", + "path": "src/plugins/data/common/search/aggs/utils/infer_time_zone.test.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" + "plugin": "data", + "path": "src/plugins/data/public/index.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" + "plugin": "dataViewEditor", + "path": "src/plugins/data_view_editor/public/shared_imports.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "plugin": "dataViewEditor", + "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, { - "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "plugin": "dataViewEditor", + "path": "src/plugins/data_view_editor/public/lib/extract_time_fields.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/create_source_editor.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx" + "path": "x-pack/plugins/maps/public/components/single_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metric_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.tsx" + "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/public/classes/fields/es_doc_field.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/public/components/metrics_editor/metrics_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/top_hits_form.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/classes/sources/es_search_source/top_hits/update_source_editor.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_source/es_source.d.ts" + "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" + "path": "x-pack/plugins/maps/public/components/geo_field_select.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" + "path": "x-pack/plugins/maps/public/connected_components/edit_layer_panel/join_editor/resources/metrics_expression.tsx" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/index_pattern_util.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/target/types/public/classes/fields/es_doc_field.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, { "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/index_pattern_util.d.ts" + "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/update_source_editor.d.ts" }, { "plugin": "maps", @@ -17337,46 +16045,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/components/metrics_editor/metric_editor.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_geo_line_source/update_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/layers/wizards/choropleth_layer_wizard/layer_template.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/create_source_editor.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" @@ -17389,14 +16057,6 @@ "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/classes/sources/es_search_source/top_hits/top_hits_form.d.ts" }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, - { - "plugin": "maps", - "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join.d.ts" - }, { "plugin": "maps", "path": "x-pack/plugins/maps/target/types/public/connected_components/edit_layer_panel/join_editor/resources/join_expression.d.ts" @@ -19408,14 +18068,6 @@ "plugin": "data", "path": "src/plugins/data/public/ui/filter_bar/filter_editor/index.tsx" }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, - { - "plugin": "monitoring", - "path": "x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx" - }, { "plugin": "stackAlerts", "path": "x-pack/plugins/stack_alerts/public/alert_types/geo_containment/query_builder/util_components/single_field_select.tsx" @@ -22122,34 +20774,6 @@ "deprecated": false, "initialIsOpen": false }, - { - "parentPluginId": "dataViews", - "id": "def-common.IIndexPatternsApiClient", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IIndexPatternsApiClient", - "description": [], - "signature": [ - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.IDataViewsApiClient", - "text": "IDataViewsApiClient" - } - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "data", - "path": "src/plugins/data/common/index.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "dataViews", "id": "def-common.INDEX_PATTERN_SAVED_OBJECT_TYPE", @@ -22185,26 +20809,6 @@ "plugin": "visualizations", "path": "src/plugins/visualizations/public/utils/saved_visualization_references/timeseries_references.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts" - }, { "plugin": "visualizations", "path": "src/plugins/visualizations/server/migrations/visualization_saved_object_migrations.ts" @@ -22312,36 +20916,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "dataViews", - "id": "def-common.IndexPatternFieldMap", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IndexPatternFieldMap", - "description": [], - "signature": [ - "{ [x: string]: ", - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.FieldSpec", - "text": "FieldSpec" - }, - "; }" - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "data", - "path": "src/plugins/data/common/index.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "dataViews", "id": "def-common.IndexPatternLoadExpressionFunctionDefinition", @@ -22728,30 +21302,6 @@ "plugin": "data", "path": "src/plugins/data/public/search/search_service.ts" }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, { "plugin": "lens", "path": "x-pack/plugins/lens/public/embeddable/embeddable.tsx" @@ -22975,38 +21525,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "dataViews", - "id": "def-common.IndexPatternSpec", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "IndexPatternSpec", - "description": [], - "signature": [ - { - "pluginId": "dataViews", - "scope": "common", - "docId": "kibDataViewsPluginApi", - "section": "def-common.DataViewSpec", - "text": "DataViewSpec" - } - ], - "path": "src/plugins/data_views/common/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "data", - "path": "src/plugins/data/common/index.ts" - }, - { - "plugin": "data", - "path": "src/plugins/data/public/index.ts" - } - ], - "initialIsOpen": false - }, { "parentPluginId": "dataViews", "id": "def-common.META_FIELDS", diff --git a/api_docs/data_views.mdx b/api_docs/data_views.mdx index 70a784e4b214a..b08a61c35ba1c 100644 --- a/api_docs/data_views.mdx +++ b/api_docs/data_views.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dataViews title: "dataViews" image: https://source.unsplash.com/400x175/?github summary: API docs for the dataViews plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViews'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 745 | 3 | 600 | 7 | +| 742 | 3 | 597 | 7 | ## Client diff --git a/api_docs/data_visualizer.mdx b/api_docs/data_visualizer.mdx index c235b26a8d037..b2caa1e7b51b0 100644 --- a/api_docs/data_visualizer.mdx +++ b/api_docs/data_visualizer.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/dataVisualizer title: "dataVisualizer" image: https://source.unsplash.com/400x175/?github summary: API docs for the dataVisualizer plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataVisualizer'] 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. --- diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx index 570be545e36aa..786e201a382fb 100644 --- a/api_docs/deprecations_by_api.mdx +++ b/api_docs/deprecations_by_api.mdx @@ -3,7 +3,7 @@ id: kibDevDocsDeprecationsByApi slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-api title: Deprecated API usage by API summary: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. --- @@ -13,60 +13,47 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Referencing plugin(s) | Remove By | | ---------------|-----------|-----------| -| | securitySolution | - | -| | discover, visualizations, dashboard, lens, observability, maps, fileUpload, dataVisualizer, infra, graph, monitoring, securitySolution, stackAlerts, transform, uptime, inputControlVis, visTypeTimelion, visTypeTimeseries, visTypeVega, dataViewManagement, savedObjects | - | -| | apm, security, securitySolution | - | -| | apm, security, securitySolution | - | -| | encryptedSavedObjects, actions, cloud, ml, dataEnhanced, logstash, securitySolution | - | -| | visualizations, dashboard, lens, maps, ml, securitySolution, security | - | -| | securitySolution | - | | | dataViews, visTypeTimeseries, maps, data | - | -| | dataViews, observability, dashboard, lens, maps, graph, stackAlerts, transform, inputControlVis, visTypeTimelion, data | - | -| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, transform, lens, savedObjects, dataViewFieldEditor, dataViewEditor, graph, stackAlerts, uptime, inputControlVis, visDefaultEditor, visTypeVega, data | - | -| | dataViews, maps, dataVisualizer, lens, dataViewEditor, inputControlVis, visDefaultEditor, visTypeTimeseries, discover, data | - | +| | dataViews, observability, lens, maps, graph, stackAlerts, transform, inputControlVis, visTypeTimelion, data | - | +| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, dataVisualizer, transform, lens, ux, savedObjects, dataViewFieldEditor, dataViewEditor, graph, stackAlerts, uptime, maps, inputControlVis, visDefaultEditor, visTypeVega, data | - | +| | dataViews, dataVisualizer, lens, dataViewEditor, maps, inputControlVis, visDefaultEditor, visTypeTimeseries, discover, data | - | | | dataViews, monitoring, stackAlerts, transform | - | | | dataViews, transform, canvas, discover | - | -| | dataViews | - | | | dataViews, monitoring, stackAlerts, transform, data | - | | | dataViews, transform, canvas, discover, data | - | -| | dataViews, data | - | -| | dataViews, data | - | -| | dataViews, data | - | -| | dataViews, observability, dashboard, lens, maps, graph, stackAlerts, transform, inputControlVis, visTypeTimelion, data | - | -| | dataViews, visualizations, dashboard, data | - | -| | dataViews, maps, dataVisualizer, lens, dataViewEditor, inputControlVis, visDefaultEditor, visTypeTimeseries, discover, data | - | +| | dataViews, observability, lens, maps, graph, stackAlerts, transform, inputControlVis, visTypeTimelion, data | - | +| | dataViews, visualizations, data | - | +| | dataViews, dataVisualizer, lens, dataViewEditor, maps, inputControlVis, visDefaultEditor, visTypeTimeseries, discover, data | - | | | dataViews, visTypeTimeseries, maps, data | - | | | dataViews, visualizations, dashboard, lens | - | -| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, transform, lens, savedObjects, dataViewFieldEditor, dataViewEditor, graph, stackAlerts, uptime, inputControlVis, visDefaultEditor, visTypeVega, data | - | +| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, dataVisualizer, transform, lens, ux, savedObjects, dataViewFieldEditor, dataViewEditor, graph, stackAlerts, uptime, maps, inputControlVis, visDefaultEditor, visTypeVega, data | - | | | dataViews, maps | - | | | dataViewManagement, dataViews | - | | | visTypeTimeseries, graph, dataViewManagement, dataViews | - | | | dataViews, dataViewManagement | - | | | dataViews, transform, canvas, discover | - | -| | dataViews, maps, dataVisualizer, lens, dataViewEditor, inputControlVis, visDefaultEditor, visTypeTimeseries, discover | - | -| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, maps, dataVisualizer, apm, transform, lens, savedObjects, dataViewFieldEditor, dataViewEditor, graph, stackAlerts, uptime, inputControlVis, visDefaultEditor, visTypeVega | - | +| | dataViews, dataVisualizer, lens, dataViewEditor, maps, inputControlVis, visDefaultEditor, visTypeTimeseries, discover | - | +| | dataViews, upgradeAssistant, dashboard, visualizations, discover, visTypeTimeseries, observability, dataVisualizer, transform, lens, ux, savedObjects, dataViewFieldEditor, dataViewEditor, graph, stackAlerts, uptime, maps, inputControlVis, visDefaultEditor, visTypeVega | - | | | dataViews, visTypeTimeseries, maps | - | | | dataViews, maps | - | | | dataViewManagement, dataViews | - | | | visTypeTimeseries, graph, dataViewManagement, dataViews | - | | | dataViews, dataViewManagement | - | -| | fleet, dataViewFieldEditor, discover, dashboard, lens, stackAlerts, visTypeTable, visTypeTimeseries, visTypeXy, visTypeVislib, expressionPie | - | +| | discover, visualizations, lens, maps, fileUpload, dataVisualizer, infra, graph, monitoring, securitySolution, stackAlerts, transform, uptime, inputControlVis, visTypeTimelion, visTypeTimeseries, visTypeVega, savedObjects | - | +| | fleet, dataViewFieldEditor, discover, dashboard, lens, stackAlerts, visTypeTable, visTypeTimeseries, visTypeXy, visTypeVislib, expressionPartitionVis | - | | | visTypeTimeseries | - | | | visTypeTimeseries, graph, dataViewManagement | - | | | data, lens, visTypeTimeseries, infra, maps, visTypeTimelion | - | | | maps | - | | | visualizations, dashboard, maps, graph | - | +| | visualizations, dashboard, lens, maps, ml, securitySolution, security | - | | | observability, osquery | - | | | visualizations, dashboard, lens | - | -| | embeddable, presentationUtil, discover, dashboard, graph | - | -| | dashboard | - | | | savedObjectsTaggingOss, visualizations, dashboard, lens | - | -| | dashboard | - | -| | screenshotting, dashboard | - | | | lens, dashboard | - | +| | embeddable, presentationUtil, discover, dashboard, graph | - | | | spaces, security, actions, alerting, ml, fleet, remoteClusters, graph, indexLifecycleManagement, mapsEms, painlessLab, rollup, searchprofiler, snapshotRestore, transform, upgradeAssistant | - | -| | ml, infra, ingestPipelines, transform, upgradeAssistant | - | -| | ml, infra, ingestPipelines, transform, upgradeAssistant | - | +| | dashboard | - | | | discover | - | | | discover | - | | | data, discover, embeddable | - | @@ -74,8 +61,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | advancedSettings, discover | - | | | dataVisualizer | - | | | dataVisualizer | - | -| | cloud, apm | - | -| | security, licenseManagement, ml, fleet, apm, crossClusterReplication, logstash, painlessLab, searchprofiler, watcher | - | | | visTypeVega | - | | | monitoring, visTypeVega | - | | | monitoring, kibanaUsageCollection | - | @@ -89,32 +74,37 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | canvas | - | | | canvas | - | | | canvas, visTypeXy | - | -| | reporting | - | -| | reporting | - | -| | dataViewManagement | - | -| | dataViewManagement | - | +| | apm, security, securitySolution | - | +| | apm, security, securitySolution | - | +| | encryptedSavedObjects, actions, cloud, ml, dataEnhanced, logstash, securitySolution | - | +| | securitySolution | - | | | security, fleet | - | | | security, fleet | - | | | security, fleet | - | +| | security, licenseManagement, ml, fleet, apm, crossClusterReplication, logstash, painlessLab, searchprofiler, watcher | - | | | management, fleet, security, kibanaOverview | - | | | fleet | - | | | actions, alerting | - | +| | cloud, apm | - | +| | dataViewManagement | - | +| | dataViewManagement | - | | | actions, ml, enterpriseSearch, savedObjectsTagging | - | -| | screenshotting | - | -| | ml | - | +| | visTypePie | - | +| | visTypePie | - | | | security | - | | | security | - | +| | ml | - | | | spaces, savedObjectsManagement | - | | | spaces, savedObjectsManagement | - | | | mapsEms | - | | | console | - | | | discover, maps, inputControlVis | 8.1 | -| | discover, dashboard, maps, dashboardEnhanced, discoverEnhanced | 8.1 | +| | discover, dashboardEnhanced, discoverEnhanced, maps | 8.1 | | | discover, dashboard, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | | | discover, dashboard, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | | | discover, maps, inputControlVis | 8.1 | | | discover, dashboard, dashboardEnhanced, discoverEnhanced, urlDrilldown, inputControlVis, maps | 8.1 | -| | apm, graph, monitoring, stackAlerts | 8.1 | +| | apm, graph, stackAlerts | 8.1 | | | stackAlerts | 8.1 | | | dashboardEnhanced | 8.1 | | | dashboardEnhanced | 8.1 | @@ -124,9 +114,9 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | alerting, dataEnhanced | 8.1 | | | actions, alerting, dataEnhanced | 8.1 | | | alerting, dataEnhanced | 8.1 | -| | dataViews, monitoring, stackAlerts | 8.2 | -| | dataViews, monitoring, stackAlerts, data | 8.2 | -| | dataViews, monitoring, stackAlerts | 8.2 | +| | dataViews, stackAlerts | 8.2 | +| | dataViews, stackAlerts, data | 8.2 | +| | dataViews, stackAlerts | 8.2 | ## Unreferenced deprecated APIs @@ -135,9 +125,8 @@ Safe to remove. | Deprecated API | Plugin Id | | ---------------|------------| -| | dashboard | -| | dashboard | | | data | +| | data | | | data | | | data | | | data | @@ -200,6 +189,7 @@ Safe to remove. | | data | | | data | | | data | +| | data | | | data | | | data | | | data | @@ -213,12 +203,10 @@ Safe to remove. | | expressions | | | expressions | | | expressions | -| | screenshotMode | -| | screenshotMode | -| | screenshotMode | | | licensing | | | licensing | | | licensing | +| | taskManager | | | core | | | core | | | core | diff --git a/api_docs/deprecations_by_plugin.mdx b/api_docs/deprecations_by_plugin.mdx index af046944b2c56..9aac5a24121eb 100644 --- a/api_docs/deprecations_by_plugin.mdx +++ b/api_docs/deprecations_by_plugin.mdx @@ -3,7 +3,7 @@ id: kibDevDocsDeprecationsByPlugin slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-plugin title: Deprecated API usage by plugin summary: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. --- @@ -47,10 +47,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern) | - | | | [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#:~:text=esKuery), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#:~:text=esKuery), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/shared/kuery_bar/index.tsx#:~:text=esKuery) | 8.1 | -| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern) | - | -| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/components/app/rum_dashboard/local_ui_filters/selected_wildcards.tsx#:~:text=IndexPattern) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/plugin.ts#:~:text=environment) | - | | | [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode), [license_check.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/common/license_check.test.ts#:~:text=mode)+ 2 more | - | | | [license_context.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/apm/public/context/license/license_context.tsx#:~:text=license%24) | - | @@ -107,26 +104,19 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=IndexPatternsContract), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract)+ 2 more | - | -| | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [use_dashboard_app_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern)+ 10 more | - | -| | [dashboard_router.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/dashboard_router.tsx#:~:text=indexPatterns), [dashboard_router.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/dashboard_router.tsx#:~:text=indexPatterns) | - | +| | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern) | - | | | [export_csv_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/export_csv_action.tsx#:~:text=fieldFormats) | - | -| | [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/locator.ts#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/locator.ts#:~:text=esFilters), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/url_generator.ts#:~:text=esFilters)+ 11 more | 8.1 | -| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 22 more | 8.1 | -| | [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=IndexPatternsContract), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPatternsContract)+ 2 more | - | -| | [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [replace_index_pattern_reference.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE), [dashboard_migrations.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE) | - | +| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 5 more | 8.1 | | | [load_saved_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts#:~:text=ensureDefaultDataView), [load_saved_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts#:~:text=ensureDefaultDataView) | - | -| | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [use_dashboard_app_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern)+ 10 more | - | -| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 22 more | 8.1 | -| | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [use_dashboard_app_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/hooks/use_dashboard_app_state.d.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [sync_dashboard_index_patterns.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=IndexPattern) | - | -| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 22 more | 8.1 | +| | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern), [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern) | - | +| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 5 more | 8.1 | +| | [load_saved_dashboard_state.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/application/lib/load_saved_dashboard_state.d.ts#:~:text=IndexPattern) | - | +| | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 5 more | 8.1 | | | [load_saved_dashboard_state.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts#:~:text=ensureDefaultDataView) | - | | | [saved_objects.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_objects.ts#:~:text=SavedObjectSaveModal), [save_modal.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/top_nav/save_modal.tsx#:~:text=SavedObjectSaveModal), [save_modal.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/top_nav/save_modal.tsx#:~:text=SavedObjectSaveModal) | - | -| | [saved_objects.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_objects.ts#:~:text=SavedObjectLoader), [saved_dashboards.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboards.ts#:~:text=SavedObjectLoader), [saved_dashboards.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboards.ts#:~:text=SavedObjectLoader), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=SavedObjectLoader), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=SavedObjectLoader), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=SavedObjectLoader), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=SavedObjectLoader), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=SavedObjectLoader), [make_default_services.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts#:~:text=SavedObjectLoader), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/url_generator.ts#:~:text=SavedObjectLoader)+ 3 more | - | -| | [saved_objects.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_objects.ts#:~:text=SavedObject), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=SavedObject), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=SavedObject), [dashboard_tagging.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/dashboard_tagging.ts#:~:text=SavedObject), [dashboard_tagging.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/dashboard_tagging.ts#:~:text=SavedObject), [clone_panel_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/clone_panel_action.tsx#:~:text=SavedObject), [clone_panel_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/clone_panel_action.tsx#:~:text=SavedObject), [clone_panel_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/clone_panel_action.tsx#:~:text=SavedObject) | - | +| | [saved_object_loader.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_object_loader.ts#:~:text=SavedObject), [saved_object_loader.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_object_loader.ts#:~:text=SavedObject), [saved_object_loader.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_object_loader.ts#:~:text=SavedObject), [saved_objects.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/saved_objects.ts#:~:text=SavedObject), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=SavedObject), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=SavedObject), [dashboard_tagging.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/dashboard_tagging.ts#:~:text=SavedObject), [dashboard_tagging.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/dashboard_tagging.ts#:~:text=SavedObject), [clone_panel_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/clone_panel_action.tsx#:~:text=SavedObject), [clone_panel_action.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/actions/clone_panel_action.tsx#:~:text=SavedObject)+ 1 more | - | | | [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=SavedObjectClass) | - | | | [dashboard_listing.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/listing/dashboard_listing.tsx#:~:text=settings), [dashboard_listing.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/listing/dashboard_listing.tsx#:~:text=settings) | - | -| | [screenshot_mode.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/services/screenshot_mode.ts#:~:text=Layout) | - | | | [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/types.ts#:~:text=onAppLeave), [dashboard_router.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/dashboard_router.tsx#:~:text=onAppLeave), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=onAppLeave), [types.d.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/target/types/public/types.d.ts#:~:text=onAppLeave) | - | | | [migrations_730.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/migrations_730.ts#:~:text=warning), [migrations_730.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/server/saved_objects/migrations_730.ts#:~:text=warning) | - | @@ -158,9 +148,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/aggs/param_types/field.ts#:~:text=IndexPatternField), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [kibana_context_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/kibana_context_type.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPatternField)+ 16 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [get_time.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/query/timefilter/get_time.ts#:~:text=IIndexPattern), [normalize_sort_request.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/normalize_sort_request.ts#:~:text=IIndexPattern), [normalize_sort_request.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/normalize_sort_request.ts#:~:text=IIndexPattern), [normalize_sort_request.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/normalize_sort_request.ts#:~:text=IIndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IIndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IIndexPattern)+ 64 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternAttributes), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternAttributes), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternAttributes) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IIndexPatternsApiClient) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternFieldMap) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternSpec), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternSpec) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternsContract), [create_search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.ts#:~:text=IndexPatternsContract), [create_search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.ts#:~:text=IndexPatternsContract), [search_source_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source_service.ts#:~:text=IndexPatternsContract), [search_source_service.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source_service.ts#:~:text=IndexPatternsContract), [esaggs_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts#:~:text=IndexPatternsContract), [esaggs_fn.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/search/types.ts#:~:text=IndexPatternsContract), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/search/types.ts#:~:text=IndexPatternsContract), [create_search_source.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/create_search_source.test.ts#:~:text=IndexPatternsContract)+ 29 more | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/server/index.ts#:~:text=IndexPatternsService), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/public/index.ts#:~:text=IndexPatternsService) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/index.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/types.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [search_source.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/search_source/search_source.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern), [tabify_docs.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data/common/search/tabify/tabify_docs.ts#:~:text=IndexPattern)+ 94 more | - | @@ -209,7 +196,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [mocks.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/mocks.ts#:~:text=indexPatterns) | - | | | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=removeScriptedField), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=removeScriptedField), [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=removeScriptedField), [field_editor.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/field_editor/field_editor.tsx#:~:text=removeScriptedField) | - | | | [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/source_filters_table/components/table/table.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields), [edit_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/edit_index_pattern.tsx#:~:text=getNonScriptedFields) | - | | | [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=getScriptedFields), [scripted_fields_table.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx#:~:text=getScriptedFields) | - | @@ -233,13 +219,9 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IIndexPattern), [data_view.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.ts#:~:text=IIndexPattern), [data_view.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.ts#:~:text=IIndexPattern) | - | | | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/utils.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/utils.ts#:~:text=IFieldType), [data_view_field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/data_view_field.ts#:~:text=IFieldType), [data_view_field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/data_view_field.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/types.ts#:~:text=IFieldType), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/types.ts#:~:text=IFieldType)+ 13 more | 8.2 | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternAttributes) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternSpec) | - | | | [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/utils.ts#:~:text=IFieldType), [utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/utils.ts#:~:text=IFieldType), [data_view_field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/data_view_field.ts#:~:text=IFieldType), [data_view_field.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/data_view_field.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [field_list.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/field_list.ts#:~:text=IFieldType), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/types.ts#:~:text=IFieldType), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/types.ts#:~:text=IFieldType)+ 13 more | 8.2 | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IIndexPattern), [data_view.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.ts#:~:text=IIndexPattern), [data_view.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.ts#:~:text=IIndexPattern) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternAttributes) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IIndexPatternsApiClient), [index_patterns_api_client.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/server/index_patterns_api_client.ts#:~:text=IIndexPatternsApiClient), [index_patterns_api_client.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/server/index_patterns_api_client.ts#:~:text=IIndexPatternsApiClient) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternFieldMap) | - | -| | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternSpec) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/public/index.ts#:~:text=IndexPatternsContract) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=INDEX_PATTERN_SAVED_OBJECT_TYPE) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/index.ts#:~:text=IndexPatternField), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/public/index.ts#:~:text=IndexPatternField), [data_view.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.test.ts#:~:text=IndexPatternField), [data_view.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.test.ts#:~:text=IndexPatternField), [data_view.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.test.ts#:~:text=IndexPatternField), [data_view.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.test.ts#:~:text=IndexPatternField), [data_view.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.test.ts#:~:text=IndexPatternField), [data_view.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/data_views/data_view.test.ts#:~:text=IndexPatternField), [data_view_field.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/data_view_field.test.ts#:~:text=IndexPatternField), [data_view_field.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/data_views/common/fields/data_view_field.test.ts#:~:text=IndexPatternField)+ 2 more | - | @@ -346,11 +328,11 @@ warning: This document is auto-generated and is meant to be viewed inside our ex -## expressionPie +## expressionPartitionVis | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_pie/public/utils/get_layers.test.ts#:~:text=fieldFormats) | - | +| | [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts#:~:text=fieldFormats), [get_layers.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/chart_expressions/expression_partition_vis/public/utils/layers/get_layers.test.ts#:~:text=fieldFormats) | - | @@ -411,17 +393,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | ---------------|-----------|-----------| | | [editor.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/alerting/log_threshold/components/expression_editor/editor.tsx#:~:text=indexPatterns), [log_stream.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#:~:text=indexPatterns), [log_stream.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/log_stream/log_stream.tsx#:~:text=indexPatterns), [logs_overview_fetchers.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/logs_overview_fetchers.ts#:~:text=indexPatterns), [redirect_to_node_logs.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/link_to/redirect_to_node_logs.tsx#:~:text=indexPatterns), [use_kibana_index_patterns.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/hooks/use_kibana_index_patterns.ts#:~:text=indexPatterns), [page_providers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/pages/logs/page_providers.tsx#:~:text=indexPatterns), [logs_overview_fetches.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/utils/logs_overview_fetches.test.ts#:~:text=indexPatterns) | - | | | [kibana_framework_adapter.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts#:~:text=indexPatternsServiceFactory), [log_entries_search_strategy.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/server/services/log_entries/log_entries_search_strategy.ts#:~:text=indexPatternsServiceFactory), [log_entry_search_strategy.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/server/services/log_entries/log_entry_search_strategy.ts#:~:text=indexPatternsServiceFactory) | - | -| | [module_list_card.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx#:~:text=getUrl) | - | -| | [module_list_card.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx#:~:text=getUrl) | - | - - - -## ingestPipelines - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [locator.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ingest_pipelines/public/locator.test.ts#:~:text=getUrl) | - | -| | [locator.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ingest_pipelines/public/locator.test.ts#:~:text=getUrl) | - | @@ -467,16 +438,16 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPatternsContract), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPatternsContract), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPatternsContract), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPatternsContract), [embeddable_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable_factory.ts#:~:text=IndexPatternsContract), [embeddable_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable_factory.ts#:~:text=IndexPatternsContract), [loader.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts#:~:text=IndexPatternsContract), [loader.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts#:~:text=IndexPatternsContract)+ 22 more | - | -| | [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern)+ 28 more | - | +| | [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern)+ 30 more | - | | | [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField)+ 8 more | - | | | [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [datapanel.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx#:~:text=indexPatterns), [indexpattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx#:~:text=indexPatterns), [lens_top_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx#:~:text=indexPatterns), [lens_top_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/app_plugin/lens_top_nav.tsx#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=indexPatterns), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=indexPatterns) | - | | | [ranges.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/ranges/ranges.tsx#:~:text=fieldFormats), [droppable.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/droppable/droppable.test.ts#:~:text=fieldFormats) | - | | | [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPatternsContract), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPatternsContract), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPatternsContract), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPatternsContract), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPatternsContract), [embeddable_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable_factory.ts#:~:text=IndexPatternsContract), [embeddable_factory.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable_factory.ts#:~:text=IndexPatternsContract), [loader.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts#:~:text=IndexPatternsContract), [loader.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts#:~:text=IndexPatternsContract)+ 22 more | - | | | [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField)+ 8 more | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=ensureDefaultDataView), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=ensureDefaultDataView) | - | -| | [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern)+ 28 more | - | +| | [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern)+ 30 more | - | | | [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField), [field_stats.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/server/routes/field_stats.d.ts#:~:text=IndexPatternField) | - | -| | [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern)+ 9 more | - | +| | [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [existing_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/existing_fields.test.ts#:~:text=IndexPattern), [loader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/indexpattern_datasource/loader.ts#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [embeddable.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/embeddable/embeddable.tsx#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/utils.ts#:~:text=IndexPattern)+ 10 more | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/plugin.ts#:~:text=ensureDefaultDataView) | - | | | [field_stats.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/server/routes/field_stats.ts#:~:text=indexPatternsServiceFactory) | - | | | [display_duplicate_title_confirm_modal.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.ts#:~:text=SavedObject), [display_duplicate_title_confirm_modal.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.ts#:~:text=SavedObject), [check_for_duplicate_title.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/saved_objects_utils/check_for_duplicate_title.ts#:~:text=SavedObject), [check_for_duplicate_title.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/public/persistence/saved_objects_utils/check_for_duplicate_title.ts#:~:text=SavedObject), [check_for_duplicate_title.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/persistence/saved_objects_utils/check_for_duplicate_title.d.ts#:~:text=SavedObject), [check_for_duplicate_title.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/persistence/saved_objects_utils/check_for_duplicate_title.d.ts#:~:text=SavedObject), [display_duplicate_title_confirm_modal.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.d.ts#:~:text=SavedObject), [display_duplicate_title_confirm_modal.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/lens/target/types/public/persistence/saved_objects_utils/display_duplicate_title_confirm_modal.d.ts#:~:text=SavedObject) | - | @@ -516,24 +487,24 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | ---------------|-----------|-----------| | | [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService) | - | | | [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract) | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=IndexPattern), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPattern), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPattern), [agg_field_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts#:~:text=IndexPattern), [agg_field_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts#:~:text=IndexPattern), [percentile_agg_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts#:~:text=IndexPattern), [percentile_agg_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts#:~:text=IndexPattern), [es_geo_grid_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx#:~:text=IndexPattern), [es_geo_grid_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx#:~:text=IndexPattern)+ 204 more | - | -| | [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField)+ 268 more | - | +| | [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern)+ 4 more | - | +| | [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField)+ 130 more | - | | | [es_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch) | 8.1 | | | [kibana_services.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/kibana_services.ts#:~:text=indexPatterns) | - | -| | [es_tooltip_property.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#:~:text=esFilters), [es_tooltip_property.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#:~:text=esFilters), [es_tooltip_property.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#:~:text=esFilters), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=esFilters), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=esFilters), [es_geo_line_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#:~:text=esFilters), [es_geo_line_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#:~:text=esFilters), [es_geo_line_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#:~:text=esFilters), [app_sync.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts#:~:text=esFilters), [app_sync.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts#:~:text=esFilters)+ 9 more | 8.1 | -| | [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter)+ 21 more | 8.1 | +| | [locators.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/locators.test.ts#:~:text=esFilters), [locators.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/locators.test.ts#:~:text=esFilters) | 8.1 | +| | [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter) | 8.1 | | | [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/lazy_load_bundle/index.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract), [index.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/public/lazy_load_bundle/index.d.ts#:~:text=IndexPatternsContract) | - | -| | [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField)+ 268 more | - | +| | [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField)+ 130 more | - | | | [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService) | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=IndexPattern), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPattern), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPattern), [agg_field_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts#:~:text=IndexPattern), [agg_field_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts#:~:text=IndexPattern), [percentile_agg_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts#:~:text=IndexPattern), [percentile_agg_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts#:~:text=IndexPattern), [es_geo_grid_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx#:~:text=IndexPattern), [es_geo_grid_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx#:~:text=IndexPattern)+ 204 more | - | +| | [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern)+ 4 more | - | | | [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit) | - | -| | [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter)+ 21 more | 8.1 | +| | [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter) | 8.1 | | | [es_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch) | 8.1 | -| | [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [es_agg_utils.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/target/types/common/elasticsearch_util/es_agg_utils.d.ts#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField)+ 129 more | - | -| | [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=IndexPattern), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=IndexPattern), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPattern), [es_agg_utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/es_agg_utils.ts#:~:text=IndexPattern), [agg_field_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts#:~:text=IndexPattern), [agg_field_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/agg_field_types.ts#:~:text=IndexPattern), [percentile_agg_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts#:~:text=IndexPattern), [percentile_agg_field.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.ts#:~:text=IndexPattern), [es_geo_grid_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx#:~:text=IndexPattern), [es_geo_grid_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx#:~:text=IndexPattern)+ 97 more | - | +| | [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField), [single_field_select.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/components/single_field_select.tsx#:~:text=IndexPatternField)+ 60 more | - | +| | [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [es_tooltip_property.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern), [percentile_agg_field.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/fields/agg/percentile_agg_field.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern), [get_docvalue_source_fields.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/util/get_docvalue_source_fields.test.ts#:~:text=IndexPattern) | - | | | [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService), [create_doc_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/create_doc_source.ts#:~:text=IndexPatternsService) | - | | | [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit) | - | -| | [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter)+ 21 more | 8.1 | +| | [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter) | 8.1 | | | [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=flattenHit) | - | | | [kibana_server_services.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/kibana_server_services.ts#:~:text=indexPatternsServiceFactory), [indexing_routes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/server/data_indexing/indexing_routes.ts#:~:text=indexPatternsServiceFactory) | - | | | [maps_list_view.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/list_page/maps_list_view.tsx#:~:text=settings), [maps_list_view.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/list_page/maps_list_view.tsx#:~:text=settings), [maps_list_view.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/list_page/maps_list_view.tsx#:~:text=settings) | - | @@ -554,8 +525,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [side_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [anomaly_detection_empty_state.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx#:~:text=getUrl), [use_view_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx#:~:text=getUrl), [use_map_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx#:~:text=getUrl), [models_list.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx#:~:text=getUrl)+ 17 more | - | -| | [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [use_create_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts#:~:text=getUrl), [side_nav.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx#:~:text=getUrl), [anomaly_detection_empty_state.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx#:~:text=getUrl), [use_view_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx#:~:text=getUrl), [use_map_action.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx#:~:text=getUrl), [actions.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx#:~:text=getUrl), [models_list.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx#:~:text=getUrl)+ 17 more | - | | | [check_license.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/application/license/check_license.tsx#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/public/plugin.ts#:~:text=license%24) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/server/plugin.ts#:~:text=license%24), [plugin.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/server/plugin.ts#:~:text=license%24) | - | | | [annotations.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ml/server/routes/annotations.ts#:~:text=authc) | - | @@ -570,12 +539,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IIndexPattern), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IIndexPattern), [with_kuery_autocompletion.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/with_kuery_autocompletion.tsx#:~:text=IIndexPattern), [with_kuery_autocompletion.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/with_kuery_autocompletion.tsx#:~:text=IIndexPattern), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=IIndexPattern), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=IIndexPattern), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=IIndexPattern), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=IIndexPattern), [with_kuery_autocompletion.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/target/types/public/components/kuery_bar/with_kuery_autocompletion.d.ts#:~:text=IIndexPattern), [with_kuery_autocompletion.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/target/types/public/components/kuery_bar/with_kuery_autocompletion.d.ts#:~:text=IIndexPattern)+ 2 more | - | -| | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType) | 8.2 | | | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=indexPatterns), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=indexPatterns) | - | -| | [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=esKuery), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=esKuery), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=esKuery), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=esKuery), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=esKuery) | 8.1 | -| | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType) | 8.2 | | | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IIndexPattern), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IIndexPattern), [with_kuery_autocompletion.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/with_kuery_autocompletion.tsx#:~:text=IIndexPattern), [with_kuery_autocompletion.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/with_kuery_autocompletion.tsx#:~:text=IIndexPattern), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=IIndexPattern), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=IIndexPattern), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=IIndexPattern), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=IIndexPattern), [with_kuery_autocompletion.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/target/types/public/components/kuery_bar/with_kuery_autocompletion.d.ts#:~:text=IIndexPattern), [with_kuery_autocompletion.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/target/types/public/components/kuery_bar/with_kuery_autocompletion.d.ts#:~:text=IIndexPattern)+ 14 more | - | -| | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType) | 8.2 | | | [legacy_shims.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/legacy_shims.ts#:~:text=injectedMetadata) | - | | | [bulk_uploader.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.ts#:~:text=process) | - | @@ -587,7 +552,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | ---------------|-----------|-----------| | | [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract) | - | | | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 34 more | - | -| | [observability_data_views.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.ts#:~:text=indexPatterns), [alerts_page.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/pages/alerts/containers/alerts_page/alerts_page.tsx#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns), [observability_data_views.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.test.ts#:~:text=indexPatterns)+ 3 more | - | | | [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract), [rtl_helpers.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/rtl_helpers.tsx#:~:text=IndexPatternsContract) | - | | | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 34 more | - | | | [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [utils.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/utils.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [lens_attributes.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/lens_attributes.ts#:~:text=IndexPattern), [default_configs.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/default_configs.ts#:~:text=IndexPattern)+ 12 more | - | @@ -628,15 +592,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex -## reporting - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource) | - | -| | [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource), [generate_csv.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts#:~:text=fieldsFromSource) | - | - - - ## rollup | Deprecated API | Reference location(s) | Remove By | @@ -681,15 +636,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex -## screenshotting - -| Deprecated API | Reference location(s) | Remove By | -| ---------------|-----------|-----------| -| | [observable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/screenshots/observable.ts#:~:text=Layout), [driver.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts#:~:text=Layout), [driver.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts#:~:text=Layout), [open_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/screenshots/open_url.ts#:~:text=Layout), [open_url.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/screenshots/open_url.ts#:~:text=Layout), [observable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/screenshots/observable.ts#:~:text=Layout), [observable.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/screenshots/observable.ts#:~:text=Layout), [driver.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/target/types/server/browsers/chromium/driver.d.ts#:~:text=Layout), [driver.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/target/types/server/browsers/chromium/driver.d.ts#:~:text=Layout), [open_url.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/target/types/server/screenshots/open_url.d.ts#:~:text=Layout)+ 1 more | - | -| | [driver.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts#:~:text=setScreenshotLayout) | - | - - - ## searchprofiler | Deprecated API | Reference location(s) | Remove By | @@ -721,7 +667,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| -| | [use_risky_hosts_dashboard_button_href.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/overview/containers/overview_risky_host_links/use_risky_hosts_dashboard_button_href.ts#:~:text=dashboardUrlGenerator) | - | | | [middleware.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/middleware.ts#:~:text=indexPatterns), [dependencies_start_mock.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/public/common/mock/endpoint/dependencies_start_mock.ts#:~:text=indexPatterns) | - | | | [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode)+ 2 more | - | | | [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [policy_config.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/common/license/policy_config.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [fleet_integration.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/fleet_integration/fleet_integration.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [license_watch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/lib/policy/license_watch.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode), [isolation.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/security_solution/server/endpoint/routes/actions/isolation.test.ts#:~:text=mode)+ 2 more | - | @@ -785,8 +730,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [wizard.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/wizard/wizard.tsx#:~:text=IndexPattern), [wizard.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/wizard/wizard.tsx#:~:text=IndexPattern), [get_pivot_dropdown_options.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/get_pivot_dropdown_options.ts#:~:text=IndexPattern), [get_pivot_dropdown_options.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/get_pivot_dropdown_options.ts#:~:text=IndexPattern), [filter_agg_form.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/filter_agg/components/filter_agg_form.tsx#:~:text=IndexPattern), [filter_agg_form.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/filter_agg/components/filter_agg_form.tsx#:~:text=IndexPattern)+ 30 more | - | | | [common.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/hooks/use_search_items/common.ts#:~:text=IndexPatternAttributes), [common.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/hooks/use_search_items/common.ts#:~:text=IndexPatternAttributes) | - | | | [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [index_pattern.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/common/types/index_pattern.ts#:~:text=IndexPattern), [wizard.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/wizard/wizard.tsx#:~:text=IndexPattern), [wizard.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/wizard/wizard.tsx#:~:text=IndexPattern), [get_pivot_dropdown_options.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/get_pivot_dropdown_options.ts#:~:text=IndexPattern), [get_pivot_dropdown_options.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/get_pivot_dropdown_options.ts#:~:text=IndexPattern), [filter_agg_form.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/filter_agg/components/filter_agg_form.tsx#:~:text=IndexPattern), [filter_agg_form.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/filter_agg/components/filter_agg_form.tsx#:~:text=IndexPattern)+ 10 more | - | -| | [step_create_form.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_create/step_create_form.tsx#:~:text=getUrl) | - | -| | [step_create_form.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/public/app/sections/create_transform/components/step_create/step_create_form.tsx#:~:text=getUrl) | - | | | [license.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/transform/server/services/license.ts#:~:text=license%24) | - | @@ -798,8 +741,6 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [app_context.mock.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/target/types/__jest__/client_integration/helpers/app_context.mock.d.ts#:~:text=IndexPattern), [app_context.mock.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/target/types/__jest__/client_integration/helpers/app_context.mock.d.ts#:~:text=IndexPattern) | - | | | [app_context.mock.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/target/types/__jest__/client_integration/helpers/app_context.mock.d.ts#:~:text=IndexPattern), [app_context.mock.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/target/types/__jest__/client_integration/helpers/app_context.mock.d.ts#:~:text=IndexPattern) | - | | | [app_context.mock.d.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/target/types/__jest__/client_integration/helpers/app_context.mock.d.ts#:~:text=IndexPattern) | - | -| | [external_links.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx#:~:text=getUrl), [app_context.mock.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts#:~:text=getUrl) | - | -| | [external_links.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx#:~:text=getUrl), [app_context.mock.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts#:~:text=getUrl) | - | | | [reindex_service.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts#:~:text=license%24), [reindex_service.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts#:~:text=license%24), [reindex_service.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts#:~:text=license%24) | - | @@ -825,6 +766,16 @@ warning: This document is auto-generated and is meant to be viewed inside our ex +## ux + +| Deprecated API | Reference location(s) | Remove By | +| ---------------|-----------|-----------| +| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern) | - | +| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern) | - | +| | [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_filters.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_filters.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern), [selected_wildcards.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/ux/public/components/app/rum_dashboard/local_uifilters/selected_wildcards.tsx#:~:text=IndexPattern) | - | + + + ## visDefaultEditor | Deprecated API | Reference location(s) | Remove By | @@ -838,6 +789,15 @@ warning: This document is auto-generated and is meant to be viewed inside our ex +## visTypePie + +| Deprecated API | Reference location(s) | Remove By | +| ---------------|-----------|-----------| +| | [to_ast.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/pie/public/to_ast.ts#:~:text=truncate), [pie.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/pie/public/editor/components/pie.tsx#:~:text=truncate) | - | +| | [to_ast.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/pie/public/to_ast.ts#:~:text=last_level), [pie.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/pie/public/editor/components/pie.tsx#:~:text=last_level) | - | + + + ## visTypeTable | Deprecated API | Reference location(s) | Remove By | @@ -862,16 +822,16 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Deprecated API | Reference location(s) | Remove By | | ---------------|-----------|-----------| | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService)+ 44 more | - | -| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 48 more | - | +| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 76 more | - | | | [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField)+ 2 more | - | -| | [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=indexPatterns), [combo_box_select.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/combo_box_select.tsx#:~:text=indexPatterns), [query_bar_wrapper.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/query_bar_wrapper.tsx#:~:text=indexPatterns), [annotation_row.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx#:~:text=indexPatterns), [metrics_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.ts#:~:text=indexPatterns), [convert_series_to_datatable.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts#:~:text=indexPatterns), [timeseries_visualization.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx#:~:text=indexPatterns), [metrics_type.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.test.ts#:~:text=indexPatterns) | - | +| | [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=indexPatterns), [combo_box_select.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/index_pattern_select/combo_box_select.tsx#:~:text=indexPatterns), [query_bar_wrapper.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/query_bar_wrapper.tsx#:~:text=indexPatterns), [annotation_row.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/annotation_row.tsx#:~:text=indexPatterns), [metrics_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.ts#:~:text=indexPatterns), [metrics_type.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.ts#:~:text=indexPatterns), [convert_series_to_datatable.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.ts#:~:text=indexPatterns), [timeseries_visualization.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx#:~:text=indexPatterns), [metrics_type.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/metrics_type.test.ts#:~:text=indexPatterns) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/plugin.ts#:~:text=fieldFormats) | - | | | [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField)+ 2 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService)+ 44 more | - | -| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 48 more | - | +| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 76 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields) | - | | | [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField), [convert_series_to_datatable.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/components/lib/convert_series_to_datatable.test.ts#:~:text=IndexPatternField) | - | -| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 19 more | - | +| | [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [cached_index_pattern_fetcher.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.test.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/types/index.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern), [index_patterns_utils.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/common/index_patterns_utils.test.ts#:~:text=IndexPattern)+ 33 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [default_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/default_search_strategy.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [cached_index_pattern_fetcher.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/lib/cached_index_pattern_fetcher.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [rollup_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService), [types.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/types.ts#:~:text=IndexPatternsService)+ 44 more | - | | | [abstract_search_strategy.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/abstract_search_strategy.ts#:~:text=getNonScriptedFields), [fetch_fields.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/public/application/lib/fetch_fields.ts#:~:text=getNonScriptedFields) | - | | | [plugin.ts](https://github.com/elastic/kibana/tree/master/src/plugins/vis_types/timeseries/server/plugin.ts#:~:text=fieldFormats) | - | diff --git a/api_docs/deprecations_by_team.mdx b/api_docs/deprecations_by_team.mdx index 4c2e83abeaf21..ca9516ce85df8 100644 --- a/api_docs/deprecations_by_team.mdx +++ b/api_docs/deprecations_by_team.mdx @@ -3,7 +3,7 @@ id: kibDevDocsDeprecationsDueByTeam slug: /kibana-dev-docs/api-meta/deprecations-due-by-team title: Deprecated APIs due to be removed, by team summary: Lists the teams that are referencing deprecated APIs with a remove by date. -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana'] warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. --- @@ -58,11 +58,11 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Plugin | Deprecated API | Reference location(s) | Remove By | | --------|-------|-----------|-----------| | maps | | [es_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch) | 8.1 | -| maps | | [es_tooltip_property.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#:~:text=esFilters), [es_tooltip_property.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#:~:text=esFilters), [es_tooltip_property.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/tooltips/es_tooltip_property.ts#:~:text=esFilters), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=esFilters), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=esFilters), [es_geo_line_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#:~:text=esFilters), [es_geo_line_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#:~:text=esFilters), [es_geo_line_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx#:~:text=esFilters), [app_sync.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts#:~:text=esFilters), [app_sync.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/url_state/app_sync.ts#:~:text=esFilters)+ 9 more | 8.1 | -| maps | | [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter)+ 21 more | 8.1 | -| maps | | [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter)+ 21 more | 8.1 | +| maps | | [locators.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/locators.test.ts#:~:text=esFilters), [locators.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/locators.test.ts#:~:text=esFilters) | 8.1 | +| maps | | [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter) | 8.1 | +| maps | | [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter) | 8.1 | | maps | | [es_source.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_source/es_source.ts#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch), [es_search_source.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/sources/es_search_source/es_search_source.tsx#:~:text=fetch) | 8.1 | -| maps | | [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [data_request_descriptor_types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/descriptor_types/data_request_descriptor_types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/embeddable/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [types.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/common/elasticsearch_util/types.ts#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter), [map_app.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/routes/map_page/map_app/map_app.tsx#:~:text=Filter)+ 21 more | 8.1 | +| maps | | [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter), [can_skip_fetch.test.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/maps/public/classes/util/can_skip_fetch.test.ts#:~:text=Filter) | 8.1 | @@ -86,20 +86,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Plugin | Deprecated API | Reference location(s) | Remove By | | --------|-------|-----------|-----------| -| dashboard | | [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [save_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/save_dashboard.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [sync_dashboard_container_input.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters), [plugin.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/plugin.tsx#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/locator.ts#:~:text=esFilters), [locator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/locator.ts#:~:text=esFilters), [url_generator.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/url_generator.ts#:~:text=esFilters)+ 11 more | 8.1 | -| dashboard | | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 36 more | 8.1 | -| dashboard | | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 36 more | 8.1 | -| dashboard | | [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [filter_utils.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/lib/filter_utils.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [saved_dashboard.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/saved_dashboards/saved_dashboard.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter), [dashboard_state_slice.ts](https://github.com/elastic/kibana/tree/master/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts#:~:text=Filter)+ 36 more | 8.1 | | inputControlVis | | [list_control_factory.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/list_control_factory.ts#:~:text=fetch), [range_control_factory.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/range_control_factory.ts#:~:text=fetch) | 8.1 | +| inputControlVis | | [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [control.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/control.ts#:~:text=Filter), [control.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/control.ts#:~:text=Filter), [vis_controller.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/vis_controller.tsx#:~:text=Filter), [vis_controller.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/vis_controller.tsx#:~:text=Filter), [filter_manager.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts#:~:text=Filter), [filter_manager.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts#:~:text=Filter)+ 19 more | 8.1 | +| inputControlVis | | [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [control.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/control.ts#:~:text=Filter), [control.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/control.ts#:~:text=Filter), [vis_controller.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/vis_controller.tsx#:~:text=Filter), [vis_controller.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/vis_controller.tsx#:~:text=Filter), [filter_manager.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts#:~:text=Filter), [filter_manager.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts#:~:text=Filter)+ 19 more | 8.1 | | inputControlVis | | [list_control_factory.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/list_control_factory.ts#:~:text=fetch), [range_control_factory.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/range_control_factory.ts#:~:text=fetch) | 8.1 | - - - -## Stack Monitoring - -| Plugin | Deprecated API | Reference location(s) | Remove By | -| --------|-------|-----------|-----------| -| monitoring | | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType) | 8.2 | -| monitoring | | [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=esKuery), [index.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/components/kuery_bar/index.tsx#:~:text=esKuery), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=esKuery), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=esKuery), [kuery.ts](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/lib/kuery.ts#:~:text=esKuery) | 8.1 | -| monitoring | | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType) | 8.2 | -| monitoring | | [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType), [use_derived_index_pattern.tsx](https://github.com/elastic/kibana/tree/master/x-pack/plugins/monitoring/public/alerts/components/param_details_form/use_derived_index_pattern.tsx#:~:text=IFieldType) | 8.2 | \ No newline at end of file +| inputControlVis | | [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [filter_manager.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.ts#:~:text=Filter), [control.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/control.ts#:~:text=Filter), [control.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/control.ts#:~:text=Filter), [vis_controller.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/vis_controller.tsx#:~:text=Filter), [vis_controller.tsx](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/vis_controller.tsx#:~:text=Filter), [filter_manager.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts#:~:text=Filter), [filter_manager.test.ts](https://github.com/elastic/kibana/tree/master/src/plugins/input_control_vis/public/control/filter_manager/filter_manager.test.ts#:~:text=Filter)+ 19 more | 8.1 | \ No newline at end of file diff --git a/api_docs/dev_tools.mdx b/api_docs/dev_tools.mdx index 70bad6ae3cc46..1e6820b976fc6 100644 --- a/api_docs/dev_tools.mdx +++ b/api_docs/dev_tools.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/devTools title: "devTools" image: https://source.unsplash.com/400x175/?github summary: API docs for the devTools plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'devTools'] 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. --- diff --git a/api_docs/discover.devdocs.json b/api_docs/discover.devdocs.json index e1bd08b488430..a842dc1e03fcc 100644 --- a/api_docs/discover.devdocs.json +++ b/api_docs/discover.devdocs.json @@ -1171,6 +1171,19 @@ ], "path": "src/plugins/discover/public/services/saved_searches/types.ts", "deprecated": false + }, + { + "parentPluginId": "discover", + "id": "def-public.SavedSearch.rowHeight", + "type": "number", + "tags": [], + "label": "rowHeight", + "description": [], + "signature": [ + "number | undefined" + ], + "path": "src/plugins/discover/public/services/saved_searches/types.ts", + "deprecated": false } ], "initialIsOpen": false @@ -1282,6 +1295,19 @@ ], "path": "src/plugins/discover/public/embeddable/types.ts", "deprecated": false + }, + { + "parentPluginId": "discover", + "id": "def-public.SearchInput.rowHeight", + "type": "number", + "tags": [], + "label": "rowHeight", + "description": [], + "signature": [ + "number | undefined" + ], + "path": "src/plugins/discover/public/embeddable/types.ts", + "deprecated": false } ], "initialIsOpen": false @@ -1648,6 +1674,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "discover", + "id": "def-common.ROW_HEIGHT_OPTION", + "type": "string", + "tags": [], + "label": "ROW_HEIGHT_OPTION", + "description": [], + "signature": [ + "\"discover:rowHeightOption\"" + ], + "path": "src/plugins/discover/common/index.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "discover", "id": "def-common.SAMPLE_SIZE_SETTING", diff --git a/api_docs/discover.mdx b/api_docs/discover.mdx index 1dbf60bf028d5..55432ba1f4b9c 100644 --- a/api_docs/discover.mdx +++ b/api_docs/discover.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/discover title: "discover" image: https://source.unsplash.com/400x175/?github summary: API docs for the discover plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discover'] 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. --- @@ -18,7 +18,7 @@ Contact [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-disco | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 90 | 0 | 62 | 7 | +| 93 | 0 | 65 | 7 | ## Client diff --git a/api_docs/discover_enhanced.mdx b/api_docs/discover_enhanced.mdx index 77ed073be04b1..3f3b44e44ec55 100644 --- a/api_docs/discover_enhanced.mdx +++ b/api_docs/discover_enhanced.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/discoverEnhanced title: "discoverEnhanced" image: https://source.unsplash.com/400x175/?github summary: API docs for the discoverEnhanced plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverEnhanced'] 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. --- diff --git a/api_docs/elastic_apm_synthtrace.mdx b/api_docs/elastic_apm_synthtrace.mdx index 50cfdad6233f6..d5fdbe2cbf708 100644 --- a/api_docs/elastic_apm_synthtrace.mdx +++ b/api_docs/elastic_apm_synthtrace.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/elastic-apm-synthtrace title: "@elastic/apm-synthtrace" image: https://source.unsplash.com/400x175/?github summary: API docs for the @elastic/apm-synthtrace plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@elastic/apm-synthtrace'] 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. --- diff --git a/api_docs/elastic_datemath.mdx b/api_docs/elastic_datemath.mdx index 04a7940da47c8..6c3e950ece95f 100644 --- a/api_docs/elastic_datemath.mdx +++ b/api_docs/elastic_datemath.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/elastic-datemath title: "@elastic/datemath" image: https://source.unsplash.com/400x175/?github summary: API docs for the @elastic/datemath plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@elastic/datemath'] 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. --- diff --git a/api_docs/embeddable.mdx b/api_docs/embeddable.mdx index 01a0289f93c94..9280c19746734 100644 --- a/api_docs/embeddable.mdx +++ b/api_docs/embeddable.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/embeddable title: "embeddable" image: https://source.unsplash.com/400x175/?github summary: API docs for the embeddable plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddable'] 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. --- diff --git a/api_docs/embeddable_enhanced.mdx b/api_docs/embeddable_enhanced.mdx index f744090733fd4..354cfc6def55c 100644 --- a/api_docs/embeddable_enhanced.mdx +++ b/api_docs/embeddable_enhanced.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/embeddableEnhanced title: "embeddableEnhanced" image: https://source.unsplash.com/400x175/?github summary: API docs for the embeddableEnhanced plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddableEnhanced'] 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. --- diff --git a/api_docs/encrypted_saved_objects.mdx b/api_docs/encrypted_saved_objects.mdx index e61b497129d4e..70e712a3db5dd 100644 --- a/api_docs/encrypted_saved_objects.mdx +++ b/api_docs/encrypted_saved_objects.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/encryptedSavedObjects title: "encryptedSavedObjects" image: https://source.unsplash.com/400x175/?github summary: API docs for the encryptedSavedObjects plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'encryptedSavedObjects'] 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. --- diff --git a/api_docs/enterprise_search.mdx b/api_docs/enterprise_search.mdx index cf2e61a87b48a..cce7f38777bbc 100644 --- a/api_docs/enterprise_search.mdx +++ b/api_docs/enterprise_search.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/enterpriseSearch title: "enterpriseSearch" image: https://source.unsplash.com/400x175/?github summary: API docs for the enterpriseSearch plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'enterpriseSearch'] 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. --- diff --git a/api_docs/es_ui_shared.mdx b/api_docs/es_ui_shared.mdx index 79c635e2ffc8e..8e8abb63f697f 100644 --- a/api_docs/es_ui_shared.mdx +++ b/api_docs/es_ui_shared.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/esUiShared title: "esUiShared" image: https://source.unsplash.com/400x175/?github summary: API docs for the esUiShared plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esUiShared'] 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. --- diff --git a/api_docs/event_log.devdocs.json b/api_docs/event_log.devdocs.json index 55b4f53b1a8f8..d7c3221ead97b 100644 --- a/api_docs/event_log.devdocs.json +++ b/api_docs/event_log.devdocs.json @@ -893,7 +893,7 @@ "label": "data", "description": [], "signature": [ - "(Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ number_of_triggered_actions?: number | undefined; total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; reporting?: Readonly<{ id?: string | undefined; jobType?: string | undefined; byteSize?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}> | undefined)[]" + "(Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ number_of_triggered_actions?: number | undefined; total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}> | undefined)[]" ], "path": "x-pack/plugins/event_log/server/es/cluster_client_adapter.ts", "deprecated": false @@ -912,7 +912,7 @@ "label": "IEvent", "description": [], "signature": [ - "DeepPartial | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ number_of_triggered_actions?: number | undefined; total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; reporting?: Readonly<{ id?: string | undefined; jobType?: string | undefined; byteSize?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}>>> | undefined" + "DeepPartial | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ number_of_triggered_actions?: number | undefined; total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}>>> | undefined" ], "path": "x-pack/plugins/event_log/generated/schemas.ts", "deprecated": false, @@ -926,7 +926,7 @@ "label": "IValidatedEvent", "description": [], "signature": [ - "Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ number_of_triggered_actions?: number | undefined; total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; reporting?: Readonly<{ id?: string | undefined; jobType?: string | undefined; byteSize?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}> | undefined" + "Readonly<{ user?: Readonly<{ name?: string | undefined; } & {}> | undefined; message?: string | undefined; error?: Readonly<{ message?: string | undefined; type?: string | undefined; id?: string | undefined; code?: string | undefined; stack_trace?: string | undefined; } & {}> | undefined; tags?: string[] | undefined; kibana?: Readonly<{ alert?: Readonly<{ rule?: Readonly<{ execution?: Readonly<{ status?: string | undefined; metrics?: Readonly<{ number_of_triggered_actions?: number | undefined; total_indexing_duration_ms?: number | undefined; total_search_duration_ms?: number | undefined; execution_gap_duration_s?: number | undefined; } & {}> | undefined; uuid?: string | undefined; status_order?: number | undefined; } & {}> | undefined; } & {}> | undefined; } & {}> | undefined; version?: string | undefined; saved_objects?: Readonly<{ type?: string | undefined; id?: string | undefined; rel?: string | undefined; namespace?: string | undefined; type_id?: string | undefined; } & {}>[] | undefined; alerting?: Readonly<{ status?: string | undefined; instance_id?: string | undefined; action_group_id?: string | undefined; action_subgroup?: string | undefined; } & {}> | undefined; server_uuid?: string | undefined; task?: Readonly<{ id?: string | undefined; scheduled?: string | undefined; schedule_delay?: number | undefined; } & {}> | undefined; space_ids?: string[] | undefined; } & {}> | undefined; log?: Readonly<{ logger?: string | undefined; level?: string | undefined; } & {}> | undefined; ecs?: Readonly<{ version?: string | undefined; } & {}> | undefined; rule?: Readonly<{ id?: string | undefined; description?: string | undefined; name?: string | undefined; version?: string | undefined; license?: string | undefined; category?: string | undefined; reference?: string | undefined; author?: string[] | undefined; ruleset?: string | undefined; uuid?: string | undefined; } & {}> | undefined; event?: Readonly<{ start?: string | undefined; type?: string[] | undefined; id?: string | undefined; end?: string | undefined; category?: string[] | undefined; outcome?: string | undefined; url?: string | undefined; original?: string | undefined; duration?: number | undefined; code?: string | undefined; action?: string | undefined; kind?: string | undefined; hash?: string | undefined; dataset?: string | undefined; severity?: number | undefined; created?: string | undefined; ingested?: string | undefined; module?: string | undefined; provider?: string | undefined; reason?: string | undefined; reference?: string | undefined; risk_score?: number | undefined; risk_score_norm?: number | undefined; sequence?: number | undefined; timezone?: string | undefined; } & {}> | undefined; '@timestamp'?: string | undefined; } & {}> | undefined" ], "path": "x-pack/plugins/event_log/generated/schemas.ts", "deprecated": false, diff --git a/api_docs/event_log.mdx b/api_docs/event_log.mdx index 4730c2ca003ac..cf9e1a8537912 100644 --- a/api_docs/event_log.mdx +++ b/api_docs/event_log.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/eventLog title: "eventLog" image: https://source.unsplash.com/400x175/?github summary: API docs for the eventLog plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventLog'] 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. --- diff --git a/api_docs/expression_error.mdx b/api_docs/expression_error.mdx index ab44374fd004d..3771b9bde60b7 100644 --- a/api_docs/expression_error.mdx +++ b/api_docs/expression_error.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionError title: "expressionError" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionError plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionError'] 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. --- diff --git a/api_docs/expression_gauge.devdocs.json b/api_docs/expression_gauge.devdocs.json index ec2eaf45caf04..23b99f9dfb25b 100644 --- a/api_docs/expression_gauge.devdocs.json +++ b/api_docs/expression_gauge.devdocs.json @@ -613,7 +613,7 @@ "section": "def-common.CustomPaletteState", "text": "CustomPaletteState" }, - "> | undefined; }" + "> | undefined; ariaLabel?: string | undefined; }" ], "path": "src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts", "deprecated": false @@ -908,7 +908,7 @@ "section": "def-common.CustomPaletteState", "text": "CustomPaletteState" }, - "> | undefined; }" + "> | undefined; ariaLabel?: string | undefined; }" ], "path": "src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts", "deprecated": false, diff --git a/api_docs/expression_gauge.mdx b/api_docs/expression_gauge.mdx index 6d95053eab630..6696301e4bc44 100644 --- a/api_docs/expression_gauge.mdx +++ b/api_docs/expression_gauge.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionGauge title: "expressionGauge" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionGauge plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionGauge'] 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. --- diff --git a/api_docs/expression_heatmap.devdocs.json b/api_docs/expression_heatmap.devdocs.json index a3d9863b71625..4a6f0e68fe80d 100644 --- a/api_docs/expression_heatmap.devdocs.json +++ b/api_docs/expression_heatmap.devdocs.json @@ -580,6 +580,19 @@ ], "path": "src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts", "deprecated": false + }, + { + "parentPluginId": "expressionHeatmap", + "id": "def-common.HeatmapArguments.ariaLabel", + "type": "string", + "tags": [], + "label": "ariaLabel", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts", + "deprecated": false } ], "initialIsOpen": false @@ -807,7 +820,7 @@ "section": "def-public.PersistedState", "text": "PersistedState" }, - "; }" + "; interactive: boolean; }" ], "path": "src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts", "deprecated": false, diff --git a/api_docs/expression_heatmap.mdx b/api_docs/expression_heatmap.mdx index 2041aded5816e..fa90a715a7342 100644 --- a/api_docs/expression_heatmap.mdx +++ b/api_docs/expression_heatmap.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionHeatmap title: "expressionHeatmap" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionHeatmap plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionHeatmap'] 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. --- @@ -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 | |-------------------|-----------|------------------------|-----------------| -| 113 | 0 | 109 | 3 | +| 114 | 0 | 110 | 3 | ## Client diff --git a/api_docs/expression_image.mdx b/api_docs/expression_image.mdx index f4203071673b0..d673fc8e08c42 100644 --- a/api_docs/expression_image.mdx +++ b/api_docs/expression_image.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionImage title: "expressionImage" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionImage plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionImage'] 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. --- diff --git a/api_docs/expression_metric.mdx b/api_docs/expression_metric.mdx index e6cf09438fcd4..aef334ac07f78 100644 --- a/api_docs/expression_metric.mdx +++ b/api_docs/expression_metric.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionMetric title: "expressionMetric" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionMetric plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetric'] 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. --- diff --git a/api_docs/expression_metric_vis.devdocs.json b/api_docs/expression_metric_vis.devdocs.json index dfe4f57d00991..5c454d684d08d 100644 --- a/api_docs/expression_metric_vis.devdocs.json +++ b/api_docs/expression_metric_vis.devdocs.json @@ -226,6 +226,19 @@ ], "path": "src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts", "deprecated": false + }, + { + "parentPluginId": "expressionMetricVis", + "id": "def-common.MetricArguments.autoScale", + "type": "CompoundType", + "tags": [], + "label": "autoScale", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts", + "deprecated": false } ], "initialIsOpen": false @@ -411,6 +424,19 @@ ], "path": "src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts", "deprecated": false + }, + { + "parentPluginId": "expressionMetricVis", + "id": "def-common.MetricVisParam.autoScale", + "type": "CompoundType", + "tags": [], + "label": "autoScale", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts", + "deprecated": false } ], "initialIsOpen": false diff --git a/api_docs/expression_metric_vis.mdx b/api_docs/expression_metric_vis.mdx index d84a57d016965..5bee79dab1d4c 100644 --- a/api_docs/expression_metric_vis.mdx +++ b/api_docs/expression_metric_vis.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionMetricVis title: "expressionMetricVis" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionMetricVis plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetricVis'] 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. --- @@ -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 | |-------------------|-----------|------------------------|-----------------| -| 40 | 0 | 40 | 0 | +| 42 | 0 | 42 | 0 | ## Common diff --git a/api_docs/expression_partition_vis.devdocs.json b/api_docs/expression_partition_vis.devdocs.json new file mode 100644 index 0000000000000..2c8995e69703e --- /dev/null +++ b/api_docs/expression_partition_vis.devdocs.json @@ -0,0 +1,1401 @@ +{ + "id": "expressionPartitionVis", + "client": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-public.ExpressionPartitionVisPluginSetup", + "type": "Type", + "tags": [], + "label": "ExpressionPartitionVisPluginSetup", + "description": [], + "signature": [ + "void" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/public/types.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-public.ExpressionPartitionVisPluginStart", + "type": "Type", + "tags": [], + "label": "ExpressionPartitionVisPluginStart", + "description": [], + "signature": [ + "void" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/public/types.ts", + "deprecated": false, + "initialIsOpen": false + } + ], + "objects": [] + }, + "server": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [], + "start": { + "parentPluginId": "expressionPartitionVis", + "id": "def-server.ExpressionPartitionVisPluginStart", + "type": "Type", + "tags": [], + "label": "ExpressionPartitionVisPluginStart", + "description": [], + "signature": [ + "void" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/server/types.ts", + "deprecated": false, + "lifecycle": "start", + "initialIsOpen": true + } + }, + "common": { + "classes": [], + "functions": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.mosaicVisFunction", + "type": "Function", + "tags": [], + "label": "mosaicVisFunction", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.MosaicVisExpressionFunctionDefinition", + "text": "MosaicVisExpressionFunctionDefinition" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.partitionLabelsFunction", + "type": "Function", + "tags": [], + "label": "partitionLabelsFunction", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"partitionLabels\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + " | null, ", + "PartitionLabelsArguments", + ", ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.ExpressionValuePartitionLabels", + "text": "ExpressionValuePartitionLabels" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/partition_labels_function.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.pieVisFunction", + "type": "Function", + "tags": [], + "label": "pieVisFunction", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.PieVisExpressionFunctionDefinition", + "text": "PieVisExpressionFunctionDefinition" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.treemapVisFunction", + "type": "Function", + "tags": [], + "label": "treemapVisFunction", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.TreemapVisExpressionFunctionDefinition", + "text": "TreemapVisExpressionFunctionDefinition" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.waffleVisFunction", + "type": "Function", + "tags": [], + "label": "waffleVisFunction", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.WaffleVisExpressionFunctionDefinition", + "text": "WaffleVisExpressionFunctionDefinition" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + } + ], + "interfaces": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimension", + "type": "Interface", + "tags": [], + "label": "Dimension", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimension.accessor", + "type": "number", + "tags": [], + "label": "accessor", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimension.format", + "type": "Object", + "tags": [], + "label": "format", + "description": [], + "signature": [ + "{ id?: string | undefined; params?: ", + { + "pluginId": "fieldFormats", + "scope": "common", + "docId": "kibFieldFormatsPluginApi", + "section": "def-common.SerializedFieldFormat", + "text": "SerializedFieldFormat" + }, + " | undefined; }" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimensions", + "type": "Interface", + "tags": [], + "label": "Dimensions", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimensions.metric", + "type": "CompoundType", + "tags": [], + "label": "metric", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + " | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimensions.buckets", + "type": "Array", + "tags": [], + "label": "buckets", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + "[] | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimensions.splitRow", + "type": "Array", + "tags": [], + "label": "splitRow", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + "[] | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.Dimensions.splitColumn", + "type": "Array", + "tags": [], + "label": "splitColumn", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + "[] | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams", + "type": "Interface", + "tags": [], + "label": "LabelsParams", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.show", + "type": "boolean", + "tags": [], + "label": "show", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.position", + "type": "Enum", + "tags": [], + "label": "position", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.LabelPositions", + "text": "LabelPositions" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.values", + "type": "boolean", + "tags": [], + "label": "values", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.valuesFormat", + "type": "Enum", + "tags": [], + "label": "valuesFormat", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.ValueFormats", + "text": "ValueFormats" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.percentDecimals", + "type": "number", + "tags": [], + "label": "percentDecimals", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.truncate", + "type": "CompoundType", + "tags": [ + "deprecated" + ], + "label": "truncate", + "description": [], + "signature": [ + "number | null | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": true, + "references": [ + { + "plugin": "visTypePie", + "path": "src/plugins/vis_types/pie/public/to_ast.ts" + }, + { + "plugin": "visTypePie", + "path": "src/plugins/vis_types/pie/public/editor/components/pie.tsx" + } + ] + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelsParams.last_level", + "type": "CompoundType", + "tags": [ + "deprecated" + ], + "label": "last_level", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": true, + "references": [ + { + "plugin": "visTypePie", + "path": "src/plugins/vis_types/pie/public/to_ast.ts" + }, + { + "plugin": "visTypePie", + "path": "src/plugins/vis_types/pie/public/editor/components/pie.tsx" + } + ] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.MosaicVisConfig", + "type": "Interface", + "tags": [], + "label": "MosaicVisConfig", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.MosaicVisConfig", + "text": "MosaicVisConfig" + }, + " extends VisCommonConfig" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.MosaicVisConfig.buckets", + "type": "Array", + "tags": [], + "label": "buckets", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + "[] | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.MosaicVisConfig.nestedLegend", + "type": "boolean", + "tags": [], + "label": "nestedLegend", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams", + "type": "Interface", + "tags": [], + "label": "PartitionVisParams", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.PartitionVisParams", + "text": "PartitionVisParams" + }, + " extends VisCommonParams" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.dimensions", + "type": "Object", + "tags": [], + "label": "dimensions", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.Dimensions", + "text": "Dimensions" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.labels", + "type": "Object", + "tags": [], + "label": "labels", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.LabelsParams", + "text": "LabelsParams" + } + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.palette", + "type": "Object", + "tags": [], + "label": "palette", + "description": [], + "signature": [ + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteOutput", + "text": "PaletteOutput" + }, + "<{ [key: string]: unknown; }>" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.isDonut", + "type": "CompoundType", + "tags": [], + "label": "isDonut", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.showValuesInLegend", + "type": "CompoundType", + "tags": [], + "label": "showValuesInLegend", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.respectSourceOrder", + "type": "CompoundType", + "tags": [], + "label": "respectSourceOrder", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.emptySizeRatio", + "type": "CompoundType", + "tags": [], + "label": "emptySizeRatio", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.EmptySizeRatios", + "text": "EmptySizeRatios" + }, + " | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.startFromSecondLargestSlice", + "type": "CompoundType", + "tags": [], + "label": "startFromSecondLargestSlice", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.distinctColors", + "type": "CompoundType", + "tags": [], + "label": "distinctColors", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PartitionVisParams.nestedLegend", + "type": "CompoundType", + "tags": [], + "label": "nestedLegend", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig", + "type": "Interface", + "tags": [], + "label": "PieVisConfig", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.PieVisConfig", + "text": "PieVisConfig" + }, + " extends VisCommonConfig" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.buckets", + "type": "Array", + "tags": [], + "label": "buckets", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + "[] | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.isDonut", + "type": "boolean", + "tags": [], + "label": "isDonut", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.emptySizeRatio", + "type": "CompoundType", + "tags": [], + "label": "emptySizeRatio", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.EmptySizeRatios", + "text": "EmptySizeRatios" + }, + " | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.respectSourceOrder", + "type": "CompoundType", + "tags": [], + "label": "respectSourceOrder", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.startFromSecondLargestSlice", + "type": "CompoundType", + "tags": [], + "label": "startFromSecondLargestSlice", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.distinctColors", + "type": "CompoundType", + "tags": [], + "label": "distinctColors", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisConfig.nestedLegend", + "type": "boolean", + "tags": [], + "label": "nestedLegend", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.TreemapVisConfig", + "type": "Interface", + "tags": [], + "label": "TreemapVisConfig", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.TreemapVisConfig", + "text": "TreemapVisConfig" + }, + " extends VisCommonConfig" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.TreemapVisConfig.buckets", + "type": "Array", + "tags": [], + "label": "buckets", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + "[] | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.TreemapVisConfig.nestedLegend", + "type": "boolean", + "tags": [], + "label": "nestedLegend", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.WaffleVisConfig", + "type": "Interface", + "tags": [], + "label": "WaffleVisConfig", + "description": [], + "signature": [ + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.WaffleVisConfig", + "text": "WaffleVisConfig" + }, + " extends VisCommonConfig" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.WaffleVisConfig.bucket", + "type": "CompoundType", + "tags": [], + "label": "bucket", + "description": [], + "signature": [ + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.ExpressionValueVisDimension", + "text": "ExpressionValueVisDimension" + }, + " | undefined" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.WaffleVisConfig.showValuesInLegend", + "type": "boolean", + "tags": [], + "label": "showValuesInLegend", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], + "enums": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.EmptySizeRatios", + "type": "Enum", + "tags": [], + "label": "EmptySizeRatios", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LabelPositions", + "type": "Enum", + "tags": [], + "label": "LabelPositions", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.LegendDisplay", + "type": "Enum", + "tags": [], + "label": "LegendDisplay", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.ValueFormats", + "type": "Enum", + "tags": [], + "label": "ValueFormats", + "description": [], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts", + "deprecated": false, + "initialIsOpen": false + } + ], + "misc": [ + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.ExpressionValuePartitionLabels", + "type": "Type", + "tags": [], + "label": "ExpressionValuePartitionLabels", + "description": [], + "signature": [ + "{ type: \"partitionLabelsValue\"; } & { show: boolean; position: ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.LabelPositions", + "text": "LabelPositions" + }, + "; values: boolean; valuesFormat: ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.ValueFormats", + "text": "ValueFormats" + }, + "; percentDecimals: number; truncate?: number | null | undefined; last_level?: boolean | undefined; }" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.MOSAIC_VIS_EXPRESSION_NAME", + "type": "string", + "tags": [], + "label": "MOSAIC_VIS_EXPRESSION_NAME", + "description": [], + "signature": [ + "\"mosaicVis\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.MosaicVisExpressionFunctionDefinition", + "type": "Type", + "tags": [], + "label": "MosaicVisExpressionFunctionDefinition", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"mosaicVis\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.MosaicVisConfig", + "text": "MosaicVisConfig" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueRender", + "text": "ExpressionValueRender" + }, + "<", + "RenderValue", + ">, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PARTITION_LABELS_FUNCTION", + "type": "string", + "tags": [], + "label": "PARTITION_LABELS_FUNCTION", + "description": [], + "signature": [ + "\"partitionLabels\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PARTITION_LABELS_VALUE", + "type": "string", + "tags": [], + "label": "PARTITION_LABELS_VALUE", + "description": [], + "signature": [ + "\"partitionLabelsValue\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PIE_VIS_EXPRESSION_NAME", + "type": "string", + "tags": [], + "label": "PIE_VIS_EXPRESSION_NAME", + "description": [], + "signature": [ + "\"pieVis\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PieVisExpressionFunctionDefinition", + "type": "Type", + "tags": [], + "label": "PieVisExpressionFunctionDefinition", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"pieVis\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.PieVisConfig", + "text": "PieVisConfig" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueRender", + "text": "ExpressionValueRender" + }, + "<", + "RenderValue", + ">, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PLUGIN_ID", + "type": "string", + "tags": [], + "label": "PLUGIN_ID", + "description": [], + "signature": [ + "\"expressionPartitionVis\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.PLUGIN_NAME", + "type": "string", + "tags": [], + "label": "PLUGIN_NAME", + "description": [], + "signature": [ + "\"expressionPartitionVis\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.TREEMAP_VIS_EXPRESSION_NAME", + "type": "string", + "tags": [], + "label": "TREEMAP_VIS_EXPRESSION_NAME", + "description": [], + "signature": [ + "\"treemapVis\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.TreemapVisExpressionFunctionDefinition", + "type": "Type", + "tags": [], + "label": "TreemapVisExpressionFunctionDefinition", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"treemapVis\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.TreemapVisConfig", + "text": "TreemapVisConfig" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueRender", + "text": "ExpressionValueRender" + }, + "<", + "RenderValue", + ">, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.WAFFLE_VIS_EXPRESSION_NAME", + "type": "string", + "tags": [], + "label": "WAFFLE_VIS_EXPRESSION_NAME", + "description": [], + "signature": [ + "\"waffleVis\"" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "expressionPartitionVis", + "id": "def-common.WaffleVisExpressionFunctionDefinition", + "type": "Type", + "tags": [], + "label": "WaffleVisExpressionFunctionDefinition", + "description": [], + "signature": [ + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionFunctionDefinition", + "text": "ExpressionFunctionDefinition" + }, + "<\"waffleVis\", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.Datatable", + "text": "Datatable" + }, + ", ", + { + "pluginId": "expressionPartitionVis", + "scope": "common", + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.WaffleVisConfig", + "text": "WaffleVisConfig" + }, + ", ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionValueRender", + "text": "ExpressionValueRender" + }, + "<", + "RenderValue", + ">, ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExecutionContext", + "text": "ExecutionContext" + }, + "<", + { + "pluginId": "inspector", + "scope": "common", + "docId": "kibInspectorPluginApi", + "section": "def-common.Adapters", + "text": "Adapters" + }, + ", ", + "SerializableRecord", + ">>" + ], + "path": "src/plugins/chart_expressions/expression_partition_vis/common/types/expression_functions.ts", + "deprecated": false, + "initialIsOpen": false + } + ], + "objects": [] + } +} \ No newline at end of file diff --git a/api_docs/expression_partition_vis.mdx b/api_docs/expression_partition_vis.mdx new file mode 100644 index 0000000000000..c3dde75d963c9 --- /dev/null +++ b/api_docs/expression_partition_vis.mdx @@ -0,0 +1,46 @@ +--- +id: kibExpressionPartitionVisPluginApi +slug: /kibana-dev-docs/api/expressionPartitionVis +title: "expressionPartitionVis" +image: https://source.unsplash.com/400x175/?github +summary: API docs for the expressionPartitionVis plugin +date: 2022-02-11 +tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionPartitionVis'] +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. +--- +import expressionPartitionVisObj from './expression_partition_vis.devdocs.json'; + +Expression Partition Visualization plugin adds a `partitionVis` renderer and `pieVis`, `mosaicVis`, `treemapVis`, `waffleVis` functions to the expression plugin. The renderer will display the `pie`, `waffle`, `treemap` and `mosaic` charts. + +Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) for questions regarding this plugin. + +**Code health stats** + +| Public API count | Any count | Items lacking comments | Missing exports | +|-------------------|-----------|------------------------|-----------------| +| 70 | 0 | 70 | 2 | + +## Client + +### Consts, variables and types + + +## Server + +### Start + + +## Common + +### Functions + + +### Interfaces + + +### Enums + + +### Consts, variables and types + + diff --git a/api_docs/expression_pie.devdocs.json b/api_docs/expression_pie.devdocs.json deleted file mode 100644 index ed92b5443b771..0000000000000 --- a/api_docs/expression_pie.devdocs.json +++ /dev/null @@ -1,832 +0,0 @@ -{ - "id": "expressionPie", - "client": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], - "misc": [ - { - "parentPluginId": "expressionPie", - "id": "def-public.ExpressionPiePluginSetup", - "type": "Type", - "tags": [], - "label": "ExpressionPiePluginSetup", - "description": [], - "signature": [ - "void" - ], - "path": "src/plugins/chart_expressions/expression_pie/public/types.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-public.ExpressionPiePluginStart", - "type": "Type", - "tags": [], - "label": "ExpressionPiePluginStart", - "description": [], - "signature": [ - "void" - ], - "path": "src/plugins/chart_expressions/expression_pie/public/types.ts", - "deprecated": false, - "initialIsOpen": false - } - ], - "objects": [] - }, - "server": { - "classes": [], - "functions": [], - "interfaces": [], - "enums": [], - "misc": [], - "objects": [], - "start": { - "parentPluginId": "expressionPie", - "id": "def-server.ExpressionPiePluginStart", - "type": "Type", - "tags": [], - "label": "ExpressionPiePluginStart", - "description": [], - "signature": [ - "void" - ], - "path": "src/plugins/chart_expressions/expression_pie/server/types.ts", - "deprecated": false, - "lifecycle": "start", - "initialIsOpen": true - } - }, - "common": { - "classes": [], - "functions": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.pieLabelsFunction", - "type": "Function", - "tags": [], - "label": "pieLabelsFunction", - "description": [], - "signature": [ - "() => ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionFunctionDefinition", - "text": "ExpressionFunctionDefinition" - }, - "<\"pie_labels\", ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.Datatable", - "text": "Datatable" - }, - " | null, ", - "PieLabelsArguments", - ", ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.ExpressionValuePieLabels", - "text": "ExpressionValuePieLabels" - }, - ", ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExecutionContext", - "text": "ExecutionContext" - }, - "<", - { - "pluginId": "inspector", - "scope": "common", - "docId": "kibInspectorPluginApi", - "section": "def-common.Adapters", - "text": "Adapters" - }, - ", ", - "SerializableRecord", - ">>" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/expression_functions/pie_labels_function.ts", - "deprecated": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.pieVisFunction", - "type": "Function", - "tags": [], - "label": "pieVisFunction", - "description": [], - "signature": [ - "() => ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.PieVisExpressionFunctionDefinition", - "text": "PieVisExpressionFunctionDefinition" - } - ], - "path": "src/plugins/chart_expressions/expression_pie/common/expression_functions/pie_vis_function.ts", - "deprecated": false, - "children": [], - "returnComment": [], - "initialIsOpen": false - } - ], - "interfaces": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimension", - "type": "Interface", - "tags": [], - "label": "Dimension", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimension.accessor", - "type": "number", - "tags": [], - "label": "accessor", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimension.format", - "type": "Object", - "tags": [], - "label": "format", - "description": [], - "signature": [ - "{ id?: string | undefined; params?: ", - { - "pluginId": "fieldFormats", - "scope": "common", - "docId": "kibFieldFormatsPluginApi", - "section": "def-common.SerializedFieldFormat", - "text": "SerializedFieldFormat" - }, - " | undefined; }" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimensions", - "type": "Interface", - "tags": [], - "label": "Dimensions", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimensions.metric", - "type": "CompoundType", - "tags": [], - "label": "metric", - "description": [], - "signature": [ - "{ type: \"vis_dimension\"; } & { accessor: number | ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.DatatableColumn", - "text": "DatatableColumn" - }, - "; format: { id?: string | undefined; params: Record; }; }" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimensions.buckets", - "type": "Array", - "tags": [], - "label": "buckets", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.ExpressionValueVisDimension", - "text": "ExpressionValueVisDimension" - }, - "[] | undefined" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimensions.splitRow", - "type": "Array", - "tags": [], - "label": "splitRow", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.ExpressionValueVisDimension", - "text": "ExpressionValueVisDimension" - }, - "[] | undefined" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.Dimensions.splitColumn", - "type": "Array", - "tags": [], - "label": "splitColumn", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.ExpressionValueVisDimension", - "text": "ExpressionValueVisDimension" - }, - "[] | undefined" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams", - "type": "Interface", - "tags": [], - "label": "LabelsParams", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.show", - "type": "boolean", - "tags": [], - "label": "show", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.last_level", - "type": "boolean", - "tags": [], - "label": "last_level", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.position", - "type": "Enum", - "tags": [], - "label": "position", - "description": [], - "signature": [ - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.LabelPositions", - "text": "LabelPositions" - } - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.values", - "type": "boolean", - "tags": [], - "label": "values", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.truncate", - "type": "CompoundType", - "tags": [], - "label": "truncate", - "description": [], - "signature": [ - "number | null" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.valuesFormat", - "type": "Enum", - "tags": [], - "label": "valuesFormat", - "description": [], - "signature": [ - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.ValueFormats", - "text": "ValueFormats" - } - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelsParams.percentDecimals", - "type": "number", - "tags": [], - "label": "percentDecimals", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig", - "type": "Interface", - "tags": [], - "label": "PieVisConfig", - "description": [], - "signature": [ - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.PieVisConfig", - "text": "PieVisConfig" - }, - " extends PieCommonParams" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig.buckets", - "type": "Array", - "tags": [], - "label": "buckets", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.ExpressionValueVisDimension", - "text": "ExpressionValueVisDimension" - }, - "[] | undefined" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig.metric", - "type": "CompoundType", - "tags": [], - "label": "metric", - "description": [], - "signature": [ - "{ type: \"vis_dimension\"; } & { accessor: number | ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.DatatableColumn", - "text": "DatatableColumn" - }, - "; format: { id?: string | undefined; params: Record; }; }" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig.splitColumn", - "type": "Array", - "tags": [], - "label": "splitColumn", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.ExpressionValueVisDimension", - "text": "ExpressionValueVisDimension" - }, - "[] | undefined" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig.splitRow", - "type": "Array", - "tags": [], - "label": "splitRow", - "description": [], - "signature": [ - { - "pluginId": "visualizations", - "scope": "common", - "docId": "kibVisualizationsPluginApi", - "section": "def-common.ExpressionValueVisDimension", - "text": "ExpressionValueVisDimension" - }, - "[] | undefined" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig.labels", - "type": "CompoundType", - "tags": [], - "label": "labels", - "description": [], - "signature": [ - "{ type: \"pie_labels_value\"; } & { show: boolean; position: ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.LabelPositions", - "text": "LabelPositions" - }, - "; values: boolean; truncate: number | null; valuesFormat: ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.ValueFormats", - "text": "ValueFormats" - }, - "; last_level: boolean; percentDecimals: number; }" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisConfig.palette", - "type": "Object", - "tags": [], - "label": "palette", - "description": [], - "signature": [ - { - "pluginId": "charts", - "scope": "common", - "docId": "kibChartsPluginApi", - "section": "def-common.PaletteOutput", - "text": "PaletteOutput" - }, - "<{ [key: string]: unknown; }>" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisParams", - "type": "Interface", - "tags": [], - "label": "PieVisParams", - "description": [], - "signature": [ - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.PieVisParams", - "text": "PieVisParams" - }, - " extends PieCommonParams" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisParams.dimensions", - "type": "Object", - "tags": [], - "label": "dimensions", - "description": [], - "signature": [ - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.Dimensions", - "text": "Dimensions" - } - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisParams.labels", - "type": "Object", - "tags": [], - "label": "labels", - "description": [], - "signature": [ - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.LabelsParams", - "text": "LabelsParams" - } - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisParams.palette", - "type": "Object", - "tags": [], - "label": "palette", - "description": [], - "signature": [ - { - "pluginId": "charts", - "scope": "common", - "docId": "kibChartsPluginApi", - "section": "def-common.PaletteOutput", - "text": "PaletteOutput" - }, - "<{ [key: string]: unknown; }>" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "enums": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.EmptySizeRatios", - "type": "Enum", - "tags": [], - "label": "EmptySizeRatios", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.LabelPositions", - "type": "Enum", - "tags": [], - "label": "LabelPositions", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.ValueFormats", - "type": "Enum", - "tags": [], - "label": "ValueFormats", - "description": [], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_renderers.ts", - "deprecated": false, - "initialIsOpen": false - } - ], - "misc": [ - { - "parentPluginId": "expressionPie", - "id": "def-common.ExpressionValuePieLabels", - "type": "Type", - "tags": [], - "label": "ExpressionValuePieLabels", - "description": [], - "signature": [ - "{ type: \"pie_labels_value\"; } & { show: boolean; position: ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.LabelPositions", - "text": "LabelPositions" - }, - "; values: boolean; truncate: number | null; valuesFormat: ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.ValueFormats", - "text": "ValueFormats" - }, - "; last_level: boolean; percentDecimals: number; }" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_functions.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PIE_LABELS_FUNCTION", - "type": "string", - "tags": [], - "label": "PIE_LABELS_FUNCTION", - "description": [], - "signature": [ - "\"pie_labels\"" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PIE_LABELS_VALUE", - "type": "string", - "tags": [], - "label": "PIE_LABELS_VALUE", - "description": [], - "signature": [ - "\"pie_labels_value\"" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PIE_VIS_EXPRESSION_NAME", - "type": "string", - "tags": [], - "label": "PIE_VIS_EXPRESSION_NAME", - "description": [], - "signature": [ - "\"pie_vis\"" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PieVisExpressionFunctionDefinition", - "type": "Type", - "tags": [], - "label": "PieVisExpressionFunctionDefinition", - "description": [], - "signature": [ - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionFunctionDefinition", - "text": "ExpressionFunctionDefinition" - }, - "<\"pie_vis\", ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.Datatable", - "text": "Datatable" - }, - ", ", - { - "pluginId": "expressionPie", - "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.PieVisConfig", - "text": "PieVisConfig" - }, - ", ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionValueRender", - "text": "ExpressionValueRender" - }, - "<", - "RenderValue", - ">, ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExecutionContext", - "text": "ExecutionContext" - }, - "<", - { - "pluginId": "inspector", - "scope": "common", - "docId": "kibInspectorPluginApi", - "section": "def-common.Adapters", - "text": "Adapters" - }, - ", ", - "SerializableRecord", - ">>" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/types/expression_functions.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PLUGIN_ID", - "type": "string", - "tags": [], - "label": "PLUGIN_ID", - "description": [], - "signature": [ - "\"expressionPie\"" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - }, - { - "parentPluginId": "expressionPie", - "id": "def-common.PLUGIN_NAME", - "type": "string", - "tags": [], - "label": "PLUGIN_NAME", - "description": [], - "signature": [ - "\"expressionPie\"" - ], - "path": "src/plugins/chart_expressions/expression_pie/common/constants.ts", - "deprecated": false, - "initialIsOpen": false - } - ], - "objects": [] - } -} \ No newline at end of file diff --git a/api_docs/expression_pie.mdx b/api_docs/expression_pie.mdx deleted file mode 100644 index 1803ce47b7cc4..0000000000000 --- a/api_docs/expression_pie.mdx +++ /dev/null @@ -1,46 +0,0 @@ ---- -id: kibExpressionPiePluginApi -slug: /kibana-dev-docs/api/expressionPie -title: "expressionPie" -image: https://source.unsplash.com/400x175/?github -summary: API docs for the expressionPie plugin -date: 2022-02-01 -tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionPie'] -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. ---- -import expressionPieObj from './expression_pie.devdocs.json'; - -Expression Pie plugin adds a `pie` renderer and function to the expression plugin. The renderer will display the `pie` chart. - -Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) for questions regarding this plugin. - -**Code health stats** - -| Public API count | Any count | Items lacking comments | Missing exports | -|-------------------|-----------|------------------------|-----------------| -| 43 | 0 | 43 | 2 | - -## Client - -### Consts, variables and types - - -## Server - -### Start - - -## Common - -### Functions - - -### Interfaces - - -### Enums - - -### Consts, variables and types - - diff --git a/api_docs/expression_repeat_image.mdx b/api_docs/expression_repeat_image.mdx index 906f0a5daf172..4a60852a160e4 100644 --- a/api_docs/expression_repeat_image.mdx +++ b/api_docs/expression_repeat_image.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionRepeatImage title: "expressionRepeatImage" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionRepeatImage plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRepeatImage'] 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. --- diff --git a/api_docs/expression_reveal_image.mdx b/api_docs/expression_reveal_image.mdx index 8cce3a6e9e03c..23a1e311b2c80 100644 --- a/api_docs/expression_reveal_image.mdx +++ b/api_docs/expression_reveal_image.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionRevealImage title: "expressionRevealImage" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionRevealImage plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRevealImage'] 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. --- diff --git a/api_docs/expression_shape.mdx b/api_docs/expression_shape.mdx index ff2a0aff79837..169c7141854e7 100644 --- a/api_docs/expression_shape.mdx +++ b/api_docs/expression_shape.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionShape title: "expressionShape" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionShape plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionShape'] 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. --- diff --git a/api_docs/expression_tagcloud.mdx b/api_docs/expression_tagcloud.mdx index dca54b2e22864..35cc2b1b3a219 100644 --- a/api_docs/expression_tagcloud.mdx +++ b/api_docs/expression_tagcloud.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressionTagcloud title: "expressionTagcloud" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressionTagcloud plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionTagcloud'] 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. --- diff --git a/api_docs/expressions.devdocs.json b/api_docs/expressions.devdocs.json index 453e06676238a..56dd6b4120ea6 100644 --- a/api_docs/expressions.devdocs.json +++ b/api_docs/expressions.devdocs.json @@ -6372,6 +6372,53 @@ ], "returnComment": [], "initialIsOpen": false + }, + { + "parentPluginId": "expressions", + "id": "def-public.useExpressionRenderer", + "type": "Function", + "tags": [], + "label": "useExpressionRenderer", + "description": [], + "signature": [ + "(nodeRef: React.RefObject, {\n debounce,\n expression,\n hasCustomErrorRenderer,\n onData$,\n onEvent,\n onRender$,\n reload$,\n ...loaderParams\n }: ", + "ExpressionRendererParams", + ") => ExpressionRendererState" + ], + "path": "src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "expressions", + "id": "def-public.useExpressionRenderer.$1", + "type": "Object", + "tags": [], + "label": "nodeRef", + "description": [], + "signature": [ + "React.RefObject" + ], + "path": "src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "expressions", + "id": "def-public.useExpressionRenderer.$2", + "type": "Object", + "tags": [], + "label": "{\n debounce,\n expression,\n hasCustomErrorRenderer,\n onData$,\n onEvent,\n onRender$,\n reload$,\n ...loaderParams\n }", + "description": [], + "signature": [ + "ExpressionRendererParams" + ], + "path": "src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false } ], "interfaces": [ @@ -10055,16 +10102,11 @@ "section": "def-public.ReactExpressionRendererProps", "text": "ReactExpressionRendererProps" }, - " extends ", - { - "pluginId": "expressions", - "scope": "public", - "docId": "kibExpressionsPluginApi", - "section": "def-public.IExpressionLoaderParams", - "text": "IExpressionLoaderParams" - } + " extends Omit<", + "ExpressionRendererParams", + ", \"hasCustomErrorRenderer\">" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false, "children": [ { @@ -10077,7 +10119,7 @@ "signature": [ "string | undefined" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false }, { @@ -10090,27 +10132,7 @@ "signature": [ "string[] | undefined" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.expression", - "type": "CompoundType", - "tags": [], - "label": "expression", - "description": [], - "signature": [ - "string | ", - { - "pluginId": "expressions", - "scope": "common", - "docId": "kibExpressionsPluginApi", - "section": "def-common.ExpressionAstExpression", - "text": "ExpressionAstExpression" - } - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false }, { @@ -10131,7 +10153,7 @@ }, " | null | undefined) => React.ReactElement> | React.ReactElement>[]) | undefined" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false, "children": [ { @@ -10144,7 +10166,7 @@ "signature": [ "string | null | undefined" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false, "isRequired": false }, @@ -10165,7 +10187,7 @@ }, " | null | undefined" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false, "isRequired": false } @@ -10182,168 +10204,7 @@ "signature": [ "\"m\" | \"s\" | \"l\" | \"xs\" | \"xl\" | undefined" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onEvent", - "type": "Function", - "tags": [], - "label": "onEvent", - "description": [], - "signature": [ - "((event: ", - { - "pluginId": "expressions", - "scope": "public", - "docId": "kibExpressionsPluginApi", - "section": "def-public.ExpressionRendererEvent", - "text": "ExpressionRendererEvent" - }, - ") => void) | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onEvent.$1", - "type": "Object", - "tags": [], - "label": "event", - "description": [], - "signature": [ - { - "pluginId": "expressions", - "scope": "public", - "docId": "kibExpressionsPluginApi", - "section": "def-public.ExpressionRendererEvent", - "text": "ExpressionRendererEvent" - } - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onData$", - "type": "Function", - "tags": [], - "label": "onData$", - "description": [], - "signature": [ - "((data: TData, adapters?: TInspectorAdapters | undefined, partial?: boolean | undefined) => void) | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onData$.$1", - "type": "Uncategorized", - "tags": [], - "label": "data", - "description": [], - "signature": [ - "TData" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onData$.$2", - "type": "Uncategorized", - "tags": [], - "label": "adapters", - "description": [], - "signature": [ - "TInspectorAdapters | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "isRequired": false - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onData$.$3", - "type": "CompoundType", - "tags": [], - "label": "partial", - "description": [], - "signature": [ - "boolean | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.reload$", - "type": "Object", - "tags": [], - "label": "reload$", - "description": [ - "\nAn observable which can be used to re-run the expression without destroying the component" - ], - "signature": [ - "Observable", - " | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onRender$", - "type": "Function", - "tags": [], - "label": "onRender$", - "description": [], - "signature": [ - "((item: number) => void) | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "children": [ - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.onRender$.$1", - "type": "number", - "tags": [], - "label": "item", - "description": [], - "signature": [ - "number" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "expressions", - "id": "def-public.ReactExpressionRendererProps.debounce", - "type": "number", - "tags": [], - "label": "debounce", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false } ], @@ -10776,7 +10637,7 @@ }, ">" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false, "returnComment": [], "children": [ @@ -11220,7 +11081,7 @@ }, ">" ], - "path": "src/plugins/expressions/public/react_expression_renderer.tsx", + "path": "src/plugins/expressions/public/react_expression_renderer/react_expression_renderer.tsx", "deprecated": false, "initialIsOpen": false }, diff --git a/api_docs/expressions.mdx b/api_docs/expressions.mdx index 3ff820838cd2c..b82d123b6e7c0 100644 --- a/api_docs/expressions.mdx +++ b/api_docs/expressions.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/expressions title: "expressions" image: https://source.unsplash.com/400x175/?github summary: API docs for the expressions plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressions'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 2093 | 26 | 1645 | 3 | +| 2085 | 26 | 1638 | 4 | ## Client diff --git a/api_docs/features.mdx b/api_docs/features.mdx index 1e41e5e34bf13..51d7619c38d44 100644 --- a/api_docs/features.mdx +++ b/api_docs/features.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/features title: "features" image: https://source.unsplash.com/400x175/?github summary: API docs for the features plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'features'] 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. --- diff --git a/api_docs/field_formats.mdx b/api_docs/field_formats.mdx index 7b36799d37e81..a3c9f8b458d77 100644 --- a/api_docs/field_formats.mdx +++ b/api_docs/field_formats.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/fieldFormats title: "fieldFormats" image: https://source.unsplash.com/400x175/?github summary: API docs for the fieldFormats plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldFormats'] 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. --- diff --git a/api_docs/file_upload.devdocs.json b/api_docs/file_upload.devdocs.json index 864ac45ccd775..dc50d1a88183a 100644 --- a/api_docs/file_upload.devdocs.json +++ b/api_docs/file_upload.devdocs.json @@ -255,7 +255,7 @@ "tags": [], "label": "Props", "description": [], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false, "children": [ { @@ -265,7 +265,7 @@ "tags": [], "label": "indexName", "description": [], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false }, { @@ -278,7 +278,7 @@ "signature": [ "string | undefined" ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false }, { @@ -291,7 +291,7 @@ "signature": [ "(name: string, error?: string | undefined) => void" ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false, "children": [ { @@ -304,7 +304,7 @@ "signature": [ "string" ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false, "isRequired": true }, @@ -318,7 +318,7 @@ "signature": [ "string | undefined" ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false, "isRequired": false } @@ -335,7 +335,7 @@ "signature": [ "() => void" ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false, "children": [], "returnComment": [] @@ -350,7 +350,7 @@ "signature": [ "() => void" ], - "path": "x-pack/plugins/file_upload/public/components/geojson_upload_form/index_name_form.tsx", + "path": "x-pack/plugins/file_upload/public/components/geo_upload_form/index_name_form.tsx", "deprecated": false, "children": [], "returnComment": [] diff --git a/api_docs/file_upload.mdx b/api_docs/file_upload.mdx index dad7f02535ea9..d0162f67adf48 100644 --- a/api_docs/file_upload.mdx +++ b/api_docs/file_upload.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/fileUpload title: "fileUpload" image: https://source.unsplash.com/400x175/?github summary: API docs for the fileUpload plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fileUpload'] 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. --- diff --git a/api_docs/fleet.devdocs.json b/api_docs/fleet.devdocs.json index 85bbf0741f5d0..42124757b9882 100644 --- a/api_docs/fleet.devdocs.json +++ b/api_docs/fleet.devdocs.json @@ -6552,6 +6552,51 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "fleet", + "id": "def-common.getMaxPackageName", + "type": "Function", + "tags": [], + "label": "getMaxPackageName", + "description": [], + "signature": [ + "(packageName: string, packagePolicies: { name: string; }[] | undefined) => string" + ], + "path": "x-pack/plugins/fleet/common/services/max_package_name.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "fleet", + "id": "def-common.getMaxPackageName.$1", + "type": "string", + "tags": [], + "label": "packageName", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/fleet/common/services/max_package_name.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "fleet", + "id": "def-common.getMaxPackageName.$2", + "type": "Array", + "tags": [], + "label": "packagePolicies", + "description": [], + "signature": [ + "{ name: string; }[] | undefined" + ], + "path": "x-pack/plugins/fleet/common/services/max_package_name.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "fleet", "id": "def-common.getStreamsForInputType", @@ -7645,14 +7690,15 @@ "section": "def-common.AgentPolicy", "text": "AgentPolicy" }, - " extends ", + " extends Omit<", { "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", "section": "def-common.NewAgentPolicy", "text": "NewAgentPolicy" - } + }, + ", \"id\">" ], "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", "deprecated": false, @@ -11939,7 +11985,7 @@ "label": "install_status", "description": [], "signature": [ - "\"installed\" | \"installing\" | \"install_failed\"" + "\"installed\" | \"installing\" | \"install_failed\" | \"installed_bundled\"" ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", "deprecated": false @@ -12541,6 +12587,19 @@ "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", "deprecated": false, "children": [ + { + "parentPluginId": "fleet", + "id": "def-common.NewAgentPolicy.id", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", + "deprecated": false + }, { "parentPluginId": "fleet", "id": "def-common.NewAgentPolicy.name", @@ -14404,7 +14463,7 @@ "section": "def-common.NewAgentPolicy", "text": "NewAgentPolicy" }, - ", \"namespace\">" + ", \"id\" | \"namespace\">" ], "path": "x-pack/plugins/fleet/common/types/models/preconfiguration.ts", "deprecated": false, @@ -16414,7 +16473,7 @@ "section": "def-common.ValueOf", "text": "ValueOf" }, - "<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>; description?: string | undefined; name: string; updated_at: string; updated_by: string; namespace: string; package_policies: string[] | ", + "<{ readonly Active: \"active\"; readonly Inactive: \"inactive\"; }>; description?: string | undefined; name: string; updated_at: string; updated_by: string; namespace: string; is_default?: boolean | undefined; is_default_fleet_server?: boolean | undefined; has_fleet_server?: boolean | undefined; is_managed: boolean; monitoring_enabled?: (\"metrics\" | \"logs\")[] | undefined; unenroll_timeout?: number | undefined; is_preconfigured?: boolean | undefined; data_output_id?: string | undefined; monitoring_output_id?: string | undefined; package_policies: string[] | ", { "pluginId": "fleet", "scope": "common", @@ -16422,7 +16481,7 @@ "section": "def-common.PackagePolicy", "text": "PackagePolicy" }, - "[]; is_managed: boolean; revision: number; is_default?: boolean | undefined; is_default_fleet_server?: boolean | undefined; has_fleet_server?: boolean | undefined; monitoring_enabled?: (\"metrics\" | \"logs\")[] | undefined; unenroll_timeout?: number | undefined; is_preconfigured?: boolean | undefined; data_output_id?: string | undefined; monitoring_output_id?: string | undefined; }" + "[]; revision: number; }" ], "path": "x-pack/plugins/fleet/common/types/models/agent_policy.ts", "deprecated": false, @@ -17053,7 +17112,7 @@ "label": "EpmPackageInstallStatus", "description": [], "signature": [ - "\"installed\" | \"installing\" | \"install_failed\"" + "\"installed\" | \"installing\" | \"install_failed\" | \"installed_bundled\"" ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", "deprecated": false, @@ -17485,8 +17544,8 @@ "pluginId": "fleet", "scope": "common", "docId": "kibFleetPluginApi", - "section": "def-common.Installed", - "text": "Installed" + "section": "def-common.InstalledRegistry", + "text": "InstalledRegistry" }, " | ", { @@ -17512,6 +17571,14 @@ "section": "def-common.InstallFailed", "text": "InstallFailed" }, + " | ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.InstalledBundled", + "text": "InstalledBundled" + }, "" ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", @@ -17554,7 +17621,7 @@ "label": "InstallationStatus", "description": [], "signature": [ - "{ readonly Installed: \"installed\"; readonly Installing: \"installing\"; readonly InstallFailed: \"install_failed\"; readonly NotInstalled: \"not_installed\"; }" + "{ readonly Installed: \"installed\"; readonly Installing: \"installing\"; readonly InstallFailed: \"install_failed\"; readonly NotInstalled: \"not_installed\"; readonly InstalledBundled: \"installed_bundled\"; }" ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", "deprecated": false, @@ -17562,10 +17629,24 @@ }, { "parentPluginId": "fleet", - "id": "def-common.Installed", + "id": "def-common.InstalledBundled", "type": "Type", "tags": [], - "label": "Installed", + "label": "InstalledBundled", + "description": [], + "signature": [ + "T & { status: \"installed_bundled\"; }" + ], + "path": "x-pack/plugins/fleet/common/types/models/epm.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "fleet", + "id": "def-common.InstalledRegistry", + "type": "Type", + "tags": [], + "label": "InstalledRegistry", "description": [], "signature": [ "T & { status: \"installed\"; savedObject: ", @@ -18323,6 +18404,14 @@ "section": "def-common.PackageList", "text": "PackageList" }, + "; installed_bundled: ", + { + "pluginId": "fleet", + "scope": "common", + "docId": "kibFleetPluginApi", + "section": "def-common.PackageList", + "text": "PackageList" + }, "; }" ], "path": "x-pack/plugins/fleet/common/types/models/epm.ts", @@ -20642,7 +20731,7 @@ "label": "installationStatuses", "description": [], "signature": [ - "{ readonly Installed: \"installed\"; readonly Installing: \"installing\"; readonly InstallFailed: \"install_failed\"; readonly NotInstalled: \"not_installed\"; }" + "{ readonly Installed: \"installed\"; readonly Installing: \"installing\"; readonly InstallFailed: \"install_failed\"; readonly NotInstalled: \"not_installed\"; readonly InstalledBundled: \"installed_bundled\"; }" ], "path": "x-pack/plugins/fleet/common/constants/epm.ts", "deprecated": false, diff --git a/api_docs/fleet.mdx b/api_docs/fleet.mdx index 9e2872fa5684a..32601da708967 100644 --- a/api_docs/fleet.mdx +++ b/api_docs/fleet.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/fleet title: "fleet" image: https://source.unsplash.com/400x175/?github summary: API docs for the fleet plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fleet'] 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. --- @@ -18,7 +18,7 @@ Contact [Fleet](https://github.com/orgs/elastic/teams/fleet) for questions regar | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 1258 | 8 | 1142 | 10 | +| 1263 | 8 | 1147 | 10 | ## Client diff --git a/api_docs/global_search.mdx b/api_docs/global_search.mdx index 48586c3a2d29f..700f34f5be2b3 100644 --- a/api_docs/global_search.mdx +++ b/api_docs/global_search.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/globalSearch title: "globalSearch" image: https://source.unsplash.com/400x175/?github summary: API docs for the globalSearch plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'globalSearch'] 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. --- diff --git a/api_docs/home.mdx b/api_docs/home.mdx index de975f527f39a..bbe95667a2714 100644 --- a/api_docs/home.mdx +++ b/api_docs/home.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/home title: "home" image: https://source.unsplash.com/400x175/?github summary: API docs for the home plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'home'] 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. --- diff --git a/api_docs/index_lifecycle_management.mdx b/api_docs/index_lifecycle_management.mdx index 9cd98ff2df434..b74d8f2b4628d 100644 --- a/api_docs/index_lifecycle_management.mdx +++ b/api_docs/index_lifecycle_management.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/indexLifecycleManagement title: "indexLifecycleManagement" image: https://source.unsplash.com/400x175/?github summary: API docs for the indexLifecycleManagement plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexLifecycleManagement'] 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. --- diff --git a/api_docs/index_management.devdocs.json b/api_docs/index_management.devdocs.json index ab724a4b13239..72a707f85e60e 100644 --- a/api_docs/index_management.devdocs.json +++ b/api_docs/index_management.devdocs.json @@ -190,6 +190,16 @@ "path": "x-pack/plugins/index_management/common/types/indices.ts", "deprecated": false }, + { + "parentPluginId": "indexManagement", + "id": "def-public.Index.documents_deleted", + "type": "number", + "tags": [], + "label": "documents_deleted", + "description": [], + "path": "x-pack/plugins/index_management/common/types/indices.ts", + "deprecated": false + }, { "parentPluginId": "indexManagement", "id": "def-public.Index.size", @@ -200,6 +210,16 @@ "path": "x-pack/plugins/index_management/common/types/indices.ts", "deprecated": false }, + { + "parentPluginId": "indexManagement", + "id": "def-public.Index.primary_size", + "type": "string", + "tags": [], + "label": "primary_size", + "description": [], + "path": "x-pack/plugins/index_management/common/types/indices.ts", + "deprecated": false + }, { "parentPluginId": "indexManagement", "id": "def-public.Index.isFrozen", @@ -462,6 +482,16 @@ "path": "x-pack/plugins/index_management/common/types/indices.ts", "deprecated": false }, + { + "parentPluginId": "indexManagement", + "id": "def-server.Index.documents_deleted", + "type": "number", + "tags": [], + "label": "documents_deleted", + "description": [], + "path": "x-pack/plugins/index_management/common/types/indices.ts", + "deprecated": false + }, { "parentPluginId": "indexManagement", "id": "def-server.Index.size", @@ -472,6 +502,16 @@ "path": "x-pack/plugins/index_management/common/types/indices.ts", "deprecated": false }, + { + "parentPluginId": "indexManagement", + "id": "def-server.Index.primary_size", + "type": "string", + "tags": [], + "label": "primary_size", + "description": [], + "path": "x-pack/plugins/index_management/common/types/indices.ts", + "deprecated": false + }, { "parentPluginId": "indexManagement", "id": "def-server.Index.isFrozen", @@ -1534,6 +1574,16 @@ "path": "x-pack/plugins/index_management/common/types/indices.ts", "deprecated": false }, + { + "parentPluginId": "indexManagement", + "id": "def-common.Index.documents_deleted", + "type": "number", + "tags": [], + "label": "documents_deleted", + "description": [], + "path": "x-pack/plugins/index_management/common/types/indices.ts", + "deprecated": false + }, { "parentPluginId": "indexManagement", "id": "def-common.Index.size", @@ -1544,6 +1594,16 @@ "path": "x-pack/plugins/index_management/common/types/indices.ts", "deprecated": false }, + { + "parentPluginId": "indexManagement", + "id": "def-common.Index.primary_size", + "type": "string", + "tags": [], + "label": "primary_size", + "description": [], + "path": "x-pack/plugins/index_management/common/types/indices.ts", + "deprecated": false + }, { "parentPluginId": "indexManagement", "id": "def-common.Index.isFrozen", @@ -2351,7 +2411,7 @@ "label": "MAJOR_VERSION", "description": [], "signature": [ - "\"8.1.0\"" + "\"8.2.0\"" ], "path": "x-pack/plugins/index_management/common/constants/plugin.ts", "deprecated": false, diff --git a/api_docs/index_management.mdx b/api_docs/index_management.mdx index e5ecaf70e199a..d7d0a6728fdda 100644 --- a/api_docs/index_management.mdx +++ b/api_docs/index_management.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/indexManagement title: "indexManagement" image: https://source.unsplash.com/400x175/?github summary: API docs for the indexManagement plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexManagement'] 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. --- @@ -18,7 +18,7 @@ Contact [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-ma | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 169 | 0 | 164 | 3 | +| 175 | 0 | 170 | 3 | ## Client diff --git a/api_docs/infra.mdx b/api_docs/infra.mdx index 461678e3160ce..05fbc69fac209 100644 --- a/api_docs/infra.mdx +++ b/api_docs/infra.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/infra title: "infra" image: https://source.unsplash.com/400x175/?github summary: API docs for the infra plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'infra'] 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. --- diff --git a/api_docs/inspector.mdx b/api_docs/inspector.mdx index 55ef57d0263fe..2d6a65b046718 100644 --- a/api_docs/inspector.mdx +++ b/api_docs/inspector.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/inspector title: "inspector" image: https://source.unsplash.com/400x175/?github summary: API docs for the inspector plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inspector'] 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. --- diff --git a/api_docs/interactive_setup.mdx b/api_docs/interactive_setup.mdx index 8fe462adf725f..88b0781bebd99 100644 --- a/api_docs/interactive_setup.mdx +++ b/api_docs/interactive_setup.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/interactiveSetup title: "interactiveSetup" image: https://source.unsplash.com/400x175/?github summary: API docs for the interactiveSetup plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'interactiveSetup'] 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. --- diff --git a/api_docs/kbn_ace.mdx b/api_docs/kbn_ace.mdx index d9302e7a991c5..214442ee13ad9 100644 --- a/api_docs/kbn_ace.mdx +++ b/api_docs/kbn_ace.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-ace title: "@kbn/ace" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/ace plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ace'] 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. --- diff --git a/api_docs/kbn_alerts.mdx b/api_docs/kbn_alerts.mdx index 0765da54c9272..bfcf60c676903 100644 --- a/api_docs/kbn_alerts.mdx +++ b/api_docs/kbn_alerts.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-alerts title: "@kbn/alerts" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/alerts plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts'] 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. --- diff --git a/api_docs/kbn_analytics.mdx b/api_docs/kbn_analytics.mdx index d142dc0e1cff0..334415086381e 100644 --- a/api_docs/kbn_analytics.mdx +++ b/api_docs/kbn_analytics.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-analytics title: "@kbn/analytics" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/analytics plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics'] 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. --- diff --git a/api_docs/kbn_apm_config_loader.mdx b/api_docs/kbn_apm_config_loader.mdx index f7d164288eb36..3c5e4f4a334b4 100644 --- a/api_docs/kbn_apm_config_loader.mdx +++ b/api_docs/kbn_apm_config_loader.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-apm-config-loader title: "@kbn/apm-config-loader" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/apm-config-loader plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-config-loader'] 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. --- diff --git a/api_docs/kbn_apm_utils.mdx b/api_docs/kbn_apm_utils.mdx index 5130f133bc9c6..18b0e128d481d 100644 --- a/api_docs/kbn_apm_utils.mdx +++ b/api_docs/kbn_apm_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-apm-utils title: "@kbn/apm-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/apm-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-utils'] 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. --- diff --git a/api_docs/kbn_cli_dev_mode.mdx b/api_docs/kbn_cli_dev_mode.mdx index fde5d66e03e55..4311c83b2ef29 100644 --- a/api_docs/kbn_cli_dev_mode.mdx +++ b/api_docs/kbn_cli_dev_mode.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-cli-dev-mode title: "@kbn/cli-dev-mode" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/cli-dev-mode plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cli-dev-mode'] 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. --- diff --git a/api_docs/kbn_config.mdx b/api_docs/kbn_config.mdx index ae7e2cb5acc0a..8ac635c043f99 100644 --- a/api_docs/kbn_config.mdx +++ b/api_docs/kbn_config.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-config title: "@kbn/config" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/config plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config'] 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. --- diff --git a/api_docs/kbn_config_schema.mdx b/api_docs/kbn_config_schema.mdx index 4ac8c2b27ee26..41a38da07a6ae 100644 --- a/api_docs/kbn_config_schema.mdx +++ b/api_docs/kbn_config_schema.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-config-schema title: "@kbn/config-schema" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/config-schema plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-schema'] 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. --- diff --git a/api_docs/kbn_crypto.mdx b/api_docs/kbn_crypto.mdx index 6e43df93e3d6f..d5605911d5337 100644 --- a/api_docs/kbn_crypto.mdx +++ b/api_docs/kbn_crypto.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-crypto title: "@kbn/crypto" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/crypto plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto'] 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. --- diff --git a/api_docs/kbn_dev_utils.devdocs.json b/api_docs/kbn_dev_utils.devdocs.json index 7f31eaecf1852..b83698e7ad147 100644 --- a/api_docs/kbn_dev_utils.devdocs.json +++ b/api_docs/kbn_dev_utils.devdocs.json @@ -16,7 +16,9 @@ "type": "Class", "tags": [], "label": "CiStatsReporter", - "description": [], + "description": [ + "Object that helps report data to the ci-stats service" + ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, "children": [ @@ -182,7 +184,7 @@ "section": "def-server.TimingsOptions", "text": "TimingsOptions" }, - ") => Promise" + ") => Promise" ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, @@ -236,7 +238,7 @@ "section": "def-server.MetricsOptions", "text": "MetricsOptions" }, - " | undefined) => Promise" + " | undefined) => Promise" ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, @@ -285,6 +287,52 @@ } ], "returnComment": [] + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsReporter.reportTests", + "type": "Function", + "tags": [], + "label": "reportTests", + "description": [ + "\nSend test reports to ci-stats" + ], + "signature": [ + "({ group, testRuns }: ", + { + "pluginId": "@kbn/dev-utils", + "scope": "server", + "docId": "kibKbnDevUtilsPluginApi", + "section": "def-server.CiStatsReportTestsOptions", + "text": "CiStatsReportTestsOptions" + }, + ") => Promise" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsReporter.reportTests.$1", + "type": "Object", + "tags": [], + "label": "{ group, testRuns }", + "description": [], + "signature": [ + { + "pluginId": "@kbn/dev-utils", + "scope": "server", + "docId": "kibKbnDevUtilsPluginApi", + "section": "def-server.CiStatsReportTestsOptions", + "text": "CiStatsReportTestsOptions" + } + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] } ], "initialIsOpen": false @@ -2735,7 +2783,9 @@ "type": "Interface", "tags": [], "label": "CiStatsMetadata", - "description": [], + "description": [ + "Container for metadata that can be attached to different ci-stats objects" + ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, "children": [ @@ -2763,7 +2813,9 @@ "type": "Interface", "tags": [], "label": "CiStatsMetric", - "description": [], + "description": [ + "A ci-stats metric record" + ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, "children": [ @@ -2858,13 +2910,318 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsReportTestsOptions", + "type": "Interface", + "tags": [], + "label": "CiStatsReportTestsOptions", + "description": [ + "Options for reporting tests to ci-stats" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsReportTestsOptions.group", + "type": "Object", + "tags": [], + "label": "group", + "description": [ + "\nInformation about the group of tests that were run" + ], + "signature": [ + { + "pluginId": "@kbn/dev-utils", + "scope": "server", + "docId": "kibKbnDevUtilsPluginApi", + "section": "def-server.CiStatsTestGroupInfo", + "text": "CiStatsTestGroupInfo" + } + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsReportTestsOptions.testRuns", + "type": "Array", + "tags": [], + "label": "testRuns", + "description": [ + "\nInformation about each test that ran, including failure information" + ], + "signature": [ + { + "pluginId": "@kbn/dev-utils", + "scope": "server", + "docId": "kibKbnDevUtilsPluginApi", + "section": "def-server.CiStatsTestRun", + "text": "CiStatsTestRun" + }, + "[]" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestGroupInfo", + "type": "Interface", + "tags": [], + "label": "CiStatsTestGroupInfo", + "description": [], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestGroupInfo.startTime", + "type": "string", + "tags": [], + "label": "startTime", + "description": [ + "\nISO-8601 formatted datetime representing when the group of tests started running" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestGroupInfo.durationMs", + "type": "number", + "tags": [], + "label": "durationMs", + "description": [ + "\nThe number of miliseconds that the tests ran for" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestGroupInfo.type", + "type": "string", + "tags": [], + "label": "type", + "description": [ + "\nThe type of tests run in this group, any value is valid but test groups are groupped by type in the UI so use something consistent" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestGroupInfo.name", + "type": "string", + "tags": [], + "label": "name", + "description": [ + "\nThe name of this specific group (within the \"type\")" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestGroupInfo.meta", + "type": "Object", + "tags": [], + "label": "meta", + "description": [ + "\nArbitrary metadata associated with this group. We currently look for a ciGroup metadata property for highlighting that when appropriate" + ], + "signature": [ + { + "pluginId": "@kbn/dev-utils", + "scope": "server", + "docId": "kibKbnDevUtilsPluginApi", + "section": "def-server.CiStatsMetadata", + "text": "CiStatsMetadata" + } + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun", + "type": "Interface", + "tags": [], + "label": "CiStatsTestRun", + "description": [], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.startTime", + "type": "string", + "tags": [], + "label": "startTime", + "description": [ + "\nISO-8601 formatted datetime representing when the tests started running" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.durationMs", + "type": "number", + "tags": [], + "label": "durationMs", + "description": [ + "\nDuration of the tests in milliseconds" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.seq", + "type": "number", + "tags": [], + "label": "seq", + "description": [ + "\nA sequence number, this is used to order the tests in a specific test run" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.type", + "type": "CompoundType", + "tags": [], + "label": "type", + "description": [ + "\nThe type of this \"test run\", usually this is just \"test\" but when reporting issues in hooks it can be set to the type of hook" + ], + "signature": [ + "\"after all hook\" | \"after each hook\" | \"before all hook\" | \"before each hook\" | \"test\"" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.result", + "type": "CompoundType", + "tags": [], + "label": "result", + "description": [ + "\n\"fail\", \"pass\" or \"skip\", the result of the tests" + ], + "signature": [ + "\"fail\" | \"pass\" | \"skip\"" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.suites", + "type": "Array", + "tags": [], + "label": "suites", + "description": [ + "\nThe list of suite names containing this test, the first being the outermost suite" + ], + "signature": [ + "string[]" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.name", + "type": "string", + "tags": [], + "label": "name", + "description": [ + "\nThe name of this specific test run" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.file", + "type": "string", + "tags": [], + "label": "file", + "description": [ + "\nRelative path from the root of the repo contianing this test" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.error", + "type": "string", + "tags": [], + "label": "error", + "description": [ + "\nError message if the test failed" + ], + "signature": [ + "string | undefined" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.stdout", + "type": "string", + "tags": [], + "label": "stdout", + "description": [ + "\nDebug output/stdout produced by the test" + ], + "signature": [ + "string | undefined" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestRun.screenshots", + "type": "Array", + "tags": [], + "label": "screenshots", + "description": [ + "\nScreenshots captured during the test run" + ], + "signature": [ + "{ name: string; base64Png: string; }[] | undefined" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/dev-utils", "id": "def-server.CiStatsTiming", "type": "Interface", "tags": [], "label": "CiStatsTiming", - "description": [], + "description": [ + "A ci-stats timing event" + ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, "children": [ @@ -3421,7 +3778,9 @@ "type": "Interface", "tags": [], "label": "MetricsOptions", - "description": [], + "description": [ + "Options for reporting metrics to ci-stats" + ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, "children": [ @@ -3781,7 +4140,9 @@ "type": "Interface", "tags": [], "label": "TimingsOptions", - "description": [], + "description": [ + "Options for reporting timings to ci-stats" + ], "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_reporter.ts", "deprecated": false, "children": [ @@ -4025,6 +4386,34 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestResult", + "type": "Type", + "tags": [], + "label": "CiStatsTestResult", + "description": [], + "signature": [ + "\"fail\" | \"pass\" | \"skip\"" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/dev-utils", + "id": "def-server.CiStatsTestType", + "type": "Type", + "tags": [], + "label": "CiStatsTestType", + "description": [], + "signature": [ + "\"after all hook\" | \"after each hook\" | \"before all hook\" | \"before each hook\" | \"test\"" + ], + "path": "packages/kbn-dev-utils/src/ci_stats_reporter/ci_stats_test_group_types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "@kbn/dev-utils", "id": "def-server.CleanupTask", diff --git a/api_docs/kbn_dev_utils.mdx b/api_docs/kbn_dev_utils.mdx index 183e1e01e943a..0e6e20f0cdb3a 100644 --- a/api_docs/kbn_dev_utils.mdx +++ b/api_docs/kbn_dev_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-dev-utils title: "@kbn/dev-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/dev-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-utils'] 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. --- @@ -18,7 +18,7 @@ Contact [Owner missing] for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 250 | 3 | 194 | 0 | +| 275 | 3 | 193 | 0 | ## Server diff --git a/api_docs/kbn_doc_links.mdx b/api_docs/kbn_doc_links.mdx index 1a0ebc39e7653..0c87e23c1e49b 100644 --- a/api_docs/kbn_doc_links.mdx +++ b/api_docs/kbn_doc_links.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-doc-links title: "@kbn/doc-links" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/doc-links plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/doc-links'] 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. --- diff --git a/api_docs/kbn_docs_utils.mdx b/api_docs/kbn_docs_utils.mdx index 9d57db61fa889..5202bb66e17d5 100644 --- a/api_docs/kbn_docs_utils.mdx +++ b/api_docs/kbn_docs_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-docs-utils title: "@kbn/docs-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/docs-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/docs-utils'] 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. --- diff --git a/api_docs/kbn_es_archiver.mdx b/api_docs/kbn_es_archiver.mdx index d5b1a1e02f53a..adc62206d6682 100644 --- a/api_docs/kbn_es_archiver.mdx +++ b/api_docs/kbn_es_archiver.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-es-archiver title: "@kbn/es-archiver" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/es-archiver plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-archiver'] 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. --- diff --git a/api_docs/kbn_es_query.mdx b/api_docs/kbn_es_query.mdx index 7bc4fd3a286e1..19d6ff0d82c5b 100644 --- a/api_docs/kbn_es_query.mdx +++ b/api_docs/kbn_es_query.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-es-query title: "@kbn/es-query" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/es-query plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-query'] 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. --- diff --git a/api_docs/kbn_field_types.mdx b/api_docs/kbn_field_types.mdx index 5fc26e0379a1f..b6bd61aa31dde 100644 --- a/api_docs/kbn_field_types.mdx +++ b/api_docs/kbn_field_types.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-field-types title: "@kbn/field-types" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/field-types plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-types'] 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. --- diff --git a/api_docs/kbn_i18n.mdx b/api_docs/kbn_i18n.mdx index 08663725b695a..871d8e319dcc0 100644 --- a/api_docs/kbn_i18n.mdx +++ b/api_docs/kbn_i18n.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-i18n title: "@kbn/i18n" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/i18n plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n'] 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. --- diff --git a/api_docs/kbn_interpreter.mdx b/api_docs/kbn_interpreter.mdx index 90bcfe24bcb94..6cd7ec34b7f4c 100644 --- a/api_docs/kbn_interpreter.mdx +++ b/api_docs/kbn_interpreter.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-interpreter title: "@kbn/interpreter" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/interpreter plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/interpreter'] 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. --- diff --git a/api_docs/kbn_io_ts_utils.mdx b/api_docs/kbn_io_ts_utils.mdx index 3f26f95e53180..d0a2008e5aaa2 100644 --- a/api_docs/kbn_io_ts_utils.mdx +++ b/api_docs/kbn_io_ts_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-io-ts-utils title: "@kbn/io-ts-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/io-ts-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/io-ts-utils'] 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. --- diff --git a/api_docs/kbn_logging.mdx b/api_docs/kbn_logging.mdx index 7018e5aef3af9..24aba4cd08494 100644 --- a/api_docs/kbn_logging.mdx +++ b/api_docs/kbn_logging.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-logging title: "@kbn/logging" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/logging plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging'] 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. --- diff --git a/api_docs/kbn_logging_mocks.devdocs.json b/api_docs/kbn_logging_mocks.devdocs.json new file mode 100644 index 0000000000000..410bd83befdb6 --- /dev/null +++ b/api_docs/kbn_logging_mocks.devdocs.json @@ -0,0 +1,234 @@ +{ + "id": "@kbn/logging-mocks", + "client": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "server": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [ + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.MockedLogger", + "type": "Type", + "tags": [], + "label": "MockedLogger", + "description": [], + "signature": [ + "{ trace: jest.MockInstance; debug: jest.MockInstance; info: jest.MockInstance; warn: jest.MockInstance; error: jest.MockInstance; fatal: jest.MockInstance; log: jest.MockInstance; get: jest.MockInstance<", + "Logger", + ", string[]>; } & ", + "Logger", + " & { context: string[]; }" + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false, + "initialIsOpen": false + } + ], + "objects": [ + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock", + "type": "Object", + "tags": [], + "label": "loggerMock", + "description": [], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock.create", + "type": "Function", + "tags": [], + "label": "create", + "description": [], + "signature": [ + "(context?: string[]) => ", + { + "pluginId": "@kbn/logging-mocks", + "scope": "server", + "docId": "kibKbnLoggingMocksPluginApi", + "section": "def-server.MockedLogger", + "text": "MockedLogger" + } + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock.create.$1", + "type": "Array", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "string[]" + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false + } + ] + }, + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock.clear", + "type": "Function", + "tags": [], + "label": "clear", + "description": [], + "signature": [ + "(logger: ", + { + "pluginId": "@kbn/logging-mocks", + "scope": "server", + "docId": "kibKbnLoggingMocksPluginApi", + "section": "def-server.MockedLogger", + "text": "MockedLogger" + }, + ") => void" + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock.clear.$1", + "type": "CompoundType", + "tags": [], + "label": "logger", + "description": [], + "signature": [ + "{ trace: jest.MockInstance; debug: jest.MockInstance; info: jest.MockInstance; warn: jest.MockInstance; error: jest.MockInstance; fatal: jest.MockInstance; log: jest.MockInstance; get: jest.MockInstance<", + "Logger", + ", string[]>; } & ", + "Logger", + " & { context: string[]; }" + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false + } + ] + }, + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock.collect", + "type": "Function", + "tags": [], + "label": "collect", + "description": [], + "signature": [ + "(logger: ", + { + "pluginId": "@kbn/logging-mocks", + "scope": "server", + "docId": "kibKbnLoggingMocksPluginApi", + "section": "def-server.MockedLogger", + "text": "MockedLogger" + }, + ") => { debug: [message: string, meta?: ", + "LogMeta", + " | undefined][]; error: [errorOrMessage: string | Error, meta?: ", + "LogMeta", + " | undefined][]; fatal: [errorOrMessage: string | Error, meta?: ", + "LogMeta", + " | undefined][]; info: [message: string, meta?: ", + "LogMeta", + " | undefined][]; log: [record: ", + "LogRecord", + "][]; trace: [message: string, meta?: ", + "LogMeta", + " | undefined][]; warn: [errorOrMessage: string | Error, meta?: ", + "LogMeta", + " | undefined][]; }" + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "@kbn/logging-mocks", + "id": "def-server.loggerMock.collect.$1", + "type": "CompoundType", + "tags": [], + "label": "logger", + "description": [], + "signature": [ + "{ trace: jest.MockInstance; debug: jest.MockInstance; info: jest.MockInstance; warn: jest.MockInstance; error: jest.MockInstance; fatal: jest.MockInstance; log: jest.MockInstance; get: jest.MockInstance<", + "Logger", + ", string[]>; } & ", + "Logger", + " & { context: string[]; }" + ], + "path": "packages/kbn-logging-mocks/src/logger.mock.ts", + "deprecated": false + } + ] + } + ], + "initialIsOpen": false + } + ] + }, + "common": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + } +} \ No newline at end of file diff --git a/api_docs/kbn_logging_mocks.mdx b/api_docs/kbn_logging_mocks.mdx new file mode 100644 index 0000000000000..edc05dc05891c --- /dev/null +++ b/api_docs/kbn_logging_mocks.mdx @@ -0,0 +1,30 @@ +--- +id: kibKbnLoggingMocksPluginApi +slug: /kibana-dev-docs/api/kbn-logging-mocks +title: "@kbn/logging-mocks" +image: https://source.unsplash.com/400x175/?github +summary: API docs for the @kbn/logging-mocks plugin +date: 2022-02-11 +tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging-mocks'] +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. +--- +import kbnLoggingMocksObj from './kbn_logging_mocks.devdocs.json'; + + + +Contact [Owner missing] for questions regarding this plugin. + +**Code health stats** + +| Public API count | Any count | Items lacking comments | Missing exports | +|-------------------|-----------|------------------------|-----------------| +| 8 | 0 | 8 | 0 | + +## Server + +### Objects + + +### Consts, variables and types + + diff --git a/api_docs/kbn_mapbox_gl.mdx b/api_docs/kbn_mapbox_gl.mdx index a8caa692d2668..b05b0b386d08a 100644 --- a/api_docs/kbn_mapbox_gl.mdx +++ b/api_docs/kbn_mapbox_gl.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-mapbox-gl title: "@kbn/mapbox-gl" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/mapbox-gl plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mapbox-gl'] 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. --- diff --git a/api_docs/kbn_monaco.mdx b/api_docs/kbn_monaco.mdx index e466599201586..47d516c8740eb 100644 --- a/api_docs/kbn_monaco.mdx +++ b/api_docs/kbn_monaco.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-monaco title: "@kbn/monaco" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/monaco plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/monaco'] 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. --- diff --git a/api_docs/kbn_optimizer.mdx b/api_docs/kbn_optimizer.mdx index 1befd4710060d..72185ab05f010 100644 --- a/api_docs/kbn_optimizer.mdx +++ b/api_docs/kbn_optimizer.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer title: "@kbn/optimizer" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/optimizer plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer'] 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. --- diff --git a/api_docs/kbn_plugin_generator.mdx b/api_docs/kbn_plugin_generator.mdx index 714a8515228cd..6bf6431ac8edc 100644 --- a/api_docs/kbn_plugin_generator.mdx +++ b/api_docs/kbn_plugin_generator.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-generator title: "@kbn/plugin-generator" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/plugin-generator plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-generator'] 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. --- diff --git a/api_docs/kbn_plugin_helpers.mdx b/api_docs/kbn_plugin_helpers.mdx index ca854cec7e4f0..ed37bf1b924c0 100644 --- a/api_docs/kbn_plugin_helpers.mdx +++ b/api_docs/kbn_plugin_helpers.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-helpers title: "@kbn/plugin-helpers" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/plugin-helpers plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-helpers'] 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. --- diff --git a/api_docs/kbn_pm.mdx b/api_docs/kbn_pm.mdx index 38ec7b1c21d3a..5b8f5c91a1d95 100644 --- a/api_docs/kbn_pm.mdx +++ b/api_docs/kbn_pm.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-pm title: "@kbn/pm" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/pm plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/pm'] 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. --- diff --git a/api_docs/kbn_react_field.mdx b/api_docs/kbn_react_field.mdx index 629e14c0cb73e..b2ecbc9ab2ff0 100644 --- a/api_docs/kbn_react_field.mdx +++ b/api_docs/kbn_react_field.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-react-field title: "@kbn/react-field" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/react-field plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-field'] 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. --- diff --git a/api_docs/kbn_rule_data_utils.mdx b/api_docs/kbn_rule_data_utils.mdx index 8894f1a39e344..250c80df3d9e5 100644 --- a/api_docs/kbn_rule_data_utils.mdx +++ b/api_docs/kbn_rule_data_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-rule-data-utils title: "@kbn/rule-data-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/rule-data-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rule-data-utils'] 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. --- diff --git a/api_docs/kbn_securitysolution_autocomplete.mdx b/api_docs/kbn_securitysolution_autocomplete.mdx index a53bba94ba4c6..d80a51415eae1 100644 --- a/api_docs/kbn_securitysolution_autocomplete.mdx +++ b/api_docs/kbn_securitysolution_autocomplete.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-autocomplete title: "@kbn/securitysolution-autocomplete" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-autocomplete plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-autocomplete'] 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. --- diff --git a/api_docs/kbn_securitysolution_es_utils.mdx b/api_docs/kbn_securitysolution_es_utils.mdx index 3346108da8d44..9c1d6f347ed78 100644 --- a/api_docs/kbn_securitysolution_es_utils.mdx +++ b/api_docs/kbn_securitysolution_es_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-es-utils title: "@kbn/securitysolution-es-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-es-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-es-utils'] 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. --- diff --git a/api_docs/kbn_securitysolution_hook_utils.mdx b/api_docs/kbn_securitysolution_hook_utils.mdx index cfd08b58b6b54..e6386cd95314f 100644 --- a/api_docs/kbn_securitysolution_hook_utils.mdx +++ b/api_docs/kbn_securitysolution_hook_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-hook-utils title: "@kbn/securitysolution-hook-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-hook-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-hook-utils'] 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. --- diff --git a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx index bfb1c7b3f377d..b6b8cb1d3b43e 100644 --- a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-alerting-types title: "@kbn/securitysolution-io-ts-alerting-types" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-io-ts-alerting-types plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-alerting-types'] 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. --- diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.mdx b/api_docs/kbn_securitysolution_io_ts_list_types.mdx index a5925d02df5a8..2282d741d999e 100644 --- a/api_docs/kbn_securitysolution_io_ts_list_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_list_types.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-list-types title: "@kbn/securitysolution-io-ts-list-types" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-io-ts-list-types plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-list-types'] 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. --- diff --git a/api_docs/kbn_securitysolution_io_ts_types.mdx b/api_docs/kbn_securitysolution_io_ts_types.mdx index 81c62be66db66..494c3b0bf5669 100644 --- a/api_docs/kbn_securitysolution_io_ts_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_types.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-types title: "@kbn/securitysolution-io-ts-types" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-io-ts-types plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-types'] 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. --- diff --git a/api_docs/kbn_securitysolution_io_ts_utils.mdx b/api_docs/kbn_securitysolution_io_ts_utils.mdx index 7ede1e2abfb1a..c29e8441e9ee2 100644 --- a/api_docs/kbn_securitysolution_io_ts_utils.mdx +++ b/api_docs/kbn_securitysolution_io_ts_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-utils title: "@kbn/securitysolution-io-ts-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-io-ts-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-utils'] 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. --- diff --git a/api_docs/kbn_securitysolution_list_api.mdx b/api_docs/kbn_securitysolution_list_api.mdx index a74572deb0c89..575b8941de370 100644 --- a/api_docs/kbn_securitysolution_list_api.mdx +++ b/api_docs/kbn_securitysolution_list_api.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-api title: "@kbn/securitysolution-list-api" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-list-api plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-api'] 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. --- diff --git a/api_docs/kbn_securitysolution_list_constants.mdx b/api_docs/kbn_securitysolution_list_constants.mdx index a28efeed8ccc3..5c3aed816d7ab 100644 --- a/api_docs/kbn_securitysolution_list_constants.mdx +++ b/api_docs/kbn_securitysolution_list_constants.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-constants title: "@kbn/securitysolution-list-constants" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-list-constants plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-constants'] 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. --- diff --git a/api_docs/kbn_securitysolution_list_hooks.mdx b/api_docs/kbn_securitysolution_list_hooks.mdx index 1b726db091d08..6ccd70fd06ddf 100644 --- a/api_docs/kbn_securitysolution_list_hooks.mdx +++ b/api_docs/kbn_securitysolution_list_hooks.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-hooks title: "@kbn/securitysolution-list-hooks" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-list-hooks plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-hooks'] 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. --- diff --git a/api_docs/kbn_securitysolution_list_utils.mdx b/api_docs/kbn_securitysolution_list_utils.mdx index c21c85bc63f1d..cb856bd39b1f2 100644 --- a/api_docs/kbn_securitysolution_list_utils.mdx +++ b/api_docs/kbn_securitysolution_list_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-utils title: "@kbn/securitysolution-list-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-list-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-utils'] 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. --- diff --git a/api_docs/kbn_securitysolution_rules.mdx b/api_docs/kbn_securitysolution_rules.mdx index 802ce03a5944b..df9006730e5e9 100644 --- a/api_docs/kbn_securitysolution_rules.mdx +++ b/api_docs/kbn_securitysolution_rules.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-rules title: "@kbn/securitysolution-rules" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-rules plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-rules'] 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. --- diff --git a/api_docs/kbn_securitysolution_t_grid.mdx b/api_docs/kbn_securitysolution_t_grid.mdx index c5a51fae41880..d7194de125dc6 100644 --- a/api_docs/kbn_securitysolution_t_grid.mdx +++ b/api_docs/kbn_securitysolution_t_grid.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-t-grid title: "@kbn/securitysolution-t-grid" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-t-grid plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-t-grid'] 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. --- diff --git a/api_docs/kbn_securitysolution_utils.mdx b/api_docs/kbn_securitysolution_utils.mdx index a6c98e86b3f23..abf0e1b40b03e 100644 --- a/api_docs/kbn_securitysolution_utils.mdx +++ b/api_docs/kbn_securitysolution_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-utils title: "@kbn/securitysolution-utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/securitysolution-utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-utils'] 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. --- diff --git a/api_docs/kbn_server_http_tools.mdx b/api_docs/kbn_server_http_tools.mdx index 4e2cc1dd0123c..5bba1c3605331 100644 --- a/api_docs/kbn_server_http_tools.mdx +++ b/api_docs/kbn_server_http_tools.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-server-http-tools title: "@kbn/server-http-tools" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/server-http-tools plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-http-tools'] 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. --- diff --git a/api_docs/kbn_server_route_repository.mdx b/api_docs/kbn_server_route_repository.mdx index 69955fdb03f23..bcee696d4d2d0 100644 --- a/api_docs/kbn_server_route_repository.mdx +++ b/api_docs/kbn_server_route_repository.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository title: "@kbn/server-route-repository" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/server-route-repository plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository'] 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. --- diff --git a/api_docs/kbn_std.mdx b/api_docs/kbn_std.mdx index a8e93ef998218..35b4f33aaf0cb 100644 --- a/api_docs/kbn_std.mdx +++ b/api_docs/kbn_std.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-std title: "@kbn/std" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/std plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/std'] 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. --- diff --git a/api_docs/kbn_storybook.mdx b/api_docs/kbn_storybook.mdx index c3e85d4a033cd..1a613590c4320 100644 --- a/api_docs/kbn_storybook.mdx +++ b/api_docs/kbn_storybook.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-storybook title: "@kbn/storybook" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/storybook plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/storybook'] 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. --- diff --git a/api_docs/kbn_telemetry_tools.mdx b/api_docs/kbn_telemetry_tools.mdx index 03af47f987ed2..3c5db96b7fed1 100644 --- a/api_docs/kbn_telemetry_tools.mdx +++ b/api_docs/kbn_telemetry_tools.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-telemetry-tools title: "@kbn/telemetry-tools" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/telemetry-tools plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/telemetry-tools'] 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. --- diff --git a/api_docs/kbn_test.devdocs.json b/api_docs/kbn_test.devdocs.json index d534e0b3a71c7..d00b1b11254a3 100644 --- a/api_docs/kbn_test.devdocs.json +++ b/api_docs/kbn_test.devdocs.json @@ -20,6 +20,16 @@ "path": "packages/kbn-test/src/functional_test_runner/lib/config/config.ts", "deprecated": false, "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.Config.path", + "type": "string", + "tags": [], + "label": "path", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/config/config.ts", + "deprecated": false + }, { "parentPluginId": "@kbn/test", "id": "def-server.Config.Unnamed", @@ -496,193 +506,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata", - "type": "Class", - "tags": [], - "label": "FailureMetadata", - "description": [], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.Unnamed", - "type": "Function", - "tags": [], - "label": "Constructor", - "description": [], - "signature": [ - "any" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.Unnamed.$1", - "type": "Object", - "tags": [], - "label": "lifecycle", - "description": [], - "signature": [ - { - "pluginId": "@kbn/test", - "scope": "server", - "docId": "kibKbnTestPluginApi", - "section": "def-server.Lifecycle", - "text": "Lifecycle" - } - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.add", - "type": "Function", - "tags": [], - "label": "add", - "description": [], - "signature": [ - "(metadata: Metadata | ((current: Metadata) => Metadata)) => void" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.add.$1", - "type": "CompoundType", - "tags": [], - "label": "metadata", - "description": [], - "signature": [ - "Metadata | ((current: Metadata) => Metadata)" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.addMessages", - "type": "Function", - "tags": [], - "label": "addMessages", - "description": [], - "signature": [ - "(messages: string[]) => void" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.addMessages.$1", - "type": "Array", - "tags": [], - "label": "messages", - "description": [], - "signature": [ - "string[]" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.addScreenshot", - "type": "Function", - "tags": [], - "label": "addScreenshot", - "description": [], - "signature": [ - "(name: string, repoPath: string) => { name: string; url: string; } | undefined" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.addScreenshot.$1", - "type": "string", - "tags": [], - "label": "name", - "description": [ - "Name to label the URL with" - ], - "signature": [ - "string" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.addScreenshot.$2", - "type": "string", - "tags": [], - "label": "repoPath", - "description": [ - "absolute path, within the repo, that will be uploaded" - ], - "signature": [ - "string" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.get", - "type": "Function", - "tags": [], - "label": "get", - "description": [], - "signature": [ - "(runnable: any) => Metadata | undefined" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "@kbn/test", - "id": "def-server.FailureMetadata.get.$1", - "type": "Any", - "tags": [], - "label": "runnable", - "description": [], - "signature": [ - "any" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/failure_metadata.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - } - ], - "initialIsOpen": false - }, { "parentPluginId": "@kbn/test", "id": "def-server.FunctionalTestRunner", @@ -714,18 +537,18 @@ }, { "parentPluginId": "@kbn/test", - "id": "def-server.FunctionalTestRunner.failureMetadata", + "id": "def-server.FunctionalTestRunner.testMetadata", "type": "Object", "tags": [], - "label": "failureMetadata", + "label": "testMetadata", "description": [], "signature": [ { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" } ], "path": "packages/kbn-test/src/functional_test_runner/functional_test_runner.ts", @@ -1182,9 +1005,17 @@ "type": "Object", "tags": [], "label": "beforeTests", - "description": [], + "description": [ + "lifecycle phase that will run handlers once before tests execute" + ], "signature": [ - "LifecyclePhase", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, "<[", { "pluginId": "@kbn/test", @@ -1204,9 +1035,17 @@ "type": "Object", "tags": [], "label": "beforeEachRunnable", - "description": [], + "description": [ + "lifecycle phase that runs handlers before each runnable (test and hooks)" + ], "signature": [ - "LifecyclePhase", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, "<[", { "pluginId": "@kbn/test", @@ -1226,9 +1065,77 @@ "type": "Object", "tags": [], "label": "beforeTestSuite", - "description": [], + "description": [ + "lifecycle phase that runs handlers before each suite" + ], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, + "<[", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Suite", + "text": "Suite" + }, + "]>" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.Lifecycle.beforeEachTest", + "type": "Object", + "tags": [], + "label": "beforeEachTest", + "description": [ + "lifecycle phase that runs handlers before each test" + ], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, + "<[", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Test", + "text": "Test" + }, + "]>" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.Lifecycle.afterTestSuite", + "type": "Object", + "tags": [], + "label": "afterTestSuite", + "description": [ + "lifecycle phase that runs handlers after each suite" + ], "signature": [ - "LifecyclePhase", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, "<[", { "pluginId": "@kbn/test", @@ -1239,143 +1146,570 @@ }, "]>" ], - "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", - "deprecated": false + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.Lifecycle.testFailure", + "type": "Object", + "tags": [], + "label": "testFailure", + "description": [ + "lifecycle phase that runs handlers after a test fails" + ], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, + "<[Error, ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Test", + "text": "Test" + }, + "]>" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.Lifecycle.testHookFailure", + "type": "Object", + "tags": [], + "label": "testHookFailure", + "description": [ + "lifecycle phase that runs handlers after a hook fails" + ], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, + "<[Error, ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Test", + "text": "Test" + }, + "]>" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.Lifecycle.cleanup", + "type": "Object", + "tags": [], + "label": "cleanup", + "description": [ + "lifecycle phase that runs handlers at the very end of execution" + ], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, + "<[]>" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase", + "type": "Class", + "tags": [], + "label": "LifecyclePhase", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.LifecyclePhase", + "text": "LifecyclePhase" + }, + "" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.triggered", + "type": "boolean", + "tags": [], + "label": "triggered", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.before$", + "type": "Object", + "tags": [], + "label": "before$", + "description": [], + "signature": [ + "Observable", + "" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.after$", + "type": "Object", + "tags": [], + "label": "after$", + "description": [], + "signature": [ + "Observable", + "" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.Unnamed", + "type": "Function", + "tags": [], + "label": "Constructor", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.Unnamed.$1", + "type": "Object", + "tags": [], + "label": "options", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.Unnamed.$1.singular", + "type": "CompoundType", + "tags": [], + "label": "singular", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false + } + ] + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.add", + "type": "Function", + "tags": [], + "label": "add", + "description": [], + "signature": [ + "(fn: (...args: Args) => void | Promise) => void" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.add.$1", + "type": "Function", + "tags": [], + "label": "fn", + "description": [], + "signature": [ + "(...args: Args) => void | Promise" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.addSub", + "type": "Function", + "tags": [], + "label": "addSub", + "description": [], + "signature": [ + "(sub: ", + "Subscription", + ") => void" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.addSub.$1", + "type": "Object", + "tags": [], + "label": "sub", + "description": [], + "signature": [ + "Subscription" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.trigger", + "type": "Function", + "tags": [], + "label": "trigger", + "description": [], + "signature": [ + "(...args: Args) => Promise" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.LifecyclePhase.trigger.$1", + "type": "Uncategorized", + "tags": [], + "label": "args", + "description": [], + "signature": [ + "Args" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle_phase.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.TestMetadata", + "type": "Class", + "tags": [], + "label": "TestMetadata", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.TestMetadata.Unnamed", + "type": "Function", + "tags": [], + "label": "Constructor", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.TestMetadata.Unnamed.$1", + "type": "Object", + "tags": [], + "label": "lifecycle", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Lifecycle", + "text": "Lifecycle" + } + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.TestMetadata.addScreenshot", + "type": "Function", + "tags": [], + "label": "addScreenshot", + "description": [], + "signature": [ + "(screenshot: ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.ScreenshotRecord", + "text": "ScreenshotRecord" + }, + ") => void" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.TestMetadata.addScreenshot.$1", + "type": "Object", + "tags": [], + "label": "screenshot", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.ScreenshotRecord", + "text": "ScreenshotRecord" + } + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] }, { "parentPluginId": "@kbn/test", - "id": "def-server.Lifecycle.beforeEachTest", - "type": "Object", + "id": "def-server.TestMetadata.getScreenshots", + "type": "Function", "tags": [], - "label": "beforeEachTest", + "label": "getScreenshots", "description": [], "signature": [ - "LifecyclePhase", - "<[", + "(test: any) => ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.Test", - "text": "Test" + "section": "def-server.ScreenshotRecord", + "text": "ScreenshotRecord" }, - "]>" + "[]" ], - "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", - "deprecated": false - }, + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.TestMetadata.getScreenshots.$1", + "type": "Any", + "tags": [], + "label": "test", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + } + ], + "functions": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.convertToKibanaClient", + "type": "Function", + "tags": [], + "label": "convertToKibanaClient", + "description": [], + "signature": [ + "(esClient: ", + "default", + ") => ", + "KibanaClient" + ], + "path": "packages/kbn-test/src/es/client_to_kibana_client.ts", + "deprecated": false, + "children": [ { "parentPluginId": "@kbn/test", - "id": "def-server.Lifecycle.afterTestSuite", + "id": "def-server.convertToKibanaClient.$1", "type": "Object", "tags": [], - "label": "afterTestSuite", + "label": "esClient", "description": [], "signature": [ - "LifecyclePhase", - "<[", - { - "pluginId": "@kbn/test", - "scope": "server", - "docId": "kibKbnTestPluginApi", - "section": "def-server.Suite", - "text": "Suite" - }, - "]>" + "default" ], - "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", - "deprecated": false + "path": "packages/kbn-test/src/es/client_to_kibana_client.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.createEsClientForFtrConfig", + "type": "Function", + "tags": [], + "label": "createEsClientForFtrConfig", + "description": [], + "signature": [ + "(config: ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.Config", + "text": "Config" + }, + ", overrides: Omit<", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsClientForTestingOptions", + "text": "EsClientForTestingOptions" }, + ", \"esUrl\"> | undefined) => ", + "default" + ], + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false, + "children": [ { "parentPluginId": "@kbn/test", - "id": "def-server.Lifecycle.testFailure", + "id": "def-server.createEsClientForFtrConfig.$1", "type": "Object", "tags": [], - "label": "testFailure", + "label": "config", "description": [], "signature": [ - "LifecyclePhase", - "<[Error, ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.Test", - "text": "Test" - }, - "]>" + "section": "def-server.Config", + "text": "Config" + } ], - "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", - "deprecated": false + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false, + "isRequired": true }, { "parentPluginId": "@kbn/test", - "id": "def-server.Lifecycle.testHookFailure", + "id": "def-server.createEsClientForFtrConfig.$2", "type": "Object", "tags": [], - "label": "testHookFailure", + "label": "overrides", "description": [], "signature": [ - "LifecyclePhase", - "<[Error, ", + "Omit<", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.Test", - "text": "Test" + "section": "def-server.EsClientForTestingOptions", + "text": "EsClientForTestingOptions" }, - "]>" - ], - "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", - "deprecated": false - }, - { - "parentPluginId": "@kbn/test", - "id": "def-server.Lifecycle.cleanup", - "type": "Object", - "tags": [], - "label": "cleanup", - "description": [], - "signature": [ - "LifecyclePhase", - "<[]>" + ", \"esUrl\"> | undefined" ], - "path": "packages/kbn-test/src/functional_test_runner/lib/lifecycle.ts", - "deprecated": false + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false, + "isRequired": false } ], + "returnComment": [], "initialIsOpen": false - } - ], - "functions": [ + }, { "parentPluginId": "@kbn/test", - "id": "def-server.convertToKibanaClient", + "id": "def-server.createEsClientForTesting", "type": "Function", "tags": [], - "label": "convertToKibanaClient", + "label": "createEsClientForTesting", "description": [], "signature": [ - "(esClient: ", - "default", + "(options: ", + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsClientForTestingOptions", + "text": "EsClientForTestingOptions" + }, ") => ", - "KibanaClient" + "default" ], - "path": "packages/kbn-test/src/es/client_to_kibana_client.ts", + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", "deprecated": false, "children": [ { "parentPluginId": "@kbn/test", - "id": "def-server.convertToKibanaClient.$1", + "id": "def-server.createEsClientForTesting.$1", "type": "Object", "tags": [], - "label": "esClient", + "label": "options", "description": [], "signature": [ - "default" + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsClientForTestingOptions", + "text": "EsClientForTestingOptions" + } ], - "path": "packages/kbn-test/src/es/client_to_kibana_client.ts", + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", "deprecated": false, "isRequired": true } @@ -1524,7 +1858,7 @@ "signature": [ "(config: UrlParam, app: UrlParam) => string" ], - "path": "packages/kbn-test/src/jest/utils/get_url.ts", + "path": "packages/kbn-test/src/jest/get_url.ts", "deprecated": false, "children": [ { @@ -1539,7 +1873,7 @@ "signature": [ "UrlParam" ], - "path": "packages/kbn-test/src/jest/utils/get_url.ts", + "path": "packages/kbn-test/src/jest/get_url.ts", "deprecated": false, "isRequired": true }, @@ -1555,7 +1889,7 @@ "signature": [ "UrlParam" ], - "path": "packages/kbn-test/src/jest/utils/get_url.ts", + "path": "packages/kbn-test/src/jest/get_url.ts", "deprecated": false, "isRequired": true } @@ -2279,6 +2613,75 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsClientForTestingOptions", + "type": "Interface", + "tags": [], + "label": "EsClientForTestingOptions", + "description": [ + "options for creating es instances used in functional testing scenarios" + ], + "signature": [ + { + "pluginId": "@kbn/test", + "scope": "server", + "docId": "kibKbnTestPluginApi", + "section": "def-server.EsClientForTestingOptions", + "text": "EsClientForTestingOptions" + }, + " extends Omit<", + "ClientOptions", + ", \"node\" | \"nodes\" | \"tls\">" + ], + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsClientForTestingOptions.esUrl", + "type": "string", + "tags": [], + "label": "esUrl", + "description": [ + "url of es instance" + ], + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsClientForTestingOptions.authOverride", + "type": "Object", + "tags": [], + "label": "authOverride", + "description": [ + "overwrite the auth embedded in the url to use a different user in this client instance" + ], + "signature": [ + "{ username: string; password: string; } | undefined" + ], + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.EsClientForTestingOptions.isCloud", + "type": "CompoundType", + "tags": [], + "label": "isCloud", + "description": [ + "\nare we running tests against cloud? this is automatically determined\nby checking for the TEST_CLOUD environment variable but can be overriden\nfor special cases" + ], + "signature": [ + "boolean | undefined" + ], + "path": "packages/kbn-test/src/es/es_client_for_testing.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/test", "id": "def-server.FtrConfigProviderContext", @@ -2392,7 +2795,7 @@ "\nDetermine if a service is avaliable" ], "signature": [ - "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" + "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"testMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2405,7 +2808,7 @@ "label": "serviceName", "description": [], "signature": [ - "\"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"" + "\"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"testMetadata\" | \"esVersion\"" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2422,7 +2825,7 @@ "label": "hasService", "description": [], "signature": [ - "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" + "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"testMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2452,7 +2855,7 @@ "label": "hasService", "description": [], "signature": [ - "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"failureMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" + "{ (serviceName: \"log\" | \"config\" | \"lifecycle\" | \"dockerServers\" | \"testMetadata\" | \"esVersion\"): true; (serviceName: K): serviceName is K; (serviceName: string): serviceName is Extract; }" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2510,13 +2913,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -2582,13 +2985,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -2654,13 +3057,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -2726,13 +3129,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -2798,13 +3201,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -2827,7 +3230,7 @@ "label": "serviceName", "description": [], "signature": [ - "\"failureMetadata\"" + "\"testMetadata\"" ], "path": "packages/kbn-test/src/functional_test_runner/public_types.ts", "deprecated": false, @@ -2870,13 +3273,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -2942,13 +3345,13 @@ "section": "def-server.DockerServersService", "text": "DockerServersService" }, - "; (serviceName: \"failureMetadata\"): ", + "; (serviceName: \"testMetadata\"): ", { "pluginId": "@kbn/test", "scope": "server", "docId": "kibKbnTestPluginApi", - "section": "def-server.FailureMetadata", - "text": "FailureMetadata" + "section": "def-server.TestMetadata", + "text": "TestMetadata" }, "; (serviceName: \"esVersion\"): ", { @@ -3301,6 +3704,65 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.ScreenshotRecord", + "type": "Interface", + "tags": [], + "label": "ScreenshotRecord", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test", + "id": "def-server.ScreenshotRecord.name", + "type": "string", + "tags": [], + "label": "name", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.ScreenshotRecord.base64Png", + "type": "string", + "tags": [], + "label": "base64Png", + "description": [], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.ScreenshotRecord.baselinePath", + "type": "string", + "tags": [], + "label": "baselinePath", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test", + "id": "def-server.ScreenshotRecord.failurePath", + "type": "string", + "tags": [], + "label": "failurePath", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "packages/kbn-test/src/functional_test_runner/lib/test_metadata.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "@kbn/test", "id": "def-server.Suite", diff --git a/api_docs/kbn_test.mdx b/api_docs/kbn_test.mdx index 48c8d10e55e88..85d43290c5d5e 100644 --- a/api_docs/kbn_test.mdx +++ b/api_docs/kbn_test.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-test title: "@kbn/test" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/test plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test'] 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. --- @@ -18,7 +18,7 @@ Contact Operations for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 221 | 5 | 195 | 10 | +| 244 | 5 | 208 | 9 | ## Server diff --git a/api_docs/kbn_test_jest_helpers.devdocs.json b/api_docs/kbn_test_jest_helpers.devdocs.json new file mode 100644 index 0000000000000..80b14dfc7f6f8 --- /dev/null +++ b/api_docs/kbn_test_jest_helpers.devdocs.json @@ -0,0 +1,2137 @@ +{ + "id": "@kbn/test-jest-helpers", + "client": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "server": { + "classes": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage", + "type": "Class", + "tags": [], + "label": "StubBrowserStorage", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.StubBrowserStorage", + "text": "StubBrowserStorage" + }, + " implements Storage" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.length", + "type": "number", + "tags": [], + "label": "length", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.key", + "type": "Function", + "tags": [], + "label": "key", + "description": [], + "signature": [ + "(i: number) => string" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.key.$1", + "type": "number", + "tags": [], + "label": "i", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.getItem", + "type": "Function", + "tags": [], + "label": "getItem", + "description": [], + "signature": [ + "(key: string) => string | null" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.getItem.$1", + "type": "string", + "tags": [], + "label": "key", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.setItem", + "type": "Function", + "tags": [], + "label": "setItem", + "description": [], + "signature": [ + "(key: string, value: string) => void" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.setItem.$1", + "type": "string", + "tags": [], + "label": "key", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.setItem.$2", + "type": "string", + "tags": [], + "label": "value", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.removeItem", + "type": "Function", + "tags": [], + "label": "removeItem", + "description": [], + "signature": [ + "(key: string) => void" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.removeItem.$1", + "type": "string", + "tags": [], + "label": "key", + "description": [], + "signature": [ + "string" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.clear", + "type": "Function", + "tags": [], + "label": "clear", + "description": [], + "signature": [ + "() => void" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.setStubbedSizeLimit", + "type": "Function", + "tags": [], + "label": "setStubbedSizeLimit", + "description": [], + "signature": [ + "(sizeLimit: number) => void" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.setStubbedSizeLimit.$1", + "type": "number", + "tags": [], + "label": "sizeLimit", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.getStubbedSizeLimit", + "type": "Function", + "tags": [], + "label": "getStubbedSizeLimit", + "description": [], + "signature": [ + "() => number" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.StubBrowserStorage.getStubbedSize", + "type": "Function", + "tags": [], + "label": "getStubbedSize", + "description": [], + "signature": [ + "() => number" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_browser_storage.ts", + "deprecated": false, + "children": [], + "returnComment": [] + } + ], + "initialIsOpen": false + } + ], + "functions": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.delay", + "type": "Function", + "tags": [], + "label": "delay", + "description": [], + "signature": [ + "(time?: number) => Promise" + ], + "path": "packages/kbn-test-jest-helpers/src/index.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.delay.$1", + "type": "number", + "tags": [], + "label": "time", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/index.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.findTestSubject", + "type": "Function", + "tags": [], + "label": "findTestSubject", + "description": [ + "\nFind node which matches a specific test subject selector. Returns ReactWrappers around DOM element,\nhttps://github.com/airbnb/enzyme/tree/master/docs/api/ReactWrapper.\nCommon use cases include calling simulate or getDOMNode on the returned ReactWrapper.\n\nThe ~= matcher looks for the value in space-separated list, allowing support for multiple data-test-subj\nvalues on a single element. See https://www.w3.org/TR/selectors-3/#attribute-selectors for more\ninfo on the other possible matchers.\n" + ], + "signature": [ + "(reactWrapper: ", + "ReactWrapper", + "<{}, {}, React.Component<{}, {}, any>>, testSubjectSelector: T, matcher?: Matcher) => ", + "ReactWrapper", + "<", + "HTMLAttributes", + ", {}, React.Component<{}, {}, any>>" + ], + "path": "packages/kbn-test-jest-helpers/src/find_test_subject.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.findTestSubject.$1", + "type": "Object", + "tags": [], + "label": "reactWrapper", + "description": [ + "The React wrapper to search in" + ], + "signature": [ + "ReactWrapper", + "<{}, {}, React.Component<{}, {}, any>>" + ], + "path": "packages/kbn-test-jest-helpers/src/find_test_subject.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.findTestSubject.$2", + "type": "Uncategorized", + "tags": [], + "label": "testSubjectSelector", + "description": [ + "The data test subject selector" + ], + "signature": [ + "T" + ], + "path": "packages/kbn-test-jest-helpers/src/find_test_subject.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.findTestSubject.$3", + "type": "CompoundType", + "tags": [], + "label": "matcher", + "description": [ + "optional matcher" + ], + "signature": [ + "Matcher" + ], + "path": "packages/kbn-test-jest-helpers/src/find_test_subject.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.getRandomNumber", + "type": "Function", + "tags": [], + "label": "getRandomNumber", + "description": [], + "signature": [ + "(range?: { min: number; max: number; }) => number" + ], + "path": "packages/kbn-test-jest-helpers/src/random.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.getRandomNumber.$1", + "type": "Object", + "tags": [], + "label": "range", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/random.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.getRandomNumber.$1.min", + "type": "number", + "tags": [], + "label": "min", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/random.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.getRandomNumber.$1.max", + "type": "number", + "tags": [], + "label": "max", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/random.ts", + "deprecated": false + } + ] + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.getRandomString", + "type": "Function", + "tags": [], + "label": "getRandomString", + "description": [], + "signature": [ + "(options?: {}) => string" + ], + "path": "packages/kbn-test-jest-helpers/src/random.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.getRandomString.$1", + "type": "Object", + "tags": [], + "label": "options", + "description": [], + "signature": [ + "{}" + ], + "path": "packages/kbn-test-jest-helpers/src/random.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountHook", + "type": "Function", + "tags": [ + "return" + ], + "label": "mountHook", + "description": [ + "\nAllows for execution of hooks inside of a test component which records the\nreturned values.\n" + ], + "signature": [ + "(body: (args: Args) => HookValue, WrapperComponent?: React.ComponentType<{}> | undefined, initialArgs?: Args) => ReactHookWrapper" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountHook.$1", + "type": "Function", + "tags": [], + "label": "body", + "description": [ + "A function that calls the hook and returns data derived from it" + ], + "signature": [ + "(args: Args) => HookValue" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountHook.$2", + "type": "CompoundType", + "tags": [], + "label": "WrapperComponent", + "description": [ + "A component that, if provided, will be wrapped\naround the test component. This can be useful to provide context values." + ], + "signature": [ + "React.ComponentType<{}> | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountHook.$3", + "type": "Uncategorized", + "tags": [], + "label": "initialArgs", + "description": [], + "signature": [ + "Args" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [ + "An object providing access to the hook state and\nfunctions to interact with it." + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithI18nProvider", + "type": "Function", + "tags": [], + "label": "mountWithI18nProvider", + "description": [], + "signature": [ + "(child: React.ReactElement>) => ", + "ReactWrapper", + "<", + "HTMLAttributes", + ", any, React.Component<{}, {}, any>>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithI18nProvider.$1", + "type": "Object", + "tags": [], + "label": "child", + "description": [], + "signature": [ + "React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithIntl", + "type": "Function", + "tags": [ + "return" + ], + "label": "mountWithIntl", + "description": [ + "\n Creates the wrapper instance using mount with provided intl object into context\n" + ], + "signature": [ + "(node: React.ReactElement>, {\n context,\n childContextTypes,\n ...props\n }: { attachTo?: HTMLElement | undefined; context?: any; childContextTypes?: ", + "ValidationMap", + " | undefined; }) => ", + "ReactWrapper", + ", React.Component<{}, {}, any>>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithIntl.$1", + "type": "Object", + "tags": [], + "label": "node", + "description": [ + "The React element or cheerio wrapper" + ], + "signature": [ + "React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithIntl.$2", + "type": "Object", + "tags": [], + "label": "{\n context,\n childContextTypes,\n ...props\n }", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithIntl.$2.attachTo", + "type": "Object", + "tags": [], + "label": "attachTo", + "description": [], + "signature": [ + "HTMLElement | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithIntl.$2.context", + "type": "Any", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.mountWithIntl.$2.childContextTypes", + "type": "Object", + "tags": [], + "label": "childContextTypes", + "description": [], + "signature": [ + "ValidationMap", + " | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + } + ] + } + ], + "returnComment": [ + "The wrapper instance around the rendered output with intl object in context" + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.nextTick", + "type": "Function", + "tags": [], + "label": "nextTick", + "description": [], + "signature": [ + "() => Promise" + ], + "path": "packages/kbn-test-jest-helpers/src/index.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.nodeWithIntlProp", + "type": "Function", + "tags": [], + "label": "nodeWithIntlProp", + "description": [ + "\nWhen using @kbn/i18n `injectI18n` on components, props.intl is required." + ], + "signature": [ + "(node: React.ReactElement>) => React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.nodeWithIntlProp.$1", + "type": "Object", + "tags": [], + "label": "node", + "description": [], + "signature": [ + "React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed", + "type": "Function", + "tags": [], + "label": "registerTestBed", + "description": [ + "\nRegister a new Testbed to test a React Component.\n" + ], + "signature": [ + "(Component: ", + "ComponentType", + ", config: ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.AsyncTestBedConfig", + "text": "AsyncTestBedConfig" + }, + ") => ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.AsyncSetupFunc", + "text": "AsyncSetupFunc" + }, + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed.$1", + "type": "CompoundType", + "tags": [], + "label": "Component", + "description": [ + "The component under test" + ], + "signature": [ + "ComponentType", + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed.$2", + "type": "Object", + "tags": [], + "label": "config", + "description": [ + "An optional configuration object for the Testbed" + ], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.AsyncTestBedConfig", + "text": "AsyncTestBedConfig" + } + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed", + "type": "Function", + "tags": [], + "label": "registerTestBed", + "description": [], + "signature": [ + "(Component: ", + "ComponentType", + ", config: ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBedConfig", + "text": "TestBedConfig" + }, + " | undefined) => ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.SyncSetupFunc", + "text": "SyncSetupFunc" + }, + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed.$1", + "type": "CompoundType", + "tags": [], + "label": "Component", + "description": [], + "signature": [ + "ComponentType", + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed.$2", + "type": "Object", + "tags": [], + "label": "config", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBedConfig", + "text": "TestBedConfig" + }, + " | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed", + "type": "Function", + "tags": [], + "label": "registerTestBed", + "description": [], + "signature": [ + "(Component: ", + "ComponentType", + ", config: ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.AsyncTestBedConfig", + "text": "AsyncTestBedConfig" + }, + " | ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBedConfig", + "text": "TestBedConfig" + }, + " | undefined) => ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.SetupFunc", + "text": "SetupFunc" + }, + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed.$1", + "type": "CompoundType", + "tags": [], + "label": "Component", + "description": [], + "signature": [ + "ComponentType", + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.registerTestBed.$2", + "type": "CompoundType", + "tags": [], + "label": "config", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.AsyncTestBedConfig", + "text": "AsyncTestBedConfig" + }, + " | ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBedConfig", + "text": "TestBedConfig" + }, + " | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/testbed.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.renderWithIntl", + "type": "Function", + "tags": [ + "return" + ], + "label": "renderWithIntl", + "description": [ + "\n Creates the wrapper instance using render with provided intl object into context\n" + ], + "signature": [ + "(node: React.ReactElement>, {\n context,\n childContextTypes,\n ...props\n }: { context?: any; childContextTypes?: ", + "ValidationMap", + " | undefined; }) => any" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.renderWithIntl.$1", + "type": "Object", + "tags": [], + "label": "node", + "description": [ + "The React element or cheerio wrapper" + ], + "signature": [ + "React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.renderWithIntl.$2", + "type": "Object", + "tags": [], + "label": "{\n context,\n childContextTypes,\n ...props\n }", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.renderWithIntl.$2.context", + "type": "Any", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.renderWithIntl.$2.childContextTypes", + "type": "Object", + "tags": [], + "label": "childContextTypes", + "description": [], + "signature": [ + "ValidationMap", + " | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + } + ] + } + ], + "returnComment": [ + "The wrapper instance around the rendered output with intl object in context" + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setHTMLElementClientSizes", + "type": "Function", + "tags": [], + "label": "setHTMLElementClientSizes", + "description": [], + "signature": [ + "(width: number, height: number) => { mockRestore: () => void; }" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setHTMLElementClientSizes.$1", + "type": "number", + "tags": [], + "label": "width", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setHTMLElementClientSizes.$2", + "type": "number", + "tags": [], + "label": "height", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setHTMLElementOffset", + "type": "Function", + "tags": [], + "label": "setHTMLElementOffset", + "description": [], + "signature": [ + "(width: number, height: number) => { mockRestore: () => void; }" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setHTMLElementOffset.$1", + "type": "number", + "tags": [], + "label": "width", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setHTMLElementOffset.$2", + "type": "number", + "tags": [], + "label": "height", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetBBox", + "type": "Function", + "tags": [], + "label": "setSVGElementGetBBox", + "description": [], + "signature": [ + "(width: number, height: number, x?: number, y?: number) => { mockRestore: () => void; }" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetBBox.$1", + "type": "number", + "tags": [], + "label": "width", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetBBox.$2", + "type": "number", + "tags": [], + "label": "height", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetBBox.$3", + "type": "number", + "tags": [], + "label": "x", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetBBox.$4", + "type": "number", + "tags": [], + "label": "y", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetComputedTextLength", + "type": "Function", + "tags": [], + "label": "setSVGElementGetComputedTextLength", + "description": [], + "signature": [ + "(width: number) => { mockRestore: () => void; }" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.setSVGElementGetComputedTextLength.$1", + "type": "number", + "tags": [], + "label": "width", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/jsdom_svg_mocks.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithI18nProvider", + "type": "Function", + "tags": [], + "label": "shallowWithI18nProvider", + "description": [], + "signature": [ + "(child: React.ReactElement>) => ", + "ShallowWrapper", + " & Readonly<{ children?: React.ReactNode; }>, Readonly<{}>, React.Component<{}, {}, any>>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithI18nProvider.$1", + "type": "Object", + "tags": [], + "label": "child", + "description": [], + "signature": [ + "React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithIntl", + "type": "Function", + "tags": [ + "return" + ], + "label": "shallowWithIntl", + "description": [ + "\n Creates the wrapper instance using shallow with provided intl object into context\n" + ], + "signature": [ + "(node: React.ReactElement>, {\n context,\n childContextTypes,\n ...props\n }: { context?: any; childContextTypes?: ", + "ValidationMap", + " | undefined; }) => ", + "ShallowWrapper", + ", React.Component<{}, {}, any>>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithIntl.$1", + "type": "Object", + "tags": [], + "label": "node", + "description": [ + "The React element or cheerio wrapper" + ], + "signature": [ + "React.ReactElement>" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithIntl.$2", + "type": "Object", + "tags": [], + "label": "{\n context,\n childContextTypes,\n ...props\n }", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithIntl.$2.context", + "type": "Any", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.shallowWithIntl.$2.childContextTypes", + "type": "Object", + "tags": [], + "label": "childContextTypes", + "description": [], + "signature": [ + "ValidationMap", + " | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/enzyme_helpers.tsx", + "deprecated": false + } + ] + } + ], + "returnComment": [ + "The wrapper instance around the rendered output with intl object in context" + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.stubWebWorker", + "type": "Function", + "tags": [], + "label": "stubWebWorker", + "description": [], + "signature": [ + "() => void" + ], + "path": "packages/kbn-test-jest-helpers/src/stub_web_worker.ts", + "deprecated": false, + "children": [], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithMemoryRouter", + "type": "Function", + "tags": [], + "label": "WithMemoryRouter", + "description": [], + "signature": [ + "(initialEntries?: ", + "LocationDescriptor", + "[], initialIndex?: number) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithMemoryRouter.$1", + "type": "Array", + "tags": [], + "label": "initialEntries", + "description": [], + "signature": [ + "LocationDescriptor", + "[]" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithMemoryRouter.$2", + "type": "number", + "tags": [], + "label": "initialIndex", + "description": [], + "signature": [ + "number" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithRoute", + "type": "Function", + "tags": [], + "label": "WithRoute", + "description": [], + "signature": [ + "(componentRoutePath?: ", + "LocationDescriptor", + " | ", + "LocationDescriptor", + "[], onRouter?: (router: any) => void) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithRoute.$1", + "type": "CompoundType", + "tags": [], + "label": "componentRoutePath", + "description": [], + "signature": [ + "LocationDescriptor", + " | ", + "LocationDescriptor", + "[]" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithRoute.$2", + "type": "Function", + "tags": [], + "label": "onRouter", + "description": [], + "signature": [ + "(router: any) => void" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithStore", + "type": "Function", + "tags": [], + "label": "WithStore", + "description": [], + "signature": [ + "(store: any) => (WrappedComponent: React.ComponentType<{}>) => (props: any) => JSX.Element" + ], + "path": "packages/kbn-test-jest-helpers/src/redux_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.WithStore.$1", + "type": "Any", + "tags": [], + "label": "store", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/redux_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + } + ], + "interfaces": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.AsyncTestBedConfig", + "type": "Interface", + "tags": [], + "label": "AsyncTestBedConfig", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.AsyncTestBedConfig", + "text": "AsyncTestBedConfig" + }, + " extends ", + "BaseTestBedConfig" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.AsyncTestBedConfig.doMountAsync", + "type": "boolean", + "tags": [], + "label": "doMountAsync", + "description": [], + "signature": [ + "true" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.EuiTableMetaData", + "type": "Interface", + "tags": [], + "label": "EuiTableMetaData", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.EuiTableMetaData.rows", + "type": "Array", + "tags": [], + "label": "rows", + "description": [ + "Array of rows of the table. Each row exposes its reactWrapper and its columns" + ], + "signature": [ + "{ reactWrapper: ", + "ReactWrapper", + "; columns: { reactWrapper: ", + "ReactWrapper", + "; value: string; }[]; }[]" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.EuiTableMetaData.tableCellsValues", + "type": "Array", + "tags": [], + "label": "tableCellsValues", + "description": [ + "A 2 dimensional array of rows & columns containing\nthe text content of each cell of the table" + ], + "signature": [ + "string[][]" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed", + "type": "Interface", + "tags": [], + "label": "TestBed", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBed", + "text": "TestBed" + }, + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.component", + "type": "Object", + "tags": [], + "label": "component", + "description": [ + "The comonent under test" + ], + "signature": [ + "ReactWrapper", + ">" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.exists", + "type": "Function", + "tags": [], + "label": "exists", + "description": [ + "\nPass it a `data-test-subj` and it will return true if it exists or false if it does not exist.\n" + ], + "signature": [ + "(testSubject: T, count?: number | undefined) => boolean" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.exists.$1", + "type": "Uncategorized", + "tags": [], + "label": "testSubject", + "description": [ + "The data test subject to look for (can be a nested path. e.g. \"detailPanel.mySection\")." + ], + "signature": [ + "T" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.exists.$2", + "type": "number", + "tags": [], + "label": "count", + "description": [ + "The number of times the subject needs to appear in order to return \"true\"" + ], + "signature": [ + "number | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.find", + "type": "Function", + "tags": [], + "label": "find", + "description": [ + "\nPass it a `data-test-subj` and it will return an Enzyme reactWrapper of the node.\nYou can target a nested test subject by separating it with a dot ('.');\n" + ], + "signature": [ + "(testSubject: T, reactWrapper?: ", + "ReactWrapper", + " | undefined) => ", + "ReactWrapper" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.find.$1", + "type": "Uncategorized", + "tags": [], + "label": "testSubject", + "description": [ + "The data test subject to look for" + ], + "signature": [ + "T" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.find.$2", + "type": "Object", + "tags": [], + "label": "reactWrapper", + "description": [], + "signature": [ + "ReactWrapper", + " | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.setProps", + "type": "Function", + "tags": [], + "label": "setProps", + "description": [ + "\nUpdate the props of the mounted component\n" + ], + "signature": [ + "(updatedProps: any) => void" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.setProps.$1", + "type": "Any", + "tags": [], + "label": "updatedProps", + "description": [ + "The updated prop object" + ], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.form", + "type": "Object", + "tags": [], + "label": "form", + "description": [], + "signature": [ + "{ setInputValue: (input: T | ", + "ReactWrapper", + ", value: string) => void; setSelectValue: (select: T | ", + "ReactWrapper", + ", value: string, doUpdateComponent?: boolean | undefined) => void; selectCheckBox: (checkboxTestSubject: T, isChecked?: boolean | undefined) => void; toggleEuiSwitch: (switchTestSubject: T) => void; setComboBoxValue: (comboBoxTestSubject: T, value: string) => void; getErrorsMessages: (wrapper?: T | ", + "ReactWrapper", + " | undefined) => string[]; }" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.table", + "type": "Object", + "tags": [], + "label": "table", + "description": [], + "signature": [ + "{ getMetaData: (tableTestSubject: T) => ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.EuiTableMetaData", + "text": "EuiTableMetaData" + }, + "; }" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBed.router", + "type": "Object", + "tags": [], + "label": "router", + "description": [], + "signature": [ + "{ navigateTo: (url: string) => void; }" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBedConfig", + "type": "Interface", + "tags": [], + "label": "TestBedConfig", + "description": [], + "signature": [ + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBedConfig", + "text": "TestBedConfig" + }, + " extends ", + "BaseTestBedConfig" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.TestBedConfig.doMountAsync", + "type": "boolean", + "tags": [], + "label": "doMountAsync", + "description": [], + "signature": [ + "false | undefined" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], + "enums": [], + "misc": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.AsyncSetupFunc", + "type": "Type", + "tags": [], + "label": "AsyncSetupFunc", + "description": [], + "signature": [ + "(props?: any) => Promise<", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBed", + "text": "TestBed" + }, + ">" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.AsyncSetupFunc.$1", + "type": "Any", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.SetupFunc", + "type": "Type", + "tags": [], + "label": "SetupFunc", + "description": [], + "signature": [ + "(props?: any) => ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBed", + "text": "TestBed" + }, + " | Promise<", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBed", + "text": "TestBed" + }, + ">" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.SetupFunc.$1", + "type": "Any", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.SyncSetupFunc", + "type": "Type", + "tags": [], + "label": "SyncSetupFunc", + "description": [], + "signature": [ + "(props?: any) => ", + { + "pluginId": "@kbn/test-jest-helpers", + "scope": "server", + "docId": "kibKbnTestJestHelpersPluginApi", + "section": "def-server.TestBed", + "text": "TestBed" + }, + "" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false, + "returnComment": [], + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.SyncSetupFunc.$1", + "type": "Any", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "any" + ], + "path": "packages/kbn-test-jest-helpers/src/testbed/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ], + "objects": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock", + "type": "Object", + "tags": [], + "label": "reactRouterMock", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history", + "type": "Object", + "tags": [], + "label": "history", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.push", + "type": "Function", + "tags": [], + "label": "push", + "description": [], + "signature": [ + "() => void" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.createHref", + "type": "Function", + "tags": [], + "label": "createHref", + "description": [], + "signature": [ + "(location: ", + "LocationDescriptorObject", + ") => string" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.createHref.$1", + "type": "Object", + "tags": [], + "label": "location", + "description": [], + "signature": [ + "LocationDescriptorObject", + "" + ], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.location", + "type": "Object", + "tags": [], + "label": "location", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.location.pathname", + "type": "string", + "tags": [], + "label": "pathname", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.location.search", + "type": "string", + "tags": [], + "label": "search", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.location.state", + "type": "string", + "tags": [], + "label": "state", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.history.location.hash", + "type": "string", + "tags": [], + "label": "hash", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + } + ] + } + ] + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.route", + "type": "Object", + "tags": [], + "label": "route", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.route.location", + "type": "Object", + "tags": [], + "label": "location", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.route.location.pathname", + "type": "string", + "tags": [], + "label": "pathname", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.route.location.search", + "type": "string", + "tags": [], + "label": "search", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.route.location.state", + "type": "string", + "tags": [], + "label": "state", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + }, + { + "parentPluginId": "@kbn/test-jest-helpers", + "id": "def-server.reactRouterMock.route.location.hash", + "type": "string", + "tags": [], + "label": "hash", + "description": [], + "path": "packages/kbn-test-jest-helpers/src/router_helpers.tsx", + "deprecated": false + } + ] + } + ] + } + ], + "initialIsOpen": false + } + ] + }, + "common": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + } +} \ No newline at end of file diff --git a/api_docs/kbn_test_jest_helpers.mdx b/api_docs/kbn_test_jest_helpers.mdx new file mode 100644 index 0000000000000..8519cb0e98180 --- /dev/null +++ b/api_docs/kbn_test_jest_helpers.mdx @@ -0,0 +1,39 @@ +--- +id: kibKbnTestJestHelpersPluginApi +slug: /kibana-dev-docs/api/kbn-test-jest-helpers +title: "@kbn/test-jest-helpers" +image: https://source.unsplash.com/400x175/?github +summary: API docs for the @kbn/test-jest-helpers plugin +date: 2022-02-11 +tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-jest-helpers'] +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. +--- +import kbnTestJestHelpersObj from './kbn_test_jest_helpers.devdocs.json'; + + + +Contact [Owner missing] for questions regarding this plugin. + +**Code health stats** + +| Public API count | Any count | Items lacking comments | Missing exports | +|-------------------|-----------|------------------------|-----------------| +| 128 | 8 | 101 | 2 | + +## Server + +### Objects + + +### Functions + + +### Classes + + +### Interfaces + + +### Consts, variables and types + + diff --git a/api_docs/kbn_typed_react_router_config.mdx b/api_docs/kbn_typed_react_router_config.mdx index d6fbf65802d0a..d1cb8efadd949 100644 --- a/api_docs/kbn_typed_react_router_config.mdx +++ b/api_docs/kbn_typed_react_router_config.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-typed-react-router-config title: "@kbn/typed-react-router-config" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/typed-react-router-config plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/typed-react-router-config'] 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. --- diff --git a/api_docs/kbn_ui_theme.mdx b/api_docs/kbn_ui_theme.mdx index 174f1b94e49ca..b5b49f0306c69 100644 --- a/api_docs/kbn_ui_theme.mdx +++ b/api_docs/kbn_ui_theme.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-ui-theme title: "@kbn/ui-theme" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/ui-theme plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-theme'] 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. --- diff --git a/api_docs/kbn_utility_types.mdx b/api_docs/kbn_utility_types.mdx index 623a46be96210..6fdbb2fff69ea 100644 --- a/api_docs/kbn_utility_types.mdx +++ b/api_docs/kbn_utility_types.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types title: "@kbn/utility-types" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/utility-types plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types'] 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. --- diff --git a/api_docs/kbn_utils.mdx b/api_docs/kbn_utils.mdx index ca168dc265a25..bf2153da29e25 100644 --- a/api_docs/kbn_utils.mdx +++ b/api_docs/kbn_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kbn-utils title: "@kbn/utils" image: https://source.unsplash.com/400x175/?github summary: API docs for the @kbn/utils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utils'] 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. --- diff --git a/api_docs/kibana_overview.mdx b/api_docs/kibana_overview.mdx index 0ef25dc752372..efd679a9766f5 100644 --- a/api_docs/kibana_overview.mdx +++ b/api_docs/kibana_overview.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kibanaOverview title: "kibanaOverview" image: https://source.unsplash.com/400x175/?github summary: API docs for the kibanaOverview plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaOverview'] 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. --- diff --git a/api_docs/kibana_react.mdx b/api_docs/kibana_react.mdx index a2413d73b585e..304d46f440097 100644 --- a/api_docs/kibana_react.mdx +++ b/api_docs/kibana_react.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kibanaReact title: "kibanaReact" image: https://source.unsplash.com/400x175/?github summary: API docs for the kibanaReact plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaReact'] 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. --- diff --git a/api_docs/kibana_utils.mdx b/api_docs/kibana_utils.mdx index e5ac5d0c8c9ab..088865fd838c2 100644 --- a/api_docs/kibana_utils.mdx +++ b/api_docs/kibana_utils.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/kibanaUtils title: "kibanaUtils" image: https://source.unsplash.com/400x175/?github summary: API docs for the kibanaUtils plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaUtils'] 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. --- diff --git a/api_docs/lens.devdocs.json b/api_docs/lens.devdocs.json index 901e88503788d..241ebb73f5b81 100644 --- a/api_docs/lens.devdocs.json +++ b/api_docs/lens.devdocs.json @@ -795,6 +795,120 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "lens", + "id": "def-public.LensPublicSetup", + "type": "Interface", + "tags": [], + "label": "LensPublicSetup", + "description": [], + "path": "x-pack/plugins/lens/public/plugin.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.LensPublicSetup.registerVisualization", + "type": "Function", + "tags": [ + "experimental" + ], + "label": "registerVisualization", + "description": [ + "\nRegister 3rd party visualization type\nSee `x-pack/examples/3rd_party_lens_vis` for exemplary usage.\n\nIn case the visualization is a function returning a promise, it will only be called once Lens is actually requiring it.\nThis can be used to lazy-load parts of the code to keep the initial bundle as small as possible.\n\nThis API might undergo breaking changes even in minor versions.\n" + ], + "signature": [ + "(visualization: ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.Visualization", + "text": "Visualization" + }, + " | (() => Promise<", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.Visualization", + "text": "Visualization" + }, + ">)) => void" + ], + "path": "x-pack/plugins/lens/public/plugin.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.LensPublicSetup.registerVisualization.$1", + "type": "CompoundType", + "tags": [], + "label": "visualization", + "description": [], + "signature": [ + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.Visualization", + "text": "Visualization" + }, + " | (() => Promise<", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.Visualization", + "text": "Visualization" + }, + ">)" + ], + "path": "x-pack/plugins/lens/public/plugin.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.LensPublicSetup.registerTopNavMenuEntryGenerator", + "type": "Function", + "tags": [ + "experimental" + ], + "label": "registerTopNavMenuEntryGenerator", + "description": [ + "\nRegister a generic menu entry shown in the top nav\nSee `x-pack/examples/3rd_party_lens_navigation_prompt` for exemplary usage.\n\nThis API might undergo breaking changes even in minor versions.\n" + ], + "signature": [ + "(navigationPromptGenerator: ", + "LensTopNavMenuEntryGenerator", + ") => void" + ], + "path": "x-pack/plugins/lens/public/plugin.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.LensPublicSetup.registerTopNavMenuEntryGenerator.$1", + "type": "Function", + "tags": [], + "label": "navigationPromptGenerator", + "description": [], + "signature": [ + "LensTopNavMenuEntryGenerator" + ], + "path": "x-pack/plugins/lens/public/plugin.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + } + ], + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-public.LensPublicStart", @@ -1576,64 +1690,1323 @@ "signature": [ "boolean | undefined" ], - "path": "x-pack/plugins/lens/common/expressions/pie_chart/types.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, - { - "parentPluginId": "lens", - "id": "def-public.TermsIndexPatternColumn", - "type": "Interface", - "tags": [], - "label": "TermsIndexPatternColumn", - "description": [], - "signature": [ - { - "pluginId": "lens", - "scope": "public", - "docId": "kibLensPluginApi", - "section": "def-public.TermsIndexPatternColumn", - "text": "TermsIndexPatternColumn" + "path": "x-pack/plugins/lens/common/expressions/pie_chart/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "lens", + "id": "def-public.StaticValueIndexPatternColumn", + "type": "Interface", + "tags": [], + "label": "StaticValueIndexPatternColumn", + "description": [], + "signature": [ + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.StaticValueIndexPatternColumn", + "text": "StaticValueIndexPatternColumn" + }, + " extends ", + "ReferenceBasedIndexPatternColumn" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/static_value.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.StaticValueIndexPatternColumn.operationType", + "type": "string", + "tags": [], + "label": "operationType", + "description": [], + "signature": [ + "\"static_value\"" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/static_value.tsx", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.StaticValueIndexPatternColumn.params", + "type": "Object", + "tags": [], + "label": "params", + "description": [], + "signature": [ + "{ value?: string | undefined; format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; }" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/static_value.tsx", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "lens", + "id": "def-public.TermsIndexPatternColumn", + "type": "Interface", + "tags": [], + "label": "TermsIndexPatternColumn", + "description": [], + "signature": [ + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.TermsIndexPatternColumn", + "text": "TermsIndexPatternColumn" + }, + " extends ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.FieldBasedIndexPatternColumn", + "text": "FieldBasedIndexPatternColumn" + } + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.TermsIndexPatternColumn.operationType", + "type": "string", + "tags": [], + "label": "operationType", + "description": [], + "signature": [ + "\"terms\"" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.TermsIndexPatternColumn.params", + "type": "Object", + "tags": [], + "label": "params", + "description": [], + "signature": [ + "{ size: number; orderBy: { type: \"alphabetical\"; fallback?: boolean | undefined; } | { type: \"rare\"; maxDocCount: number; } | { type: \"column\"; columnId: string; }; orderDirection: \"asc\" | \"desc\"; otherBucket?: boolean | undefined; missingBucket?: boolean | undefined; secondaryFields?: string[] | undefined; format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; parentFormat?: { id: string; } | undefined; }" + ], + "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization", + "type": "Interface", + "tags": [], + "label": "Visualization", + "description": [], + "signature": [ + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.Visualization", + "text": "Visualization" + }, + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.id", + "type": "string", + "tags": [], + "label": "id", + "description": [ + "Plugin ID, such as \"lnsXY\"" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.initialize", + "type": "Function", + "tags": [], + "label": "initialize", + "description": [ + "\nInitialize is allowed to modify the state stored in memory. The initialize function\nis called with a previous state in two cases:\n- Loadingn from a saved visualization\n- When using suggestions, the suggested state is passed in" + ], + "signature": [ + "(addNewLayer: () => string, state?: T | undefined, mainPalette?: ", + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteOutput", + "text": "PaletteOutput" + }, + "<{ [key: string]: unknown; }> | undefined) => T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.initialize.$1", + "type": "Function", + "tags": [], + "label": "addNewLayer", + "description": [], + "signature": [ + "() => string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.initialize.$2", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.initialize.$3", + "type": "Object", + "tags": [], + "label": "mainPalette", + "description": [], + "signature": [ + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteOutput", + "text": "PaletteOutput" + }, + "<{ [key: string]: unknown; }> | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getMainPalette", + "type": "Function", + "tags": [], + "label": "getMainPalette", + "description": [], + "signature": [ + "((state: T) => ", + { + "pluginId": "charts", + "scope": "common", + "docId": "kibChartsPluginApi", + "section": "def-common.PaletteOutput", + "text": "PaletteOutput" + }, + "<{ [key: string]: unknown; }> | undefined) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getMainPalette.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.triggers", + "type": "Array", + "tags": [], + "label": "triggers", + "description": [ + "\nSupported triggers of this visualization type when embedded somewhere" + ], + "signature": [ + "string[] | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.visualizationTypes", + "type": "Array", + "tags": [], + "label": "visualizationTypes", + "description": [ + "\nVisualizations must provide at least one type for the chart switcher,\nbut can register multiple subtypes" + ], + "signature": [ + "VisualizationType", + "[]" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getVisualizationTypeId", + "type": "Function", + "tags": [], + "label": "getVisualizationTypeId", + "description": [ + "\nReturn the ID of the current visualization. Used to highlight\nthe active subtype of the visualization." + ], + "signature": [ + "(state: T) => string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getVisualizationTypeId.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.switchVisualizationType", + "type": "Function", + "tags": [], + "label": "switchVisualizationType", + "description": [ + "\nIf the visualization has subtypes, update the subtype in state." + ], + "signature": [ + "((visualizationTypeId: string, state: T) => T) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.switchVisualizationType.$1", + "type": "string", + "tags": [], + "label": "visualizationTypeId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.switchVisualizationType.$2", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getDescription", + "type": "Function", + "tags": [], + "label": "getDescription", + "description": [ + "Description is displayed as the clickable text in the chart switcher" + ], + "signature": [ + "(state: T) => { icon?: ", + "IconType", + " | undefined; label: string; }" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getDescription.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getLayerIds", + "type": "Function", + "tags": [], + "label": "getLayerIds", + "description": [ + "Frame needs to know which layers the visualization is currently using" + ], + "signature": [ + "(state: T) => string[]" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getLayerIds.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.clearLayer", + "type": "Function", + "tags": [], + "label": "clearLayer", + "description": [ + "Reset button on each layer triggers this" + ], + "signature": [ + "(state: T, layerId: string) => T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.clearLayer.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.clearLayer.$2", + "type": "string", + "tags": [], + "label": "layerId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.removeLayer", + "type": "Function", + "tags": [], + "label": "removeLayer", + "description": [ + "Optional, if the visualization supports multiple layers" + ], + "signature": [ + "((state: T, layerId: string) => T) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.removeLayer.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.removeLayer.$2", + "type": "string", + "tags": [], + "label": "layerId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.appendLayer", + "type": "Function", + "tags": [], + "label": "appendLayer", + "description": [ + "Track added layers in internal state" + ], + "signature": [ + "((state: T, layerId: string, type: ", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.LayerType", + "text": "LayerType" + }, + ") => T) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.appendLayer.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.appendLayer.$2", + "type": "string", + "tags": [], + "label": "layerId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.appendLayer.$3", + "type": "CompoundType", + "tags": [], + "label": "type", + "description": [], + "signature": [ + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.LayerType", + "text": "LayerType" + } + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getSupportedLayers", + "type": "Function", + "tags": [], + "label": "getSupportedLayers", + "description": [ + "Retrieve a list of supported layer types with initialization data" + ], + "signature": [ + "(state?: T | undefined, frame?: Pick<", + "FramePublicAPI", + ", \"datasourceLayers\" | \"activeData\"> | undefined) => { type: ", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.LayerType", + "text": "LayerType" + }, + "; label: string; icon?: ", + "IconType", + " | undefined; disabled?: boolean | undefined; tooltipContent?: string | undefined; initialDimensions?: { groupId: string; columnId: string; dataType: string; label: string; staticValue: unknown; }[] | undefined; }[]" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getSupportedLayers.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getSupportedLayers.$2", + "type": "Object", + "tags": [], + "label": "frame", + "description": [], + "signature": [ + "Pick<", + "FramePublicAPI", + ", \"datasourceLayers\" | \"activeData\"> | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getLayerType", + "type": "Function", + "tags": [], + "label": "getLayerType", + "description": [], + "signature": [ + "(layerId: string, state?: T | undefined) => ", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.LayerType", + "text": "LayerType" + }, + " | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getLayerType.$1", + "type": "string", + "tags": [], + "label": "layerId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getLayerType.$2", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getRemoveOperation", + "type": "Function", + "tags": [], + "label": "getRemoveOperation", + "description": [], + "signature": [ + "((state: T, layerId: string) => \"remove\" | \"clear\") | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getRemoveOperation.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getRemoveOperation.$2", + "type": "string", + "tags": [], + "label": "layerId", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getConfiguration", + "type": "Function", + "tags": [], + "label": "getConfiguration", + "description": [ + "\nFor consistency across different visualizations, the dimension configuration UI is standardized" + ], + "signature": [ + "(props: ", + "VisualizationConfigProps", + ") => { groups: ", + "VisualizationDimensionGroupConfig", + "[]; }" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getConfiguration.$1", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "VisualizationConfigProps", + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderLayerHeader", + "type": "Function", + "tags": [], + "label": "renderLayerHeader", + "description": [ + "\nHeader rendered as layer title This can be used for both static and dynamic content lioke\nfor extra configurability, such as for switch chart type" + ], + "signature": [ + "((domElement: Element, props: ", + "VisualizationLayerWidgetProps", + ") => void | ((cleanupElement: Element) => void)) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderLayerHeader.$1", + "type": "Object", + "tags": [], + "label": "domElement", + "description": [], + "signature": [ + "Element" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderLayerHeader.$2", + "type": "CompoundType", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "VisualizationLayerWidgetProps", + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderToolbar", + "type": "Function", + "tags": [], + "label": "renderToolbar", + "description": [ + "\nToolbar rendered above the visualization. This is meant to be used to provide chart-level\nsettings for the visualization." + ], + "signature": [ + "((domElement: Element, props: ", + "VisualizationToolbarProps", + ") => void | ((cleanupElement: Element) => void)) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderToolbar.$1", + "type": "Object", + "tags": [], + "label": "domElement", + "description": [], + "signature": [ + "Element" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderToolbar.$2", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "VisualizationToolbarProps", + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.setDimension", + "type": "Function", + "tags": [], + "label": "setDimension", + "description": [ + "\nThe frame is telling the visualization to update or set a dimension based on user interaction\ngroupId is coming from the groupId provided in getConfiguration" + ], + "signature": [ + "(props: VisualizationDimensionChangeProps & { groupId: string; previousColumn?: string | undefined; }) => T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.setDimension.$1", + "type": "CompoundType", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "VisualizationDimensionChangeProps & { groupId: string; previousColumn?: string | undefined; }" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.removeDimension", + "type": "Function", + "tags": [], + "label": "removeDimension", + "description": [ + "\nThe frame is telling the visualization to remove a dimension. The visualization needs to\nlook at its internal state to determine which dimension is being affected." + ], + "signature": [ + "(props: VisualizationDimensionChangeProps) => T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.removeDimension.$1", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "VisualizationDimensionChangeProps" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderDimensionEditor", + "type": "Function", + "tags": [], + "label": "renderDimensionEditor", + "description": [ + "\nAdditional editor that gets rendered inside the dimension popover.\nThis can be used to configure dimension-specific options" + ], + "signature": [ + "((domElement: Element, props: ", + "VisualizationDimensionEditorProps", + ") => void | ((cleanupElement: Element) => void)) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderDimensionEditor.$1", + "type": "Object", + "tags": [], + "label": "domElement", + "description": [], + "signature": [ + "Element" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.renderDimensionEditor.$2", + "type": "CompoundType", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "VisualizationDimensionEditorProps", + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getSuggestions", + "type": "Function", + "tags": [], + "label": "getSuggestions", + "description": [ + "\nThe frame will call this function on all visualizations at different times. The\nmain use cases where visualization suggestions are requested are:\n- When dragging a field\n- When opening the chart switcher\nIf the state is provided when requesting suggestions, the visualization is active.\nMost visualizations will apply stricter filtering to suggestions when they are active,\nbecause suggestions have the potential to remove the users's work in progress." + ], + "signature": [ + "(context: ", + "SuggestionRequest", + ") => ", + "VisualizationSuggestion", + "[]" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getSuggestions.$1", + "type": "Object", + "tags": [], + "label": "context", + "description": [], + "signature": [ + "SuggestionRequest", + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toExpression", + "type": "Function", + "tags": [], + "label": "toExpression", + "description": [], + "signature": [ + "(state: T, datasourceLayers: Record, attributes?: Partial<{ title: string; description: string; }> | undefined) => string | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | null" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toExpression.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toExpression.$2", + "type": "Object", + "tags": [], + "label": "datasourceLayers", + "description": [], + "signature": [ + "Record" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toExpression.$3", + "type": "Object", + "tags": [], + "label": "attributes", + "description": [], + "signature": [ + "Partial<{ title: string; description: string; }> | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toPreviewExpression", + "type": "Function", + "tags": [], + "label": "toPreviewExpression", + "description": [ + "\nExpression to render a preview version of the chart in very constrained space.\nIf there is no expression provided, the preview icon is used." + ], + "signature": [ + "((state: T, datasourceLayers: Record) => string | ", + { + "pluginId": "expressions", + "scope": "common", + "docId": "kibExpressionsPluginApi", + "section": "def-common.ExpressionAstExpression", + "text": "ExpressionAstExpression" + }, + " | null) | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toPreviewExpression.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.toPreviewExpression.$2", + "type": "Object", + "tags": [], + "label": "datasourceLayers", + "description": [], + "signature": [ + "Record" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getErrorMessages", + "type": "Function", + "tags": [], + "label": "getErrorMessages", + "description": [ + "\nThe frame will call this function on all visualizations at few stages (pre-build/build error) in order\nto provide more context to the error and show it to the user" + ], + "signature": [ + "(state: T, datasourceLayers?: Record | undefined) => { shortMessage: string; longMessage: React.ReactNode; }[] | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getErrorMessages.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getErrorMessages.$2", + "type": "Object", + "tags": [], + "label": "datasourceLayers", + "description": [], + "signature": [ + "Record | undefined" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [] }, - " extends ", - { - "pluginId": "lens", - "scope": "public", - "docId": "kibLensPluginApi", - "section": "def-public.FieldBasedIndexPatternColumn", - "text": "FieldBasedIndexPatternColumn" - } - ], - "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", - "deprecated": false, - "children": [ { "parentPluginId": "lens", - "id": "def-public.TermsIndexPatternColumn.operationType", - "type": "string", + "id": "def-public.Visualization.getWarningMessages", + "type": "Function", "tags": [], - "label": "operationType", - "description": [], + "label": "getWarningMessages", + "description": [ + "\nThe frame calls this function to display warnings about visualization" + ], "signature": [ - "\"terms\"" + "((state: T, frame: ", + "FramePublicAPI", + ") => React.ReactNode[] | undefined) | undefined" ], - "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", - "deprecated": false + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getWarningMessages.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.getWarningMessages.$2", + "type": "Object", + "tags": [], + "label": "frame", + "description": [], + "signature": [ + "FramePublicAPI" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] }, { "parentPluginId": "lens", - "id": "def-public.TermsIndexPatternColumn.params", - "type": "Object", + "id": "def-public.Visualization.onEditAction", + "type": "Function", "tags": [], - "label": "params", - "description": [], + "label": "onEditAction", + "description": [ + "\nOn Edit events the frame will call this to know what's going to be the next visualization state" + ], "signature": [ - "{ size: number; orderBy: { type: \"alphabetical\"; fallback?: boolean | undefined; } | { type: \"rare\"; maxDocCount: number; } | { type: \"column\"; columnId: string; }; orderDirection: \"asc\" | \"desc\"; otherBucket?: boolean | undefined; missingBucket?: boolean | undefined; secondaryFields?: string[] | undefined; format?: { id: string; params?: { decimals: number; } | undefined; } | undefined; parentFormat?: { id: string; params?: { id?: string | undefined; template?: string | undefined; } | undefined; } | undefined; }" + "((state: T, event: ", + "LensEditEvent", + ") => T) | undefined" ], - "path": "x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/terms/types.ts", - "deprecated": false + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.Visualization.onEditAction.$1", + "type": "Uncategorized", + "tags": [], + "label": "state", + "description": [], + "signature": [ + "T" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-public.Visualization.onEditAction.$2", + "type": "Object", + "tags": [], + "label": "event", + "description": [], + "signature": [ + "LensEditEvent", + "" + ], + "path": "x-pack/plugins/lens/public/types.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] } ], "initialIsOpen": false @@ -2313,6 +3686,35 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "lens", + "id": "def-public.GaugeVisualizationState", + "type": "Type", + "tags": [], + "label": "GaugeVisualizationState", + "description": [], + "signature": [ + { + "pluginId": "expressionGauge", + "scope": "common", + "docId": "kibExpressionGaugePluginApi", + "section": "def-common.GaugeState", + "text": "GaugeState" + }, + " & { layerId: string; layerType: ", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.LayerType", + "text": "LayerType" + }, + "; }" + ], + "path": "x-pack/plugins/lens/public/visualizations/gauge/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-public.GenericIndexPatternColumn", @@ -2337,6 +3739,37 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "lens", + "id": "def-public.HeatmapVisualizationState", + "type": "Type", + "tags": [], + "label": "HeatmapVisualizationState", + "description": [], + "signature": [ + { + "pluginId": "expressionHeatmap", + "scope": "common", + "docId": "kibExpressionHeatmapPluginApi", + "section": "def-common.HeatmapArguments", + "text": "HeatmapArguments" + }, + " & { layerId: string; layerType: ", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.LayerType", + "text": "LayerType" + }, + "; valueAccessor?: string | undefined; xAccessor?: string | undefined; yAccessor?: string | undefined; shape: \"heatmap\"; } & { palette?: ", + "Palette", + " | undefined; }" + ], + "path": "x-pack/plugins/lens/public/heatmap_visualization/types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-public.LensEmbeddableInput", @@ -2594,7 +4027,23 @@ }, "> | LensAttributes<\"lnsMetric\", ", "MetricState", - ">; }" + "> | LensAttributes<\"lnsHeatmap\", ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.HeatmapVisualizationState", + "text": "HeatmapVisualizationState" + }, + "> | LensAttributes<\"lnsGauge\", ", + { + "pluginId": "lens", + "scope": "public", + "docId": "kibLensPluginApi", + "section": "def-public.GaugeVisualizationState", + "text": "GaugeVisualizationState" + }, + "> | LensAttributes; }" ], "path": "x-pack/plugins/lens/public/embeddable/embeddable_component.tsx", "deprecated": false, @@ -2643,7 +4092,47 @@ "initialIsOpen": false } ], - "objects": [] + "objects": [ + { + "parentPluginId": "lens", + "id": "def-public.layerTypes", + "type": "Object", + "tags": [], + "label": "layerTypes", + "description": [], + "path": "x-pack/plugins/lens/common/constants.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-public.layerTypes.DATA", + "type": "string", + "tags": [], + "label": "DATA", + "description": [], + "signature": [ + "\"data\"" + ], + "path": "x-pack/plugins/lens/common/constants.ts", + "deprecated": false + }, + { + "parentPluginId": "lens", + "id": "def-public.layerTypes.REFERENCELINE", + "type": "string", + "tags": [], + "label": "REFERENCELINE", + "description": [], + "signature": [ + "\"referenceLine\"" + ], + "path": "x-pack/plugins/lens/common/constants.ts", + "deprecated": false + } + ], + "initialIsOpen": false + } + ] }, "server": { "classes": [ @@ -2768,7 +4257,15 @@ "section": "def-common.EmbeddableStateWithType", "text": "EmbeddableStateWithType" }, - ">; }" + ">; registerVisualizationMigration: (id: string, migrationsGetter: () => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + ") => void; }" ], "path": "x-pack/plugins/lens/server/plugin.tsx", "deprecated": false, @@ -3371,6 +4868,28 @@ ], "enums": [], "misc": [ + { + "parentPluginId": "lens", + "id": "def-server.CustomVisualizationMigrations", + "type": "Type", + "tags": [], + "label": "CustomVisualizationMigrations", + "description": [], + "signature": [ + "{ [x: string]: () => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + "; }" + ], + "path": "x-pack/plugins/lens/server/migrations/types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-server.LensDocShape713", @@ -3503,9 +5022,27 @@ "section": "def-server.LensDocShape715", "text": "LensDocShape715" }, - ", \"filters\"> & { filters: ", + ", \"filters\" | \"state\"> & { filters: ", "Filter", - "[]; }" + "[]; state: Omit<{ datasourceMetaData: { filterableIndexPatterns: { id: string; title: string; }[]; }; datasourceStates: { indexpattern: { currentIndexPatternId: string; layers: Record>; }>; }; }; visualization: unknown; query: ", + "Query", + "; filters: ", + { + "pluginId": "lens", + "scope": "common", + "docId": "kibLensPluginApi", + "section": "def-common.PersistableFilter", + "text": "PersistableFilter" + }, + "[]; }, \"datasourceStates\"> & { datasourceStates: { indexpattern: Omit<{ currentIndexPatternId: string; layers: Record>; }>; }, \"layers\"> & { layers: Record>; }, \"columns\"> & { columns: Record; }>; }>; }; }; }; }" ], "path": "x-pack/plugins/lens/server/migrations/types.ts", "deprecated": false, @@ -3631,7 +5168,9 @@ "type": "Function", "tags": [], "label": "lensEmbeddableFactory", - "description": [], + "description": [ + "\nServer side embeddable definition which provides migrations to run if Lens state is embedded into another saved object somewhere" + ], "signature": [ "() => ", { @@ -3655,6 +5194,67 @@ "deprecated": false, "returnComment": [], "children": [] + }, + { + "parentPluginId": "lens", + "id": "def-server.LensServerPluginSetup.registerVisualizationMigration", + "type": "Function", + "tags": [], + "label": "registerVisualizationMigration", + "description": [ + "\nRegister custom migration functions for custom third party Lens visualizations" + ], + "signature": [ + "(id: string, migrationsGetter: () => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + }, + ") => void" + ], + "path": "x-pack/plugins/lens/server/plugin.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "lens", + "id": "def-server.LensServerPluginSetup.registerVisualizationMigration.$1", + "type": "string", + "tags": [], + "label": "id", + "description": [], + "signature": [ + "string" + ], + "path": "x-pack/plugins/lens/server/plugin.tsx", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "lens", + "id": "def-server.LensServerPluginSetup.registerVisualizationMigration.$2", + "type": "Function", + "tags": [], + "label": "migrationsGetter", + "description": [], + "signature": [ + "() => ", + { + "pluginId": "kibanaUtils", + "scope": "common", + "docId": "kibKibanaUtilsPluginApi", + "section": "def-common.MigrateFunctionsObject", + "text": "MigrateFunctionsObject" + } + ], + "path": "x-pack/plugins/lens/server/plugin.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] } ], "lifecycle": "setup", @@ -4663,6 +6263,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "lens", + "id": "def-common.SortingHint", + "type": "Type", + "tags": [], + "label": "SortingHint", + "description": [], + "signature": [ + "\"version\"" + ], + "path": "x-pack/plugins/lens/common/types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "lens", "id": "def-common.ValueLabelConfig", diff --git a/api_docs/lens.mdx b/api_docs/lens.mdx index f0dd2a46bbb38..b322bfce65ece 100644 --- a/api_docs/lens.mdx +++ b/api_docs/lens.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/lens title: "lens" image: https://source.unsplash.com/400x175/?github summary: API docs for the lens plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lens'] 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. --- @@ -18,10 +18,13 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 276 | 0 | 254 | 31 | +| 365 | 0 | 316 | 44 | ## Client +### Objects + + ### Interfaces diff --git a/api_docs/license_api_guard.mdx b/api_docs/license_api_guard.mdx index 4ce92d9cda770..765d8eebc09bd 100644 --- a/api_docs/license_api_guard.mdx +++ b/api_docs/license_api_guard.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/licenseApiGuard title: "licenseApiGuard" image: https://source.unsplash.com/400x175/?github summary: API docs for the licenseApiGuard plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseApiGuard'] 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. --- diff --git a/api_docs/license_management.mdx b/api_docs/license_management.mdx index 52fb9d8b17477..c589b8950018c 100644 --- a/api_docs/license_management.mdx +++ b/api_docs/license_management.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/licenseManagement title: "licenseManagement" image: https://source.unsplash.com/400x175/?github summary: API docs for the licenseManagement plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseManagement'] 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. --- diff --git a/api_docs/licensing.mdx b/api_docs/licensing.mdx index 8d65296357849..4ddbb3b79197e 100644 --- a/api_docs/licensing.mdx +++ b/api_docs/licensing.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/licensing title: "licensing" image: https://source.unsplash.com/400x175/?github summary: API docs for the licensing plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licensing'] 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. --- diff --git a/api_docs/lists.mdx b/api_docs/lists.mdx index bd05489de6d36..a735ff2b4cd28 100644 --- a/api_docs/lists.mdx +++ b/api_docs/lists.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/lists title: "lists" image: https://source.unsplash.com/400x175/?github summary: API docs for the lists plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lists'] 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. --- diff --git a/api_docs/management.mdx b/api_docs/management.mdx index 3a1e8b73a6d1f..566e1554ba995 100644 --- a/api_docs/management.mdx +++ b/api_docs/management.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/management title: "management" image: https://source.unsplash.com/400x175/?github summary: API docs for the management plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'management'] 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. --- diff --git a/api_docs/maps.devdocs.json b/api_docs/maps.devdocs.json index 52c4b8e9aa962..3c20072ac68f3 100644 --- a/api_docs/maps.devdocs.json +++ b/api_docs/maps.devdocs.json @@ -2836,6 +2836,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "maps", + "id": "def-public.GEOJSON_FEATURE_ID_PROPERTY_NAME", + "type": "string", + "tags": [], + "label": "GEOJSON_FEATURE_ID_PROPERTY_NAME", + "description": [], + "signature": [ + "\"__kbn__feature_id__\"" + ], + "path": "x-pack/plugins/maps/public/classes/layers/vector_layer/geojson_vector_layer/assign_feature_ids.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "maps", "id": "def-public.ImmutableSourceProperty", @@ -2930,8 +2944,8 @@ "pluginId": "dataViews", "scope": "common", "docId": "kibDataViewsPluginApi", - "section": "def-common.IndexPattern", - "text": "IndexPattern" + "section": "def-common.DataView", + "text": "DataView" }, "[]; }" ], diff --git a/api_docs/maps.mdx b/api_docs/maps.mdx index 60791237c9120..489e901f7d10b 100644 --- a/api_docs/maps.mdx +++ b/api_docs/maps.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/maps title: "maps" image: https://source.unsplash.com/400x175/?github summary: API docs for the maps plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'maps'] 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. --- @@ -18,7 +18,7 @@ Contact [GIS](https://github.com/orgs/elastic/teams/kibana-gis) for questions re | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 215 | 0 | 214 | 27 | +| 216 | 0 | 215 | 27 | ## Client diff --git a/api_docs/maps_ems.mdx b/api_docs/maps_ems.mdx index 5680d50c9c123..f7666202229f7 100644 --- a/api_docs/maps_ems.mdx +++ b/api_docs/maps_ems.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/mapsEms title: "mapsEms" image: https://source.unsplash.com/400x175/?github summary: API docs for the mapsEms plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mapsEms'] 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. --- diff --git a/api_docs/metrics_entities.mdx b/api_docs/metrics_entities.mdx index 3521f0b99596e..851e57c811243 100644 --- a/api_docs/metrics_entities.mdx +++ b/api_docs/metrics_entities.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/metricsEntities title: "metricsEntities" image: https://source.unsplash.com/400x175/?github summary: API docs for the metricsEntities plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'metricsEntities'] 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. --- diff --git a/api_docs/ml.mdx b/api_docs/ml.mdx index 58fb2b0fa05f7..59345386930e3 100644 --- a/api_docs/ml.mdx +++ b/api_docs/ml.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/ml title: "ml" image: https://source.unsplash.com/400x175/?github summary: API docs for the ml plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ml'] 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. --- diff --git a/api_docs/monitoring.mdx b/api_docs/monitoring.mdx index b44e3922d0e2c..14d5fc10d93b1 100644 --- a/api_docs/monitoring.mdx +++ b/api_docs/monitoring.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/monitoring title: "monitoring" image: https://source.unsplash.com/400x175/?github summary: API docs for the monitoring plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoring'] 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. --- diff --git a/api_docs/navigation.mdx b/api_docs/navigation.mdx index 53b297bf2dcf4..fed7d30a00462 100644 --- a/api_docs/navigation.mdx +++ b/api_docs/navigation.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/navigation title: "navigation" image: https://source.unsplash.com/400x175/?github summary: API docs for the navigation plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'navigation'] 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. --- diff --git a/api_docs/newsfeed.mdx b/api_docs/newsfeed.mdx index 916ff29e6772a..4b2bc38f00043 100644 --- a/api_docs/newsfeed.mdx +++ b/api_docs/newsfeed.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/newsfeed title: "newsfeed" image: https://source.unsplash.com/400x175/?github summary: API docs for the newsfeed plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'newsfeed'] 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. --- diff --git a/api_docs/observability.devdocs.json b/api_docs/observability.devdocs.json index 1f9b7f7b264ec..a7dafca1f6c52 100644 --- a/api_docs/observability.devdocs.json +++ b/api_docs/observability.devdocs.json @@ -213,6 +213,39 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.DatePicker", + "type": "Function", + "tags": [], + "label": "DatePicker", + "description": [], + "signature": [ + "(props: ", + "DatePickerProps", + ") => JSX.Element" + ], + "path": "x-pack/plugins/observability/public/components/shared/index.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.DatePicker.$1", + "type": "Object", + "tags": [], + "label": "props", + "description": [], + "signature": [ + "DatePickerProps" + ], + "path": "x-pack/plugins/observability/public/components/shared/index.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.ExploratoryView", @@ -343,6 +376,37 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.fromQuery", + "type": "Function", + "tags": [], + "label": "fromQuery", + "description": [], + "signature": [ + "(query: Record) => string" + ], + "path": "x-pack/plugins/observability/public/utils/url.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.fromQuery.$1", + "type": "Object", + "tags": [], + "label": "query", + "description": [], + "signature": [ + "Record" + ], + "path": "x-pack/plugins/observability/public/utils/url.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.getApmTraceUrl", @@ -564,6 +628,68 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.NavigationWarningPromptProvider", + "type": "Function", + "tags": [], + "label": "NavigationWarningPromptProvider", + "description": [], + "signature": [ + "({ children }: { children?: React.ReactNode; }) => JSX.Element" + ], + "path": "x-pack/plugins/observability/public/utils/navigation_warning_prompt/context.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.NavigationWarningPromptProvider.$1", + "type": "Object", + "tags": [], + "label": "{ children }", + "description": [], + "signature": [ + "{ children?: React.ReactNode; }" + ], + "path": "x-pack/plugins/observability/public/utils/navigation_warning_prompt/context.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-public.Prompt", + "type": "Function", + "tags": [], + "label": "Prompt", + "description": [], + "signature": [ + "({ prompt }: React.PropsWithChildren) => null" + ], + "path": "x-pack/plugins/observability/public/utils/navigation_warning_prompt/prompt.tsx", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.Prompt.$1", + "type": "CompoundType", + "tags": [], + "label": "{ prompt }", + "description": [], + "signature": [ + "React.PropsWithChildren" + ], + "path": "x-pack/plugins/observability/public/utils/navigation_warning_prompt/prompt.tsx", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.Section", @@ -787,6 +913,70 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.shouldHandleLinkEvent", + "type": "Function", + "tags": [], + "label": "shouldHandleLinkEvent", + "description": [], + "signature": [ + "(e: React.MouseEvent | React.MouseEvent) => boolean" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.shouldHandleLinkEvent.$1", + "type": "CompoundType", + "tags": [], + "label": "e", + "description": [], + "signature": [ + "React.MouseEvent | React.MouseEvent" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-public.toQuery", + "type": "Function", + "tags": [], + "label": "toQuery", + "description": [], + "signature": [ + "(search: string | undefined) => ", + "ParsedQuery", + "" + ], + "path": "x-pack/plugins/observability/public/utils/url.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.toQuery.$1", + "type": "string", + "tags": [], + "label": "search", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/observability/public/utils/url.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.useBreadcrumbs", @@ -1061,6 +1251,103 @@ "returnComment": [], "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.useLinkProps", + "type": "Function", + "tags": [], + "label": "useLinkProps", + "description": [], + "signature": [ + "({ app, pathname, hash, search }: ", + { + "pluginId": "observability", + "scope": "public", + "docId": "kibObservabilityPluginApi", + "section": "def-public.LinkDescriptor", + "text": "LinkDescriptor" + }, + ", options?: ", + "Options", + ") => ", + "LinkProps" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.useLinkProps.$1", + "type": "Object", + "tags": [], + "label": "{ app, pathname, hash, search }", + "description": [], + "signature": [ + { + "pluginId": "observability", + "scope": "public", + "docId": "kibObservabilityPluginApi", + "section": "def-public.LinkDescriptor", + "text": "LinkDescriptor" + } + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "observability", + "id": "def-public.useLinkProps.$2", + "type": "Object", + "tags": [], + "label": "options", + "description": [], + "signature": [ + "Options" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [], + "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-public.useRulesLink", + "type": "Function", + "tags": [], + "label": "useRulesLink", + "description": [], + "signature": [ + "(options: ", + "Options", + " | undefined) => ", + "LinkProps" + ], + "path": "x-pack/plugins/observability/public/hooks/use_rules_link.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.useRulesLink.$1", + "type": "Object", + "tags": [], + "label": "options", + "description": [], + "signature": [ + "Options", + " | undefined" + ], + "path": "x-pack/plugins/observability/public/hooks/use_rules_link.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [], + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.useTheme", @@ -1938,6 +2225,68 @@ ], "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.LinkDescriptor", + "type": "Interface", + "tags": [], + "label": "LinkDescriptor", + "description": [], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "observability", + "id": "def-public.LinkDescriptor.app", + "type": "string", + "tags": [], + "label": "app", + "description": [], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false + }, + { + "parentPluginId": "observability", + "id": "def-public.LinkDescriptor.pathname", + "type": "string", + "tags": [], + "label": "pathname", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false + }, + { + "parentPluginId": "observability", + "id": "def-public.LinkDescriptor.hash", + "type": "string", + "tags": [], + "label": "hash", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false + }, + { + "parentPluginId": "observability", + "id": "def-public.LinkDescriptor.search", + "type": "Object", + "tags": [], + "label": "search", + "description": [], + "signature": [ + "Search | undefined" + ], + "path": "x-pack/plugins/observability/public/hooks/use_link_props.ts", + "deprecated": false + } + ], + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.LogsFetchDataResponse", @@ -2689,6 +3038,219 @@ "path": "x-pack/plugins/observability/public/plugin.ts", "deprecated": false }, + { + "parentPluginId": "observability", + "id": "def-public.ObservabilityPublicPluginsStart.dataViews", + "type": "Object", + "tags": [], + "label": "dataViews", + "description": [], + "signature": [ + "{ create: (spec: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewSpec", + "text": "DataViewSpec" + }, + ", skipFetchFields?: boolean) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ">; delete: (indexPatternId: string) => Promise<{}>; find: (search: string, size?: number) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + "[]>; get: (id: string) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ">; getCanSave: () => Promise; ensureDefaultDataView: ", + "EnsureDefaultDataView", + "; getIds: (refresh?: boolean) => Promise; getTitles: (refresh?: boolean) => Promise; getIdsWithTitle: (refresh?: boolean) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewListItem", + "text": "DataViewListItem" + }, + "[]>; clearCache: (id?: string | undefined) => void; getCache: () => Promise<", + "SavedObject", + "<", + "IndexPatternSavedObjectAttrs", + ">[] | null | undefined>; getDefault: () => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + " | null>; getDefaultId: () => Promise; setDefault: (id: string | null, force?: boolean) => Promise; hasUserDataView: () => Promise; getFieldsForWildcard: (options: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.GetFieldsOptions", + "text": "GetFieldsOptions" + }, + ") => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.FieldSpec", + "text": "FieldSpec" + }, + "[]>; getFieldsForIndexPattern: (indexPattern: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + " | ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewSpec", + "text": "DataViewSpec" + }, + ", options?: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.GetFieldsOptions", + "text": "GetFieldsOptions" + }, + " | undefined) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.FieldSpec", + "text": "FieldSpec" + }, + "[]>; refreshFields: (indexPattern: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ") => Promise; fieldArrayToMap: (fields: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.FieldSpec", + "text": "FieldSpec" + }, + "[], fieldAttrs?: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.FieldAttrs", + "text": "FieldAttrs" + }, + " | undefined) => ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewFieldMap", + "text": "DataViewFieldMap" + }, + "; savedObjectToSpec: (savedObject: ", + "SavedObject", + "<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewAttributes", + "text": "DataViewAttributes" + }, + ">) => ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewSpec", + "text": "DataViewSpec" + }, + "; createAndSave: (spec: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataViewSpec", + "text": "DataViewSpec" + }, + ", override?: boolean, skipFetchFields?: boolean) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ">; createSavedObject: (indexPattern: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ", override?: boolean) => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ">; updateSavedObject: (indexPattern: ", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + ", saveAttempts?: number, ignoreErrors?: boolean) => Promise; getDefaultDataView: () => Promise<", + { + "pluginId": "dataViews", + "scope": "common", + "docId": "kibDataViewsPluginApi", + "section": "def-common.DataView", + "text": "DataView" + }, + " | null>; getCanSaveSync: () => boolean; }" + ], + "path": "x-pack/plugins/observability/public/plugin.ts", + "deprecated": false + }, { "parentPluginId": "observability", "id": "def-public.ObservabilityPublicPluginsStart.lens", @@ -3684,6 +4246,9 @@ "tags": [], "label": "METRIC_TYPE", "description": [], + "signature": [ + "METRIC_TYPE" + ], "path": "node_modules/@types/kbn__analytics/index.d.ts", "deprecated": false, "initialIsOpen": false @@ -3799,6 +4364,9 @@ "tags": [], "label": "DropResult", "description": [], + "signature": [ + "DropResult" + ], "path": "x-pack/plugins/observability/public/typings/eui_draggable/index.ts", "deprecated": false, "initialIsOpen": false @@ -4060,6 +4628,34 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "observability", + "id": "def-public.RECORDS_FIELD", + "type": "string", + "tags": [], + "label": "RECORDS_FIELD", + "description": [], + "signature": [ + "\"___records___\"" + ], + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/constants/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, + { + "parentPluginId": "observability", + "id": "def-public.RECORDS_PERCENTAGE_FIELD", + "type": "string", + "tags": [], + "label": "RECORDS_PERCENTAGE_FIELD", + "description": [], + "signature": [ + "\"RecordsPercentage\"" + ], + "path": "x-pack/plugins/observability/public/components/shared/exploratory_view/configurations/constants/constants.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "observability", "id": "def-public.REPORT_METRIC_FIELD", @@ -4379,13 +4975,7 @@ "text": "ElasticsearchClient" }, "; logger: ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", "; }) => Promise" ], "path": "x-pack/plugins/observability/server/utils/create_or_update_index.ts", @@ -4470,13 +5060,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "x-pack/plugins/observability/server/utils/create_or_update_index.ts", "deprecated": false @@ -4988,13 +5572,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "x-pack/plugins/observability/server/routes/types.ts", "deprecated": false diff --git a/api_docs/observability.mdx b/api_docs/observability.mdx index f0cb06b608137..14e27eb0bf971 100644 --- a/api_docs/observability.mdx +++ b/api_docs/observability.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/observability title: "observability" image: https://source.unsplash.com/400x175/?github summary: API docs for the observability plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observability'] 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. --- @@ -18,7 +18,7 @@ Contact [Observability UI](https://github.com/orgs/elastic/teams/observability-u | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 322 | 1 | 319 | 26 | +| 347 | 1 | 344 | 29 | ## Client diff --git a/api_docs/osquery.mdx b/api_docs/osquery.mdx index ab7e58fc13839..af61f147edd50 100644 --- a/api_docs/osquery.mdx +++ b/api_docs/osquery.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/osquery title: "osquery" image: https://source.unsplash.com/400x175/?github summary: API docs for the osquery plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'osquery'] 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. --- diff --git a/api_docs/plugin_directory.mdx b/api_docs/plugin_directory.mdx index a3845233cd3d9..cb494473fa913 100644 --- a/api_docs/plugin_directory.mdx +++ b/api_docs/plugin_directory.mdx @@ -3,7 +3,7 @@ id: kibDevDocsPluginDirectory slug: /kibana-dev-docs/api-meta/plugin-api-directory title: Directory summary: Directory of public APIs available through plugins or packages. -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana'] 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. --- @@ -12,13 +12,13 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | Count | Plugins or Packages with a
public API | Number of teams | |--------------|----------|------------------------| -| 211 | 167 | 32 | +| 214 | 170 | 32 | ### Public API health stats | API Count | Any Count | Missing comments | Missing exports | |--------------|----------|-----------------|--------| -| 23352 | 168 | 17755 | 1690 | +| 23638 | 175 | 17954 | 779 | ## Plugin Directory @@ -26,30 +26,30 @@ warning: This document is auto-generated and is meant to be viewed inside our ex |--------------|----------------|-----------|--------------|----------|---------------|--------| | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 125 | 0 | 125 | 11 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 23 | 0 | 19 | 1 | -| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 290 | 0 | 282 | 19 | +| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 289 | 0 | 281 | 19 | | | [APM UI](https://github.com/orgs/elastic/teams/apm-ui) | The user interface for Elastic APM | 40 | 0 | 40 | 49 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 9 | 0 | 9 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Considering using bfetch capabilities when fetching large amounts of data. This services supports batching HTTP requests and streaming responses back. | 78 | 1 | 69 | 2 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds Canvas application to Kibana | 9 | 0 | 8 | 3 | -| | [ResponseOps](https://github.com/orgs/elastic/teams/response-ops) | The Case management system in Kibana | 75 | 0 | 51 | 20 | +| | [ResponseOps](https://github.com/orgs/elastic/teams/response-ops) | The Case management system in Kibana | 74 | 0 | 51 | 19 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 319 | 2 | 286 | 4 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 28 | 0 | 23 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 13 | 0 | 13 | 1 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The Controls Plugin contains embeddable components intended to create a simple query interface for end users, and a powerful editing suite that allows dashboard authors to build controls | 118 | 0 | 117 | 3 | -| | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 2364 | 15 | 972 | 32 | +| | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 2366 | 15 | 973 | 32 | | crossClusterReplication | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | | | [Fleet](https://github.com/orgs/elastic/teams/fleet) | Add custom data integrations so they can be displayed in the Fleet integrations app | 96 | 0 | 77 | 1 | -| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 155 | 0 | 142 | 13 | +| | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds the Dashboard app to Kibana | 138 | 0 | 136 | 14 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 51 | 0 | 50 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 3390 | 40 | 2795 | 26 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 3386 | 40 | 2791 | 26 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Enhanced data plugin. (See src/plugins/data.) Enhances the main data plugin with a search session management UI. Includes a reusable search session indicator component to use in other applications. Exposes routes for managing search sessions. Includes a service that monitors, updates, and cleans up search session saved objects. | 16 | 0 | 16 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | This plugin provides the ability to create data views via a modal flyout from any kibana app | 13 | 0 | 7 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Reusable data view field editor across Kibana | 42 | 0 | 37 | 3 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data view management app | 2 | 0 | 2 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 745 | 3 | 600 | 7 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Data services are useful for searching and querying data from Elasticsearch. Helpful utilities include: a re-usable react query bar, KQL autocomplete, async search, Data Views (Index Patterns) and field formatters. | 742 | 3 | 597 | 7 | | | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The Data Visualizer tools help you understand your data, by analyzing the metrics and fields in a log file or an existing Elasticsearch index. | 23 | 2 | 19 | 1 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 10 | 0 | 8 | 2 | -| | [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | This plugin contains the Discover application and the saved search embeddable. | 90 | 0 | 62 | 7 | +| | [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | This plugin contains the Discover application and the saved search embeddable. | 93 | 0 | 65 | 7 | | | [Data Discovery](https://github.com/orgs/elastic/teams/kibana-data-discovery) | - | 37 | 0 | 35 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds embeddables service to Kibana | 468 | 0 | 381 | 4 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Extends embeddable plugin with more functionality | 14 | 0 | 14 | 0 | @@ -59,20 +59,20 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 82 | 0 | 82 | 6 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'error' renderer to expressions | 17 | 0 | 15 | 2 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Gauge plugin adds a `gauge` renderer and function to the expression plugin. The renderer will display the `gauge` chart. | 62 | 0 | 62 | 1 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Heatmap plugin adds a `heatmap` renderer and function to the expression plugin. The renderer will display the `heatmap` chart. | 113 | 0 | 109 | 3 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Heatmap plugin adds a `heatmap` renderer and function to the expression plugin. The renderer will display the `heatmap` chart. | 114 | 0 | 110 | 3 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'image' function and renderer to expressions | 26 | 0 | 26 | 0 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'metric' function and renderer to expressions | 32 | 0 | 27 | 0 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart. | 40 | 0 | 40 | 0 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Pie plugin adds a `pie` renderer and function to the expression plugin. The renderer will display the `pie` chart. | 43 | 0 | 43 | 2 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression MetricVis plugin adds a `metric` renderer and function to the expression plugin. The renderer will display the `metric` chart. | 42 | 0 | 42 | 0 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Partition Visualization plugin adds a `partitionVis` renderer and `pieVis`, `mosaicVis`, `treemapVis`, `waffleVis` functions to the expression plugin. The renderer will display the `pie`, `waffle`, `treemap` and `mosaic` charts. | 70 | 0 | 70 | 2 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'repeatImage' function and renderer to expressions | 32 | 0 | 32 | 0 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'revealImage' function and renderer to expressions | 14 | 0 | 14 | 3 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'shape' function and renderer to expressions | 148 | 0 | 146 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Tagcloud plugin adds a `tagcloud` renderer and function to the expression plugin. The renderer will display the `Wordcloud` chart. | 5 | 0 | 5 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds expression runtime to Kibana | 2093 | 26 | 1645 | 3 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds expression runtime to Kibana | 2085 | 26 | 1638 | 4 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 222 | 0 | 98 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Index pattern fields and ambiguous values formatters | 286 | 6 | 247 | 3 | | | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The file upload plugin contains components and services for uploading a file, analyzing its data, and then importing the data into an Elasticsearch index. Supported file types include CSV, TSV, newline-delimited JSON and GeoJSON. | 62 | 0 | 62 | 2 | -| | [Fleet](https://github.com/orgs/elastic/teams/fleet) | - | 1258 | 8 | 1142 | 10 | +| | [Fleet](https://github.com/orgs/elastic/teams/fleet) | - | 1263 | 8 | 1147 | 10 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 68 | 0 | 14 | 5 | | globalSearchBar | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | | globalSearchProviders | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | @@ -80,7 +80,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | grokdebugger | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 133 | 0 | 97 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 4 | 0 | 4 | 0 | -| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 169 | 0 | 164 | 3 | +| | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 175 | 0 | 170 | 3 | | | [Logs and Metrics UI](https://github.com/orgs/elastic/teams/logs-metrics-ui) | This plugin visualizes data from Filebeat and Metricbeat, and integrates with other Observability solutions | 28 | 0 | 25 | 3 | | ingestPipelines | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | | inputControlVis | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds Input Control visualization to Kibana | 0 | 0 | 0 | 0 | @@ -90,49 +90,49 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 236 | 0 | 201 | 5 | | kibanaUsageCollection | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 0 | 0 | 0 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 615 | 3 | 420 | 9 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. | 276 | 0 | 254 | 31 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. | 365 | 0 | 316 | 44 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 8 | 0 | 8 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 3 | 0 | 3 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 117 | 0 | 42 | 10 | | | [Security detections response](https://github.com/orgs/elastic/teams/security-detections-response) | - | 185 | 0 | 155 | 43 | | logstash | [Logstash](https://github.com/orgs/elastic/teams/logstash) | - | 0 | 0 | 0 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 41 | 0 | 41 | 6 | -| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 215 | 0 | 214 | 27 | +| | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 216 | 0 | 215 | 27 | | | [GIS](https://github.com/orgs/elastic/teams/kibana-gis) | - | 67 | 0 | 67 | 0 | | | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 4 | 0 | 4 | 1 | | | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the machine learning features provided by Elastic. | 196 | 8 | 79 | 30 | | | [Stack Monitoring](https://github.com/orgs/elastic/teams/stack-monitoring-ui) | - | 10 | 0 | 10 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 31 | 0 | 31 | 2 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 17 | 0 | 17 | 0 | -| | [Observability UI](https://github.com/orgs/elastic/teams/observability-ui) | - | 322 | 1 | 319 | 26 | +| | [Observability UI](https://github.com/orgs/elastic/teams/observability-ui) | - | 347 | 1 | 344 | 29 | | | [Security asset management](https://github.com/orgs/elastic/teams/security-asset-management) | - | 10 | 0 | 10 | 0 | | painlessLab | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | The Presentation Utility Plugin is a set of common, shared components and toolkits for solutions within the Presentation space, (e.g. Dashboards, Canvas). | 228 | 2 | 177 | 11 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 4 | 0 | 4 | 0 | -| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. | 30 | 0 | 30 | 0 | +| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Reporting Services enables applications to feature reports that the user can automate with Watcher and download later. | 29 | 0 | 29 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 21 | 0 | 21 | 0 | | | [RAC](https://github.com/orgs/elastic/teams/rac) | - | 177 | 0 | 150 | 7 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 24 | 0 | 19 | 2 | -| | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 221 | 3 | 177 | 5 | +| | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 192 | 2 | 151 | 5 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 103 | 0 | 90 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 54 | 0 | 50 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 90 | 0 | 45 | 0 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 29 | 0 | 24 | 1 | -| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Kibana Screenshotting Plugin | 25 | 0 | 11 | 5 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 33 | 0 | 14 | 0 | +| | [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana-reporting-services) | Kibana Screenshotting Plugin | 17 | 0 | 8 | 5 | | searchprofiler | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | -| | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides authentication and authorization features, and exposes functionality to understand the capabilities of the currently authenticated user. | 181 | 0 | 102 | 0 | +| | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides authentication and authorization features, and exposes functionality to understand the capabilities of the currently authenticated user. | 183 | 0 | 103 | 0 | | | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 45 | 0 | 45 | 18 | -| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds URL Service and sharing capabilities to Kibana | 138 | 0 | 79 | 10 | +| | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds URL Service and sharing capabilities to Kibana | 139 | 0 | 80 | 12 | | | [Shared UX](https://github.com/orgs/elastic/teams/shared-ux) | A plugin providing components and services for shared user experiences in Kibana. | 10 | 0 | 0 | 1 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 20 | 1 | 20 | 1 | -| | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides the Spaces feature, which allows saved objects to be organized into meaningful categories. | 248 | 0 | 61 | 0 | +| | [Platform Security](https://github.com/orgs/elastic/teams/kibana-security) | This plugin provides the Spaces feature, which allows saved objects to be organized into meaningful categories. | 250 | 0 | 61 | 0 | | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 4 | 0 | 4 | 0 | -| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 70 | 0 | 32 | 7 | +| | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 71 | 0 | 33 | 7 | | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 41 | 0 | 0 | 0 | | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 33 | 0 | 33 | 6 | | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 1 | 0 | 1 | 0 | | | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 11 | 0 | 10 | 0 | -| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 443 | 1 | 337 | 34 | +| | [Security solution](https://github.com/orgs/elastic/teams/security-solution) | - | 444 | 1 | 338 | 34 | | | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | This plugin provides access to the transforms features provided by Elastic. Transforms enable you to convert existing Elasticsearch indices into summarized indices, which provide opportunities for new insights and analytics. | 4 | 0 | 4 | 1 | | translations | [Kibana Localization](https://github.com/orgs/elastic/teams/kibana-localization) | - | 0 | 0 | 0 | 0 | | | [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-services) | - | 246 | 0 | 234 | 18 | @@ -143,6 +143,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | urlDrilldown | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds drilldown implementations to Kibana | 0 | 0 | 0 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | - | 12 | 0 | 12 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 58 | 0 | 15 | 2 | +| | [Uptime](https://github.com/orgs/elastic/teams/uptime) | - | 2 | 0 | 2 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | The default editor used in most aggregation-based visualizations. | 57 | 0 | 50 | 3 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the heatmap implementation using the elastic-charts library. The goal is to eventually deprecate the old implementation and keep only this. Until then, the library used is defined by the Legacy heatmap charts library advanced setting. | 3 | 0 | 3 | 2 | | visTypeMarkdown | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds a markdown visualization type | 0 | 0 | 0 | 0 | @@ -173,7 +174,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Owner missing] | - | 66 | 0 | 46 | 2 | | | [Owner missing] | - | 125 | 3 | 123 | 17 | | | [Owner missing] | - | 13 | 0 | 7 | 0 | -| | [Owner missing] | - | 250 | 3 | 194 | 0 | +| | [Owner missing] | - | 275 | 3 | 193 | 0 | | | [Owner missing] | - | 62 | 0 | 62 | 2 | | | [Owner missing] | - | 1 | 0 | 1 | 0 | | | [Owner missing] | - | 27 | 0 | 14 | 1 | @@ -183,6 +184,7 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | App Services | - | 35 | 3 | 35 | 1 | | | [Owner missing] | - | 20 | 0 | 20 | 2 | | | [Owner missing] | - | 30 | 0 | 5 | 36 | +| | [Owner missing] | - | 8 | 0 | 8 | 0 | | | [Owner missing] | - | 466 | 1 | 1 | 0 | | | [Owner missing] | - | 55 | 0 | 55 | 2 | | | [Owner missing] | - | 45 | 0 | 45 | 10 | @@ -210,7 +212,8 @@ warning: This document is auto-generated and is meant to be viewed inside our ex | | [Owner missing] | - | 96 | 1 | 63 | 2 | | | Operations | - | 22 | 2 | 21 | 0 | | | [Owner missing] | - | 2 | 0 | 2 | 0 | -| | Operations | - | 221 | 5 | 195 | 10 | +| | Operations | - | 244 | 5 | 208 | 9 | +| | [Owner missing] | - | 128 | 8 | 101 | 2 | | | [Owner missing] | - | 83 | 0 | 83 | 1 | | | [Owner missing] | - | 7 | 0 | 6 | 0 | | | [Owner missing] | - | 27 | 0 | 10 | 1 | diff --git a/api_docs/presentation_util.mdx b/api_docs/presentation_util.mdx index a3392834060a1..f0c1a5198b863 100644 --- a/api_docs/presentation_util.mdx +++ b/api_docs/presentation_util.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/presentationUtil title: "presentationUtil" image: https://source.unsplash.com/400x175/?github summary: API docs for the presentationUtil plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationUtil'] 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. --- diff --git a/api_docs/remote_clusters.mdx b/api_docs/remote_clusters.mdx index 6ec3db4fa8e9d..085102143d332 100644 --- a/api_docs/remote_clusters.mdx +++ b/api_docs/remote_clusters.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/remoteClusters title: "remoteClusters" image: https://source.unsplash.com/400x175/?github summary: API docs for the remoteClusters plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'remoteClusters'] 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. --- diff --git a/api_docs/reporting.devdocs.json b/api_docs/reporting.devdocs.json index 486bc5dcb32db..a640789f47d3f 100644 --- a/api_docs/reporting.devdocs.json +++ b/api_docs/reporting.devdocs.json @@ -305,25 +305,6 @@ "path": "x-pack/plugins/reporting/server/types.ts", "deprecated": false, "children": [ - { - "parentPluginId": "reporting", - "id": "def-server.ReportingSetupDeps.eventLog", - "type": "Object", - "tags": [], - "label": "eventLog", - "description": [], - "signature": [ - { - "pluginId": "eventLog", - "scope": "server", - "docId": "kibEventLogPluginApi", - "section": "def-server.IEventLogService", - "text": "IEventLogService" - } - ], - "path": "x-pack/plugins/reporting/server/types.ts", - "deprecated": false - }, { "parentPluginId": "reporting", "id": "def-server.ReportingSetupDeps.features", diff --git a/api_docs/reporting.mdx b/api_docs/reporting.mdx index 9437887093aa1..dc8d44f12f053 100644 --- a/api_docs/reporting.mdx +++ b/api_docs/reporting.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/reporting title: "reporting" image: https://source.unsplash.com/400x175/?github summary: API docs for the reporting plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'reporting'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 30 | 0 | 30 | 0 | +| 29 | 0 | 29 | 0 | ## Client diff --git a/api_docs/rollup.mdx b/api_docs/rollup.mdx index 065bff87ff4f1..6d4e6d4174a7c 100644 --- a/api_docs/rollup.mdx +++ b/api_docs/rollup.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/rollup title: "rollup" image: https://source.unsplash.com/400x175/?github summary: API docs for the rollup plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'rollup'] 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. --- diff --git a/api_docs/rule_registry.devdocs.json b/api_docs/rule_registry.devdocs.json index 47227b2004df9..78b9493cdc7f0 100644 --- a/api_docs/rule_registry.devdocs.json +++ b/api_docs/rule_registry.devdocs.json @@ -1118,13 +1118,7 @@ "description": [], "signature": [ "(logger: ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", ", ruleDataClient: ", "PublicContract", "<", @@ -1184,13 +1178,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts", "deprecated": false, @@ -1232,13 +1220,7 @@ "description": [], "signature": [ "({ logger, ruleDataClient }: { logger: ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", "; ruleDataClient: ", { "pluginId": "ruleRegistry", @@ -1302,13 +1284,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "x-pack/plugins/rule_registry/server/utils/create_lifecycle_rule_type_factory.ts", "deprecated": false @@ -1355,13 +1331,7 @@ "text": "IRuleDataClient" }, "; logger: ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", "; }) => " ], @@ -2745,13 +2703,7 @@ "text": "IRuleDataClient" }, "; logger: ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", "; }) => " ], diff --git a/api_docs/rule_registry.mdx b/api_docs/rule_registry.mdx index 868e391f28ea7..1b5a31be87f0e 100644 --- a/api_docs/rule_registry.mdx +++ b/api_docs/rule_registry.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/ruleRegistry title: "ruleRegistry" image: https://source.unsplash.com/400x175/?github summary: API docs for the ruleRegistry plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ruleRegistry'] 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. --- diff --git a/api_docs/runtime_fields.mdx b/api_docs/runtime_fields.mdx index ee397c225593e..2310c4e8b845d 100644 --- a/api_docs/runtime_fields.mdx +++ b/api_docs/runtime_fields.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/runtimeFields title: "runtimeFields" image: https://source.unsplash.com/400x175/?github summary: API docs for the runtimeFields plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'runtimeFields'] 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. --- diff --git a/api_docs/saved_objects.devdocs.json b/api_docs/saved_objects.devdocs.json index dae2d6ffb190a..85f349943c0ea 100644 --- a/api_docs/saved_objects.devdocs.json +++ b/api_docs/saved_objects.devdocs.json @@ -548,445 +548,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader", - "type": "Class", - "tags": [ - "deprecated" - ], - "label": "SavedObjectLoader", - "description": [], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": true, - "references": [ - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/services/saved_objects.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/saved_dashboards/saved_dashboards.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/saved_dashboards/saved_dashboards.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/types.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/plugin.tsx" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/plugin.tsx" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/application/test_helpers/make_default_services.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/url_generator.test.ts" - } - ], - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.type", - "type": "string", - "tags": [], - "label": "type", - "description": [], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.lowercaseType", - "type": "string", - "tags": [], - "label": "lowercaseType", - "description": [], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.loaderProperties", - "type": "Object", - "tags": [], - "label": "loaderProperties", - "description": [], - "signature": [ - "{ [x: string]: string; }" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.Unnamed", - "type": "Function", - "tags": [], - "label": "Constructor", - "description": [], - "signature": [ - "any" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.Unnamed.$1", - "type": "Any", - "tags": [], - "label": "SavedObjectClass", - "description": [], - "signature": [ - "any" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.Unnamed.$2", - "type": "Object", - "tags": [], - "label": "savedObjectsClient", - "description": [], - "signature": [ - { - "pluginId": "core", - "scope": "public", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-public.SavedObjectsClientContract", - "text": "SavedObjectsClientContract" - } - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.get", - "type": "Function", - "tags": [], - "label": "get", - "description": [ - "\nRetrieve a saved object by id or create new one.\nReturns a promise that completes when the object finishes\ninitializing." - ], - "signature": [ - "(opts?: string | Record | undefined) => Promise" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.get.$1", - "type": "CompoundType", - "tags": [], - "label": "opts", - "description": [], - "signature": [ - "string | Record | undefined" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": false - } - ], - "returnComment": [] - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.urlFor", - "type": "Function", - "tags": [], - "label": "urlFor", - "description": [], - "signature": [ - "(id: string) => string" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.urlFor.$1", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "signature": [ - "string" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.delete", - "type": "Function", - "tags": [], - "label": "delete", - "description": [], - "signature": [ - "(ids: string | string[]) => Promise" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.delete.$1", - "type": "CompoundType", - "tags": [], - "label": "ids", - "description": [], - "signature": [ - "string | string[]" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapHitSource", - "type": "Function", - "tags": [], - "label": "mapHitSource", - "description": [ - "\nUpdates source to contain an id, url and references fields, and returns the updated\nsource object." - ], - "signature": [ - "(source: Record, id: string, references?: ", - "SavedObjectReference", - "[]) => Record" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapHitSource.$1", - "type": "Object", - "tags": [], - "label": "source", - "description": [], - "signature": [ - "Record" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapHitSource.$2", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "signature": [ - "string" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapHitSource.$3", - "type": "Array", - "tags": [], - "label": "references", - "description": [], - "signature": [ - "SavedObjectReference", - "[]" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [ - "The modified source object, with an id and url field." - ] - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapSavedObjectApiHits", - "type": "Function", - "tags": [], - "label": "mapSavedObjectApiHits", - "description": [ - "\nUpdates hit.attributes to contain an id and url field, and returns the updated\nattributes object." - ], - "signature": [ - "({ attributes, id, references, }: { attributes: Record; id: string; references?: ", - "SavedObjectReference", - "[] | undefined; }) => Record" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapSavedObjectApiHits.$1", - "type": "Object", - "tags": [], - "label": "{\n attributes,\n id,\n references = [],\n }", - "description": [], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapSavedObjectApiHits.$1.attributes", - "type": "Object", - "tags": [], - "label": "attributes", - "description": [], - "signature": [ - "{ [x: string]: unknown; }" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapSavedObjectApiHits.$1.id", - "type": "string", - "tags": [], - "label": "id", - "description": [], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.mapSavedObjectApiHits.$1.references", - "type": "Array", - "tags": [], - "label": "references", - "description": [], - "signature": [ - "SavedObjectReference", - "[] | undefined" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - } - ] - } - ], - "returnComment": [ - "The modified hit.attributes object, with an id and url field." - ] - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.find", - "type": "Function", - "tags": [], - "label": "find", - "description": [], - "signature": [ - "(search?: string, sizeOrOptions?: number | ", - { - "pluginId": "savedObjects", - "scope": "public", - "docId": "kibSavedObjectsPluginApi", - "section": "def-public.SavedObjectLoaderFindOptions", - "text": "SavedObjectLoaderFindOptions" - }, - ") => Promise<{ total: number; hits: Record[]; }>" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.find.$1", - "type": "string", - "tags": [], - "label": "search", - "description": [], - "signature": [ - "string" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoader.find.$2", - "type": "CompoundType", - "tags": [], - "label": "sizeOrOptions", - "description": [], - "signature": [ - "number | ", - { - "pluginId": "savedObjects", - "scope": "public", - "docId": "kibSavedObjectsPluginApi", - "section": "def-public.SavedObjectLoaderFindOptions", - "text": "SavedObjectLoaderFindOptions" - } - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] - } - ], - "initialIsOpen": false - }, { "parentPluginId": "savedObjects", "id": "def-public.SavedObjectSaveModal", @@ -2076,6 +1637,18 @@ "plugin": "savedObjectsTaggingOss", "path": "src/plugins/saved_objects_tagging_oss/public/api.ts" }, + { + "plugin": "dashboard", + "path": "src/plugins/dashboard/public/services/saved_object_loader.ts" + }, + { + "plugin": "dashboard", + "path": "src/plugins/dashboard/public/services/saved_object_loader.ts" + }, + { + "plugin": "dashboard", + "path": "src/plugins/dashboard/public/services/saved_object_loader.ts" + }, { "plugin": "dashboard", "path": "src/plugins/dashboard/public/services/saved_objects.ts" @@ -3081,65 +2654,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoaderFindOptions", - "type": "Interface", - "tags": [], - "label": "SavedObjectLoaderFindOptions", - "description": [], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoaderFindOptions.size", - "type": "number", - "tags": [], - "label": "size", - "description": [], - "signature": [ - "number | undefined" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoaderFindOptions.fields", - "type": "Array", - "tags": [], - "label": "fields", - "description": [], - "signature": [ - "string[] | undefined" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - }, - { - "parentPluginId": "savedObjects", - "id": "def-public.SavedObjectLoaderFindOptions.hasReference", - "type": "Array", - "tags": [], - "label": "hasReference", - "description": [], - "signature": [ - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreSavedObjectsPluginApi", - "section": "def-server.SavedObjectsFindOptionsReference", - "text": "SavedObjectsFindOptionsReference" - }, - "[] | undefined" - ], - "path": "src/plugins/saved_objects/public/saved_object/saved_object_loader.ts", - "deprecated": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "savedObjects", "id": "def-public.SavedObjectMetaData", diff --git a/api_docs/saved_objects.mdx b/api_docs/saved_objects.mdx index 16b7bc8a54956..2f459203940f2 100644 --- a/api_docs/saved_objects.mdx +++ b/api_docs/saved_objects.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/savedObjects title: "savedObjects" image: https://source.unsplash.com/400x175/?github summary: API docs for the savedObjects plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjects'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) for que | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 221 | 3 | 177 | 5 | +| 192 | 2 | 151 | 5 | ## Client diff --git a/api_docs/saved_objects_management.mdx b/api_docs/saved_objects_management.mdx index 4a49807f35d17..3682bce8aa36c 100644 --- a/api_docs/saved_objects_management.mdx +++ b/api_docs/saved_objects_management.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/savedObjectsManagement title: "savedObjectsManagement" image: https://source.unsplash.com/400x175/?github summary: API docs for the savedObjectsManagement plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsManagement'] 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. --- diff --git a/api_docs/saved_objects_tagging.mdx b/api_docs/saved_objects_tagging.mdx index b0253f0385e63..64e3375dd0071 100644 --- a/api_docs/saved_objects_tagging.mdx +++ b/api_docs/saved_objects_tagging.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/savedObjectsTagging title: "savedObjectsTagging" image: https://source.unsplash.com/400x175/?github summary: API docs for the savedObjectsTagging plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTagging'] 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. --- diff --git a/api_docs/saved_objects_tagging_oss.mdx b/api_docs/saved_objects_tagging_oss.mdx index 5921c0c49fe25..061ec8cb2d4e1 100644 --- a/api_docs/saved_objects_tagging_oss.mdx +++ b/api_docs/saved_objects_tagging_oss.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/savedObjectsTaggingOss title: "savedObjectsTaggingOss" image: https://source.unsplash.com/400x175/?github summary: API docs for the savedObjectsTaggingOss plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTaggingOss'] 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. --- diff --git a/api_docs/screenshot_mode.devdocs.json b/api_docs/screenshot_mode.devdocs.json index 51ed7585bc90e..65ac948800747 100644 --- a/api_docs/screenshot_mode.devdocs.json +++ b/api_docs/screenshot_mode.devdocs.json @@ -15,7 +15,7 @@ "signature": [ "() => void" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "children": [], "returnComment": [], @@ -35,7 +35,7 @@ "signature": [ "\"__KBN_SCREENSHOT_MODE_ENABLED_KEY__\"" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "initialIsOpen": false }, @@ -60,7 +60,13 @@ "label": "ScreenshotModePluginStart", "description": [], "signature": [ - "IScreenshotModeService" + { + "pluginId": "screenshotMode", + "scope": "public", + "docId": "kibScreenshotModePluginApi", + "section": "def-public.ScreenshotModePluginSetup", + "text": "ScreenshotModePluginSetup" + } ], "path": "src/plugins/screenshot_mode/public/types.ts", "deprecated": false, @@ -83,7 +89,7 @@ "signature": [ "() => void" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "children": [], "returnComment": [], @@ -147,7 +153,7 @@ "signature": [ "\"__KBN_SCREENSHOT_MODE_ENABLED_KEY__\"" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "initialIsOpen": false }, @@ -171,52 +177,75 @@ "tags": [], "label": "ScreenshotModePluginSetup", "description": [], + "signature": [ + { + "pluginId": "screenshotMode", + "scope": "server", + "docId": "kibScreenshotModePluginApi", + "section": "def-server.ScreenshotModePluginSetup", + "text": "ScreenshotModePluginSetup" + }, + " extends ", + { + "pluginId": "screenshotMode", + "scope": "server", + "docId": "kibScreenshotModePluginApi", + "section": "def-server.ScreenshotModePluginStart", + "text": "ScreenshotModePluginStart" + } + ], "path": "src/plugins/screenshot_mode/server/types.ts", "deprecated": false, "children": [ { "parentPluginId": "screenshotMode", - "id": "def-server.ScreenshotModePluginSetup.isScreenshotMode", + "id": "def-server.ScreenshotModePluginSetup.setScreenshotContext", "type": "Function", "tags": [], - "label": "isScreenshotMode", - "description": [], + "label": "setScreenshotContext", + "description": [ + "\nStores a value in the screenshotting context." + ], "signature": [ - "(request: ", - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreHttpPluginApi", - "section": "def-server.KibanaRequest", - "text": "KibanaRequest" - }, - ") => boolean" + "(key: string, value: T) => void" ], "path": "src/plugins/screenshot_mode/server/types.ts", "deprecated": false, - "returnComment": [], "children": [ { "parentPluginId": "screenshotMode", - "id": "def-server.ScreenshotModePluginSetup.isScreenshotMode.$1", - "type": "Object", + "id": "def-server.ScreenshotModePluginSetup.setScreenshotContext.$1", + "type": "string", "tags": [], - "label": "request", - "description": [], + "label": "key", + "description": [ + "Context key to set." + ], "signature": [ - { - "pluginId": "core", - "scope": "server", - "docId": "kibCoreHttpPluginApi", - "section": "def-server.KibanaRequest", - "text": "KibanaRequest" - }, - "" + "string" + ], + "path": "src/plugins/screenshot_mode/server/types.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "screenshotMode", + "id": "def-server.ScreenshotModePluginSetup.setScreenshotContext.$2", + "type": "Uncategorized", + "tags": [], + "label": "value", + "description": [ + "Value to set." + ], + "signature": [ + "T" ], "path": "src/plugins/screenshot_mode/server/types.ts", - "deprecated": false + "deprecated": false, + "isRequired": true } - ] + ], + "returnComment": [] }, { "parentPluginId": "screenshotMode", @@ -234,58 +263,6 @@ "deprecated": false, "children": [], "returnComment": [] - }, - { - "parentPluginId": "screenshotMode", - "id": "def-server.ScreenshotModePluginSetup.setScreenshotLayout", - "type": "Function", - "tags": [ - "deprecated" - ], - "label": "setScreenshotLayout", - "description": [], - "signature": [ - "(value: ", - { - "pluginId": "screenshotMode", - "scope": "common", - "docId": "kibScreenshotModePluginApi", - "section": "def-common.Layout", - "text": "Layout" - }, - ") => void" - ], - "path": "src/plugins/screenshot_mode/server/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts" - } - ], - "children": [ - { - "parentPluginId": "screenshotMode", - "id": "def-server.ScreenshotModePluginSetup.setScreenshotLayout.$1", - "type": "CompoundType", - "tags": [], - "label": "value", - "description": [], - "signature": [ - { - "pluginId": "screenshotMode", - "scope": "common", - "docId": "kibScreenshotModePluginApi", - "section": "def-common.Layout", - "text": "Layout" - } - ], - "path": "src/plugins/screenshot_mode/server/types.ts", - "deprecated": false, - "isRequired": true - } - ], - "returnComment": [] } ], "lifecycle": "setup", @@ -307,7 +284,9 @@ "type": "Function", "tags": [], "label": "isScreenshotMode", - "description": [], + "description": [ + "\nAny context that requires access to the screenshot mode flag but does not have access\nto request context {@link ScreenshotModeRequestHandlerContext}, for instance if they are pre-context,\ncan use this function to check whether the request originates from a client that is in screenshot mode." + ], "signature": [ "(request: ", { @@ -321,7 +300,6 @@ ], "path": "src/plugins/screenshot_mode/server/types.ts", "deprecated": false, - "returnComment": [], "children": [ { "parentPluginId": "screenshotMode", @@ -341,9 +319,11 @@ "" ], "path": "src/plugins/screenshot_mode/server/types.ts", - "deprecated": false + "deprecated": false, + "isRequired": true } - ] + ], + "returnComment": [] } ], "lifecycle": "start", @@ -355,29 +335,57 @@ "functions": [ { "parentPluginId": "screenshotMode", - "id": "def-common.getScreenshotLayout", + "id": "def-common.getScreenshotContext", "type": "Function", "tags": [ - "deprecated" + "return" + ], + "label": "getScreenshotContext", + "description": [ + "\nRetrieves a value from the screenshotting context." ], - "label": "getScreenshotLayout", - "description": [], "signature": [ - "() => ", + "(key: string, defaultValue: T | undefined) => T | undefined" + ], + "path": "src/plugins/screenshot_mode/common/context.ts", + "deprecated": false, + "children": [ { - "pluginId": "screenshotMode", - "scope": "common", - "docId": "kibScreenshotModePluginApi", - "section": "def-common.Layout", - "text": "Layout" + "parentPluginId": "screenshotMode", + "id": "def-common.getScreenshotContext.$1", + "type": "string", + "tags": [], + "label": "key", + "description": [ + "Context key to get." + ], + "signature": [ + "string" + ], + "path": "src/plugins/screenshot_mode/common/context.ts", + "deprecated": false, + "isRequired": true }, - " | undefined" + { + "parentPluginId": "screenshotMode", + "id": "def-common.getScreenshotContext.$2", + "type": "Uncategorized", + "tags": [], + "label": "defaultValue", + "description": [ + "Value to return if the key is not found." + ], + "signature": [ + "T | undefined" + ], + "path": "src/plugins/screenshot_mode/common/context.ts", + "deprecated": false, + "isRequired": false + } + ], + "returnComment": [ + "The value stored in the screenshotting context." ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", - "deprecated": true, - "references": [], - "children": [], - "returnComment": [], "initialIsOpen": false }, { @@ -392,7 +400,7 @@ "signature": [ "() => boolean" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "children": [], "returnComment": [], @@ -400,45 +408,48 @@ }, { "parentPluginId": "screenshotMode", - "id": "def-common.setScreenshotLayout", + "id": "def-common.setScreenshotContext", "type": "Function", - "tags": [ - "deprecated" + "tags": [], + "label": "setScreenshotContext", + "description": [ + "\nStores a value in the screenshotting context." ], - "label": "setScreenshotLayout", - "description": [], "signature": [ - "(value: ", - { - "pluginId": "screenshotMode", - "scope": "common", - "docId": "kibScreenshotModePluginApi", - "section": "def-common.Layout", - "text": "Layout" - }, - ") => void" + "(key: string, value: T) => void" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", - "deprecated": true, - "references": [], + "path": "src/plugins/screenshot_mode/common/context.ts", + "deprecated": false, "children": [ { "parentPluginId": "screenshotMode", - "id": "def-common.setScreenshotLayout.$1", - "type": "CompoundType", + "id": "def-common.setScreenshotContext.$1", + "type": "string", + "tags": [], + "label": "key", + "description": [ + "Context key to set." + ], + "signature": [ + "string" + ], + "path": "src/plugins/screenshot_mode/common/context.ts", + "deprecated": false, + "isRequired": true + }, + { + "parentPluginId": "screenshotMode", + "id": "def-common.setScreenshotContext.$2", + "type": "Uncategorized", "tags": [], "label": "value", - "description": [], + "description": [ + "Value to set." + ], "signature": [ - { - "pluginId": "screenshotMode", - "scope": "common", - "docId": "kibScreenshotModePluginApi", - "section": "def-common.Layout", - "text": "Layout" - } + "T" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/context.ts", "deprecated": false, "isRequired": true } @@ -456,7 +467,7 @@ "signature": [ "() => void" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "children": [], "returnComment": [], @@ -474,7 +485,7 @@ "signature": [ "() => void" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "children": [], "returnComment": [], @@ -494,7 +505,7 @@ "signature": [ "\"__KBN_SCREENSHOT_MODE_ENABLED_KEY__\"" ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", + "path": "src/plugins/screenshot_mode/common/mode.ts", "deprecated": false, "initialIsOpen": false }, @@ -508,89 +519,6 @@ "path": "src/plugins/screenshot_mode/common/constants.ts", "deprecated": false, "initialIsOpen": false - }, - { - "parentPluginId": "screenshotMode", - "id": "def-common.KBN_SCREENSHOT_MODE_LAYOUT_KEY", - "type": "string", - "tags": [ - "deprecated" - ], - "label": "KBN_SCREENSHOT_MODE_LAYOUT_KEY", - "description": [], - "signature": [ - "\"__KBN_SCREENSHOT_MODE_LAYOUT_KEY__\"" - ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", - "deprecated": true, - "references": [], - "initialIsOpen": false - }, - { - "parentPluginId": "screenshotMode", - "id": "def-common.Layout", - "type": "Type", - "tags": [ - "deprecated" - ], - "label": "Layout", - "description": [], - "signature": [ - "\"canvas\" | \"preserve_layout\" | \"print\"" - ], - "path": "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts", - "deprecated": true, - "references": [ - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/screenshots/observable.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/browsers/chromium/driver.ts" - }, - { - "plugin": "dashboard", - "path": "src/plugins/dashboard/public/services/screenshot_mode.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/screenshots/open_url.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/screenshots/open_url.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/screenshots/observable.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/server/screenshots/observable.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/target/types/server/browsers/chromium/driver.d.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/target/types/server/browsers/chromium/driver.d.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/target/types/server/screenshots/open_url.d.ts" - }, - { - "plugin": "screenshotting", - "path": "x-pack/plugins/screenshotting/target/types/server/screenshots/open_url.d.ts" - } - ], - "initialIsOpen": false } ], "objects": [] diff --git a/api_docs/screenshot_mode.mdx b/api_docs/screenshot_mode.mdx index 48647268023f5..f59458fcd467c 100644 --- a/api_docs/screenshot_mode.mdx +++ b/api_docs/screenshot_mode.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/screenshotMode title: "screenshotMode" image: https://source.unsplash.com/400x175/?github summary: API docs for the screenshotMode plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotMode'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 29 | 0 | 24 | 1 | +| 33 | 0 | 14 | 0 | ## Client diff --git a/api_docs/screenshotting.devdocs.json b/api_docs/screenshotting.devdocs.json index 7f6c6e07a66b3..901ed0e503f1f 100644 --- a/api_docs/screenshotting.devdocs.json +++ b/api_docs/screenshotting.devdocs.json @@ -6,76 +6,7 @@ "interfaces": [], "enums": [], "misc": [], - "objects": [ - { - "parentPluginId": "screenshotting", - "id": "def-public.LayoutTypes", - "type": "Object", - "tags": [], - "label": "LayoutTypes", - "description": [ - "\nSupported layout types." - ], - "path": "x-pack/plugins/screenshotting/common/layout.ts", - "deprecated": false, - "children": [ - { - "parentPluginId": "screenshotting", - "id": "def-public.LayoutTypes.PRESERVE_LAYOUT", - "type": "string", - "tags": [], - "label": "PRESERVE_LAYOUT", - "description": [], - "path": "x-pack/plugins/screenshotting/common/layout.ts", - "deprecated": false - }, - { - "parentPluginId": "screenshotting", - "id": "def-public.LayoutTypes.PRINT", - "type": "string", - "tags": [], - "label": "PRINT", - "description": [], - "path": "x-pack/plugins/screenshotting/common/layout.ts", - "deprecated": false - }, - { - "parentPluginId": "screenshotting", - "id": "def-public.LayoutTypes.CANVAS", - "type": "string", - "tags": [], - "label": "CANVAS", - "description": [], - "path": "x-pack/plugins/screenshotting/common/layout.ts", - "deprecated": false - } - ], - "initialIsOpen": false - } - ], - "start": { - "parentPluginId": "screenshotting", - "id": "def-public.ScreenshottingStart", - "type": "Type", - "tags": [], - "label": "ScreenshottingStart", - "description": [ - "\nStart public contract." - ], - "signature": [ - { - "pluginId": "screenshotting", - "scope": "public", - "docId": "kibScreenshottingPluginApi", - "section": "def-public.ScreenshottingSetup", - "text": "ScreenshottingSetup" - } - ], - "path": "x-pack/plugins/screenshotting/public/plugin.tsx", - "deprecated": false, - "lifecycle": "start", - "initialIsOpen": true - } + "objects": [] }, "server": { "classes": [], @@ -282,6 +213,9 @@ ], "path": "x-pack/plugins/screenshotting/server/plugin.ts", "deprecated": false, + "returnComment": [ + "Observable with screenshotting results." + ], "children": [ { "parentPluginId": "screenshotting", @@ -301,13 +235,9 @@ "text": "ScreenshotOptions" } ], - "path": "x-pack/plugins/screenshotting/server/plugin.ts", - "deprecated": false, - "isRequired": true + "path": "x-pack/plugins/screenshotting/server/screenshots/index.ts", + "deprecated": false } - ], - "returnComment": [ - "Observable with screenshotting results." ] } ], @@ -321,22 +251,6 @@ "interfaces": [], "enums": [], "misc": [ - { - "parentPluginId": "screenshotting", - "id": "def-common.Context", - "type": "Type", - "tags": [], - "label": "Context", - "description": [ - "\nScreenshot context.\nThis is a serializable object that can be passed from the screenshotting backend and then deserialized on the target page." - ], - "signature": [ - "{ [x: string]: unknown; }" - ], - "path": "x-pack/plugins/screenshotting/common/context.ts", - "deprecated": false, - "initialIsOpen": false - }, { "parentPluginId": "screenshotting", "id": "def-common.LayoutParams", diff --git a/api_docs/screenshotting.mdx b/api_docs/screenshotting.mdx index 327d8ee6fa72c..238fe8da05edb 100644 --- a/api_docs/screenshotting.mdx +++ b/api_docs/screenshotting.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/screenshotting title: "screenshotting" image: https://source.unsplash.com/400x175/?github summary: API docs for the screenshotting plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotting'] 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. --- @@ -18,15 +18,7 @@ Contact [Kibana Reporting Services](https://github.com/orgs/elastic/teams/kibana | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 25 | 0 | 11 | 5 | - -## Client - -### Start - - -### Objects - +| 17 | 0 | 8 | 5 | ## Server diff --git a/api_docs/security.devdocs.json b/api_docs/security.devdocs.json index ccb64b30ed10a..16f7840a23b14 100644 --- a/api_docs/security.devdocs.json +++ b/api_docs/security.devdocs.json @@ -888,13 +888,7 @@ "text": "AuditEvent" }, " extends ", - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.LogMeta", - "text": "LogMeta" - } + "LogMeta" ], "path": "x-pack/plugins/security/server/audit/audit_events.ts", "deprecated": false, @@ -981,6 +975,18 @@ } ], "returnComment": [] + }, + { + "parentPluginId": "security", + "id": "def-server.AuditLogger.enabled", + "type": "boolean", + "tags": [], + "label": "enabled", + "description": [ + "\nIndicates whether audit logging is enabled or not.\n\nUseful for skipping resource-intense operations that don't need to be performed when audit\nlogging is disabled." + ], + "path": "x-pack/plugins/security/server/audit/audit_service.ts", + "deprecated": false } ], "initialIsOpen": false @@ -1681,6 +1687,20 @@ "deprecated": false, "initialIsOpen": false }, + { + "parentPluginId": "security", + "id": "def-server.CasesSupportedOperations", + "type": "Type", + "tags": [], + "label": "CasesSupportedOperations", + "description": [], + "signature": [ + "\"getCase\" | \"getComment\" | \"getTags\" | \"getReporters\" | \"getUserActions\" | \"findConfigurations\" | \"createCase\" | \"deleteCase\" | \"updateCase\" | \"pushCase\" | \"createComment\" | \"deleteComment\" | \"updateComment\" | \"createConfiguration\" | \"updateConfiguration\"" + ], + "path": "x-pack/plugins/security/server/authorization/privileges/feature_privilege_builder/cases.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "security", "id": "def-server.ROUTE_TAG_CAN_REDIRECT", diff --git a/api_docs/security.mdx b/api_docs/security.mdx index a5ebb9f6030e7..467d61cc2c66d 100644 --- a/api_docs/security.mdx +++ b/api_docs/security.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/security title: "security" image: https://source.unsplash.com/400x175/?github summary: API docs for the security plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'security'] 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. --- @@ -18,7 +18,7 @@ Contact [Platform Security](https://github.com/orgs/elastic/teams/kibana-securit | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 181 | 0 | 102 | 0 | +| 183 | 0 | 103 | 0 | ## Client diff --git a/api_docs/security_solution.devdocs.json b/api_docs/security_solution.devdocs.json index 0b83d1c9648b7..f077b298d7c67 100644 --- a/api_docs/security_solution.devdocs.json +++ b/api_docs/security_solution.devdocs.json @@ -62,7 +62,7 @@ "label": "experimentalFeatures", "description": [], "signature": [ - "{ readonly metricsEntitiesEnabled: boolean; readonly ruleRegistryEnabled: boolean; readonly tGridEnabled: boolean; readonly tGridEventRenderedViewEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly uebaEnabled: boolean; readonly disableIsolationUIPendingStatuses: boolean; readonly riskyHostsEnabled: boolean; readonly securityRulesCancelEnabled: boolean; readonly pendingActionResponsesWithAck: boolean; readonly rulesBulkEditEnabled: boolean; readonly policyListEnabled: boolean; }" + "{ readonly metricsEntitiesEnabled: boolean; readonly ruleRegistryEnabled: boolean; readonly tGridEnabled: boolean; readonly tGridEventRenderedViewEnabled: boolean; readonly excludePoliciesInFilterEnabled: boolean; readonly usersEnabled: boolean; readonly disableIsolationUIPendingStatuses: boolean; readonly riskyHostsEnabled: boolean; readonly securityRulesCancelEnabled: boolean; readonly pendingActionResponsesWithAck: boolean; readonly rulesBulkEditEnabled: boolean; readonly policyListEnabled: boolean; readonly previewTelemetryUrlEnabled: boolean; }" ], "path": "x-pack/plugins/security_solution/public/plugin.tsx", "deprecated": false @@ -836,14 +836,14 @@ }, { "parentPluginId": "securitySolution", - "id": "def-server.SecuritySolutionApiRequestHandlerContext.getExecutionLogClient", + "id": "def-server.SecuritySolutionApiRequestHandlerContext.getRuleExecutionLog", "type": "Function", "tags": [], - "label": "getExecutionLogClient", + "label": "getRuleExecutionLog", "description": [], "signature": [ "() => ", - "IRuleExecutionLogClient" + "IRuleExecutionLogForRoutes" ], "path": "x-pack/plugins/security_solution/server/types.ts", "deprecated": false, @@ -887,7 +887,7 @@ "label": "ConfigType", "description": [], "signature": [ - "Readonly<{} & { signalsIndex: string; maxRuleImportExportSize: number; maxRuleImportPayloadBytes: number; maxTimelineImportExportSize: number; maxTimelineImportPayloadBytes: number; alertMergeStrategy: \"allFields\" | \"missingFields\" | \"noFields\"; alertIgnoreFields: string[]; enableExperimental: string[]; packagerTaskInterval: string; prebuiltRulesFromFileSystem: boolean; prebuiltRulesFromSavedObjects: boolean; }> & { experimentalFeatures: Readonly<{ metricsEntitiesEnabled: boolean; ruleRegistryEnabled: boolean; tGridEnabled: boolean; tGridEventRenderedViewEnabled: boolean; excludePoliciesInFilterEnabled: boolean; uebaEnabled: boolean; disableIsolationUIPendingStatuses: boolean; riskyHostsEnabled: boolean; securityRulesCancelEnabled: boolean; pendingActionResponsesWithAck: boolean; rulesBulkEditEnabled: boolean; policyListEnabled: boolean; }>; }" + "Readonly<{} & { signalsIndex: string; maxRuleImportExportSize: number; maxRuleImportPayloadBytes: number; maxTimelineImportExportSize: number; maxTimelineImportPayloadBytes: number; alertMergeStrategy: \"allFields\" | \"missingFields\" | \"noFields\"; alertIgnoreFields: string[]; enableExperimental: string[]; packagerTaskInterval: string; prebuiltRulesFromFileSystem: boolean; prebuiltRulesFromSavedObjects: boolean; }> & { experimentalFeatures: Readonly<{ metricsEntitiesEnabled: boolean; ruleRegistryEnabled: boolean; tGridEnabled: boolean; tGridEventRenderedViewEnabled: boolean; excludePoliciesInFilterEnabled: boolean; usersEnabled: boolean; disableIsolationUIPendingStatuses: boolean; riskyHostsEnabled: boolean; securityRulesCancelEnabled: boolean; pendingActionResponsesWithAck: boolean; rulesBulkEditEnabled: boolean; policyListEnabled: boolean; previewTelemetryUrlEnabled: boolean; }>; }" ], "path": "x-pack/plugins/security_solution/server/config.ts", "deprecated": false, diff --git a/api_docs/security_solution.mdx b/api_docs/security_solution.mdx index cb1e88359ce94..b7544d9b0750e 100644 --- a/api_docs/security_solution.mdx +++ b/api_docs/security_solution.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/securitySolution title: "securitySolution" image: https://source.unsplash.com/400x175/?github summary: API docs for the securitySolution plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolution'] 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. --- diff --git a/api_docs/share.devdocs.json b/api_docs/share.devdocs.json index 482ea0044e4a5..a85ad1a605548 100644 --- a/api_docs/share.devdocs.json +++ b/api_docs/share.devdocs.json @@ -594,12 +594,10 @@ "parentPluginId": "share", "id": "def-public.LocatorPublic.getUrl", "type": "Function", - "tags": [ - "deprecated" - ], + "tags": [], "label": "getUrl", "description": [ - "\nReturns a URL as a string.\n" + "\nReturns a URL as a string.\n\nYou may want to use `getRedirectUrl` instead. `getRedirectUrl` will\npreserve the location state, whereas the `getUrl` just returns the URL\nwithout the location state. Use this method if you know you don't need\nremember the location state and version of the URL locator.\n" ], "signature": [ "(params: P, getUrlParams?: ", @@ -607,137 +605,7 @@ " | undefined) => Promise" ], "path": "src/plugins/share/common/url_service/locators/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/components/jobs_action_menu/jobs_action_menu.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/new_job/pages/job_type/page.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/new_job/recognize/page.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/index_based/index_data_visualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/index_based/index_data_visualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/file_based/file_datavisualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/file_based/file_datavisualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/components/controls.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/job_map.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/routing/routes/data_frame_analytics/analytics_job_exploration.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/components/anomaly_results_view_selector/anomaly_results_view_selector.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/app.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/ui_actions/open_in_anomaly_explorer_action.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/ui_actions/open_in_anomaly_explorer_action.tsx" - }, - { - "plugin": "infra", - "path": "x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx" - }, - { - "plugin": "ingestPipelines", - "path": "x-pack/plugins/ingest_pipelines/public/locator.test.ts" - }, - { - "plugin": "transform", - "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_create/step_create_form.tsx" - }, - { - "plugin": "upgradeAssistant", - "path": "x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/services/dashboard_service.ts" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/services/dashboard_service.test.ts" - }, - { - "plugin": "upgradeAssistant", - "path": "x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts" - } - ], + "deprecated": false, "children": [ { "parentPluginId": "share", @@ -1765,6 +1633,23 @@ ], "enums": [], "misc": [ + { + "parentPluginId": "share", + "id": "def-public.BrowserUrlService", + "type": "Type", + "tags": [], + "label": "BrowserUrlService", + "description": [], + "signature": [ + "UrlService", + "" + ], + "path": "src/plugins/share/public/types.ts", + "deprecated": false, + "initialIsOpen": false + }, { "parentPluginId": "share", "id": "def-public.CSV_QUOTE_VALUES_SETTING", @@ -1842,8 +1727,14 @@ ") => void; } & { urlGenerators: ", "UrlGeneratorsSetup", "; url: ", - "UrlService", - "; navigate(options: ", + { + "pluginId": "share", + "scope": "public", + "docId": "kibSharePluginApi", + "section": "def-public.BrowserUrlService", + "text": "BrowserUrlService" + }, + "; navigate(options: ", "RedirectOptions", "<", "SerializableRecord", @@ -1881,8 +1772,14 @@ ") => void; } & { urlGenerators: ", "UrlGeneratorsStart", "; url: ", - "UrlService", - "; navigate(options: ", + { + "pluginId": "share", + "scope": "public", + "docId": "kibSharePluginApi", + "section": "def-public.BrowserUrlService", + "text": "BrowserUrlService" + }, + "; navigate(options: ", "RedirectOptions", "<", "SerializableRecord", @@ -1951,6 +1848,8 @@ "UrlService", "<", "ServerShortUrlClientFactoryCreateParams", + ", ", + "IShortUrlClient", ">" ], "path": "src/plugins/share/server/plugin.ts", @@ -1981,6 +1880,8 @@ "UrlService", "<", "ServerShortUrlClientFactoryCreateParams", + ", ", + "IShortUrlClient", ">" ], "path": "src/plugins/share/server/plugin.ts", @@ -2351,12 +2252,10 @@ "parentPluginId": "share", "id": "def-common.LocatorPublic.getUrl", "type": "Function", - "tags": [ - "deprecated" - ], + "tags": [], "label": "getUrl", "description": [ - "\nReturns a URL as a string.\n" + "\nReturns a URL as a string.\n\nYou may want to use `getRedirectUrl` instead. `getRedirectUrl` will\npreserve the location state, whereas the `getUrl` just returns the URL\nwithout the location state. Use this method if you know you don't need\nremember the location state and version of the URL locator.\n" ], "signature": [ "(params: P, getUrlParams?: ", @@ -2364,137 +2263,7 @@ " | undefined) => Promise" ], "path": "src/plugins/share/common/url_service/locators/types.ts", - "deprecated": true, - "references": [ - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/contexts/kibana/use_create_url.ts" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/components/ml_page/side_nav.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/anomaly_detection_panel/actions.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/jobs_list/components/anomaly_detection_empty_state/anomaly_detection_empty_state.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_view/use_view_action.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_map/use_map_action.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/overview/components/analytics_panel/actions.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/trained_models/models_management/models_list.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/components/jobs_action_menu/jobs_action_menu.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/new_job/pages/job_type/page.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/jobs/new_job/recognize/page.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/index_based/index_data_visualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/index_based/index_data_visualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/file_based/file_datavisualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/datavisualizer/file_based/file_datavisualizer.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/components/controls.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/data_frame_analytics/pages/job_map/job_map.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/routing/routes/data_frame_analytics/analytics_job_exploration.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/components/anomaly_results_view_selector/anomaly_results_view_selector.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/app.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/ui_actions/open_in_anomaly_explorer_action.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/ui_actions/open_in_anomaly_explorer_action.tsx" - }, - { - "plugin": "infra", - "path": "x-pack/plugins/infra/public/components/logging/log_analysis_setup/setup_flyout/module_list_card.tsx" - }, - { - "plugin": "ingestPipelines", - "path": "x-pack/plugins/ingest_pipelines/public/locator.test.ts" - }, - { - "plugin": "transform", - "path": "x-pack/plugins/transform/public/app/sections/create_transform/components/step_create/step_create_form.tsx" - }, - { - "plugin": "upgradeAssistant", - "path": "x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/fix_deprecation_logs/external_links.tsx" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/services/dashboard_service.ts" - }, - { - "plugin": "ml", - "path": "x-pack/plugins/ml/public/application/services/dashboard_service.test.ts" - }, - { - "plugin": "upgradeAssistant", - "path": "x-pack/plugins/upgrade_assistant/__jest__/client_integration/helpers/app_context.mock.ts" - } - ], + "deprecated": false, "children": [ { "parentPluginId": "share", diff --git a/api_docs/share.mdx b/api_docs/share.mdx index 29a0dd37c499a..3bd65c24a93e8 100644 --- a/api_docs/share.mdx +++ b/api_docs/share.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/share title: "share" image: https://source.unsplash.com/400x175/?github summary: API docs for the share plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'share'] 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. --- @@ -18,7 +18,7 @@ Contact [App Services](https://github.com/orgs/elastic/teams/kibana-app-services | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 138 | 0 | 79 | 10 | +| 139 | 0 | 80 | 12 | ## Client diff --git a/api_docs/shared_u_x.mdx b/api_docs/shared_u_x.mdx index ee261981b8e01..3842d195dd13a 100644 --- a/api_docs/shared_u_x.mdx +++ b/api_docs/shared_u_x.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/sharedUX title: "sharedUX" image: https://source.unsplash.com/400x175/?github summary: API docs for the sharedUX plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'sharedUX'] 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. --- diff --git a/api_docs/snapshot_restore.mdx b/api_docs/snapshot_restore.mdx index 9c420fdcf386b..d689ed141f11e 100644 --- a/api_docs/snapshot_restore.mdx +++ b/api_docs/snapshot_restore.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/snapshotRestore title: "snapshotRestore" image: https://source.unsplash.com/400x175/?github summary: API docs for the snapshotRestore plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'snapshotRestore'] 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. --- diff --git a/api_docs/spaces.devdocs.json b/api_docs/spaces.devdocs.json index c020e7fbd7c1a..46197f09fda02 100644 --- a/api_docs/spaces.devdocs.json +++ b/api_docs/spaces.devdocs.json @@ -3036,6 +3036,48 @@ ], "returnComment": [] }, + { + "parentPluginId": "spaces", + "id": "def-server.ISpacesClient.createSavedObjectFinder", + "type": "Function", + "tags": [], + "label": "createSavedObjectFinder", + "description": [ + "\nReturns a {@link ISavedObjectsPointInTimeFinder} to help page through\nsaved objects within the specified space." + ], + "signature": [ + "(id: string) => ", + { + "pluginId": "core", + "scope": "server", + "docId": "kibCoreSavedObjectsPluginApi", + "section": "def-server.ISavedObjectsPointInTimeFinder", + "text": "ISavedObjectsPointInTimeFinder" + }, + "" + ], + "path": "x-pack/plugins/spaces/server/spaces_client/spaces_client.ts", + "deprecated": false, + "children": [ + { + "parentPluginId": "spaces", + "id": "def-server.ISpacesClient.createSavedObjectFinder.$1", + "type": "string", + "tags": [], + "label": "id", + "description": [ + "the id of the space to search." + ], + "signature": [ + "string" + ], + "path": "x-pack/plugins/spaces/server/spaces_client/spaces_client.ts", + "deprecated": false, + "isRequired": true + } + ], + "returnComment": [] + }, { "parentPluginId": "spaces", "id": "def-server.ISpacesClient.delete", diff --git a/api_docs/spaces.mdx b/api_docs/spaces.mdx index ab3ee29de2a4c..351ab8a9cc9e5 100644 --- a/api_docs/spaces.mdx +++ b/api_docs/spaces.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/spaces title: "spaces" image: https://source.unsplash.com/400x175/?github summary: API docs for the spaces plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'spaces'] 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. --- @@ -18,7 +18,7 @@ Contact [Platform Security](https://github.com/orgs/elastic/teams/kibana-securit | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 248 | 0 | 61 | 0 | +| 250 | 0 | 61 | 0 | ## Client diff --git a/api_docs/stack_alerts.mdx b/api_docs/stack_alerts.mdx index 786d1717787e1..86e42c4ca9784 100644 --- a/api_docs/stack_alerts.mdx +++ b/api_docs/stack_alerts.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/stackAlerts title: "stackAlerts" image: https://source.unsplash.com/400x175/?github summary: API docs for the stackAlerts plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackAlerts'] 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. --- diff --git a/api_docs/task_manager.devdocs.json b/api_docs/task_manager.devdocs.json index 47eeb3e55ede0..791fb94b6ffac 100644 --- a/api_docs/task_manager.devdocs.json +++ b/api_docs/task_manager.devdocs.json @@ -412,6 +412,22 @@ "path": "x-pack/plugins/task_manager/server/task.ts", "deprecated": false }, + { + "parentPluginId": "taskManager", + "id": "def-server.ConcreteTaskInstance.interval", + "type": "string", + "tags": [ + "deprecated" + ], + "label": "interval", + "description": [], + "signature": [ + "string | undefined" + ], + "path": "x-pack/plugins/task_manager/server/task.ts", + "deprecated": true, + "references": [] + }, { "parentPluginId": "taskManager", "id": "def-server.ConcreteTaskInstance.version", @@ -419,7 +435,7 @@ "tags": [], "label": "version", "description": [ - "\nThe saved object version from the Elaticsearch document." + "\nThe saved object version from the Elasticsearch document." ], "signature": [ "string | undefined" diff --git a/api_docs/task_manager.mdx b/api_docs/task_manager.mdx index a80694e3a1edd..0a060cebf89a8 100644 --- a/api_docs/task_manager.mdx +++ b/api_docs/task_manager.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/taskManager title: "taskManager" image: https://source.unsplash.com/400x175/?github summary: API docs for the taskManager plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'taskManager'] 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. --- @@ -18,7 +18,7 @@ Contact [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting- | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 70 | 0 | 32 | 7 | +| 71 | 0 | 33 | 7 | ## Server diff --git a/api_docs/telemetry.mdx b/api_docs/telemetry.mdx index 5d4592852987e..bcf333d15759a 100644 --- a/api_docs/telemetry.mdx +++ b/api_docs/telemetry.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/telemetry title: "telemetry" image: https://source.unsplash.com/400x175/?github summary: API docs for the telemetry plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetry'] 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. --- diff --git a/api_docs/telemetry_collection_manager.devdocs.json b/api_docs/telemetry_collection_manager.devdocs.json index 31436758f8bc9..b115d5bd092a2 100644 --- a/api_docs/telemetry_collection_manager.devdocs.json +++ b/api_docs/telemetry_collection_manager.devdocs.json @@ -473,13 +473,7 @@ "label": "logger", "description": [], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - }, + "Logger", " | Console" ], "path": "src/plugins/telemetry_collection_manager/server/types.ts", diff --git a/api_docs/telemetry_collection_manager.mdx b/api_docs/telemetry_collection_manager.mdx index efcd2a3f25428..bc2c0f5af00f6 100644 --- a/api_docs/telemetry_collection_manager.mdx +++ b/api_docs/telemetry_collection_manager.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/telemetryCollectionManager title: "telemetryCollectionManager" image: https://source.unsplash.com/400x175/?github summary: API docs for the telemetryCollectionManager plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionManager'] 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. --- diff --git a/api_docs/telemetry_collection_xpack.mdx b/api_docs/telemetry_collection_xpack.mdx index dcb47c2aa2a73..af0f47c295473 100644 --- a/api_docs/telemetry_collection_xpack.mdx +++ b/api_docs/telemetry_collection_xpack.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/telemetryCollectionXpack title: "telemetryCollectionXpack" image: https://source.unsplash.com/400x175/?github summary: API docs for the telemetryCollectionXpack plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionXpack'] 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. --- diff --git a/api_docs/telemetry_management_section.mdx b/api_docs/telemetry_management_section.mdx index 2e9e7cb0e2059..bbba1f0c8d9db 100644 --- a/api_docs/telemetry_management_section.mdx +++ b/api_docs/telemetry_management_section.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/telemetryManagementSection title: "telemetryManagementSection" image: https://source.unsplash.com/400x175/?github summary: API docs for the telemetryManagementSection plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryManagementSection'] 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. --- diff --git a/api_docs/timelines.devdocs.json b/api_docs/timelines.devdocs.json index a729f89d17332..afb4824423c36 100644 --- a/api_docs/timelines.devdocs.json +++ b/api_docs/timelines.devdocs.json @@ -4790,6 +4790,20 @@ "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/last_event_time/index.ts", "deprecated": false }, + { + "parentPluginId": "timelines", + "id": "def-common.LastTimeDetails.userName", + "type": "CompoundType", + "tags": [], + "label": "userName", + "description": [], + "signature": [ + "Maybe", + " | undefined" + ], + "path": "x-pack/plugins/timelines/common/search_strategy/timeline/events/last_event_time/index.ts", + "deprecated": false + }, { "parentPluginId": "timelines", "id": "def-common.LastTimeDetails.ip", diff --git a/api_docs/timelines.mdx b/api_docs/timelines.mdx index 4c9c8212941da..e31f0c1d8f6e0 100644 --- a/api_docs/timelines.mdx +++ b/api_docs/timelines.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/timelines title: "timelines" image: https://source.unsplash.com/400x175/?github summary: API docs for the timelines plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'timelines'] 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. --- @@ -18,7 +18,7 @@ Contact [Security solution](https://github.com/orgs/elastic/teams/security-solut | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 443 | 1 | 337 | 34 | +| 444 | 1 | 338 | 34 | ## Client diff --git a/api_docs/transform.mdx b/api_docs/transform.mdx index c2b6cb3b47d73..f41e3edf27439 100644 --- a/api_docs/transform.mdx +++ b/api_docs/transform.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/transform title: "transform" image: https://source.unsplash.com/400x175/?github summary: API docs for the transform plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'transform'] 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. --- diff --git a/api_docs/triggers_actions_ui.devdocs.json b/api_docs/triggers_actions_ui.devdocs.json index caabef769f7a1..f006caf3eb91d 100644 --- a/api_docs/triggers_actions_ui.devdocs.json +++ b/api_docs/triggers_actions_ui.devdocs.json @@ -1645,7 +1645,7 @@ "label": "setRuleProperty", "description": [], "signature": [ - "(key: Prop, value: ", + "(key: Prop, value: ", { "pluginId": "alerting", "scope": "common", @@ -2348,7 +2348,7 @@ "section": "def-common.AlertAction", "text": "AlertAction" }, - "[]; alertTypeId: string; consumer: string; schedule: ", + "[]; throttle: string | null; alertTypeId: string; consumer: string; schedule: ", { "pluginId": "alerting", "scope": "common", @@ -2356,7 +2356,7 @@ "section": "def-common.IntervalSchedule", "text": "IntervalSchedule" }, - "; scheduledTaskId?: string | undefined; createdBy: string | null; updatedBy: string | null; createdAt: Date; updatedAt: Date; apiKeyOwner: string | null; throttle: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\" | null; muteAll: boolean; mutedInstanceIds: string[]; executionStatus: ", + "; scheduledTaskId?: string | undefined; createdBy: string | null; updatedBy: string | null; createdAt: Date; updatedAt: Date; apiKeyOwner: string | null; notifyWhen: \"onActionGroupChange\" | \"onActiveAlert\" | \"onThrottleInterval\" | null; muteAll: boolean; mutedInstanceIds: string[]; executionStatus: ", { "pluginId": "alerting", "scope": "common", diff --git a/api_docs/triggers_actions_ui.mdx b/api_docs/triggers_actions_ui.mdx index 9d1179440a0a9..a34a9ae8bf1ac 100644 --- a/api_docs/triggers_actions_ui.mdx +++ b/api_docs/triggers_actions_ui.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/triggersActionsUi title: "triggersActionsUi" image: https://source.unsplash.com/400x175/?github summary: API docs for the triggersActionsUi plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'triggersActionsUi'] 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. --- diff --git a/api_docs/ui_actions.mdx b/api_docs/ui_actions.mdx index 0c586267445b7..e29a381c58846 100644 --- a/api_docs/ui_actions.mdx +++ b/api_docs/ui_actions.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/uiActions title: "uiActions" image: https://source.unsplash.com/400x175/?github summary: API docs for the uiActions plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActions'] 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. --- diff --git a/api_docs/ui_actions_enhanced.mdx b/api_docs/ui_actions_enhanced.mdx index 5ec1ffc4c30b9..c0da2c7d4f60f 100644 --- a/api_docs/ui_actions_enhanced.mdx +++ b/api_docs/ui_actions_enhanced.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/uiActionsEnhanced title: "uiActionsEnhanced" image: https://source.unsplash.com/400x175/?github summary: API docs for the uiActionsEnhanced plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActionsEnhanced'] 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. --- diff --git a/api_docs/url_forwarding.mdx b/api_docs/url_forwarding.mdx index 6cb1f599c8f38..aba7d3eace322 100644 --- a/api_docs/url_forwarding.mdx +++ b/api_docs/url_forwarding.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/urlForwarding title: "urlForwarding" image: https://source.unsplash.com/400x175/?github summary: API docs for the urlForwarding plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'urlForwarding'] 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. --- diff --git a/api_docs/usage_collection.devdocs.json b/api_docs/usage_collection.devdocs.json index e85341ddb7b74..6cd6a743a1afc 100644 --- a/api_docs/usage_collection.devdocs.json +++ b/api_docs/usage_collection.devdocs.json @@ -340,13 +340,7 @@ "Logger" ], "signature": [ - { - "pluginId": "@kbn/logging", - "scope": "server", - "docId": "kibKbnLoggingPluginApi", - "section": "def-server.Logger", - "text": "Logger" - } + "Logger" ], "path": "src/plugins/usage_collection/server/collector/types.ts", "deprecated": false diff --git a/api_docs/usage_collection.mdx b/api_docs/usage_collection.mdx index b916e1a578f5a..148112e4cedd7 100644 --- a/api_docs/usage_collection.mdx +++ b/api_docs/usage_collection.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/usageCollection title: "usageCollection" image: https://source.unsplash.com/400x175/?github summary: API docs for the usageCollection plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'usageCollection'] 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. --- diff --git a/api_docs/ux.devdocs.json b/api_docs/ux.devdocs.json new file mode 100644 index 0000000000000..097aa466db1fb --- /dev/null +++ b/api_docs/ux.devdocs.json @@ -0,0 +1,42 @@ +{ + "id": "ux", + "client": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [], + "start": { + "parentPluginId": "ux", + "id": "def-public.UxPluginStart", + "type": "Type", + "tags": [], + "label": "UxPluginStart", + "description": [], + "signature": [ + "void" + ], + "path": "x-pack/plugins/ux/public/plugin.ts", + "deprecated": false, + "lifecycle": "start", + "initialIsOpen": true + } + }, + "server": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + }, + "common": { + "classes": [], + "functions": [], + "interfaces": [], + "enums": [], + "misc": [], + "objects": [] + } +} \ No newline at end of file diff --git a/api_docs/ux.mdx b/api_docs/ux.mdx new file mode 100644 index 0000000000000..178021f899567 --- /dev/null +++ b/api_docs/ux.mdx @@ -0,0 +1,27 @@ +--- +id: kibUxPluginApi +slug: /kibana-dev-docs/api/ux +title: "ux" +image: https://source.unsplash.com/400x175/?github +summary: API docs for the ux plugin +date: 2022-02-11 +tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ux'] +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. +--- +import uxObj from './ux.devdocs.json'; + + + +Contact [Uptime](https://github.com/orgs/elastic/teams/uptime) for questions regarding this plugin. + +**Code health stats** + +| Public API count | Any count | Items lacking comments | Missing exports | +|-------------------|-----------|------------------------|-----------------| +| 2 | 0 | 2 | 0 | + +## Client + +### Start + + diff --git a/api_docs/vis_default_editor.mdx b/api_docs/vis_default_editor.mdx index 627d579aa53f1..39ed269626843 100644 --- a/api_docs/vis_default_editor.mdx +++ b/api_docs/vis_default_editor.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visDefaultEditor title: "visDefaultEditor" image: https://source.unsplash.com/400x175/?github summary: API docs for the visDefaultEditor plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visDefaultEditor'] 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. --- diff --git a/api_docs/vis_type_heatmap.mdx b/api_docs/vis_type_heatmap.mdx index 1a3f82e2a37c0..fae7bb9740083 100644 --- a/api_docs/vis_type_heatmap.mdx +++ b/api_docs/vis_type_heatmap.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeHeatmap title: "visTypeHeatmap" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeHeatmap plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeHeatmap'] 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. --- diff --git a/api_docs/vis_type_pie.devdocs.json b/api_docs/vis_type_pie.devdocs.json index 8bd3ecb8404ad..06336fe1b4107 100644 --- a/api_docs/vis_type_pie.devdocs.json +++ b/api_docs/vis_type_pie.devdocs.json @@ -23,11 +23,11 @@ }, "<", { - "pluginId": "expressionPie", + "pluginId": "expressionPartitionVis", "scope": "common", - "docId": "kibExpressionPiePluginApi", - "section": "def-common.PieVisParams", - "text": "PieVisParams" + "docId": "kibExpressionPartitionVisPluginApi", + "section": "def-common.PartitionVisParams", + "text": "PartitionVisParams" }, ">" ], diff --git a/api_docs/vis_type_pie.mdx b/api_docs/vis_type_pie.mdx index 7705935b83dbc..4fc45fcb6aba5 100644 --- a/api_docs/vis_type_pie.mdx +++ b/api_docs/vis_type_pie.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypePie title: "visTypePie" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypePie plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypePie'] 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. --- diff --git a/api_docs/vis_type_table.mdx b/api_docs/vis_type_table.mdx index 62de1d5690cf5..2cc7aedc0273d 100644 --- a/api_docs/vis_type_table.mdx +++ b/api_docs/vis_type_table.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeTable title: "visTypeTable" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeTable plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTable'] 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. --- diff --git a/api_docs/vis_type_timelion.mdx b/api_docs/vis_type_timelion.mdx index 03d36cf774b47..9c9cad5c2e3e5 100644 --- a/api_docs/vis_type_timelion.mdx +++ b/api_docs/vis_type_timelion.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeTimelion title: "visTypeTimelion" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeTimelion plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimelion'] 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. --- diff --git a/api_docs/vis_type_timeseries.mdx b/api_docs/vis_type_timeseries.mdx index 4b2a1d031b671..9f5ac15c84c38 100644 --- a/api_docs/vis_type_timeseries.mdx +++ b/api_docs/vis_type_timeseries.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeTimeseries title: "visTypeTimeseries" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeTimeseries plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimeseries'] 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. --- diff --git a/api_docs/vis_type_vega.mdx b/api_docs/vis_type_vega.mdx index 9830530c2ae86..631d63a22c18e 100644 --- a/api_docs/vis_type_vega.mdx +++ b/api_docs/vis_type_vega.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeVega title: "visTypeVega" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeVega plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVega'] 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. --- diff --git a/api_docs/vis_type_vislib.mdx b/api_docs/vis_type_vislib.mdx index 5b8b1f808061c..6efbe56cf250b 100644 --- a/api_docs/vis_type_vislib.mdx +++ b/api_docs/vis_type_vislib.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeVislib title: "visTypeVislib" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeVislib plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVislib'] 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. --- diff --git a/api_docs/vis_type_xy.mdx b/api_docs/vis_type_xy.mdx index 037eb01497ecb..b66a01e52859b 100644 --- a/api_docs/vis_type_xy.mdx +++ b/api_docs/vis_type_xy.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visTypeXy title: "visTypeXy" image: https://source.unsplash.com/400x175/?github summary: API docs for the visTypeXy plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeXy'] 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. --- diff --git a/api_docs/visualizations.mdx b/api_docs/visualizations.mdx index 232406797649f..c7470bc20d9e8 100644 --- a/api_docs/visualizations.mdx +++ b/api_docs/visualizations.mdx @@ -4,7 +4,7 @@ slug: /kibana-dev-docs/api/visualizations title: "visualizations" image: https://source.unsplash.com/400x175/?github summary: API docs for the visualizations plugin -date: 2022-02-01 +date: 2022-02-11 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visualizations'] 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. --- diff --git a/docs/development/core/server/kibana-plugin-core-server.elasticsearchclient.md b/docs/development/core/server/kibana-plugin-core-server.elasticsearchclient.md index f6190fb3bc055..9a04a1d581765 100644 --- a/docs/development/core/server/kibana-plugin-core-server.elasticsearchclient.md +++ b/docs/development/core/server/kibana-plugin-core-server.elasticsearchclient.md @@ -9,9 +9,5 @@ Client used to query the elasticsearch cluster. Signature: ```typescript -export declare type ElasticsearchClient = Omit & { - transport: { - request(params: TransportRequestParams, options?: TransportRequestOptions): Promise>; - }; -}; +export declare type ElasticsearchClient = Omit; ``` diff --git a/docs/settings/reporting-settings.asciidoc b/docs/settings/reporting-settings.asciidoc index 3c1b86f771064..dce53703ba8e1 100644 --- a/docs/settings/reporting-settings.asciidoc +++ b/docs/settings/reporting-settings.asciidoc @@ -11,18 +11,27 @@ You can configure `xpack.reporting` settings in your `kibana.yml` to: * <> * <> -* <> * <> * <> * <> * <> +* <> [float] [[general-reporting-settings]] ==== Enable reporting [[xpack-enable-reporting]]`xpack.reporting.enabled` {ess-icon}:: -When `true`, enables the {report-features}. The {report-features} are automatically enabled in {kib}. The default is `true`. +When `true`, enables the {report-features}. Set this to `false` to disable {report-features} entirely. The default is `true`. + +[NOTE] +============ +Disabling the {report-features} is discouraged. If you need to turn off the ability to generate reports, +configure the roles and spaces in the <>. + +If needed, you can also prevent a {kib} instance from claiming reporting work by setting +<>. +============ [float] [[encryption-keys]] @@ -46,39 +55,6 @@ The static encryption key for reporting. Use an alphanumeric text string that is xpack.reporting.encryptionKey: "something_secret" -------------------------------------------------------------------------------- -[float] -[[reporting-kibana-server-settings]] -==== {kib} server settings - -For PNG and PDF reports, Reporting opens the {kib} web interface in a headless server process to generate -screenshots of {kib} visualizations. In most cases, the default settings -work and you don't need to configure the {report-features} to communicate with {kib}. - -If your {kib} instance requires a reverse proxy (such as NGINX, Apache, etc.) for -access, because of rewrite rules or special headers being added by the proxy, -you must configure the `xpack.reporting.kibanaServer` settings to make -the headless browser process connect to the proxy. - -[NOTE] -============ -If a reverse proxy carries encrypted traffic from user -clients back to a {kib} server, the proxy port, protocol, and hostname -in `xpack.reporting.kibanaServer` must be valid for the encryption that the Reporting -browser receives. Encrypted communications fail if there are -mismatches in the host information between the request and the certificate on the server. - -Configuring the `xpack.reporting.kibanaServer` settings to point to a -proxy host requires that the {kib} server has network access to the proxy. -============ - -`xpack.reporting.kibanaServer.port`:: The port for accessing {kib}, if different from the <> value. - -`xpack.reporting.kibanaServer.protocol`:: -The protocol for accessing {kib}, typically `http` or `https`. - -[[xpack-kibanaServer-hostname]] `xpack.reporting.kibanaServer.hostname`:: -The hostname for accessing {kib}, if different from the <> value. - [float] [[reporting-job-queue-settings]] ==== Background job settings @@ -90,8 +66,11 @@ reports, you might need to change the following settings. `xpack.reporting.queue.indexInterval`:: How often the index that stores reporting jobs rolls over to a new index. Valid values are `year`, `month`, `week`, `day`, and `hour`. Defaults to `week`. -`xpack.reporting.queue.pollEnabled` {ess-icon}:: -Set to `true` (default) to enable the {kib} instance to poll the index for pending jobs and claim them for execution. Setting this to `false` allows the {kib} instance to only add new jobs to the reporting queue, list jobs, and provide the downloads to completed report through the UI. +[[xpack-reportingQueue-pollEnabled]] `xpack.reporting.queue.pollEnabled` {ess-icon}:: +When `true`, enables the {kib} instance to poll {es} for pending jobs and claim them for +execution. When `false`, allows the {kib} instance to only add new jobs to the reporting queue, list +jobs, and provide the downloads to completed reports through the UI. This requires a deployment where at least +one other {kib} instance in the Elastic cluster has this setting to `true`. The default is `true`. NOTE: Running multiple instances of {kib} in a cluster for load balancing of reporting requires identical values for <> and, if @@ -255,7 +234,7 @@ With Security enabled, Reporting has two forms of access control: each user can [NOTE] ============================================================================ -The `xpack.reporting.roles` settings are for a deprecated system of access control in Reporting. It does not allow API Keys to generate reports, and it doesn't allow {kib} application privileges. We recommend you explicitly turn off reporting's deprecated access control feature by adding `xpack.reporting.roles.enabled: false` in kibana.yml. This will enable you to create custom roles that provide application privileges for reporting, as described in <>. +The `xpack.reporting.roles` settings are for a deprecated system of access control in Reporting. Turning off this feature allows API Keys to generate reports, and allows reporting access through {kib} application privileges. We recommend you explicitly turn off reporting's deprecated access control feature by adding `xpack.reporting.roles.enabled: false` in kibana.yml. This will enable you to create custom roles that provide application privileges for reporting, as described in <>. ============================================================================ [[xpack-reporting-roles-enabled]] `xpack.reporting.roles.enabled`:: @@ -263,3 +242,26 @@ deprecated:[7.14.0,The default for this setting will be `false` in an upcoming v `xpack.reporting.roles.allow`:: deprecated:[7.14.0] In addition to superusers, specifies the roles that can generate reports using the {ref}/security-api.html#security-role-apis[{es} role management APIs]. Requires `xpack.reporting.roles.enabled` to be `true`. Defaults to `[ "reporting_user" ]`. + +[float] +[[reporting-kibana-server-settings]] +==== {kib} server settings + +To generate screenshots for PNG and PDF reports, Reporting opens the {kib} web interface using a local +connection on the server. In most cases, using a local connection to the {kib} server presents no issue. If +you prefer the headless browser to connect to {kib} using a specific hostname, there are a number of +settings that allow the headless browser to connect to {kib} through a proxy, rather than directly. + +[NOTE] +============ +The `xpack.reporting.kibanaServer` settings are optional. Take caution when editing these settings. Adding +these settings can cause the {report-features} to fail. If report fail, +inspect the server logs. The full {kib} URL that Reporting is attempting to + open is logged during report execution. +============ + +`xpack.reporting.kibanaServer.port`:: The port for accessing {kib}.port`>> value. + +`xpack.reporting.kibanaServer.protocol`:: The protocol for accessing {kib}, typically `http` or `https`. + +[[xpack-kibanaServer-hostname]] `xpack.reporting.kibanaServer.hostname`:: The hostname for accessing {kib}. diff --git a/docs/setup/configuring-reporting.asciidoc b/docs/setup/configuring-reporting.asciidoc index ca6bf19f404e5..0b2fe48670777 100644 --- a/docs/setup/configuring-reporting.asciidoc +++ b/docs/setup/configuring-reporting.asciidoc @@ -41,7 +41,7 @@ To troubleshoot the problem, start the {kib} server with environment variables t [float] [[grant-user-access]] === Grant users access to reporting -When security is enabled, you grant users access to generate reports with <>, which allow you to create custom roles that control the spaces and applications where users generate reports. +When security is enabled, you grant users access to {report-features} with <>, which allow you to create custom roles that control the spaces and applications where users generate reports. . Enable application privileges in Reporting. To enable, turn off the default user access control features in `kibana.yml`: + @@ -60,7 +60,6 @@ NOTE: If you use the default settings, you can still create a custom role that g . Specify the role settings. - .. Enter the *Role name*. For example, `custom_reporting_user`. .. Specify the *Indices* and *Privileges*. @@ -77,9 +76,14 @@ For more information, refer to {ref}/security-privileges.html[Security privilege .. Click *Customize*, then click *Analytics*. -.. Next to the applications you want to grant reporting privileges, click *All*. +.. Next each application listed, click *All* or click *Read*. You will need to enable the *Customize sub-feature +privileges* checkbox to grant reporting privileges if you select *Read*. ++ +If you’ve followed the example above, you should end up on a screen defining your customized privileges that looks like this: +[role="screenshot"] +image::user/reporting/images/kibana-privileges-with-reporting.png["Kibana privileges with Reporting options"] + -If the *Reporting* option is unavailable, contact your administrator, or <>. +NOTE: If *Reporting* options for application features are not available, contact your administrator, or <>. .. Click *Add {kib} privilege*. diff --git a/docs/user/reporting/images/kibana-privileges-with-reporting.png b/docs/user/reporting/images/kibana-privileges-with-reporting.png new file mode 100644 index 0000000000000..0675d893e4af9 Binary files /dev/null and b/docs/user/reporting/images/kibana-privileges-with-reporting.png differ diff --git a/examples/preboot_example/server/plugin.ts b/examples/preboot_example/server/plugin.ts index a3c1e9d199143..288b5245c82b1 100644 --- a/examples/preboot_example/server/plugin.ts +++ b/examples/preboot_example/server/plugin.ts @@ -114,7 +114,7 @@ export class PrebootExamplePlugin implements PrebootPlugin { try { return response.ok({ - body: (await scopedClient.asCurrentUser.security.authenticate()).body, + body: await scopedClient.asCurrentUser.security.authenticate(), }); } catch (err) { return response.customError({ statusCode: 500, body: getDetailedErrorMessage(err) }); diff --git a/logs.tar.gz b/logs.tar.gz new file mode 100644 index 0000000000000..2a1acc4b5eba1 Binary files /dev/null and b/logs.tar.gz differ diff --git a/package.json b/package.json index f7e49c48660fe..743e126289366 100644 --- a/package.json +++ b/package.json @@ -444,7 +444,7 @@ "@babel/traverse": "^7.16.10", "@babel/types": "^7.16.8", "@bazel/ibazel": "^0.15.10", - "@bazel/typescript": "^3.8.0", + "@bazel/typescript": "4.0.0", "@cypress/code-coverage": "^3.9.12", "@cypress/snapshot": "^2.1.7", "@cypress/webpack-preprocessor": "^5.6.0", diff --git a/packages/kbn-securitysolution-es-utils/src/elasticsearch_client/index.ts b/packages/kbn-securitysolution-es-utils/src/elasticsearch_client/index.ts index 95fa040142c15..90ca50aa17c22 100644 --- a/packages/kbn-securitysolution-es-utils/src/elasticsearch_client/index.ts +++ b/packages/kbn-securitysolution-es-utils/src/elasticsearch_client/index.ts @@ -9,7 +9,7 @@ // Copied from src/core/server/elasticsearch/client/types.ts // as these types aren't part of any package yet. Once they are, remove this completely -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; +import type { Client } from '@elastic/elasticsearch'; /** * Client used to query the elasticsearch cluster. @@ -17,6 +17,6 @@ import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; * @public */ export type ElasticsearchClient = Omit< - KibanaClient, - 'connectionPool' | 'transport' | 'serializer' | 'extend' | 'child' | 'close' | 'diagnostic' + Client, + 'connectionPool' | 'serializer' | 'extend' | 'child' | 'close' | 'diagnostic' >; diff --git a/packages/kbn-securitysolution-es-utils/src/get_bootstrap_index_exists/index.ts b/packages/kbn-securitysolution-es-utils/src/get_bootstrap_index_exists/index.ts index 959e38b3f7ee4..a743a9b66af54 100644 --- a/packages/kbn-securitysolution-es-utils/src/get_bootstrap_index_exists/index.ts +++ b/packages/kbn-securitysolution-es-utils/src/get_bootstrap_index_exists/index.ts @@ -22,7 +22,7 @@ export const getBootstrapIndexExists = async ( index: string ): Promise => { try { - const { body } = await esClient.indices.getAlias({ + const body = await esClient.indices.getAlias({ index: `${index}-*`, name: index, }); diff --git a/packages/kbn-securitysolution-es-utils/src/get_index_aliases/index.ts b/packages/kbn-securitysolution-es-utils/src/get_index_aliases/index.ts index 9a0d0fed1b63e..0df165a6b8b73 100644 --- a/packages/kbn-securitysolution-es-utils/src/get_index_aliases/index.ts +++ b/packages/kbn-securitysolution-es-utils/src/get_index_aliases/index.ts @@ -8,16 +8,6 @@ import type { ElasticsearchClient } from '../elasticsearch_client'; -interface AliasesResponse { - [indexName: string]: { - aliases: { - [aliasName: string]: { - is_write_index: boolean; - }; - }; - }; -} - interface IndexAlias { alias: string; index: string; @@ -39,7 +29,7 @@ export const getIndexAliases = async ({ esClient: ElasticsearchClient; alias: string; }): Promise => { - const response = await esClient.indices.getAlias( + const response = await esClient.indices.getAlias( { name: alias, }, diff --git a/packages/kbn-securitysolution-es-utils/src/get_index_count/index.ts b/packages/kbn-securitysolution-es-utils/src/get_index_count/index.ts index 59cae505bfded..6d7b35a00ae75 100644 --- a/packages/kbn-securitysolution-es-utils/src/get_index_count/index.ts +++ b/packages/kbn-securitysolution-es-utils/src/get_index_count/index.ts @@ -23,7 +23,7 @@ export const getIndexCount = async ({ esClient: ElasticsearchClient; index: string; }): Promise => { - const response = await esClient.count<{ count: number }>( + const response = await esClient.count( { index, }, diff --git a/packages/kbn-test/src/es/client_to_kibana_client.ts b/packages/kbn-test/src/es/client_to_kibana_client.ts deleted file mode 100644 index 778ee0a7705b3..0000000000000 --- a/packages/kbn-test/src/es/client_to_kibana_client.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0 and the Server Side Public License, v 1; you may not use this file except - * in compliance with, at your election, the Elastic License 2.0 or the Server - * Side Public License, v 1. - */ -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; -import type { - Client, - TransportRequestParams, - TransportRequestOptions, - TransportResult, -} from '@elastic/elasticsearch'; -import { Transport } from '@elastic/elasticsearch'; - -// remove once https://github.com/elastic/kibana/issues/116095 is addressed -class KibanaTransport extends Transport { - request(params: TransportRequestParams, options?: TransportRequestOptions) { - const opts: TransportRequestOptions = options || {}; - // Enforce the client to return TransportResult. - // It's required for bwc with responses in 7.x version. - if (opts?.meta === undefined) { - opts.meta = true; - } - return super.request(params, opts) as Promise>; - } -} - -export function convertToKibanaClient(esClient: Client): KibanaClient { - // @ts-expect-error @elastic/elasticsearch fix discrepancy between clients - return esClient.child({ - Transport: KibanaTransport, - }); -} diff --git a/packages/kbn-test/src/es/index.ts b/packages/kbn-test/src/es/index.ts index c823adaab101f..641253acc3647 100644 --- a/packages/kbn-test/src/es/index.ts +++ b/packages/kbn-test/src/es/index.ts @@ -9,6 +9,5 @@ export { createTestEsCluster } from './test_es_cluster'; export type { CreateTestEsClusterOptions, EsTestCluster, ICluster } from './test_es_cluster'; export { esTestConfig } from './es_test_config'; -export { convertToKibanaClient } from './client_to_kibana_client'; export { createEsClientForTesting, createEsClientForFtrConfig } from './es_client_for_testing'; export type { EsClientForTestingOptions } from './es_client_for_testing'; diff --git a/packages/kbn-test/src/es/test_es_cluster.ts b/packages/kbn-test/src/es/test_es_cluster.ts index 575fc965962eb..388d578c9af57 100644 --- a/packages/kbn-test/src/es/test_es_cluster.ts +++ b/packages/kbn-test/src/es/test_es_cluster.ts @@ -12,11 +12,9 @@ import del from 'del'; // @ts-expect-error in js import { Cluster } from '@kbn/es'; import { Client, HttpConnection } from '@elastic/elasticsearch'; -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; import type { ToolingLog } from '@kbn/dev-utils'; import { CI_PARALLEL_PROCESS_PREFIX } from '../ci_parallel_process_prefix'; import { esTestConfig } from './es_test_config'; -import { convertToKibanaClient } from './client_to_kibana_client'; import { KIBANA_ROOT } from '../'; @@ -53,7 +51,6 @@ export interface ICluster { stop: () => Promise; cleanup: () => Promise; getClient: () => Client; - getKibanaEsClient: () => KibanaClient; getHostUrls: () => string[]; } @@ -289,13 +286,6 @@ export function createTestEsCluster< }); } - /** - * Returns an ES Client to the configured cluster - */ - getKibanaEsClient(): KibanaClient { - return convertToKibanaClient(this.getClient()); - } - getUrl() { if (this.nodes.length > 1) { throw new Error( diff --git a/packages/kbn-test/src/index.ts b/packages/kbn-test/src/index.ts index 5efd1c1f26852..26d40f70edb78 100644 --- a/packages/kbn-test/src/index.ts +++ b/packages/kbn-test/src/index.ts @@ -34,7 +34,6 @@ export type { export { esTestConfig, createTestEsCluster, - convertToKibanaClient, createEsClientForTesting, createEsClientForFtrConfig, } from './es'; diff --git a/src/core/public/public.api.md b/src/core/public/public.api.md index d8cf4706ceb16..6d2ee9a5dd4e1 100644 --- a/src/core/public/public.api.md +++ b/src/core/public/public.api.md @@ -9,6 +9,7 @@ import { Action } from 'history'; import Boom from '@hapi/boom'; import { ByteSizeValue } from '@kbn/config-schema'; +import type { Client } from '@elastic/elasticsearch'; import { ConfigPath } from '@kbn/config'; import { DetailedPeerCertificate } from 'tls'; import type { DocLinks } from '@kbn/doc-links'; @@ -24,7 +25,6 @@ import { History as History_2 } from 'history'; import { Href } from 'history'; import { IconType } from '@elastic/eui'; import { IncomingHttpHeaders } from 'http'; -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; import { Location as Location_2 } from 'history'; import { LocationDescriptorObject } from 'history'; import { Logger } from '@kbn/logging'; @@ -44,9 +44,6 @@ import * as Rx from 'rxjs'; import { SchemaTypeError } from '@kbn/config-schema'; import type { ThemeVersion } from '@kbn/ui-shared-deps-npm'; import { TransitionPromptHook } from 'history'; -import type { TransportRequestOptions } from '@elastic/elasticsearch'; -import type { TransportRequestParams } from '@elastic/elasticsearch'; -import type { TransportResult } from '@elastic/elasticsearch'; import { Type } from '@kbn/config-schema'; import { TypeOf } from '@kbn/config-schema'; import { UiCounterMetricType } from '@kbn/analytics'; diff --git a/src/core/server/core_usage_data/core_usage_data_service.test.ts b/src/core/server/core_usage_data/core_usage_data_service.test.ts index e6e890b1a7dab..b2315a7cde281 100644 --- a/src/core/server/core_usage_data/core_usage_data_service.test.ts +++ b/src/core/server/core_usage_data/core_usage_data_service.test.ts @@ -207,47 +207,37 @@ describe('CoreUsageDataService', () => { }); service.setup({ http, metrics, savedObjectsStartPromise, changedDeprecatedConfigPath$ }); const elasticsearch = elasticsearchServiceMock.createStart(); - elasticsearch.client.asInternalUser.cat.indices.mockResolvedValueOnce({ - body: [ - { - name: '.kibana_task_manager_1', - 'docs.count': '10', - 'docs.deleted': '10', - 'store.size': '1000', - 'pri.store.size': '2000', - }, - ], - } as any); - elasticsearch.client.asInternalUser.count.mockResolvedValueOnce({ - body: { - count: '15', + elasticsearch.client.asInternalUser.cat.indices.mockResponseOnce([ + { + name: '.kibana_task_manager_1', + 'docs.count': '10', + 'docs.deleted': '10', + 'store.size': '1000', + 'pri.store.size': '2000', }, + ] as any); + elasticsearch.client.asInternalUser.count.mockResponseOnce({ + count: '15', } as any); - elasticsearch.client.asInternalUser.cat.indices.mockResolvedValueOnce({ - body: [ - { - name: '.kibana_1', - 'docs.count': '20', - 'docs.deleted': '20', - 'store.size': '2000', - 'pri.store.size': '4000', - }, - ], - } as any); - elasticsearch.client.asInternalUser.count.mockResolvedValueOnce({ - body: { - count: '10', + elasticsearch.client.asInternalUser.cat.indices.mockResponseOnce([ + { + name: '.kibana_1', + 'docs.count': '20', + 'docs.deleted': '20', + 'store.size': '2000', + 'pri.store.size': '4000', }, + ] as any); + elasticsearch.client.asInternalUser.count.mockResponseOnce({ + count: '10', } as any); - elasticsearch.client.asInternalUser.search.mockResolvedValueOnce({ - body: { - hits: { total: { value: 6 } }, - aggregations: { - aliases: { - buckets: { - active: { doc_count: 1 }, - disabled: { doc_count: 2 }, - }, + elasticsearch.client.asInternalUser.search.mockResponseOnce({ + hits: { total: { value: 6 } }, + aggregations: { + aliases: { + buckets: { + active: { doc_count: 1 }, + disabled: { doc_count: 2 }, }, }, }, diff --git a/src/core/server/core_usage_data/core_usage_data_service.ts b/src/core/server/core_usage_data/core_usage_data_service.ts index 824bfdffdceec..bdd46932fd9a9 100644 --- a/src/core/server/core_usage_data/core_usage_data_service.ts +++ b/src/core/server/core_usage_data/core_usage_data_service.ts @@ -136,12 +136,12 @@ export class CoreUsageDataService // to map back from the index to the alias. So we have to make an API // call for every alias. The document count is the lucene document count. const catIndicesResults = await elasticsearch.client.asInternalUser.cat - .indices({ + .indices({ index, format: 'JSON', bytes: 'b', }) - .then(({ body }) => { + .then((body) => { const stats = body[0]; return { @@ -160,7 +160,7 @@ export class CoreUsageDataService .count({ index, }) - .then(({ body }) => { + .then((body) => { return { savedObjectsDocsCount: body.count ? body.count : 0, }; @@ -182,7 +182,7 @@ export class CoreUsageDataService private async getSavedObjectAliasUsageData(elasticsearch: ElasticsearchServiceStart) { // Note: this agg can be changed to use `savedObjectsRepository.find` in the future after `filters` is supported. // See src/core/server/saved_objects/service/lib/aggregations/aggs_types/bucket_aggs.ts for supported aggregations. - const { body: resp } = await elasticsearch.client.asInternalUser.search< + const resp = await elasticsearch.client.asInternalUser.search< unknown, { aliases: UsageDataAggs } >({ diff --git a/src/core/server/elasticsearch/client/cluster_client.ts b/src/core/server/elasticsearch/client/cluster_client.ts index 6bf74294ab6c1..038fe109b3988 100644 --- a/src/core/server/elasticsearch/client/cluster_client.ts +++ b/src/core/server/elasticsearch/client/cluster_client.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; +import type { Client } from '@elastic/elasticsearch'; import { Logger } from '../../logging'; import { IAuthHeadersStorage, Headers, isKibanaRequest, isRealRequest } from '../../http'; import { ensureRawRequest, filterHeaders } from '../../http/router'; @@ -60,12 +60,12 @@ export interface ICustomClusterClient extends IClusterClient { export class ClusterClient implements ICustomClusterClient { private readonly config: ElasticsearchClientConfig; private readonly authHeaders?: IAuthHeadersStorage; - private readonly rootScopedClient: KibanaClient; + private readonly rootScopedClient: Client; private readonly getUnauthorizedErrorHandler: () => UnauthorizedErrorHandler | undefined; private readonly getExecutionContext: () => string | undefined; private isClosed = false; - public readonly asInternalUser: KibanaClient; + public readonly asInternalUser: Client; constructor({ config, diff --git a/src/core/server/elasticsearch/client/configure_client.ts b/src/core/server/elasticsearch/client/configure_client.ts index 58d1e228b98a0..e1e4a1846852b 100644 --- a/src/core/server/elasticsearch/client/configure_client.ts +++ b/src/core/server/elasticsearch/client/configure_client.ts @@ -7,7 +7,6 @@ */ import { Client, HttpConnection } from '@elastic/elasticsearch'; -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; import { Logger } from '../../logging'; import { parseClientOptions, ElasticsearchClientConfig } from './client_config'; import { instrumentEsQueryAndDeprecationLogger } from './log_query_and_deprecation'; @@ -28,7 +27,7 @@ export const configureClient = ( scoped?: boolean; getExecutionContext?: () => string | undefined; } -): KibanaClient => { +): Client => { const clientOptions = parseClientOptions(config, scoped); const KibanaTransport = createTransport({ getExecutionContext }); @@ -40,5 +39,5 @@ export const configureClient = ( instrumentEsQueryAndDeprecationLogger({ logger, client, type }); - return client as KibanaClient; + return client; }; diff --git a/src/core/server/elasticsearch/client/create_transport.test.ts b/src/core/server/elasticsearch/client/create_transport.test.ts index df2717e7ce9e6..ce54d8356f38b 100644 --- a/src/core/server/elasticsearch/client/create_transport.test.ts +++ b/src/core/server/elasticsearch/client/create_transport.test.ts @@ -116,7 +116,7 @@ describe('createTransport', () => { }); describe('`meta` option', () => { - it('adds `meta: true` to the options when not provided', async () => { + it('does not adds `meta: true` to the options when not provided', async () => { const transportClass = createTransportClass(); const transport = new transportClass(baseConstructorParams); const requestOptions = { method: 'GET', path: '/' }; @@ -126,7 +126,7 @@ describe('createTransport', () => { expect(transportRequestMock).toHaveBeenCalledTimes(1); expect(transportRequestMock).toHaveBeenCalledWith( expect.any(Object), - expect.objectContaining({ + expect.not.objectContaining({ meta: true, }) ); diff --git a/src/core/server/elasticsearch/client/create_transport.ts b/src/core/server/elasticsearch/client/create_transport.ts index d72fae58c88cf..7ebe61afabdd0 100644 --- a/src/core/server/elasticsearch/client/create_transport.ts +++ b/src/core/server/elasticsearch/client/create_transport.ts @@ -46,11 +46,6 @@ export const createTransport = ({ // rewrites headers['x-opaque-id'] if it presents opts.opaqueId = opaqueId; } - // Enforce the client to return TransportResult. - // It's required for bwc with responses in 7.x version. - if (opts.meta === undefined) { - opts.meta = true; - } // add stored headers to the options opts.headers = { diff --git a/src/core/server/elasticsearch/client/mocks.test.ts b/src/core/server/elasticsearch/client/mocks.test.ts index 30b50e19f6c7e..6c7f34112117c 100644 --- a/src/core/server/elasticsearch/client/mocks.test.ts +++ b/src/core/server/elasticsearch/client/mocks.test.ts @@ -47,9 +47,156 @@ describe('Mocked client', () => { it('`child` should be mocked and return a mocked Client', () => { expectMocked(client.child); - const child = client.child(); + const child = client.child({}); expect(child).not.toBe(client); expectMocked(child.search); }); + + describe('mockResponse', () => { + beforeEach(() => { + client.ping.mockReset(); + client.ping.mockResponse(true, { statusCode: 217, headers: { foo: 'bar' } }); + }); + + it('returns the body when `meta` is false', async () => { + const response = await client.ping({}, { meta: false }); + expect(response).toBe(true); + }); + it('returns the response when `meta` is true', async () => { + const response = await client.ping({}, { meta: true }); + expect(response).toEqual({ + body: true, + statusCode: 217, + headers: { foo: 'bar' }, + warnings: [], + meta: {}, + }); + }); + it('returns the body when `meta` is not provided', async () => { + const response = await client.ping({}, {}); + expect(response).toBe(true); + }); + it('mocks the response multiple times', async () => { + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(true); + }); + }); + describe('mockResponseOnce', () => { + beforeEach(() => { + client.ping.mockReset(); + client.ping.mockResponseOnce(true, { statusCode: 217, headers: { foo: 'bar' } }); + }); + + it('returns the body when `meta` is false', async () => { + const response = await client.ping({}, { meta: false }); + expect(response).toBe(true); + }); + it('returns the response when `meta` is true', async () => { + const response = await client.ping({}, { meta: true }); + expect(response).toEqual({ + body: true, + statusCode: 217, + headers: { foo: 'bar' }, + warnings: [], + meta: {}, + }); + }); + it('returns the body when `meta` is not provided', async () => { + const response = await client.ping({}, {}); + expect(response).toBe(true); + }); + it('mocks the response only once', async () => { + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(undefined); + }); + it('can be chained', async () => { + client.ping.mockReset(); + client.ping.mockResponseOnce(true); + client.ping.mockResponseOnce(false); + client.ping.mockResponseOnce(true); + + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(false); + expect(await client.ping({}, {})).toBe(true); + }); + }); + describe('mockResponseImplementation', () => { + beforeEach(() => { + client.ping.mockReset(); + client.ping.mockResponseImplementation(() => ({ + body: true, + statusCode: 217, + headers: { foo: 'bar' }, + })); + }); + + it('returns the body when `meta` is false', async () => { + const response = await client.ping({}, { meta: false }); + expect(response).toBe(true); + }); + it('returns the response when `meta` is true', async () => { + const response = await client.ping({}, { meta: true }); + expect(response).toEqual({ + body: true, + statusCode: 217, + headers: { foo: 'bar' }, + warnings: [], + meta: {}, + }); + }); + it('returns the body when `meta` is not provided', async () => { + const response = await client.ping({}, {}); + expect(response).toBe(true); + }); + it('mocks the response multiple times', async () => { + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(true); + }); + }); + describe('mockResponseImplementationOnce', () => { + beforeEach(() => { + client.ping.mockReset(); + client.ping.mockResponseImplementationOnce(() => ({ + body: true, + statusCode: 217, + headers: { foo: 'bar' }, + })); + }); + + it('returns the body when `meta` is false', async () => { + const response = await client.ping({}, { meta: false }); + expect(response).toBe(true); + }); + it('returns the response when `meta` is true', async () => { + const response = await client.ping({}, { meta: true }); + expect(response).toEqual({ + body: true, + statusCode: 217, + headers: { foo: 'bar' }, + warnings: [], + meta: {}, + }); + }); + it('returns the body when `meta` is not provided', async () => { + const response = await client.ping({}, {}); + expect(response).toBe(true); + }); + it('mocks the response only once', async () => { + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(undefined); + }); + it('can be chained', async () => { + client.ping.mockReset(); + client.ping.mockResponseImplementationOnce(() => ({ body: true })); + client.ping.mockResponseImplementationOnce(() => ({ body: false })); + client.ping.mockResponseImplementationOnce(() => ({ body: true })); + + expect(await client.ping({}, {})).toBe(true); + expect(await client.ping({}, {})).toBe(false); + expect(await client.ping({}, {})).toBe(true); + }); + }); }); diff --git a/src/core/server/elasticsearch/client/mocks.ts b/src/core/server/elasticsearch/client/mocks.ts index 4cb31438791e0..2c34629f2fd57 100644 --- a/src/core/server/elasticsearch/client/mocks.ts +++ b/src/core/server/elasticsearch/client/mocks.ts @@ -6,9 +6,8 @@ * Side Public License, v 1. */ -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; -import type { TransportResult } from '@elastic/elasticsearch'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; +import type { Client } from '@elastic/elasticsearch'; +import type { TransportResult, TransportRequestOptions } from '@elastic/elasticsearch'; import type { PublicKeys } from '@kbn/utility-types'; import { ElasticsearchClient } from './types'; import { ICustomClusterClient } from './cluster_client'; @@ -21,11 +20,110 @@ const omittedProps = [ 'transport', 'serializer', 'helpers', -] as Array>; +] as Array>; + +export type DeeplyMockedApi = { + [P in keyof T]: T[P] extends (...args: any[]) => any + ? ClientApiMockInstance, Parameters> + : DeeplyMockedApi; +} & T; + +export interface ClientApiMockInstance extends jest.MockInstance { + /** + * Helper API around `mockReturnValue` returning either the body or the whole TransportResult + * depending on the `meta` parameter used during the call + */ + mockResponse(value: Awaited, opts?: Partial, 'body'>>): this; + + /** + * Helper API around `mockReturnValueOnce` returning either the body or the whole TransportResult + * depending on the `meta` parameter used during the call + */ + mockResponseOnce(value: Awaited, opts?: Partial, 'body'>>): this; + + /** + * Helper API around `mockImplementation` returning either the body or the whole TransportResult + * depending on the `meta` parameter used during the call + */ + mockResponseImplementation(handler: (...args: Y) => Partial>>): this; + + /** + * Helper API around `mockImplementationOnce` returning either the body or the whole TransportResult + * depending on the `meta` parameter used during the call + */ + mockResponseImplementationOnce( + handler: (...args: Y) => Partial>> + ): this; +} + +const createMockedApi = < + T = unknown, + Y extends [any, TransportRequestOptions] = [any, TransportRequestOptions] +>(): ClientApiMockInstance => { + const mock: ClientApiMockInstance = jest.fn() as any; + + mock.mockResponse = (value: T, opts?: Partial, 'body'>>) => { + mock.mockImplementation((args: unknown, options?: TransportRequestOptions) => { + const meta = options?.meta ?? false; + if (meta) { + return Promise.resolve(createApiResponse({ ...opts, body: value })) as any; + } else { + return Promise.resolve(value) as Promise; + } + }); + return mock; + }; + + mock.mockResponseOnce = (value: T, opts?: Partial, 'body'>>) => { + mock.mockImplementationOnce((args: unknown, options?: TransportRequestOptions) => { + const meta = options?.meta ?? false; + if (meta) { + return Promise.resolve(createApiResponse({ ...opts, body: value })) as any; + } else { + return Promise.resolve(value) as Promise; + } + }); + return mock; + }; + + mock.mockResponseImplementation = ( + handler: (...args: Y) => Partial>> + ) => { + mock.mockImplementation((args: unknown, options?: TransportRequestOptions) => { + const meta = options?.meta ?? false; + // @ts-expect-error couldn't do better while keeping compatibility this jest.MockInstance + const response = handler(args, options); + if (meta) { + return Promise.resolve(createApiResponse(response)) as any; + } else { + return Promise.resolve(response.body ?? {}) as Promise; + } + }); + return mock; + }; + + mock.mockResponseImplementationOnce = ( + handler: (...args: Y) => Partial>> + ) => { + mock.mockImplementationOnce((args: unknown, options?: TransportRequestOptions) => { + const meta = options?.meta ?? false; + // @ts-expect-error couldn't do better while keeping compatibility this jest.MockInstance + const response = handler(args, options); + if (meta) { + return Promise.resolve(createApiResponse(response)) as any; + } else { + return Promise.resolve(response.body ?? {}) as Promise; + } + }); + return mock; + }; + + return mock; +}; // use jest.requireActual() to prevent weird errors when people mock @elastic/elasticsearch const { Client: UnmockedClient } = jest.requireActual('@elastic/elasticsearch'); -const createInternalClientMock = (res?: Promise): DeeplyMockedKeys => { +const createInternalClientMock = (res?: Promise): DeeplyMockedApi => { // we mimic 'reflection' on a concrete instance of the client to generate the mocked functions. const client = new UnmockedClient({ node: 'http://127.0.0.1', @@ -50,14 +148,16 @@ const createInternalClientMock = (res?: Promise): DeeplyMockedKeys !omitted.includes(key)) .forEach(([key, descriptor]) => { if (typeof descriptor.value === 'function') { - obj[key] = jest.fn(() => res ?? createSuccessTransportRequestPromise({})); + const mock = createMockedApi(); + mock.mockImplementation(() => res ?? createSuccessTransportRequestPromise({})); + obj[key] = mock; } else if (typeof obj[key] === 'object' && obj[key] != null) { mockify(obj[key], omitted); } }); }; - mockify(client, omittedProps); + mockify(client, omittedProps as string[]); client.close = jest.fn().mockReturnValue(Promise.resolve()); client.child = jest.fn().mockImplementation(() => createInternalClientMock()); @@ -81,10 +181,10 @@ const createInternalClientMock = (res?: Promise): DeeplyMockedKeys; + return client as DeeplyMockedApi; }; -export type ElasticsearchClientMock = DeeplyMockedKeys; +export type ElasticsearchClientMock = DeeplyMockedApi; const createClientMock = (res?: Promise): ElasticsearchClientMock => createInternalClientMock(res) as unknown as ElasticsearchClientMock; @@ -138,13 +238,12 @@ const createSuccessTransportRequestPromise = ( body: T, { statusCode = 200 }: { statusCode?: number } = {}, headers: Record = { [PRODUCT_RESPONSE_HEADER]: 'Elasticsearch' } -): Promise> => { +): Promise & T> => { const response = createApiResponse({ body, statusCode, headers }); - - return Promise.resolve(response) as Promise>; + return Promise.resolve(response) as Promise & T>; }; -const createErrorTransportRequestPromise = (err: any): Promise> => { +const createErrorTransportRequestPromise = (err: any): Promise => { return Promise.reject(err); }; diff --git a/src/core/server/elasticsearch/client/retry_call_cluster.test.ts b/src/core/server/elasticsearch/client/retry_call_cluster.test.ts index 636841316941b..c2a9dd6ab91c8 100644 --- a/src/core/server/elasticsearch/client/retry_call_cluster.test.ts +++ b/src/core/server/elasticsearch/client/retry_call_cluster.test.ts @@ -23,37 +23,27 @@ describe('retryCallCluster', () => { }); it('returns response from ES API call in case of success', async () => { - const successReturn = elasticsearchClientMock.createSuccessTransportRequestPromise({ - ...dummyBody, - }); - - client.asyncSearch.get.mockReturnValue(successReturn); + client.asyncSearch.get.mockResponseOnce(dummyBody); const result = await retryCallCluster(() => client.asyncSearch.get({} as any)); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with `NoLivingConnectionsError`', async () => { - const successReturn = elasticsearchClientMock.createSuccessTransportRequestPromise({ - ...dummyBody, - }); - client.asyncSearch.get .mockImplementationOnce(() => createErrorReturn(new errors.NoLivingConnectionsError('no living connections', {} as any)) ) - .mockImplementationOnce(() => successReturn); + .mockResponseOnce(dummyBody); const result = await retryCallCluster(() => client.asyncSearch.get({} as any)); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('rejects when ES API calls reject with other errors', async () => { client.ping .mockImplementationOnce(() => createErrorReturn(new Error('unknown error'))) - .mockImplementationOnce(() => - elasticsearchClientMock.createSuccessTransportRequestPromise({ ...dummyBody }) - ); + .mockResponseOnce(dummyBody); await expect(retryCallCluster(() => client.ping())).rejects.toMatchInlineSnapshot( `[Error: unknown error]` @@ -69,9 +59,7 @@ describe('retryCallCluster', () => { createErrorReturn(new errors.NoLivingConnectionsError('no living connections', {} as any)) ) .mockImplementationOnce(() => createErrorReturn(new Error('unknown error'))) - .mockImplementationOnce(() => - elasticsearchClientMock.createSuccessTransportRequestPromise({ ...dummyBody }) - ); + .mockResponseOnce(dummyBody); await expect(retryCallCluster(() => client.ping())).rejects.toMatchInlineSnapshot( `[Error: unknown error]` @@ -92,9 +80,7 @@ describe('migrationRetryCallCluster', () => { client.ping .mockImplementationOnce(() => createErrorReturn(error)) .mockImplementationOnce(() => createErrorReturn(error)) - .mockImplementationOnce(() => - elasticsearchClientMock.createSuccessTransportRequestPromise({ ...dummyBody }) - ); + .mockResponseOnce(dummyBody); }; it('retries ES API calls that rejects with `NoLivingConnectionsError`', async () => { @@ -103,21 +89,21 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with `ConnectionError`', async () => { mockClientPingWithErrorBeforeSuccess(new errors.ConnectionError('connection error', {} as any)); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with `TimeoutError`', async () => { mockClientPingWithErrorBeforeSuccess(new errors.TimeoutError('timeout error', {} as any)); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with 503 `ResponseError`', async () => { @@ -128,7 +114,7 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects 401 `ResponseError`', async () => { @@ -139,7 +125,7 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with 403 `ResponseError`', async () => { @@ -150,7 +136,7 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with 408 `ResponseError`', async () => { @@ -161,7 +147,7 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with 410 `ResponseError`', async () => { @@ -172,7 +158,7 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('retries ES API calls that rejects with `snapshot_in_progress_exception` `ResponseError`', async () => { @@ -188,7 +174,7 @@ describe('migrationRetryCallCluster', () => { ); const result = await migrationRetryCallCluster(() => client.ping(), logger, 1); - expect(result.body).toEqual(dummyBody); + expect(result).toEqual(dummyBody); }); it('logs only once for each unique error message', async () => { diff --git a/src/core/server/elasticsearch/client/types.ts b/src/core/server/elasticsearch/client/types.ts index e168a4a4a9c21..68fbc87193074 100644 --- a/src/core/server/elasticsearch/client/types.ts +++ b/src/core/server/elasticsearch/client/types.ts @@ -6,12 +6,7 @@ * Side Public License, v 1. */ -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; -import type { - TransportResult, - TransportRequestOptions, - TransportRequestParams, -} from '@elastic/elasticsearch'; +import type { Client } from '@elastic/elasticsearch'; /** * Client used to query the elasticsearch cluster. @@ -19,16 +14,9 @@ import type { * @public */ export type ElasticsearchClient = Omit< - KibanaClient, - 'connectionPool' | 'transport' | 'serializer' | 'extend' | 'child' | 'close' | 'diagnostic' -> & { - transport: { - request( - params: TransportRequestParams, - options?: TransportRequestOptions - ): Promise>; - }; -}; + Client, + 'connectionPool' | 'serializer' | 'extend' | 'child' | 'close' | 'diagnostic' +>; /** * All response typings are maintained until elasticsearch-js provides them out of the box diff --git a/src/core/server/elasticsearch/integration_tests/client.test.ts b/src/core/server/elasticsearch/integration_tests/client.test.ts index 05100564dac03..96a9d70d1b651 100644 --- a/src/core/server/elasticsearch/integration_tests/client.test.ts +++ b/src/core/server/elasticsearch/integration_tests/client.test.ts @@ -39,16 +39,19 @@ describe('elasticsearch clients', () => { it('does not return deprecation warning when x-elastic-product-origin header is set', async () => { // Header should be automatically set by Core const resp1 = - await kibanaServer.coreStart.elasticsearch.client.asInternalUser.indices.getSettings({ - index: '.kibana', - }); + await kibanaServer.coreStart.elasticsearch.client.asInternalUser.indices.getSettings( + { + index: '.kibana', + }, + { meta: true } + ); expect(resp1.headers).not.toHaveProperty('warning'); // Also test setting it explicitly const resp2 = await kibanaServer.coreStart.elasticsearch.client.asInternalUser.indices.getSettings( { index: '.kibana' }, - { headers: { 'x-elastic-product-origin': 'kibana' } } + { headers: { 'x-elastic-product-origin': 'kibana' }, meta: true } ); expect(resp2.headers).not.toHaveProperty('warning'); }); diff --git a/src/core/server/elasticsearch/is_scripting_enabled.test.ts b/src/core/server/elasticsearch/is_scripting_enabled.test.ts index dd84c29818556..797ff8972b7be 100644 --- a/src/core/server/elasticsearch/is_scripting_enabled.test.ts +++ b/src/core/server/elasticsearch/is_scripting_enabled.test.ts @@ -18,9 +18,7 @@ describe('isInlineScriptingEnabled', () => { }); const mockSettingsValue = (settings: estypes.ClusterGetSettingsResponse) => { - client.cluster.getSettings.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise(settings) - ); + client.cluster.getSettings.mockResolvedValue(settings); }; it('returns `true` if all settings are empty', async () => { diff --git a/src/core/server/elasticsearch/is_scripting_enabled.ts b/src/core/server/elasticsearch/is_scripting_enabled.ts index 31276a8c72aef..13685362c11ca 100644 --- a/src/core/server/elasticsearch/is_scripting_enabled.ts +++ b/src/core/server/elasticsearch/is_scripting_enabled.ts @@ -15,7 +15,7 @@ export const isInlineScriptingEnabled = async ({ }: { client: ElasticsearchClient; }): Promise => { - const { body: settings } = await client.cluster.getSettings({ + const settings = await client.cluster.getSettings({ include_defaults: true, flat_settings: true, }); diff --git a/src/core/server/elasticsearch/version_check/ensure_es_version.test.ts b/src/core/server/elasticsearch/version_check/ensure_es_version.test.ts index c9bb82d5da65c..9dfb2463f0893 100644 --- a/src/core/server/elasticsearch/version_check/ensure_es_version.test.ts +++ b/src/core/server/elasticsearch/version_check/ensure_es_version.test.ts @@ -18,10 +18,6 @@ const mockLogger = mockLoggerFactory.get('mock logger'); const KIBANA_VERSION = '5.1.0'; -const createEsSuccess = elasticsearchClientMock.createSuccessTransportRequestPromise; -const createEsErrorReturn = (err: any) => - elasticsearchClientMock.createErrorTransportRequestPromise(err); - function createNodes(...versions: string[]): NodesInfo { const nodes = {} as any; versions @@ -140,10 +136,10 @@ describe('pollEsNodesVersion', () => { const nodeInfosSuccessOnce = (infos: NodesInfo) => { // @ts-expect-error not full interface - internalClient.nodes.info.mockImplementationOnce(() => createEsSuccess(infos)); + internalClient.nodes.info.mockResponseOnce(infos); }; const nodeInfosErrorOnce = (error: any) => { - internalClient.nodes.info.mockImplementationOnce(() => createEsErrorReturn(new Error(error))); + internalClient.nodes.info.mockImplementationOnce(() => Promise.reject(new Error(error))); }; it('returns isCompatible=false and keeps polling when a poll request throws', (done) => { @@ -317,13 +313,9 @@ describe('pollEsNodesVersion', () => { expect.assertions(1); // @ts-expect-error we need to return an incompatible type to use the testScheduler here - internalClient.nodes.info.mockReturnValueOnce([ - { body: createNodes('5.1.0', '5.2.0', '5.0.0') }, - ]); + internalClient.nodes.info.mockReturnValueOnce([createNodes('5.1.0', '5.2.0', '5.0.0')]); // @ts-expect-error we need to return an incompatible type to use the testScheduler here - internalClient.nodes.info.mockReturnValueOnce([ - { body: createNodes('5.1.1', '5.2.0', '5.0.0') }, - ]); + internalClient.nodes.info.mockReturnValueOnce([createNodes('5.1.1', '5.2.0', '5.0.0')]); getTestScheduler().run(({ expectObservable }) => { const expected = 'a 99ms (b|)'; @@ -359,11 +351,11 @@ describe('pollEsNodesVersion', () => { internalClient.nodes.info.mockReturnValueOnce( // @ts-expect-error we need to return an incompatible type to use the testScheduler here - of({ body: createNodes('5.1.0', '5.2.0', '5.0.0') }).pipe(delay(100)) + of(createNodes('5.1.0', '5.2.0', '5.0.0')).pipe(delay(100)) ); internalClient.nodes.info.mockReturnValueOnce( // @ts-expect-error we need to return an incompatible type to use the testScheduler here - of({ body: createNodes('5.1.1', '5.2.0', '5.0.0') }).pipe(delay(100)) + of(createNodes('5.1.1', '5.2.0', '5.0.0')).pipe(delay(100)) ); const esNodesCompatibility$ = pollEsNodesVersion({ diff --git a/src/core/server/elasticsearch/version_check/ensure_es_version.ts b/src/core/server/elasticsearch/version_check/ensure_es_version.ts index b21c3544afa9a..5a1856b35acd6 100644 --- a/src/core/server/elasticsearch/version_check/ensure_es_version.ts +++ b/src/core/server/elasticsearch/version_check/ensure_es_version.ts @@ -120,6 +120,7 @@ export function mapNodesVersionCompatibility( kibanaVersion, }; } + // Returns true if NodesVersionCompatibility nodesInfoRequestError is the same function compareNodesInfoErrorMessages( prev: NodesVersionCompatibility, @@ -127,6 +128,7 @@ function compareNodesInfoErrorMessages( ): boolean { return prev.nodesInfoRequestError?.message === curr.nodesInfoRequestError?.message; } + // Returns true if two NodesVersionCompatibility entries match function compareNodes(prev: NodesVersionCompatibility, curr: NodesVersionCompatibility) { const nodesEqual = (n: NodeInfo, m: NodeInfo) => n.ip === m.ip && n.version === m.version; @@ -152,11 +154,10 @@ export const pollEsNodesVersion = ({ return timer(0, healthCheckInterval).pipe( exhaustMap(() => { return from( - internalClient.nodes.info({ + internalClient.nodes.info({ filter_path: ['nodes.*.version', 'nodes.*.http.publish_address', 'nodes.*.ip'], }) ).pipe( - map(({ body }) => body), catchError((nodesInfoRequestError) => { return of({ nodes: {}, nodesInfoRequestError }); }) diff --git a/src/core/server/execution_context/integration_tests/tracing.test.ts b/src/core/server/execution_context/integration_tests/tracing.test.ts index 7a54315204a6b..4aef2e815fa30 100644 --- a/src/core/server/execution_context/integration_tests/tracing.test.ts +++ b/src/core/server/execution_context/integration_tests/tracing.test.ts @@ -58,7 +58,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asInternalUser.ping(); + const { headers } = await context.core.elasticsearch.client.asInternalUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -80,7 +83,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -102,7 +108,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asInternalUser.ping(); + const { headers } = await context.core.elasticsearch.client.asInternalUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -120,7 +129,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -142,6 +154,7 @@ describe('trace', () => { {}, { opaqueId: 'new-opaque-id', + meta: true, } ); return res.ok({ body: headers || {} }); @@ -183,7 +196,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -206,7 +222,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { executionContext.set(parentContext); - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: { context: executionContext.get()?.toJSON(), @@ -319,7 +338,10 @@ describe('trace', () => { router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { executionContext.set(parentContext); await delay(id-- * 100); - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -429,7 +451,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -450,7 +475,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asInternalUser.ping(); + const { headers } = await context.core.elasticsearch.client.asInternalUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -471,7 +499,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -494,7 +525,10 @@ describe('trace', () => { const router = createRouter(''); router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { executionContext.set(parentContext); - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -523,7 +557,10 @@ describe('trace', () => { }; router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { executionContext.set(ctx); - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return res.ok({ body: headers || {} }); }); @@ -591,7 +628,7 @@ describe('trace', () => { }; router.get({ path: '/execution-context', validate: false }, async (context, req, res) => { const { headers } = await executionContext.withContext(newContext, () => - context.core.elasticsearch.client.asCurrentUser.ping() + context.core.elasticsearch.client.asCurrentUser.ping({}, { meta: true }) ); return res.ok({ body: headers || {} }); }); diff --git a/src/core/server/http/integration_tests/core_services.test.ts b/src/core/server/http/integration_tests/core_services.test.ts index 4bf64a96cf773..8bf0908ae4dc7 100644 --- a/src/core/server/http/integration_tests/core_services.test.ts +++ b/src/core/server/http/integration_tests/core_services.test.ts @@ -297,7 +297,9 @@ describe('http service', () => { const router = createRouter('/new-platform'); router.get({ path: '/', validate: false }, async (context, req, res) => { try { - const result = await elasticsearch.client.asScoped(req).asInternalUser.ping(); + const result = await elasticsearch.client + .asScoped(req) + .asInternalUser.ping({}, { meta: true }); return res.ok({ body: result, }); diff --git a/src/core/server/mocks.ts b/src/core/server/mocks.ts index 515f5bdb28586..32c0729dcae34 100644 --- a/src/core/server/mocks.ts +++ b/src/core/server/mocks.ts @@ -63,6 +63,8 @@ export { deprecationsServiceMock } from './deprecations/deprecations_service.moc export { executionContextServiceMock } from './execution_context/execution_context_service.mock'; export { docLinksServiceMock } from './doc_links/doc_links_service.mock'; +export type { ElasticsearchClientMock } from './elasticsearch/client/mocks'; + type MockedPluginInitializerConfig = jest.Mocked['config']>; export function pluginInitializerContextConfigMock(config: T) { diff --git a/src/core/server/saved_objects/deprecations/unknown_object_types.test.ts b/src/core/server/saved_objects/deprecations/unknown_object_types.test.ts index 5b2687262ab36..749ec58bcbfed 100644 --- a/src/core/server/saved_objects/deprecations/unknown_object_types.test.ts +++ b/src/core/server/saved_objects/deprecations/unknown_object_types.test.ts @@ -48,9 +48,7 @@ describe('unknown saved object types deprecation', () => { describe('getUnknownTypesDeprecations', () => { beforeEach(() => { - esClient.asInternalUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise(createSearchResponse(0)) - ); + esClient.asInternalUser.search.mockResponse(createSearchResponse(0)); }); it('calls `esClient.asInternalUser.search` with the correct parameters', async () => { @@ -76,9 +74,7 @@ describe('unknown saved object types deprecation', () => { }); it('returns no deprecation if no unknown type docs are found', async () => { - esClient.asInternalUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise(createSearchResponse(0)) - ); + esClient.asInternalUser.search.mockResponse(createSearchResponse(0)); const deprecations = await getUnknownTypesDeprecations({ esClient, @@ -91,9 +87,7 @@ describe('unknown saved object types deprecation', () => { }); it('returns a deprecation if any unknown type docs are found', async () => { - esClient.asInternalUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise(createSearchResponse(1)) - ); + esClient.asInternalUser.search.mockResponse(createSearchResponse(1)); const deprecations = await getUnknownTypesDeprecations({ esClient, diff --git a/src/core/server/saved_objects/deprecations/unknown_object_types.ts b/src/core/server/saved_objects/deprecations/unknown_object_types.ts index 8815065984a27..28dbc4dcd41fa 100644 --- a/src/core/server/saved_objects/deprecations/unknown_object_types.ts +++ b/src/core/server/saved_objects/deprecations/unknown_object_types.ts @@ -74,7 +74,7 @@ const getUnknownSavedObjects = async ({ }); const query = getUnknownTypesQuery(knownTypes); - const { body } = await esClient.asInternalUser.search({ + const body = await esClient.asInternalUser.search({ index: targetIndices, body: { size: 10000, diff --git a/src/core/server/saved_objects/import/lib/check_origin_conflicts.test.ts b/src/core/server/saved_objects/import/lib/check_origin_conflicts.test.ts index 6c633b1a119d1..12aa9f668a586 100644 --- a/src/core/server/saved_objects/import/lib/check_origin_conflicts.test.ts +++ b/src/core/server/saved_objects/import/lib/check_origin_conflicts.test.ts @@ -13,6 +13,7 @@ import { SavedObjectReference, SavedObject, SavedObjectsImportFailure, + SavedObjectsImportRetry, } from '../../types'; import { checkOriginConflicts } from './check_origin_conflicts'; import { savedObjectsClientMock } from '../../../mocks'; @@ -65,6 +66,7 @@ describe('#checkOriginConflicts', () => { ignoreRegularConflicts?: boolean; importStateMap?: ImportStateMap; pendingOverwrites?: Set; + retries?: SavedObjectsImportRetry[]; }): CheckOriginConflictsParams => { savedObjectsClient = savedObjectsClientMock.create(); find = savedObjectsClient.find; @@ -122,6 +124,24 @@ describe('#checkOriginConflicts', () => { expect(find).not.toHaveBeenCalled(); }); + test('does not execute searches for multi-namespace objects that have a retry with a destinationId specified', async () => { + const objects = [multiNsObj, multiNsObjWithOriginId]; + const params = setupParams({ + objects, + retries: [ + { type: multiNsObj.type, id: multiNsObj.id, destinationId: 'doesnt-matter' }, + { + type: multiNsObjWithOriginId.type, + id: multiNsObjWithOriginId.id, + destinationId: 'doesnt-matter', + }, + ] as SavedObjectsImportRetry[], + }); + + await checkOriginConflicts(params); + expect(find).not.toHaveBeenCalled(); + }); + test('executes searches for multi-namespace objects', async () => { const objects = [multiNsObj, otherObj, multiNsObjWithOriginId, otherObjWithOriginId]; const params1 = setupParams({ objects }); @@ -205,6 +225,65 @@ describe('#checkOriginConflicts', () => { expect(checkOriginConflictsResult).toEqual(expectedResult); }); + describe('retries', () => { + // retries are only defined when called from resolveSavedObjectsImportErrors + test('filters inexact matches of other retries ("retryDestinations" check)', async () => { + // obj1 and obj2 exist in this space + // try to import obj3 and obj4; simulating a scenario where they both share an origin, but obj3 is being retried with the + // destinationId of obj1, and obj2 is being retried without a destinationId + const obj1 = createObject(MULTI_NS_TYPE, 'id-1', 'some-originId'); + const obj2 = createObject(MULTI_NS_TYPE, 'id-2', 'some-originId'); + const obj3 = createObject(MULTI_NS_TYPE, 'id-3', 'some-originId'); + const obj4 = createObject(MULTI_NS_TYPE, 'id-4', 'some-originId'); + const objects = [obj3, obj4]; + const params = setupParams({ + objects, + importStateMap: new Map([ + [`${obj3.type}:${obj3.id}`, {}], + [`${obj4.type}:${obj4.id}`, {}], + ]), + pendingOverwrites: new Set([`${obj3.type}:${obj3.id}`]), + retries: [ + { type: obj3.type, id: obj3.id, destinationId: obj1.id, overwrite: true }, // if obj1 already exists, this would have had to have overwrite=true to pass the earlier call to checkConflicts without an error + { type: obj4.type, id: obj4.id }, + ] as SavedObjectsImportRetry[], + }); + // find is skipped for obj1 because it has a retry with a destinationId + mockFindResult(obj1, obj2); // find for obj4: the result is an inexact match with two destinations, but obj1 is matched by obj3 -- accordingly, obj4 has an inexact match to obj2 + + const checkOriginConflictsResult = await checkOriginConflicts(params); + const expectedResult = { + importStateMap: new Map(), + errors: [createConflictError(obj4, obj2.id)], + pendingOverwrites: new Set(), // does not capture obj3 because that would have been captured in pendingOverwrites for the checkConflicts function + }; + expect(checkOriginConflictsResult).toEqual(expectedResult); + }); + + test('does not return a conflict error when a retry has overwrite=true', async () => { + // obj1 exists in this space + // try to import 2; simulating a scenario where they both share an origin + const obj1 = createObject(MULTI_NS_TYPE, 'id-1', 'some-originId'); + const obj2 = createObject(MULTI_NS_TYPE, 'id-2', 'some-originId'); + const objects = [obj2]; + const params = setupParams({ + objects, + importStateMap: new Map([[`${obj2.type}:${obj2.id}`, {}]]), + pendingOverwrites: new Set(), // obj2 wouldn't be included in pendingOverwrites from the earlier call to checkConflicts because obj2 doesn't exist + retries: [{ type: obj2.type, id: obj2.id, overwrite: true }] as SavedObjectsImportRetry[], + }); + mockFindResult(obj1); // find for obj2: the result is an inexact match with one destination -- accordingly, obj2 has an inexact match to obj1 + + const checkOriginConflictsResult = await checkOriginConflicts(params); + const expectedResult = { + importStateMap: new Map([[`${obj2.type}:${obj2.id}`, { destinationId: obj1.id }]]), + errors: [], + pendingOverwrites: new Set([`${obj2.type}:${obj2.id}`]), + }; + expect(checkOriginConflictsResult).toEqual(expectedResult); + }); + }); + describe('object result without a `importStateMap` entry (no match or exact match)', () => { test('returns object when no match is detected (0 hits)', async () => { // no objects exist in this space diff --git a/src/core/server/saved_objects/import/lib/check_origin_conflicts.ts b/src/core/server/saved_objects/import/lib/check_origin_conflicts.ts index f1bb1afb2e3e4..46d38f7c44e5e 100644 --- a/src/core/server/saved_objects/import/lib/check_origin_conflicts.ts +++ b/src/core/server/saved_objects/import/lib/check_origin_conflicts.ts @@ -8,8 +8,14 @@ import pMap from 'p-map'; import { v4 as uuidv4 } from 'uuid'; -import { SavedObject, SavedObjectsClientContract, SavedObjectsImportFailure } from '../../types'; +import type { + SavedObject, + SavedObjectsClientContract, + SavedObjectsImportFailure, + SavedObjectsImportRetry, +} from '../../types'; import { ISavedObjectTypeRegistry } from '../../saved_objects_type_registry'; +import { getObjectKey } from '../../service/lib/internal_utils'; import type { ImportStateMap } from './types'; import { createOriginQuery } from './utils'; @@ -21,11 +27,17 @@ interface CheckOriginConflictsParams { ignoreRegularConflicts?: boolean; importStateMap: ImportStateMap; pendingOverwrites: Set; + retries?: SavedObjectsImportRetry[]; } -type CheckOriginConflictParams = Omit & { +type CheckOriginConflictParams = Omit< + CheckOriginConflictsParams, + 'objects' | 'importIdMap' | 'retries' +> & { object: SavedObject<{ title?: string }>; objectIdsBeingImported: Set; + retryMap: Map; + retryDestinations: Set; }; interface InexactMatch { @@ -64,7 +76,7 @@ const transformObjectsToAmbiguousConflictFields = ( return a.id < b.id ? -1 : 1; // ascending }); const getAmbiguousConflictSourceKey = ({ object }: InexactMatch) => - `${object.type}:${object.originId || object.id}`; + getObjectKey({ type: object.type, id: object.originId || object.id }); /** * Make a search request for an import object to check if any objects of this type that match this object's `originId` or `id` exist in the @@ -85,12 +97,27 @@ const checkOriginConflict = async ( namespace, objectIdsBeingImported, pendingOverwrites, + retryMap, + retryDestinations, } = params; const { type, originId, id } = object; - if (!typeRegistry.isMultiNamespace(type) || pendingOverwrites.has(`${type}:${id}`)) { + const key = getObjectKey(object); + const retry = retryMap.get(key); + if ( + !typeRegistry.isMultiNamespace(type) || + pendingOverwrites.has(key) || + !!retry?.destinationId + ) { // Skip the search request for non-multi-namespace types, since by definition they cannot have inexact matches or ambiguous conflicts. // Also skip the search request for objects that we've already determined have an "exact match" conflict. + // Finally, skip the search request for objects that have specified a destinationId for a retry. + + // The checkConflicts function is always called before this one. There are three situations where a retry would have a destinationId: + // 1. retry with overwrite=false, where the object already exists -> checkConflicts would return a conflict error + // 2. retry with overwrite=true, where the object already exists -> checkConflicts would add an entry to pendingOverwrites + // 3. retry where the object *doesn't* exist -> checkConflicts wouldn't return an error _or_ add an entry to pendingOverwrites + // Scenario (3) is why we check to see if there is a retry destinationId and skip the origin check in that case. return { tag: 'right', value: object }; } @@ -111,9 +138,10 @@ const checkOriginConflict = async ( return { tag: 'right', value: object }; } // This is an "inexact match" so far; filter the conflict destination(s) to exclude any that exactly match other objects we are importing. - const objects = savedObjects.filter( - (obj) => !objectIdsBeingImported.has(`${obj.type}:${obj.id}`) - ); + const objects = savedObjects.filter((obj) => { + const destKey = getObjectKey(obj); + return !objectIdsBeingImported.has(destKey) && !retryDestinations.has(destKey); + }); const destinations = transformObjectsToAmbiguousConflictFields(objects); if (destinations.length === 0) { // No conflict destinations remain after filtering, so this is a "no match" result. @@ -140,16 +168,30 @@ const checkOriginConflict = async ( * will allow `createSavedObjects` to modify the ID before creating the object (thus ensuring a conflict during). * B. Otherwise, this is an "ambiguous conflict" result; return an error. */ -export async function checkOriginConflicts({ objects, ...params }: CheckOriginConflictsParams) { +export async function checkOriginConflicts({ + objects, + retries = [], + ...params +}: CheckOriginConflictsParams) { const objectIdsBeingImported = new Set(); for (const [key, { isOnlyReference }] of params.importStateMap.entries()) { if (!isOnlyReference) { objectIdsBeingImported.add(key); } } + const retryMap = retries.reduce( + (acc, cur) => acc.set(getObjectKey(cur), cur), + new Map() + ); + const retryDestinations = retries.reduce((acc, cur) => { + if (cur.destinationId) { + acc.add(getObjectKey({ type: cur.type, id: cur.destinationId })); + } + return acc; + }, new Set()); // Check each object for possible destination conflicts, ensuring we don't too many concurrent searches running. const mapper = async (object: SavedObject<{ title?: string }>) => - checkOriginConflict({ object, objectIdsBeingImported, ...params }); + checkOriginConflict({ object, objectIdsBeingImported, retryMap, retryDestinations, ...params }); const checkOriginConflictResults = await pMap(objects, mapper, { concurrency: MAX_CONCURRENT_SEARCHES, }); @@ -170,17 +212,18 @@ export async function checkOriginConflicts({ objects, ...params }: CheckOriginCo if (!isLeft(result)) { return; } - const key = getAmbiguousConflictSourceKey(result.value); + const ambiguousConflictsSourceKey = getAmbiguousConflictSourceKey(result.value); const sources = transformObjectsToAmbiguousConflictFields( - ambiguousConflictSourcesMap.get(key)! + ambiguousConflictSourcesMap.get(ambiguousConflictsSourceKey)! ); const { object, destinations } = result.value; const { type, id, attributes } = object; if (sources.length === 1 && destinations.length === 1) { // This is a simple "inexact match" result -- a single import object has a single destination conflict. - if (params.ignoreRegularConflicts) { - importStateMap.set(`${type}:${id}`, { destinationId: destinations[0].id }); - pendingOverwrites.add(`${type}:${id}`); + const key = getObjectKey(object); + if (params.ignoreRegularConflicts || retryMap.get(key)?.overwrite) { + importStateMap.set(key, { destinationId: destinations[0].id }); + pendingOverwrites.add(key); } else { const { title } = attributes; errors.push({ @@ -203,7 +246,7 @@ export async function checkOriginConflicts({ objects, ...params }: CheckOriginCo if (sources.length > 1) { // In the case of ambiguous source conflicts, don't treat them as errors; instead, regenerate the object ID and reset its origin // (e.g., the same outcome as if `createNewCopies` was enabled for the entire import operation). - importStateMap.set(`${type}:${id}`, { destinationId: uuidv4(), omitOriginId: true }); + importStateMap.set(getObjectKey(object), { destinationId: uuidv4(), omitOriginId: true }); return; } const { title } = attributes; diff --git a/src/core/server/saved_objects/import/resolve_import_errors.test.mock.ts b/src/core/server/saved_objects/import/resolve_import_errors.test.mock.ts index 3cf4de850f4df..21eadaaf2231a 100644 --- a/src/core/server/saved_objects/import/resolve_import_errors.test.mock.ts +++ b/src/core/server/saved_objects/import/resolve_import_errors.test.mock.ts @@ -13,6 +13,7 @@ import type { collectSavedObjects } from './lib/collect_saved_objects'; import type { regenerateIds } from './lib/regenerate_ids'; import type { validateReferences } from './lib/validate_references'; import type { checkConflicts } from './lib/check_conflicts'; +import type { checkOriginConflicts } from './lib/check_origin_conflicts'; import type { getImportStateMapForRetries } from './lib/get_import_state_map_for_retries'; import type { splitOverwrites } from './lib/split_overwrites'; import type { createSavedObjects } from './lib/create_saved_objects'; @@ -55,6 +56,13 @@ jest.mock('./lib/check_conflicts', () => ({ checkConflicts: mockCheckConflicts, })); +export const mockCheckOriginConflicts = jest.fn() as jest.MockedFunction< + typeof checkOriginConflicts +>; +jest.mock('./lib/check_origin_conflicts', () => ({ + checkOriginConflicts: mockCheckOriginConflicts, +})); + export const mockGetImportStateMapForRetries = jest.fn() as jest.MockedFunction< typeof getImportStateMapForRetries >; diff --git a/src/core/server/saved_objects/import/resolve_import_errors.test.ts b/src/core/server/saved_objects/import/resolve_import_errors.test.ts index d950545de54f9..5218def19852a 100644 --- a/src/core/server/saved_objects/import/resolve_import_errors.test.ts +++ b/src/core/server/saved_objects/import/resolve_import_errors.test.ts @@ -14,6 +14,7 @@ import { mockRegenerateIds, mockValidateReferences, mockCheckConflicts, + mockCheckOriginConflicts, mockGetImportStateMapForRetries, mockSplitOverwrites, mockCreateSavedObjects, @@ -56,7 +57,12 @@ describe('#importSavedObjectsFromStream', () => { errors: [], filteredObjects: [], importStateMap: new Map(), - pendingOverwrites: new Set(), // not used by resolveImportErrors, but is a required return type + pendingOverwrites: new Set(), + }); + mockCheckOriginConflicts.mockResolvedValue({ + errors: [], + importStateMap: new Map(), + pendingOverwrites: new Set(), }); mockGetImportStateMapForRetries.mockReturnValue(new Map()); mockSplitOverwrites.mockReturnValue({ @@ -304,6 +310,32 @@ describe('#importSavedObjectsFromStream', () => { expect(mockCheckConflicts).toHaveBeenCalledWith(checkConflictsParams); }); + test('checks origin conflicts', async () => { + const retries = [createRetry()]; + const options = setupOptions({ retries }); + const filteredObjects = [createObject()]; + const importStateMap = new Map(); + const pendingOverwrites = new Set(); + mockCheckConflicts.mockResolvedValue({ + errors: [], + filteredObjects, + importStateMap, + pendingOverwrites, + }); + + await resolveSavedObjectsImportErrors(options); + const checkOriginConflictsParams = { + objects: filteredObjects, + savedObjectsClient, + typeRegistry, + namespace, + importStateMap, + pendingOverwrites, + retries, + }; + expect(mockCheckOriginConflicts).toHaveBeenCalledWith(checkOriginConflictsParams); + }); + test('gets import ID map for retries', async () => { const retries = [createRetry()]; const createNewCopies = Symbol() as unknown as boolean; @@ -313,7 +345,7 @@ describe('#importSavedObjectsFromStream', () => { errors: [], filteredObjects, importStateMap: new Map(), - pendingOverwrites: new Set(), // not used by resolveImportErrors, but is a required return type + pendingOverwrites: new Set(), }); await resolveSavedObjectsImportErrors(options); @@ -357,28 +389,49 @@ describe('#importSavedObjectsFromStream', () => { test('creates saved objects', async () => { const options = setupOptions(); - const errors = [createError(), createError(), createError()]; + const errors = [createError(), createError(), createError(), createError()]; mockCollectSavedObjects.mockResolvedValue({ errors: [errors[0]], collectedObjects: [], // doesn't matter - importStateMap: new Map(), // doesn't matter + importStateMap: new Map([ + ['a', {}], + ['b', {}], + ['c', {}], + ['d', { isOnlyReference: true }], + ]), + }); + mockCheckReferenceOrigins.mockResolvedValue({ + importStateMap: new Map([['d', { isOnlyReference: true, destinationId: 'newId-d' }]]), }); mockValidateReferences.mockResolvedValue([errors[1]]); mockCheckConflicts.mockResolvedValue({ errors: [errors[2]], filteredObjects: [], - importStateMap: new Map([['foo', { destinationId: 'someId' }]]), - pendingOverwrites: new Set(), // not used by resolveImportErrors, but is a required return type + importStateMap: new Map([ + ['b', { destinationId: 'newId-b2' }], + ['c', { destinationId: 'newId-c2' }], + ]), + pendingOverwrites: new Set(), + }); + mockCheckOriginConflicts.mockResolvedValue({ + errors: [errors[3]], + importStateMap: new Map([['c', { destinationId: 'newId-c3' }]]), + pendingOverwrites: new Set(), }); mockGetImportStateMapForRetries.mockReturnValue( new Map([ - ['foo', { destinationId: 'newId' }], - ['bar', { destinationId: 'anotherNewId' }], + ['a', { destinationId: 'newId-a1' }], + ['b', { destinationId: 'newId-b1' }], + ['c', { destinationId: 'newId-c1' }], ]) ); + + // assert that the importStateMap is correctly composed of the results from the four modules const importStateMap = new Map([ - ['foo', { destinationId: 'someId' }], - ['bar', { destinationId: 'anotherNewId' }], + ['a', { destinationId: 'newId-a1' }], + ['b', { destinationId: 'newId-b2' }], + ['c', { destinationId: 'newId-c3' }], + ['d', { isOnlyReference: true, destinationId: 'newId-d' }], ]); const objectsToOverwrite = [createObject()]; const objectsToNotOverwrite = [createObject()]; @@ -421,6 +474,19 @@ describe('#importSavedObjectsFromStream', () => { expect(mockRegenerateIds).toHaveBeenCalledWith(collectedObjects); }); + test('does not check origin conflicts', async () => { + const options = setupOptions({ createNewCopies: true }); + const collectedObjects = [createObject()]; + mockCollectSavedObjects.mockResolvedValue({ + errors: [], + collectedObjects, + importStateMap: new Map(), // doesn't matter + }); + + await resolveSavedObjectsImportErrors(options); + expect(mockCheckOriginConflicts).not.toHaveBeenCalled(); + }); + test('creates saved objects', async () => { const options = setupOptions({ createNewCopies: true }); const errors = [createError(), createError(), createError()]; @@ -428,42 +494,42 @@ describe('#importSavedObjectsFromStream', () => { errors: [errors[0]], collectedObjects: [], // doesn't matter importStateMap: new Map([ - ['foo', {}], - ['bar', {}], - ['baz', {}], - ['qux', { isOnlyReference: true }], + ['a', {}], + ['b', {}], + ['c', {}], + ['d', { isOnlyReference: true }], ]), }); mockCheckReferenceOrigins.mockResolvedValue({ - importStateMap: new Map([['qux', { isOnlyReference: true, destinationId: 'newId1' }]]), + importStateMap: new Map([['d', { isOnlyReference: true, destinationId: 'newId-d' }]]), }); mockValidateReferences.mockResolvedValue([errors[1]]); mockRegenerateIds.mockReturnValue( new Map([ - ['foo', { destinationId: 'randomId1' }], - ['bar', { destinationId: 'randomId2' }], - ['baz', { destinationId: 'randomId3' }], + ['a', { destinationId: 'randomId-a' }], + ['b', { destinationId: 'randomId-b' }], + ['c', { destinationId: 'randomId-c' }], ]) ); mockCheckConflicts.mockResolvedValue({ errors: [errors[2]], filteredObjects: [], - importStateMap: new Map([['bar', { destinationId: 'someId' }]]), - pendingOverwrites: new Set(), // not used by resolveImportErrors, but is a required return type + importStateMap: new Map([['c', { destinationId: 'newId-c2' }]]), + pendingOverwrites: new Set(), }); mockGetImportStateMapForRetries.mockReturnValue( new Map([ - ['bar', { destinationId: 'newId2' }], // this is overridden by the checkConflicts result - ['baz', { destinationId: 'newId3' }], + ['b', { destinationId: 'newId-b1' }], + ['c', { destinationId: 'newId-c1' }], ]) ); // assert that the importStateMap is correctly composed of the results from the five modules const importStateMap = new Map([ - ['foo', { destinationId: 'randomId1' }], - ['bar', { destinationId: 'someId' }], - ['baz', { destinationId: 'newId3' }], - ['qux', { isOnlyReference: true, destinationId: 'newId1' }], + ['a', { destinationId: 'randomId-a' }], + ['b', { destinationId: 'newId-b1' }], + ['c', { destinationId: 'newId-c2' }], + ['d', { isOnlyReference: true, destinationId: 'newId-d' }], ]); const objectsToOverwrite = [createObject()]; const objectsToNotOverwrite = [createObject()]; diff --git a/src/core/server/saved_objects/import/resolve_import_errors.ts b/src/core/server/saved_objects/import/resolve_import_errors.ts index 61fbde5bb9d87..99daf2113e287 100644 --- a/src/core/server/saved_objects/import/resolve_import_errors.ts +++ b/src/core/server/saved_objects/import/resolve_import_errors.ts @@ -27,6 +27,8 @@ import { getImportStateMapForRetries, checkConflicts, executeImportHooks, + checkOriginConflicts, + ImportStateMap, } from './lib'; /** @@ -150,6 +152,24 @@ export async function resolveSavedObjectsImportErrors({ }; const checkConflictsResult = await checkConflicts(checkConflictsParams); errorAccumulator = [...errorAccumulator, ...checkConflictsResult.errors]; + importStateMap = new Map([...importStateMap, ...checkConflictsResult.importStateMap]); + + let originConflictsImportStateMap: ImportStateMap = new Map(); + if (!createNewCopies) { + // If createNewCopies is *not* enabled, check multi-namespace object types for origin conflicts in this namespace + const checkOriginConflictsParams = { + objects: checkConflictsResult.filteredObjects, + savedObjectsClient, + typeRegistry, + namespace, + importStateMap, + pendingOverwrites: checkConflictsResult.pendingOverwrites, + retries, + }; + const checkOriginConflictsResult = await checkOriginConflicts(checkOriginConflictsParams); + errorAccumulator = [...errorAccumulator, ...checkOriginConflictsResult.errors]; + originConflictsImportStateMap = checkOriginConflictsResult.importStateMap; + } // Check multi-namespace object types for regular conflicts and ambiguous conflicts const getImportStateMapForRetriesParams = { @@ -161,7 +181,9 @@ export async function resolveSavedObjectsImportErrors({ importStateMap = new Map([ ...importStateMap, ...importStateMapForRetries, - ...checkConflictsResult.importStateMap, // this importStateMap takes precedence over the others + // the importStateMap entries from checkConflicts and checkOriginConflicts take precedence over the others + ...checkConflictsResult.importStateMap, + ...originConflictsImportStateMap, ]); // Bulk create in two batches, overwrites and non-overwrites diff --git a/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.test.ts b/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.test.ts index 57a1f54925d47..7f2cfa01ec42f 100644 --- a/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.test.ts +++ b/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.test.ts @@ -21,7 +21,7 @@ describe('bulkOverwriteTransformedDocuments', () => { it('resolves with `right:bulk_index_succeeded` if no error is encountered', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + Promise.resolve({ items: [ { index: { @@ -52,7 +52,7 @@ describe('bulkOverwriteTransformedDocuments', () => { it('resolves with `right:bulk_index_succeeded` if version conflict errors are encountered', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + Promise.resolve({ items: [ { index: { @@ -113,7 +113,7 @@ describe('bulkOverwriteTransformedDocuments', () => { it('resolves with `left:target_index_had_write_block` if all errors are write block exceptions', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + Promise.resolve({ items: [ { index: { @@ -158,7 +158,7 @@ describe('bulkOverwriteTransformedDocuments', () => { }); const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + Promise.resolve({ items: [ { index: { diff --git a/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.ts b/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.ts index f3ddc0c308970..5f3e95bbcfc72 100644 --- a/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.ts +++ b/src/core/server/saved_objects/migrations/actions/bulk_overwrite_transformed_documents.ts @@ -93,7 +93,7 @@ export const bulkOverwriteTransformedDocuments = .then((res) => { // Filter out version_conflict_engine_exception since these just mean // that another instance already updated these documents - const errors: estypes.ErrorCause[] = (res.body.items ?? []) + const errors: estypes.ErrorCause[] = (res.items ?? []) .filter((item) => item.index?.error) .map((item) => item.index!.error!) .filter(({ type }) => type !== 'version_conflict_engine_exception'); diff --git a/src/core/server/saved_objects/migrations/actions/calculate_exclude_filters.ts b/src/core/server/saved_objects/migrations/actions/calculate_exclude_filters.ts index 2b35e3b59e988..27ce7bd4c404b 100644 --- a/src/core/server/saved_objects/migrations/actions/calculate_exclude_filters.ts +++ b/src/core/server/saved_objects/migrations/actions/calculate_exclude_filters.ts @@ -45,7 +45,11 @@ export const calculateExcludeFilters = Object.entries(excludeFromUpgradeFilterHooks).map(([soType, hook]) => withTimeout({ promise: Promise.resolve( - hook({ readonlyEsClient: { search: client.search.bind(client) } }) + hook({ + readonlyEsClient: { + search: client.search.bind(client) as ElasticsearchClient['search'], + }, + }) ), timeoutMs: hookTimeoutMs, }) diff --git a/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.test.ts b/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.test.ts index 0ddb858f91bc0..4254c152a1fa8 100644 --- a/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.test.ts +++ b/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.test.ts @@ -53,7 +53,7 @@ describe('checkForUnknownDocs', () => { it('calls `client.search` with the correct parameters', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ hits: { hits: [] } }) + Promise.resolve({ hits: { hits: [] } }) ); const task = checkForUnknownDocs({ @@ -85,7 +85,7 @@ describe('checkForUnknownDocs', () => { it('resolves with `Either.right` when no unknown docs are found', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ hits: { hits: [] } }) + Promise.resolve({ hits: { hits: [] } }) ); const task = checkForUnknownDocs({ @@ -103,7 +103,7 @@ describe('checkForUnknownDocs', () => { it('resolves with `Either.left` when unknown docs are found', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + Promise.resolve({ hits: { hits: [ { _id: '12', _source: { type: 'foo' } }, @@ -134,7 +134,7 @@ describe('checkForUnknownDocs', () => { it('uses `unknown` as the type when the document does not contain a type field', async () => { const client = elasticsearchClientMock.createInternalClient( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + Promise.resolve({ hits: { hits: [{ _id: '12', _source: {} }], }, diff --git a/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.ts b/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.ts index 6dd8fbda73c95..f9e3df9a0443a 100644 --- a/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.ts +++ b/src/core/server/saved_objects/migrations/actions/check_for_unknown_docs.ts @@ -56,8 +56,8 @@ export const checkForUnknownDocs = query, }, }) - .then((response) => { - const { hits } = response.body.hits; + .then((body) => { + const { hits } = body.hits; if (hits.length) { return Either.left({ type: 'unknown_docs_found' as const, diff --git a/src/core/server/saved_objects/migrations/actions/clone_index.ts b/src/core/server/saved_objects/migrations/actions/clone_index.ts index d7994f5a465d2..e77ce8c47156f 100644 --- a/src/core/server/saved_objects/migrations/actions/clone_index.ts +++ b/src/core/server/saved_objects/migrations/actions/clone_index.ts @@ -83,7 +83,7 @@ export const cloneIndex = ({ }, { maxRetries: 0 /** handle retry ourselves for now */ } ) - .then((res) => { + .then((response) => { /** * - acknowledged=false, we timed out before the cluster state was * updated with the newly created index, but it probably will be @@ -93,8 +93,8 @@ export const cloneIndex = ({ * - acknowledged=true, shards_acknowledged=true, cloning complete */ return Either.right({ - acknowledged: res.body.acknowledged, - shardsAcknowledged: res.body.shards_acknowledged, + acknowledged: response.acknowledged, + shardsAcknowledged: response.shards_acknowledged, }); }) .catch((error: EsErrors.ResponseError) => { diff --git a/src/core/server/saved_objects/migrations/actions/close_pit.ts b/src/core/server/saved_objects/migrations/actions/close_pit.ts index 9dd7f1d22386f..cb340068560d4 100644 --- a/src/core/server/saved_objects/migrations/actions/close_pit.ts +++ b/src/core/server/saved_objects/migrations/actions/close_pit.ts @@ -31,7 +31,7 @@ export const closePit = body: { id: pitId }, }) .then((response) => { - if (!response.body.succeeded) { + if (!response.succeeded) { throw new Error(`Failed to close PointInTime with id: ${pitId}`); } return Either.right({}); diff --git a/src/core/server/saved_objects/migrations/actions/create_index.ts b/src/core/server/saved_objects/migrations/actions/create_index.ts index b687a4ad93b36..e037de1712373 100644 --- a/src/core/server/saved_objects/migrations/actions/create_index.ts +++ b/src/core/server/saved_objects/migrations/actions/create_index.ts @@ -102,8 +102,8 @@ export const createIndex = ({ * - acknowledged=true, shards_acknowledged=true, index creation complete */ return Either.right({ - acknowledged: Boolean(res.body.acknowledged), - shardsAcknowledged: res.body.shards_acknowledged, + acknowledged: Boolean(res.acknowledged), + shardsAcknowledged: res.shards_acknowledged, }); }) .catch((error) => { diff --git a/src/core/server/saved_objects/migrations/actions/fetch_indices.ts b/src/core/server/saved_objects/migrations/actions/fetch_indices.ts index 1256b2d858906..faed825400c1f 100644 --- a/src/core/server/saved_objects/migrations/actions/fetch_indices.ts +++ b/src/core/server/saved_objects/migrations/actions/fetch_indices.ts @@ -43,7 +43,7 @@ export const fetchIndices = }, { ignore: [404], maxRetries: 0 } ) - .then(({ body }) => { + .then((body) => { return Either.right(body); }) .catch(catchRetryableEsClientErrors); diff --git a/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts b/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts index 008bc3d301d9f..ef84f0cb49231 100644 --- a/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts +++ b/src/core/server/saved_objects/migrations/actions/integration_tests/actions.test.ts @@ -63,7 +63,7 @@ describe('migration actions', () => { beforeAll(async () => { esServer = await startES(); - client = esServer.es.getKibanaEsClient(); + client = esServer.es.getClient(); // Create test fixture data: await createIndex({ @@ -277,7 +277,7 @@ describe('migration actions', () => { })(); const redStatusResponse = await client.cluster.health({ index: 'red_then_yellow_index' }); - expect(redStatusResponse.body.status).toBe('red'); + expect(redStatusResponse.status).toBe('red'); client.indices.putSettings({ index: 'red_then_yellow_index', @@ -291,7 +291,7 @@ describe('migration actions', () => { // Assert that the promise didn't resolve before the index became yellow const yellowStatusResponse = await client.cluster.health({ index: 'red_then_yellow_index' }); - expect(yellowStatusResponse.body.status).toBe('yellow'); + expect(yellowStatusResponse.status).toBe('yellow'); }); }); @@ -924,7 +924,7 @@ describe('migration actions', () => { }, }); - await expect(searchResponse.body.hits.hits.length).toBeGreaterThan(0); + await expect(searchResponse.hits.hits.length).toBeGreaterThan(0); }); it('rejects if index does not exist', async () => { const openPitTask = openPit({ client, index: 'no_such_index' }); diff --git a/src/core/server/saved_objects/migrations/actions/integration_tests/es_errors.test.ts b/src/core/server/saved_objects/migrations/actions/integration_tests/es_errors.test.ts index 2473d8d3ae410..7f998938e92c0 100644 --- a/src/core/server/saved_objects/migrations/actions/integration_tests/es_errors.test.ts +++ b/src/core/server/saved_objects/migrations/actions/integration_tests/es_errors.test.ts @@ -65,7 +65,7 @@ describe('Elasticsearch Errors', () => { ); // @ts-expect-error @elastic/elasticsearch doesn't declare error on IndexResponse - expect(isWriteBlockException(res.body.error!)).toEqual(true); + expect(isWriteBlockException(res.error!)).toEqual(true); }); it('correctly identify errors from create operations', async () => { @@ -81,7 +81,7 @@ describe('Elasticsearch Errors', () => { ); // @ts-expect-error @elastic/elasticsearch doesn't declare error on IndexResponse - expect(isWriteBlockException(res.body.error!)).toEqual(true); + expect(isWriteBlockException(res.error!)).toEqual(true); }); it('correctly identify errors from bulk index operations', async () => { @@ -100,7 +100,7 @@ describe('Elasticsearch Errors', () => { ], }); - const cause = res.body.items[0].index!.error! as estypes.ErrorCause; + const cause = res.items[0].index!.error! as estypes.ErrorCause; expect(isWriteBlockException(cause)).toEqual(true); }); @@ -122,7 +122,7 @@ describe('Elasticsearch Errors', () => { ], }); - const cause = res.body.items[0].create!.error! as estypes.ErrorCause; + const cause = res.items[0].create!.error! as estypes.ErrorCause; expect(isWriteBlockException(cause)).toEqual(true); }); diff --git a/src/core/server/saved_objects/migrations/actions/open_pit.ts b/src/core/server/saved_objects/migrations/actions/open_pit.ts index 43c84a2b26613..7e1f3a77f2d1e 100644 --- a/src/core/server/saved_objects/migrations/actions/open_pit.ts +++ b/src/core/server/saved_objects/migrations/actions/open_pit.ts @@ -40,6 +40,6 @@ export const openPit = index, keep_alive: pitKeepAlive, }) - .then((response) => Either.right({ pitId: response.body.id })) + .then((response) => Either.right({ pitId: response.id })) .catch(catchRetryableEsClientErrors); }; diff --git a/src/core/server/saved_objects/migrations/actions/pickup_updated_mappings.ts b/src/core/server/saved_objects/migrations/actions/pickup_updated_mappings.ts index 2db6b1833c6dd..c1e1111a4afe3 100644 --- a/src/core/server/saved_objects/migrations/actions/pickup_updated_mappings.ts +++ b/src/core/server/saved_objects/migrations/actions/pickup_updated_mappings.ts @@ -14,6 +14,7 @@ import { RetryableEsClientError, } from './catch_retryable_es_client_errors'; import { BATCH_SIZE } from './constants'; + export interface UpdateByQueryResponse { taskId: string; } @@ -52,7 +53,7 @@ export const pickupUpdatedMappings = // Create a task and return task id instead of blocking until complete wait_for_completion: false, }) - .then(({ body: { task: taskId } }) => { + .then(({ task: taskId }) => { return Either.right({ taskId: String(taskId!) }); }) .catch(catchRetryableEsClientErrors); diff --git a/src/core/server/saved_objects/migrations/actions/read_with_pit.ts b/src/core/server/saved_objects/migrations/actions/read_with_pit.ts index 0902e206147d3..013cd59271ee1 100644 --- a/src/core/server/saved_objects/migrations/actions/read_with_pit.ts +++ b/src/core/server/saved_objects/migrations/actions/read_with_pit.ts @@ -68,12 +68,12 @@ export const readWithPit = query, }, }) - .then((response) => { + .then((body) => { const totalHits = - typeof response.body.hits.total === 'number' - ? response.body.hits.total // This format is to be removed in 8.0 - : response.body.hits.total?.value; - const hits = response.body.hits.hits; + typeof body.hits.total === 'number' + ? body.hits.total // This format is to be removed in 8.0 + : body.hits.total?.value; + const hits = body.hits.hits; if (hits.length > 0) { return Either.right({ diff --git a/src/core/server/saved_objects/migrations/actions/reindex.ts b/src/core/server/saved_objects/migrations/actions/reindex.ts index e8e054c7a1780..cfd7449971b7f 100644 --- a/src/core/server/saved_objects/migrations/actions/reindex.ts +++ b/src/core/server/saved_objects/migrations/actions/reindex.ts @@ -21,6 +21,7 @@ import { BATCH_SIZE } from './constants'; export interface ReindexResponse { taskId: string; } + /** @internal */ export interface ReindexParams { client: ElasticsearchClient; @@ -34,6 +35,7 @@ export interface ReindexParams { */ unusedTypesQuery: estypes.QueryDslQueryContainer; } + /** * Reindex documents from the `sourceIndex` into the `targetIndex`. Returns a * task ID which can be tracked for progress. @@ -85,7 +87,7 @@ export const reindex = // Create a task and return task id instead of blocking until complete wait_for_completion: false, }) - .then(({ body: { task: taskId } }) => { + .then(({ task: taskId }) => { return Either.right({ taskId: String(taskId) }); }) .catch(catchRetryableEsClientErrors); diff --git a/src/core/server/saved_objects/migrations/actions/remove_write_block.ts b/src/core/server/saved_objects/migrations/actions/remove_write_block.ts index cca9ea5e7598e..47a3ecf7a4404 100644 --- a/src/core/server/saved_objects/migrations/actions/remove_write_block.ts +++ b/src/core/server/saved_objects/migrations/actions/remove_write_block.ts @@ -19,6 +19,7 @@ export interface RemoveWriteBlockParams { client: ElasticsearchClient; index: string; } + /** * Removes a write block from an index */ @@ -32,10 +33,7 @@ export const removeWriteBlock = > => () => { return client.indices - .putSettings<{ - acknowledged: boolean; - shards_acknowledged: boolean; - }>( + .putSettings( { index, // Don't change any existing settings @@ -49,7 +47,7 @@ export const removeWriteBlock = { maxRetries: 0 /** handle retry ourselves for now */ } ) .then((res) => { - return res.body.acknowledged === true + return res.acknowledged === true ? Either.right('remove_write_block_succeeded' as const) : Either.left({ type: 'retryable_es_client_error' as const, diff --git a/src/core/server/saved_objects/migrations/actions/search_for_outdated_documents.ts b/src/core/server/saved_objects/migrations/actions/search_for_outdated_documents.ts index 5a92a7c6cc286..bc6b6e5c29d46 100644 --- a/src/core/server/saved_objects/migrations/actions/search_for_outdated_documents.ts +++ b/src/core/server/saved_objects/migrations/actions/search_for_outdated_documents.ts @@ -73,7 +73,7 @@ export const searchForOutdatedDocuments = ], }) .then((res) => - Either.right({ outdatedDocuments: (res.body.hits?.hits as SavedObjectsRawDoc[]) ?? [] }) + Either.right({ outdatedDocuments: (res.hits?.hits as SavedObjectsRawDoc[]) ?? [] }) ) .catch(catchRetryableEsClientErrors); }; diff --git a/src/core/server/saved_objects/migrations/actions/set_write_block.ts b/src/core/server/saved_objects/migrations/actions/set_write_block.ts index 9c40e1b64fae0..eaca12ab7e315 100644 --- a/src/core/server/saved_objects/migrations/actions/set_write_block.ts +++ b/src/core/server/saved_objects/migrations/actions/set_write_block.ts @@ -21,6 +21,7 @@ export interface SetWriteBlockParams { client: ElasticsearchClient; index: string; } + /** * Sets a write block in place for the given index. If the response includes * `acknowledged: true` all in-progress writes have drained and no further @@ -41,10 +42,7 @@ export const setWriteBlock = () => { return ( client.indices - .addBlock<{ - acknowledged: boolean; - shards_acknowledged: boolean; - }>( + .addBlock( { index, block: 'write', @@ -52,8 +50,8 @@ export const setWriteBlock = { maxRetries: 0 /** handle retry ourselves for now */ } ) // not typed yet - .then((res: any) => { - return res.body.acknowledged === true + .then((res) => { + return res.acknowledged === true ? Either.right('set_write_block_succeeded' as const) : Either.left({ type: 'retryable_es_client_error' as const, diff --git a/src/core/server/saved_objects/migrations/actions/update_and_pickup_mappings.ts b/src/core/server/saved_objects/migrations/actions/update_and_pickup_mappings.ts index 8c742005a01ce..06b3e9051ffa3 100644 --- a/src/core/server/saved_objects/migrations/actions/update_and_pickup_mappings.ts +++ b/src/core/server/saved_objects/migrations/actions/update_and_pickup_mappings.ts @@ -51,7 +51,7 @@ export const updateAndPickupMappings = ({ timeout: DEFAULT_TIMEOUT, body: mappings, }) - .then((res) => { + .then(() => { // Ignore `acknowledged: false`. When the coordinating node accepts // the new cluster state update but not all nodes have applied the // update within the timeout `acknowledged` will be false. However, diff --git a/src/core/server/saved_objects/migrations/actions/verify_reindex.ts b/src/core/server/saved_objects/migrations/actions/verify_reindex.ts index a344bf5a97ff3..481daf459251d 100644 --- a/src/core/server/saved_objects/migrations/actions/verify_reindex.ts +++ b/src/core/server/saved_objects/migrations/actions/verify_reindex.ts @@ -33,13 +33,13 @@ export const verifyReindex = () => { const count = (index: string) => client - .count<{ count: number }>({ + .count({ index, // Return an error when targeting missing or closed indices allow_no_indices: false, }) .then((res) => { - return res.body.count; + return res.count; }); return Promise.all([count(sourceIndex), count(targetIndex)]) diff --git a/src/core/server/saved_objects/migrations/actions/wait_for_index_status_yellow.ts b/src/core/server/saved_objects/migrations/actions/wait_for_index_status_yellow.ts index 676471d99b7d2..dbff85ff59c23 100644 --- a/src/core/server/saved_objects/migrations/actions/wait_for_index_status_yellow.ts +++ b/src/core/server/saved_objects/migrations/actions/wait_for_index_status_yellow.ts @@ -51,7 +51,7 @@ export const waitForIndexStatusYellow = { ignore: [408] } ) .then((res) => { - if (res.body.timed_out === true) { + if (res.timed_out === true) { return Either.left({ type: 'retryable_es_client_error' as const, message: `Timeout waiting for the status of the [${index}] index to become 'yellow'`, diff --git a/src/core/server/saved_objects/migrations/actions/wait_for_task.ts b/src/core/server/saved_objects/migrations/actions/wait_for_task.ts index 1a319d17dbce9..f3f1e116ab3c0 100644 --- a/src/core/server/saved_objects/migrations/actions/wait_for_task.ts +++ b/src/core/server/saved_objects/migrations/actions/wait_for_task.ts @@ -82,8 +82,7 @@ export const waitForTask = wait_for_completion: true, timeout, }) - .then((res) => { - const body = res.body; + .then((body) => { const failures = body.response?.failures ?? []; return Either.right({ completed: body.completed, diff --git a/src/core/server/saved_objects/migrations/integration_tests/7.7.2_xpack_100k.test.ts b/src/core/server/saved_objects/migrations/integration_tests/7.7.2_xpack_100k.test.ts index 79a49b2518092..1b96baf210531 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/7.7.2_xpack_100k.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/7.7.2_xpack_100k.test.ts @@ -122,6 +122,6 @@ describe('migration from 7.7.2-xpack with 100k objects', () => { // Use a >= comparison since once Kibana has started it might create new // documents like telemetry tasks - expect(migratedIndexResponse.body.count).toBeGreaterThanOrEqual(oldIndexResponse.body.count); + expect(migratedIndexResponse.count).toBeGreaterThanOrEqual(oldIndexResponse.count); }); }); diff --git a/src/core/server/saved_objects/migrations/integration_tests/7_13_0_failed_action_tasks.test.ts b/src/core/server/saved_objects/migrations/integration_tests/7_13_0_failed_action_tasks.test.ts index 48bcdd6e5eaca..d2bf71f023de7 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/7_13_0_failed_action_tasks.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/7_13_0_failed_action_tasks.test.ts @@ -55,7 +55,7 @@ describe('migration from 7.13 to 7.14+ with many failed action_tasks', () => { kibanaIndexName = '.kibana', taskManagerIndexName = '.kibana_task_manager' ): Promise<{ tasksCount: number; actionTaskParamsCount: number }> => { - const esClient: ElasticsearchClient = esServer.es.getKibanaEsClient(); + const esClient: ElasticsearchClient = esServer.es.getClient(); const actionTaskParamsResponse = await esClient.count({ index: kibanaIndexName, @@ -75,8 +75,8 @@ describe('migration from 7.13 to 7.14+ with many failed action_tasks', () => { }); return { - actionTaskParamsCount: actionTaskParamsResponse.body.count, - tasksCount: tasksResponse.body.count, + actionTaskParamsCount: actionTaskParamsResponse.count, + tasksCount: tasksResponse.count, }; }; diff --git a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts index a86177b59ee3b..e9915b9fc9759 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/batch_size_bytes.test.ts @@ -31,7 +31,7 @@ function sortByTypeAndId(a: { type: string; id: string }, b: { type: string; id: } async function fetchDocuments(esClient: ElasticsearchClient, index: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, body: { query: { @@ -95,7 +95,7 @@ describe('migration v2', () => { // wait a bit for the count to settle. await new Promise((resolve) => setTimeout(resolve, 5000)); - const esClient: ElasticsearchClient = esServer.es.getKibanaEsClient(); + const esClient: ElasticsearchClient = esServer.es.getClient(); // assert that the docs from the original index have been migrated rather than comparing a doc count after startup const originalDocs = await fetchDocuments(esClient, '.kibana_7.14.0_001'); diff --git a/src/core/server/saved_objects/migrations/integration_tests/cleanup.test.ts b/src/core/server/saved_objects/migrations/integration_tests/cleanup.test.ts index 4f3026c619d3c..c84f72b184261 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/cleanup.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/cleanup.test.ts @@ -133,7 +133,7 @@ describe('migration v2', () => { const pitId = logRecordWithPit.right.pitId; expect(pitId).toBeTruthy(); - const client = esServer.es.getKibanaEsClient(); + const client = esServer.es.getClient(); await expect( client.search({ body: { diff --git a/src/core/server/saved_objects/migrations/integration_tests/migration_from_older_v1.test.ts b/src/core/server/saved_objects/migrations/integration_tests/migration_from_older_v1.test.ts index 8c71cf3a29ef5..e0c8aa340bd2a 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/migration_from_older_v1.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/migration_from_older_v1.test.ts @@ -35,7 +35,7 @@ function sortByTypeAndId(a: { type: string; id: string }, b: { type: string; id: } async function fetchDocuments(esClient: ElasticsearchClient, index: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, body: { query: { @@ -175,7 +175,7 @@ describe('migrating from 7.3.0-xpack which used v1 migrations', () => { }); it('creates the new index and the correct aliases', async () => { - const { body } = await esClient.indices.get( + const body = await esClient.indices.get( { index: migratedIndex, }, @@ -203,7 +203,7 @@ describe('migrating from 7.3.0-xpack which used v1 migrations', () => { }, size: 10000, }); - const allDocuments = res.body.hits.hits as SavedObjectsRawDoc[]; + const allDocuments = res.hits.hits as SavedObjectsRawDoc[]; allDocuments.forEach((doc) => { assertMigrationVersion(doc, expectedVersions); }); diff --git a/src/core/server/saved_objects/migrations/integration_tests/migration_from_same_v1.test.ts b/src/core/server/saved_objects/migrations/integration_tests/migration_from_same_v1.test.ts index 1fa739768e412..eb54683e3a457 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/migration_from_same_v1.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/migration_from_same_v1.test.ts @@ -35,7 +35,7 @@ function sortByTypeAndId(a: { type: string; id: string }, b: { type: string; id: } async function fetchDocuments(esClient: ElasticsearchClient, index: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, body: { query: { @@ -179,7 +179,7 @@ describe('migrating from the same Kibana version that used v1 migrations', () => }); it('creates the new index and the correct aliases', async () => { - const { body } = await esClient.indices.get( + const body = await esClient.indices.get( { index: migratedIndex, }, @@ -206,7 +206,7 @@ describe('migrating from the same Kibana version that used v1 migrations', () => }, size: 10000, }); - const allDocuments = res.body.hits.hits as SavedObjectsRawDoc[]; + const allDocuments = res.hits.hits as SavedObjectsRawDoc[]; allDocuments.forEach((doc) => { assertMigrationVersion(doc, expectedVersions); }); diff --git a/src/core/server/saved_objects/migrations/integration_tests/multiple_es_nodes.test.ts b/src/core/server/saved_objects/migrations/integration_tests/multiple_es_nodes.test.ts index ae8ae6bcc3084..f88f97a677616 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/multiple_es_nodes.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/multiple_es_nodes.test.ts @@ -29,7 +29,7 @@ function extractSortNumberFromId(id: string): number { } async function fetchDocs(esClient: ElasticsearchClient, index: string, type: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, size: 10000, body: { @@ -180,7 +180,7 @@ describe('migration v2', () => { }); await root.start(); - const esClient = esServer.es.getKibanaEsClient(); + const esClient = esServer.es.getClient(); const migratedFooDocs = await fetchDocs(esClient, migratedIndex, 'foo'); expect(migratedFooDocs.length).toBe(2500); diff --git a/src/core/server/saved_objects/migrations/integration_tests/multiple_kibana_nodes.test.ts b/src/core/server/saved_objects/migrations/integration_tests/multiple_kibana_nodes.test.ts index 9830d3bf954cc..bc8c138e9ef20 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/multiple_kibana_nodes.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/multiple_kibana_nodes.test.ts @@ -30,7 +30,7 @@ function extractSortNumberFromId(id: string): number { } async function fetchDocs(esClient: ElasticsearchClient, index: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, size: 10000, body: { @@ -183,7 +183,7 @@ describe('migration v2', () => { await startWithDelay([rootA, rootB, rootC], 0); - const esClient = esServer.es.getKibanaEsClient(); + const esClient = esServer.es.getClient(); const migratedDocs = await fetchDocs(esClient, migratedIndex); expect(migratedDocs.length).toBe(5000); @@ -202,7 +202,7 @@ describe('migration v2', () => { await startWithDelay([rootA, rootB, rootC], 1); - const esClient = esServer.es.getKibanaEsClient(); + const esClient = esServer.es.getClient(); const migratedDocs = await fetchDocs(esClient, migratedIndex); expect(migratedDocs.length).toBe(5000); @@ -221,7 +221,7 @@ describe('migration v2', () => { await startWithDelay([rootA, rootB, rootC], 5); - const esClient = esServer.es.getKibanaEsClient(); + const esClient = esServer.es.getClient(); const migratedDocs = await fetchDocs(esClient, migratedIndex); expect(migratedDocs.length).toBe(5000); @@ -240,7 +240,7 @@ describe('migration v2', () => { await startWithDelay([rootA, rootB, rootC], 20); - const esClient = esServer.es.getKibanaEsClient(); + const esClient = esServer.es.getClient(); const migratedDocs = await fetchDocs(esClient, migratedIndex); expect(migratedDocs.length).toBe(5000); diff --git a/src/core/server/saved_objects/migrations/integration_tests/outdated_docs.test.ts b/src/core/server/saved_objects/migrations/integration_tests/outdated_docs.test.ts index b40fcda246c3f..c62a764aea653 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/outdated_docs.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/outdated_docs.test.ts @@ -122,7 +122,7 @@ function createRoot() { } async function fetchDocs(esClient: ElasticsearchClient, index: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, body: { query: { diff --git a/src/core/server/saved_objects/migrations/integration_tests/rewriting_id.test.ts b/src/core/server/saved_objects/migrations/integration_tests/rewriting_id.test.ts index 79e55ef5beeed..82f7bc5de978e 100644 --- a/src/core/server/saved_objects/migrations/integration_tests/rewriting_id.test.ts +++ b/src/core/server/saved_objects/migrations/integration_tests/rewriting_id.test.ts @@ -28,7 +28,7 @@ function sortByTypeAndId(a: { type: string; id: string }, b: { type: string; id: } async function fetchDocs(esClient: ElasticsearchClient, index: string) { - const { body } = await esClient.search({ + const body = await esClient.search({ index, body: { query: { diff --git a/src/core/server/saved_objects/migrations/kibana_migrator.test.ts b/src/core/server/saved_objects/migrations/kibana_migrator.test.ts index eb7b72f144031..4bb24a3f8240d 100644 --- a/src/core/server/saved_objects/migrations/kibana_migrator.test.ts +++ b/src/core/server/saved_objects/migrations/kibana_migrator.test.ts @@ -97,15 +97,9 @@ describe('KibanaMigrator', () => { it('throws if prepareMigrations is not called first', async () => { const options = mockOptions(); - options.client.cat.templates.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise([], { statusCode: 404 }) - ); - options.client.indices.get.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({}, { statusCode: 404 }) - ); - options.client.indices.getAlias.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({}, { statusCode: 404 }) - ); + options.client.cat.templates.mockResponse([], { statusCode: 404 }); + options.client.indices.get.mockResponse({}, { statusCode: 404 }); + options.client.indices.getAlias.mockResponse({}, { statusCode: 404 }); const migrator = new KibanaMigrator(options); @@ -117,12 +111,8 @@ describe('KibanaMigrator', () => { it('only runs migrations once if called multiple times', async () => { const options = mockOptions(); - options.client.indices.get.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({}, { statusCode: 404 }) - ); - options.client.indices.getAlias.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({}, { statusCode: 404 }) - ); + options.client.indices.get.mockResponse({}, { statusCode: 404 }); + options.client.indices.getAlias.mockResponse({}, { statusCode: 404 }); const migrator = new KibanaMigrator(options); @@ -158,20 +148,18 @@ describe('KibanaMigrator', () => { }); it('rejects when the migration state machine terminates in a FATAL state', () => { const options = mockV2MigrationOptions(); - options.client.indices.get.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise( - { - '.my-index_8.2.4_001': { - aliases: { - '.my-index': {}, - '.my-index_8.2.4': {}, - }, - mappings: { properties: {}, _meta: { migrationMappingPropertyHashes: {} } }, - settings: {}, + options.client.indices.get.mockResponse( + { + '.my-index_8.2.4_001': { + aliases: { + '.my-index': {}, + '.my-index_8.2.4': {}, }, + mappings: { properties: {}, _meta: { migrationMappingPropertyHashes: {} } }, + settings: {}, }, - { statusCode: 200 } - ) + }, + { statusCode: 200 } ); const migrator = new KibanaMigrator(options); @@ -183,14 +171,11 @@ describe('KibanaMigrator', () => { it('rejects when an unexpected exception occurs in an action', async () => { const options = mockV2MigrationOptions(); - options.client.tasks.get.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - completed: true, - error: { type: 'elasticsearch_exception', reason: 'task failed with an error' }, - failures: [], - task: { description: 'task description' } as any, - }) - ); + options.client.tasks.get.mockResponse({ + completed: true, + error: { type: 'elasticsearch_exception', reason: 'task failed with an error' }, + task: { description: 'task description' } as any, + }); const migrator = new KibanaMigrator(options); migrator.prepareMigrations(); @@ -213,56 +198,38 @@ type MockedOptions = KibanaMigratorOptions & { const mockV2MigrationOptions = () => { const options = mockOptions(); - options.client.indices.get.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise( - { - '.my-index': { - aliases: { '.kibana': {} }, - mappings: { properties: {} }, - settings: {}, - }, + options.client.indices.get.mockResponse( + { + '.my-index': { + aliases: { '.kibana': {} }, + mappings: { properties: {} }, + settings: {}, }, - { statusCode: 200 } - ) - ); - options.client.indices.addBlock.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - acknowledged: true, - shards_acknowledged: true, - indices: [], - }) - ); - options.client.reindex.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - taskId: 'reindex_task_id', - } as estypes.ReindexResponse) - ); - options.client.tasks.get.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - completed: true, - error: undefined, - failures: [], - task: { description: 'task description' } as any, - } as estypes.TasksGetResponse) + }, + { statusCode: 200 } ); + options.client.indices.addBlock.mockResponse({ + acknowledged: true, + shards_acknowledged: true, + indices: [], + }); + options.client.reindex.mockResponse({ + taskId: 'reindex_task_id', + } as estypes.ReindexResponse); + options.client.tasks.get.mockResponse({ + completed: true, + error: undefined, + failures: [], + task: { description: 'task description' } as any, + } as estypes.TasksGetResponse); - options.client.search = jest - .fn() - .mockImplementation(() => - elasticsearchClientMock.createSuccessTransportRequestPromise({ hits: { hits: [] } }) - ); + options.client.search.mockResponse({ hits: { hits: [] } } as any); - options.client.openPointInTime = jest - .fn() - .mockImplementation(() => - elasticsearchClientMock.createSuccessTransportRequestPromise({ id: 'pit_id' }) - ); + options.client.openPointInTime.mockResponse({ id: 'pit_id' }); - options.client.closePointInTime = jest - .fn() - .mockImplementation(() => - elasticsearchClientMock.createSuccessTransportRequestPromise({ succeeded: true }) - ); + options.client.closePointInTime.mockResponse({ + succeeded: true, + } as estypes.ClosePointInTimeResponse); return options; }; diff --git a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts index 052096adcc853..202b5ca4386c9 100644 --- a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts +++ b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.test.ts @@ -11,9 +11,6 @@ import { mockRawDocExistsInNamespace, } from './collect_multi_namespace_references.test.mock'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; - -import type { ElasticsearchClient } from '../../../elasticsearch'; import { elasticsearchClientMock } from '../../../elasticsearch/client/mocks'; import { typeRegistryMock } from '../../saved_objects_type_registry.mock'; import { SavedObjectsSerializer } from '../../serialization'; @@ -43,7 +40,7 @@ beforeEach(() => { }); describe('collectMultiNamespaceReferences', () => { - let client: DeeplyMockedKeys; + let client: ReturnType; /** Sets up the type registry, saved objects client, etc. and return the full parameters object to be passed to `collectMultiNamespaceReferences` */ function setup( @@ -88,30 +85,28 @@ describe('collectMultiNamespaceReferences', () => { references?: Array<{ type: string; id: string }>; }> ) { - client.mget.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - docs: results.map((x) => { - const references = - x.references?.map(({ type, id }) => ({ type, id, name: 'ref-name' })) ?? []; - return x.found - ? { - _id: 'doesnt-matter', - _index: 'doesnt-matter', - _source: { - namespaces: SPACES, - references, - }, - ...VERSION_PROPS, - found: true, - } - : { - _id: 'doesnt-matter', - _index: 'doesnt-matter', - found: false, - }; - }), - }) - ); + client.mget.mockResponseOnce({ + docs: results.map((x) => { + const references = + x.references?.map(({ type, id }) => ({ type, id, name: 'ref-name' })) ?? []; + return x.found + ? { + _id: 'doesnt-matter', + _index: 'doesnt-matter', + _source: { + namespaces: SPACES, + references, + }, + ...VERSION_PROPS, + found: true, + } + : { + _id: 'doesnt-matter', + _index: 'doesnt-matter', + found: false, + }; + }), + }); } /** Asserts that mget is called for the given objects */ diff --git a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts index e82755e44aa78..a404f2e9475b7 100644 --- a/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts +++ b/src/core/server/saved_objects/service/lib/collect_multi_namespace_references.ts @@ -207,7 +207,7 @@ async function getObjectsAndReferences({ } const bulkGetResponse = await client.mget( { body: { docs: makeBulkGetDocs(bulkGetObjects) } }, - { ignore: [404] } + { ignore: [404], meta: true } ); // exit early if we can't verify a 404 response is from Elasticsearch if ( diff --git a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts index 5403e146509ae..883d7fa241944 100644 --- a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts +++ b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.test.ts @@ -12,10 +12,7 @@ import { mockIsNotFoundFromUnsupportedServer, } from './internal_bulk_resolve.test.mock'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; -import type { ElasticsearchClient } from 'src/core/server/elasticsearch'; import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; - import { LEGACY_URL_ALIAS_TYPE } from '../../object_types'; import { typeRegistryMock } from '../../saved_objects_type_registry.mock'; import { SavedObjectsSerializer } from '../../serialization'; @@ -40,7 +37,7 @@ beforeEach(() => { }); describe('internalBulkResolve', () => { - let client: DeeplyMockedKeys; + let client: ReturnType; let serializer: SavedObjectsSerializer; let incrementCounterInternal: jest.Mock; @@ -69,52 +66,48 @@ describe('internalBulkResolve', () => { function mockBulkResults( ...results: Array<{ found: boolean; targetId?: string; disabled?: boolean }> ) { - client.bulk.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - items: results.map(({ found, targetId, disabled }) => ({ - update: { - _index: 'doesnt-matter', - status: 0, - get: { - found, - _source: { - ...((targetId || disabled) && { - [LEGACY_URL_ALIAS_TYPE]: { targetId, disabled }, - }), - }, - ...VERSION_PROPS, + client.bulk.mockResponseOnce({ + items: results.map(({ found, targetId, disabled }) => ({ + update: { + _index: 'doesnt-matter', + status: 0, + get: { + found, + _source: { + ...((targetId || disabled) && { + [LEGACY_URL_ALIAS_TYPE]: { targetId, disabled }, + }), }, + ...VERSION_PROPS, }, - })), - errors: false, - took: 0, - }) - ); + }, + })), + errors: false, + took: 0, + }); } /** Mocks the elasticsearch client so it returns the expected results for an mget operation*/ function mockMgetResults(...results: Array<{ found: boolean }>) { - client.mget.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - docs: results.map((x) => { - return x.found - ? { - _id: 'doesnt-matter', - _index: 'doesnt-matter', - _source: { - foo: 'bar', - }, - ...VERSION_PROPS, - found: true, - } - : { - _id: 'doesnt-matter', - _index: 'doesnt-matter', - found: false, - }; - }), - }) - ); + client.mget.mockResponseOnce({ + docs: results.map((x) => { + return x.found + ? { + _id: 'doesnt-matter', + _index: 'doesnt-matter', + _source: { + foo: 'bar', + }, + ...VERSION_PROPS, + found: true, + } + : { + _id: 'doesnt-matter', + _index: 'doesnt-matter', + found: false, + }; + }), + }); } /** Asserts that bulk is called for the given aliases */ @@ -158,16 +151,20 @@ describe('internalBulkResolve', () => { const error = SavedObjectsErrorHelpers.createUnsupportedTypeError(UNSUPPORTED_TYPE); return { type: UNSUPPORTED_TYPE, id, error }; } + function expectNotFoundError(id: string) { const error = SavedObjectsErrorHelpers.createGenericNotFoundError(OBJ_TYPE, id); return { type: OBJ_TYPE, id, error }; } + function expectExactMatchResult(id: string) { return { saved_object: `mock-obj-for-${id}`, outcome: 'exactMatch' }; } + function expectAliasMatchResult(id: string) { return { saved_object: `mock-obj-for-${id}`, outcome: 'aliasMatch', alias_target_id: id }; } + // eslint-disable-next-line @typescript-eslint/naming-convention function expectConflictResult(id: string, alias_target_id: string) { return { saved_object: `mock-obj-for-${id}`, outcome: 'conflict', alias_target_id }; diff --git a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts index 6c11fa1f245c7..e032e769b0220 100644 --- a/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts +++ b/src/core/server/saved_objects/service/lib/internal_bulk_resolve.ts @@ -138,7 +138,7 @@ export async function internalBulkResolve( const bulkGetResponse = docsToBulkGet.length ? await client.mget( { body: { docs: docsToBulkGet } }, - { ignore: [404] } + { ignore: [404], meta: true } ) : undefined; // exit early if a 404 isn't from elasticsearch @@ -293,7 +293,7 @@ async function fetchAndUpdateAliases( require_alias: true, body: bulkUpdateDocs, }); - return bulkUpdateResponse.body.items.map((item) => { + return bulkUpdateResponse.items.map((item) => { // Map the bulk update response to the `_source` fields that were returned for each document return item.update?.get; }); diff --git a/src/core/server/saved_objects/service/lib/legacy_url_aliases/delete_legacy_url_aliases.test.ts b/src/core/server/saved_objects/service/lib/legacy_url_aliases/delete_legacy_url_aliases.test.ts index 22c57fe3f280f..4e7ce652bf4bf 100644 --- a/src/core/server/saved_objects/service/lib/legacy_url_aliases/delete_legacy_url_aliases.test.ts +++ b/src/core/server/saved_objects/service/lib/legacy_url_aliases/delete_legacy_url_aliases.test.ts @@ -54,9 +54,7 @@ describe('deleteLegacyUrlAliases', () => { body: { error: { type: 'es_type', reason: 'es_reason' } }, }) ); - params.client.updateByQuery.mockResolvedValueOnce( - elasticsearchClientMock.createErrorTransportRequestPromise(esError) - ); + params.client.updateByQuery.mockResolvedValueOnce(Promise.reject(esError)); mockGetEsErrorMessage.mockClear(); mockGetEsErrorMessage.mockReturnValue('Oh no!'); diff --git a/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts b/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts index 6a7e1294744ac..036a0e417386b 100644 --- a/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts +++ b/src/core/server/saved_objects/service/lib/preflight_check_for_create.ts @@ -273,7 +273,7 @@ async function bulkGetObjectsAndAliases( const bulkGetResponse = docsToBulkGet.length ? await client.mget( { body: { docs: docsToBulkGet } }, - { ignore: [404] } + { ignore: [404], meta: true } ) : undefined; diff --git a/src/core/server/saved_objects/service/lib/repository.test.ts b/src/core/server/saved_objects/service/lib/repository.test.ts index 41a284764b0ea..1df3ef351c6ae 100644 --- a/src/core/server/saved_objects/service/lib/repository.test.ts +++ b/src/core/server/saved_objects/service/lib/repository.test.ts @@ -473,9 +473,7 @@ describe('SavedObjectsRepository', () => { options?: SavedObjectsCreateOptions ) => { const response = getMockBulkCreateResponse(objects, options?.namespace); - client.bulk.mockResolvedValue( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.bulk.mockResponse(response); return await savedObjectsRepository.bulkCreate(objects, options); }; @@ -838,9 +836,7 @@ describe('SavedObjectsRepository', () => { } else { response = getMockBulkCreateResponse([obj1, obj2]); } - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.bulk.mockResponseOnce(response); const objects = [obj1, obj, obj2]; const result = await savedObjectsRepository.bulkCreate(objects); @@ -941,9 +937,7 @@ describe('SavedObjectsRepository', () => { }, ]); const bulkResponse = getMockBulkCreateResponse([o1, o5]); - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(bulkResponse) - ); + client.bulk.mockResponseOnce(bulkResponse); const options = { overwrite: true }; const result = await savedObjectsRepository.bulkCreate(objects, options); @@ -984,9 +978,7 @@ describe('SavedObjectsRepository', () => { it(`returns errors for any bulk objects with invalid schemas`, async () => { const response = getMockBulkCreateResponse([obj3]); - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.bulk.mockResponseOnce(response); const result = await savedObjectsRepository.bulkCreate([ obj3, @@ -1089,9 +1081,7 @@ describe('SavedObjectsRepository', () => { }; const objects = [obj1, obj, obj2]; const response = getMockBulkCreateResponse([obj1, obj2]); - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.bulk.mockResponseOnce(response); const result = await savedObjectsRepository.bulkCreate(objects); expect(client.bulk).toHaveBeenCalledTimes(1); expect(result).toEqual({ @@ -1107,9 +1097,7 @@ describe('SavedObjectsRepository', () => { // of the document when it actually does not, forcing to cast to any as BulkResponse // does not contains _source const response = getMockBulkCreateResponse([obj1, obj2], namespace) as any; - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.bulk.mockResponseOnce(response); // Bulk create one object with id unspecified, and one with id specified const result = await savedObjectsRepository.bulkCreate([{ ...obj1, id: undefined }, obj2], { @@ -1182,9 +1170,7 @@ describe('SavedObjectsRepository', () => { ); const bulkGetSuccess = async (objects: SavedObject[], options?: SavedObjectsBaseOptions) => { const response = getMockMgetResponse(objects, options?.namespace); - client.mget.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.mget.mockResponseOnce(response); const result = await bulkGet(objects, options); expect(client.mget).toHaveBeenCalledTimes(1); return result; @@ -1551,14 +1537,10 @@ describe('SavedObjectsRepository', () => { const multiNamespaceObjects = objects.filter(({ type }) => registry.isMultiNamespace(type)); if (multiNamespaceObjects?.length) { const response = getMockMgetResponse(multiNamespaceObjects, options?.namespace); - client.mget.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.mget.mockResponseOnce(response); } const response = getMockBulkUpdateResponse(objects, options, includeOriginId); - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.bulk.mockResponseOnce(response); const result = await savedObjectsRepository.bulkUpdate(objects, options); expect(client.mget).toHaveBeenCalledTimes(multiNamespaceObjects?.length ? 1 : 0); return result; @@ -1825,9 +1807,7 @@ describe('SavedObjectsRepository', () => { mockGetBulkOperationError.mockReturnValueOnce(undefined); mockGetBulkOperationError.mockReturnValueOnce(expectedErrorResult.error as Payload); } - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(mockResponse) - ); + client.bulk.mockResponseOnce(mockResponse); const result = await savedObjectsRepository.bulkUpdate(objects); expect(client.bulk).toHaveBeenCalled(); @@ -1848,16 +1828,10 @@ describe('SavedObjectsRepository', () => { mgetResponse: estypes.MgetResponse, mgetOptions?: { statusCode?: number } ) => { - client.mget.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(mgetResponse, { - statusCode: mgetOptions?.statusCode, - }) - ); + client.mget.mockResponseOnce(mgetResponse, { statusCode: mgetOptions?.statusCode }); const bulkResponse = getMockBulkUpdateResponse([obj1, obj2], { namespace }); - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(bulkResponse) - ); + client.bulk.mockResponseOnce(bulkResponse); const result = await savedObjectsRepository.bulkUpdate([obj1, _obj, obj2], options); expect(client.bulk).toHaveBeenCalled(); @@ -1966,9 +1940,7 @@ describe('SavedObjectsRepository', () => { }; const objects = [obj1, obj, obj2]; const mockResponse = getMockBulkUpdateResponse(objects); - client.bulk.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(mockResponse) - ); + client.bulk.mockResponseOnce(mockResponse); const result = await savedObjectsRepository.bulkUpdate(objects); expect(client.bulk).toHaveBeenCalledTimes(1); @@ -2150,12 +2122,14 @@ describe('SavedObjectsRepository', () => { mockPreflightCheckForCreate.mockImplementation(({ objects }) => { return Promise.resolve(objects.map(({ type, id }) => ({ type, id }))); // respond with no errors by default }); - client.create.mockImplementation((params) => - elasticsearchClientMock.createSuccessTransportRequestPromise({ - _id: params.id, - ...mockVersionProps, - } as estypes.CreateResponse) - ); + client.create.mockResponseImplementation((params) => { + return { + body: { + _id: params.id, + ...mockVersionProps, + } as estypes.CreateResponse, + }; + }); }); const type = 'index-pattern'; @@ -2721,15 +2695,11 @@ describe('SavedObjectsRepository', () => { if (registry.isMultiNamespace(type)) { const mockGetResponse = mockGetResponseValue ?? getMockGetResponse({ type, id }, options?.namespace); - client.get.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(mockGetResponse) - ); + client.get.mockResponseOnce(mockGetResponse); } - client.delete.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - result: 'deleted', - } as estypes.DeleteResponse) - ); + client.delete.mockResponseOnce({ + result: 'deleted', + } as estypes.DeleteResponse); const result = await savedObjectsRepository.delete(type, id, options); expect(client.get).toHaveBeenCalledTimes(registry.isMultiNamespace(type) ? 1 : 0); return result; @@ -3023,9 +2993,7 @@ describe('SavedObjectsRepository', () => { namespace: string, options?: SavedObjectsDeleteByNamespaceOptions ) => { - client.updateByQuery.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(mockUpdateResults) - ); + client.updateByQuery.mockResponseOnce(mockUpdateResults); const result = await savedObjectsRepository.deleteByNamespace(namespace, options); expect(mockGetSearchDsl).toHaveBeenCalledTimes(1); expect(client.updateByQuery).toHaveBeenCalledTimes(1); @@ -3097,11 +3065,9 @@ describe('SavedObjectsRepository', () => { const updatedCount = 42; const removeReferencesToSuccess = async (options = defaultOptions) => { - client.updateByQuery.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - updated: updatedCount, - }) - ); + client.updateByQuery.mockResponseOnce({ + updated: updatedCount, + }); return await savedObjectsRepository.removeReferencesTo(type, id, options); }; @@ -3226,15 +3192,13 @@ describe('SavedObjectsRepository', () => { describe('errors', () => { it(`throws when ES returns failures`, async () => { - client.updateByQuery.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - updated: 7, - failures: [ - { id: 'failure' } as estypes.BulkIndexByScrollFailure, - { id: 'another-failure' } as estypes.BulkIndexByScrollFailure, - ], - }) - ); + client.updateByQuery.mockResponseOnce({ + updated: 7, + failures: [ + { id: 'failure' } as estypes.BulkIndexByScrollFailure, + { id: 'another-failure' } as estypes.BulkIndexByScrollFailure, + ], + }); await expect( savedObjectsRepository.removeReferencesTo(type, id, defaultOptions) @@ -3322,11 +3286,7 @@ describe('SavedObjectsRepository', () => { const namespace = 'foo-namespace'; const findSuccess = async (options: SavedObjectsFindOptions, namespace?: string) => { - client.search.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise( - generateSearchResults(namespace) - ) - ); + client.search.mockResponseOnce(generateSearchResults(namespace)); const result = await savedObjectsRepository.find(options); expect(mockGetSearchDsl).toHaveBeenCalledTimes(1); expect(client.search).toHaveBeenCalledTimes(1); @@ -3818,9 +3778,7 @@ describe('SavedObjectsRepository', () => { }, options?.namespace ); - client.get.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.get.mockResponseOnce(response); const result = await savedObjectsRepository.get(type, id, options); expect(client.get).toHaveBeenCalledTimes(1); return result; @@ -4034,31 +3992,32 @@ describe('SavedObjectsRepository', () => { if (isMultiNamespace) { const response = mockGetResponseValue ?? getMockGetResponse({ type, id }, options?.namespace); - client.get.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(response) - ); + client.get.mockResponseOnce(response); } - client.update.mockImplementation((params) => - elasticsearchClientMock.createSuccessTransportRequestPromise({ - _id: params.id, - ...mockVersionProps, - _index: '.kibana', - get: { - found: true, - _source: { - type, - ...mockTimestampFields, - [type]: { - ...fields.reduce((acc, field) => { - acc[typeof field === 'string' ? field : field.fieldName] = 8468; - return acc; - }, {} as Record), - defaultIndex: 'logstash-*', + + client.update.mockResponseImplementation((params) => { + return { + body: { + _id: params.id, + ...mockVersionProps, + _index: '.kibana', + get: { + found: true, + _source: { + type, + ...mockTimestampFields, + [type]: { + ...fields.reduce((acc, field) => { + acc[typeof field === 'string' ? field : field.fieldName] = 8468; + return acc; + }, {} as Record), + defaultIndex: 'logstash-*', + }, }, }, - }, - } as estypes.UpdateResponse) - ); + } as estypes.UpdateResponse, + }; + }); const result = await savedObjectsRepository.incrementCounter(type, id, fields, options); expect(client.get).toHaveBeenCalledTimes(isMultiNamespace ? 1 : 0); @@ -4347,26 +4306,28 @@ describe('SavedObjectsRepository', () => { describe('returns', () => { it(`formats the ES response`, async () => { - client.update.mockImplementation((params) => - elasticsearchClientMock.createSuccessTransportRequestPromise({ - _id: params.id, - ...mockVersionProps, - _index: '.kibana', - get: { - found: true, - _source: { - type: 'config', - ...mockTimestampFields, - config: { - buildNum: 8468, - apiCallsCount: 100, - defaultIndex: 'logstash-*', + client.update.mockResponseImplementation((params) => { + return { + body: { + _id: params.id, + ...mockVersionProps, + _index: '.kibana', + get: { + found: true, + _source: { + type: 'config', + ...mockTimestampFields, + config: { + buildNum: 8468, + apiCallsCount: 100, + defaultIndex: 'logstash-*', + }, + originId, }, - originId, }, - }, - } as estypes.UpdateResponse) - ); + } as estypes.UpdateResponse, + }; + }); const response = await savedObjectsRepository.incrementCounter( 'config', @@ -4452,26 +4413,24 @@ describe('SavedObjectsRepository', () => { options?: SavedObjectsUpdateOptions, includeOriginId?: boolean ) => { - client.update.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise( - { - _id: `${type}:${id}`, - ...mockVersionProps, - result: 'updated', - // don't need the rest of the source for test purposes, just the namespace and namespaces attributes - get: { - _source: { - namespaces: [options?.namespace ?? 'default'], - namespace: options?.namespace, + client.update.mockResponseOnce( + { + _id: `${type}:${id}`, + ...mockVersionProps, + result: 'updated', + // don't need the rest of the source for test purposes, just the namespace and namespaces attributes + get: { + _source: { + namespaces: [options?.namespace ?? 'default'], + namespace: options?.namespace, - // "includeOriginId" is not an option for the operation; however, if the existing saved object contains an originId attribute, the - // operation will return it in the result. This flag is just used for test purposes to modify the mock cluster call response. - ...(includeOriginId && { originId }), - }, + // "includeOriginId" is not an option for the operation; however, if the existing saved object contains an originId attribute, the + // operation will return it in the result. This flag is just used for test purposes to modify the mock cluster call response. + ...(includeOriginId && { originId }), }, - } as estypes.UpdateResponse, - { statusCode: 200 } - ) + }, + } as estypes.UpdateResponse, + { statusCode: 200 } ); }; @@ -4489,12 +4448,7 @@ describe('SavedObjectsRepository', () => { if (registry.isMultiNamespace(type)) { const mockGetResponse = mockGetResponseValue ?? getMockGetResponse({ type, id }, options?.namespace); - client.get.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise( - { ...mockGetResponse }, - { statusCode: 200 } - ) - ); + client.get.mockResponseOnce(mockGetResponse, { statusCode: 200 }); } mockUpdateResponse(type, id, options, includeOriginId); const result = await savedObjectsRepository.update(type, id, attributes, options); @@ -4896,9 +4850,7 @@ describe('SavedObjectsRepository', () => { const generateResults = (id?: string) => ({ id: id || 'id' }); const successResponse = async (type: string, options?: SavedObjectsOpenPointInTimeOptions) => { - client.openPointInTime.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(generateResults()) - ); + client.openPointInTime.mockResponseOnce(generateResults()); const result = await savedObjectsRepository.openPointInTimeForType(type, options); expect(client.openPointInTime).toHaveBeenCalledTimes(1); return result; @@ -4987,9 +4939,7 @@ describe('SavedObjectsRepository', () => { describe('#closePointInTime', () => { const generateResults = () => ({ succeeded: true, num_freed: 3 }); const successResponse = async (id: string) => { - client.closePointInTime.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(generateResults()) - ); + client.closePointInTime.mockResponseOnce(generateResults()); const result = await savedObjectsRepository.closePointInTime(id); expect(client.closePointInTime).toHaveBeenCalledTimes(1); return result; @@ -5017,9 +4967,7 @@ describe('SavedObjectsRepository', () => { describe('returns', () => { it(`returns response body from ES`, async () => { const results = generateResults(); - client.closePointInTime.mockResolvedValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise(results) - ); + client.closePointInTime.mockResponseOnce(results); const response = await savedObjectsRepository.closePointInTime('abc123'); expect(response).toEqual(results); }); diff --git a/src/core/server/saved_objects/service/lib/repository.ts b/src/core/server/saved_objects/service/lib/repository.ts index a8ad0f68dba8b..abfea6e7ebafc 100644 --- a/src/core/server/saved_objects/service/lib/repository.ts +++ b/src/core/server/saved_objects/service/lib/repository.ts @@ -392,8 +392,8 @@ export class SavedObjectsRepository { const { body, statusCode, headers } = id && overwrite - ? await this.client.index(requestParams) - : await this.client.create(requestParams); + ? await this.client.index(requestParams, { meta: true }) + : await this.client.create(requestParams, { meta: true }); // throw if we can't verify a 404 response is from Elasticsearch if (isNotFoundFromUnsupportedServer({ statusCode, headers })) { @@ -602,7 +602,7 @@ export class SavedObjectsRepository { } const { requestedId, rawMigratedDoc, esRequestIndex } = expectedResult.value; - const rawResponse = Object.values(bulkResponse?.body.items[esRequestIndex] ?? {})[0] as any; + const rawResponse = Object.values(bulkResponse?.items[esRequestIndex] ?? {})[0] as any; const error = getBulkOperationError(rawMigratedDoc._source.type, requestedId, rawResponse); if (error) { @@ -672,7 +672,7 @@ export class SavedObjectsRepository { docs: bulkGetDocs, }, }, - { ignore: [404] } + { ignore: [404], meta: true } ) : undefined; // throw if we can't verify a 404 response is from Elasticsearch @@ -764,7 +764,7 @@ export class SavedObjectsRepository { ...getExpectedVersionProperties(undefined, preflightResult?.rawDocSource), refresh, }, - { ignore: [404] } + { ignore: [404], meta: true } ); if (isNotFoundFromUnsupportedServer({ statusCode, headers })) { @@ -865,7 +865,7 @@ export class SavedObjectsRepository { }), }, }, - { ignore: [404] } + { ignore: [404], meta: true } ); // throw if we can't verify a 404 response is from Elasticsearch if (isNotFoundFromUnsupportedServer({ statusCode, headers })) { @@ -1019,6 +1019,7 @@ export class SavedObjectsRepository { esOptions, { ignore: [404], + meta: true, } ); if (statusCode === 404) { @@ -1128,7 +1129,7 @@ export class SavedObjectsRepository { docs: bulkGetDocs, }, }, - { ignore: [404] } + { ignore: [404], meta: true } ) : undefined; // fail fast if we can't verify a 404 is from Elasticsearch @@ -1237,7 +1238,7 @@ export class SavedObjectsRepository { id: this._serializer.generateRawId(namespace, type, id), index: this.getIndexForType(type), }, - { ignore: [404] } + { ignore: [404], meta: true } ); const indexNotFound = statusCode === 404; // check if we have the elasticsearch header when index is not found and, if we do, ensure it is from Elasticsearch @@ -1368,8 +1369,8 @@ export class SavedObjectsRepository { ...(Array.isArray(references) && { references }), }; - const { body } = await this.client - .update({ + const body = await this.client + .update({ id: this._serializer.generateRawId(namespace, type, id), index: this.getIndexForType(type), ...getExpectedVersionProperties(version, preflightResult?.rawDocSource), @@ -1556,6 +1557,7 @@ export class SavedObjectsRepository { }, { ignore: [404], + meta: true, } ) : undefined; @@ -1655,7 +1657,7 @@ export class SavedObjectsRepository { } const { type, id, namespaces, documentToSave, esRequestIndex } = expectedResult.value; - const response = bulkUpdateResponse?.body.items[esRequestIndex] ?? {}; + const response = bulkUpdateResponse?.items[esRequestIndex] ?? {}; const rawResponse = Object.values(response)[0] as any; const error = getBulkOperationError(type, id, rawResponse); @@ -1734,7 +1736,7 @@ export class SavedObjectsRepository { }), }, }, - { ignore: [404] } + { ignore: [404], meta: true } ); // fail fast if we can't verify a 404 is from Elasticsearch if (isNotFoundFromUnsupportedServer({ statusCode, headers })) { @@ -1923,7 +1925,7 @@ export class SavedObjectsRepository { const raw = this._serializer.savedObjectToRaw(migrated as SavedObjectSanitizedDoc); - const { body } = await this.client.update({ + const body = await this.client.update({ id: raw._id, index: this.getIndexForType(type), refresh, @@ -2028,6 +2030,7 @@ export class SavedObjectsRepository { const { body, statusCode, headers } = await this.client.openPointInTime(esOptions, { ignore: [404], + meta: true, }); if (statusCode === 404) { @@ -2088,11 +2091,9 @@ export class SavedObjectsRepository { id: string, options?: SavedObjectsClosePointInTimeOptions ): Promise { - const { body } = await this.client.closePointInTime({ + return await this.client.closePointInTime({ body: { id }, }); - - return body; } /** @@ -2213,6 +2214,7 @@ export class SavedObjectsRepository { }, { ignore: [404], + meta: true, } ); diff --git a/src/core/server/saved_objects/service/lib/repository_es_client.test.ts b/src/core/server/saved_objects/service/lib/repository_es_client.test.ts index 97cafec68b905..d06172fc6a673 100644 --- a/src/core/server/saved_objects/service/lib/repository_es_client.test.ts +++ b/src/core/server/saved_objects/service/lib/repository_es_client.test.ts @@ -44,7 +44,7 @@ describe('RepositoryEsClient', () => { it('transform elasticsearch errors into saved objects errors', async () => { expect.assertions(1); - client.bulk = jest.fn().mockRejectedValue(new Error('reason')); + client.bulk.mockRejectedValue(new Error('reason')); try { await repositoryClient.bulk({ body: [] }); } catch (e) { diff --git a/src/core/server/saved_objects/service/lib/repository_es_client.ts b/src/core/server/saved_objects/service/lib/repository_es_client.ts index 4c1ae294cc7db..e9893d4b2d570 100644 --- a/src/core/server/saved_objects/service/lib/repository_es_client.ts +++ b/src/core/server/saved_objects/service/lib/repository_es_client.ts @@ -28,7 +28,7 @@ const methods = [ type MethodName = typeof methods[number]; -export type RepositoryEsClient = Pick; +export type RepositoryEsClient = Pick; export function createRepositoryEsClient(client: ElasticsearchClient): RepositoryEsClient { return methods.reduce((acc: RepositoryEsClient, key: MethodName) => { diff --git a/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts b/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts index 5163c4a4990ad..38bdba0208b8d 100644 --- a/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts +++ b/src/core/server/saved_objects/service/lib/update_objects_spaces.test.ts @@ -13,8 +13,6 @@ import { mockDeleteLegacyUrlAliases, } from './update_objects_spaces.test.mock'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; -import type { ElasticsearchClient } from 'src/core/server/elasticsearch'; import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; import { loggerMock } from '../../../logging/logger.mock'; @@ -66,7 +64,7 @@ afterAll(() => { }); describe('#updateObjectsSpaces', () => { - let client: DeeplyMockedKeys; + let client: ReturnType; /** Sets up the type registry, saved objects client, etc. and return the full parameters object to be passed to `updateObjectsSpaces` */ function setup({ objects = [], spacesToAdd = [], spacesToRemove = [], options }: SetupParams) { @@ -93,8 +91,29 @@ describe('#updateObjectsSpaces', () => { /** Mocks the saved objects client so it returns the expected results */ function mockMgetResults(...results: Array<{ found: boolean }>) { - client.mget.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ + client.mget.mockResponseOnce({ + docs: results.map((x) => + x.found + ? { + _id: 'doesnt-matter', + _index: 'doesnt-matter', + _source: { namespaces: [EXISTING_SPACE] }, + ...VERSION_PROPS, + found: true, + } + : { + _id: 'doesnt-matter', + _index: 'doesnt-matter', + found: false, + } + ), + }); + } + + /** Mocks the saved objects client so as to test unsupported server responding with 404 */ + function mockMgetResultsNotFound(...results: Array<{ found: boolean }>) { + client.mget.mockResponseOnce( + { docs: results.map((x) => x.found ? { @@ -110,33 +129,8 @@ describe('#updateObjectsSpaces', () => { found: false, } ), - }) - ); - } - /** Mocks the saved objects client so as to test unsupported server responding with 404 */ - function mockMgetResultsNotFound(...results: Array<{ found: boolean }>) { - client.mget.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise( - { - docs: results.map((x) => - x.found - ? { - _id: 'doesnt-matter', - _index: 'doesnt-matter', - _source: { namespaces: [EXISTING_SPACE] }, - ...VERSION_PROPS, - found: true, - } - : { - _id: 'doesnt-matter', - _index: 'doesnt-matter', - found: false, - } - ), - }, - { statusCode: 404 }, - {} - ) + }, + { statusCode: 404, headers: {} } ); } @@ -155,13 +149,11 @@ describe('#updateObjectsSpaces', () => { mockGetBulkOperationError.mockReturnValueOnce(undefined); } }); - client.bulk.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - items: results.map(() => ({})), // as long as the result does not contain an error field, it is treated as a success - errors: false, - took: 0, - }) - ); + client.bulk.mockResponseOnce({ + items: results.map(() => ({})), // as long as the result does not contain an error field, it is treated as a success + errors: false, + took: 0, + }); } /** Asserts that mget is called for the given objects */ diff --git a/src/core/server/saved_objects/service/lib/update_objects_spaces.ts b/src/core/server/saved_objects/service/lib/update_objects_spaces.ts index f3c97382c3747..26da4909df247 100644 --- a/src/core/server/saved_objects/service/lib/update_objects_spaces.ts +++ b/src/core/server/saved_objects/service/lib/update_objects_spaces.ts @@ -124,6 +124,7 @@ const MAX_CONCURRENT_ALIAS_DELETIONS = 10; function isMgetError(doc?: estypes.MgetResponseItem): doc is estypes.MgetMultiGetError { return Boolean(doc && 'error' in doc); } + /** * Gets all references and transitive references of the given objects. Ignores any object and/or reference that is not a multi-namespace * type. @@ -204,7 +205,7 @@ export async function updateObjectsSpaces({ const bulkGetResponse = bulkGetDocs.length ? await client.mget( { body: { docs: bulkGetDocs } }, - { ignore: [404] } + { ignore: [404], meta: true } ) : undefined; // fail fast if we can't verify a 404 response is from Elasticsearch @@ -338,7 +339,7 @@ export async function updateObjectsSpaces({ const { type, id, updatedSpaces, esRequestIndex } = expectedResult.value; if (esRequestIndex !== undefined) { - const response = bulkOperationResponse?.body.items[esRequestIndex] ?? {}; + const response = bulkOperationResponse?.items[esRequestIndex] ?? {}; const rawResponse = Object.values(response)[0] as any; const error = getBulkOperationError(type, id, rawResponse); if (error) { diff --git a/src/core/server/server.api.md b/src/core/server/server.api.md index a722e6eb98b02..111f2ed0001fc 100644 --- a/src/core/server/server.api.md +++ b/src/core/server/server.api.md @@ -10,6 +10,7 @@ import { AddConfigDeprecation } from '@kbn/config'; import Boom from '@hapi/boom'; import { ByteSizeValue } from '@kbn/config-schema'; import { CliArgs } from '@kbn/config'; +import type { Client } from '@elastic/elasticsearch'; import type { ClientOptions } from '@elastic/elasticsearch/lib/client'; import { ConditionalType } from '@kbn/config-schema'; import { ConfigDeprecation } from '@kbn/config'; @@ -31,7 +32,6 @@ import { EnvironmentMode } from '@kbn/config'; import { errors } from '@elastic/elasticsearch'; import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { IncomingHttpHeaders } from 'http'; -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; import { Logger } from '@kbn/logging'; import { LoggerFactory } from '@kbn/logging'; import { LogLevel as LogLevel_2 } from '@kbn/logging'; @@ -53,9 +53,6 @@ import { ResponseToolkit } from '@hapi/hapi'; import { SchemaTypeError } from '@kbn/config-schema'; import { ShallowPromise } from '@kbn/utility-types'; import { Stream } from 'stream'; -import type { TransportRequestOptions } from '@elastic/elasticsearch'; -import type { TransportRequestParams } from '@elastic/elasticsearch'; -import type { TransportResult } from '@elastic/elasticsearch'; import { Type } from '@kbn/config-schema'; import { TypeOf } from '@kbn/config-schema'; import { UiCounterMetricType } from '@kbn/analytics'; @@ -888,11 +885,7 @@ export { EcsEventOutcome } export { EcsEventType } // @public -export type ElasticsearchClient = Omit & { - transport: { - request(params: TransportRequestParams, options?: TransportRequestOptions): Promise>; - }; -}; +export type ElasticsearchClient = Omit; // @public export type ElasticsearchClientConfig = Pick & { @@ -3167,7 +3160,7 @@ export const validBodyOutput: readonly ["data", "stream"]; // Warnings were encountered during analysis: // -// src/core/server/elasticsearch/client/types.ts:93:7 - (ae-forgotten-export) The symbol "Explanation" needs to be exported by the entry point index.d.ts +// src/core/server/elasticsearch/client/types.ts:81:7 - (ae-forgotten-export) The symbol "Explanation" needs to be exported by the entry point index.d.ts // src/core/server/http/router/response.ts:302:3 - (ae-forgotten-export) The symbol "KibanaResponse" needs to be exported by the entry point index.d.ts // src/core/server/plugins/types.ts:375:3 - (ae-forgotten-export) The symbol "SharedGlobalConfigKeys" needs to be exported by the entry point index.d.ts // src/core/server/plugins/types.ts:377:3 - (ae-forgotten-export) The symbol "SavedObjectsConfigType" needs to be exported by the entry point index.d.ts diff --git a/src/core/server/ui_settings/integration_tests/lib/servers.ts b/src/core/server/ui_settings/integration_tests/lib/servers.ts index d94ab98060a27..2591e4050341c 100644 --- a/src/core/server/ui_settings/integration_tests/lib/servers.ts +++ b/src/core/server/ui_settings/integration_tests/lib/servers.ts @@ -8,7 +8,7 @@ import type supertest from 'supertest'; import type { SavedObjectsClientContract, IUiSettingsClient } from 'src/core/server'; -import type { KibanaClient } from '@elastic/elasticsearch/lib/api/kibana'; +import type { Client } from '@elastic/elasticsearch'; import { createTestServers, @@ -26,7 +26,7 @@ let kbn: TestKibanaUtils; interface AllServices { savedObjectsClient: SavedObjectsClientContract; - esClient: KibanaClient; + esClient: Client; uiSettings: IUiSettingsClient; supertest: (method: HttpMethod, path: string) => supertest.Test; } @@ -55,7 +55,7 @@ export function getServices() { return services; } - const esClient = esServer.es.getKibanaEsClient(); + const esClient = esServer.es.getClient(); const savedObjectsClient = kbn.coreStart.savedObjects.getScopedClient( httpServerMock.createKibanaRequest() diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap b/src/plugins/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap index c502c9efa2beb..51a4f92dc2876 100644 --- a/src/plugins/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_metric/common/expression_functions/__snapshots__/metric_vis_function.test.ts.snap @@ -40,6 +40,7 @@ Object { ], }, "metric": Object { + "autoScale": undefined, "labels": Object { "show": true, }, diff --git a/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts b/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts index ac3b4f5cc4576..26d8964c37ec2 100644 --- a/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts +++ b/src/plugins/chart_expressions/expression_metric/common/expression_functions/metric_vis_function.ts @@ -71,6 +71,13 @@ export const metricVisFunction = (): MetricVisExpressionFunctionDefinition => ({ defaultMessage: 'bucket dimension configuration', }), }, + autoScale: { + types: ['boolean'], + help: i18n.translate('expressionMetricVis.function.autoScale.help', { + defaultMessage: 'Enable auto scale', + }), + required: false, + }, }, fn(input, args, handlers) { if (args.percentageMode && !args.palette?.params) { @@ -117,6 +124,7 @@ export const metricVisFunction = (): MetricVisExpressionFunctionDefinition => ({ labelColor: args.colorMode === ColorMode.Labels, ...args.font, }, + autoScale: args.autoScale, }, dimensions: { metrics: args.metric, diff --git a/src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts b/src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts index 88bc0310a6a04..b4b981340e66a 100644 --- a/src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts +++ b/src/plugins/chart_expressions/expression_metric/common/types/expression_functions.ts @@ -25,6 +25,7 @@ export interface MetricArguments { font: Style; metric: ExpressionValueVisDimension[]; bucket?: ExpressionValueVisDimension; + autoScale?: boolean; } export type MetricInput = Datatable; diff --git a/src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts b/src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts index eb7573183894c..37c79b6700767 100644 --- a/src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts +++ b/src/plugins/chart_expressions/expression_metric/common/types/expression_renderers.ts @@ -30,6 +30,7 @@ export interface MetricVisParam { palette?: CustomPaletteState; labels: Labels; style: MetricStyle; + autoScale?: boolean; } export interface VisParams { diff --git a/src/plugins/chart_expressions/expression_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap b/src/plugins/chart_expressions/expression_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap new file mode 100644 index 0000000000000..4acbab635ba47 --- /dev/null +++ b/src/plugins/chart_expressions/expression_metric/public/components/__snapshots__/with_auto_scale.test.tsx.snap @@ -0,0 +1,31 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AutoScale withAutoScale renders 1`] = ` + +
+
+ +

+ Hoi! +

+
+
+
+
+`; diff --git a/src/plugins/chart_expressions/expression_metric/public/components/metric.scss b/src/plugins/chart_expressions/expression_metric/public/components/metric.scss index 24c5c05129882..262feffc1f93b 100644 --- a/src/plugins/chart_expressions/expression_metric/public/components/metric.scss +++ b/src/plugins/chart_expressions/expression_metric/public/components/metric.scss @@ -6,6 +6,7 @@ // mtrChart__legend-isLoading .mtrVis { + @include euiScrollBar; height: 100%; width: 100%; display: flex; @@ -13,6 +14,7 @@ justify-content: center; align-items: center; flex-wrap: wrap; + overflow: auto; } .mtrVis__value { diff --git a/src/plugins/chart_expressions/expression_metric/public/components/metric_component.tsx b/src/plugins/chart_expressions/expression_metric/public/components/metric_component.tsx index 245fdf0a37170..ed9c2667dbddd 100644 --- a/src/plugins/chart_expressions/expression_metric/public/components/metric_component.tsx +++ b/src/plugins/chart_expressions/expression_metric/public/components/metric_component.tsx @@ -17,6 +17,7 @@ import { ExpressionValueVisDimension } from '../../../../visualizations/public'; import { formatValue, shouldApplyColor } from '../utils'; import { getColumnByAccessor } from '../utils/accessor'; import { needsLightText } from '../utils/palette'; +import { withAutoScale } from './with_auto_scale'; import './metric.scss'; @@ -27,6 +28,8 @@ export interface MetricVisComponentProps { renderComplete: () => void; } +const AutoScaleMetricVisValue = withAutoScale(MetricVisValue); + class MetricVisComponent extends Component { private getColor(value: number, paletteParams: CustomPaletteState) { return getPaletteService().get('custom')?.getColorForValue?.(value, paletteParams, { @@ -108,8 +111,12 @@ class MetricVisComponent extends Component { }; private renderMetric = (metric: MetricOptions, index: number) => { + const MetricComponent = this.props.visParams.metric.autoScale + ? AutoScaleMetricVisValue + : MetricVisValue; + return ( - ({ + clientHeight, + clientWidth, +}); + +describe('AutoScale', () => { + describe('computeScale', () => { + it('is 1 if any element is null', () => { + expect(computeScale(null, null)).toBe(1); + expect(computeScale(mockElement(), null)).toBe(1); + expect(computeScale(null, mockElement())).toBe(1); + }); + + it('is never over 1', () => { + expect(computeScale(mockElement(2000, 2000), mockElement(1000, 1000))).toBe(1); + }); + + it('is never under 0.3 in default case', () => { + expect(computeScale(mockElement(2000, 1000), mockElement(1000, 10000))).toBe(0.3); + }); + + it('is never under specified min scale if specified', () => { + expect(computeScale(mockElement(2000, 1000), mockElement(1000, 10000), 0.1)).toBe(0.1); + }); + + it('is the lesser of the x or y scale', () => { + expect(computeScale(mockElement(2000, 2000), mockElement(3000, 5000))).toBe(0.4); + expect(computeScale(mockElement(2000, 3000), mockElement(4000, 3200))).toBe(0.5); + }); + }); + + describe('withAutoScale', () => { + it('renders', () => { + const Component = () =>

Hoi!

; + const WrappedComponent = withAutoScale(Component); + expect(mount()).toMatchSnapshot(); + }); + }); +}); diff --git a/src/plugins/chart_expressions/expression_metric/public/components/with_auto_scale.tsx b/src/plugins/chart_expressions/expression_metric/public/components/with_auto_scale.tsx new file mode 100644 index 0000000000000..241e882f34ba8 --- /dev/null +++ b/src/plugins/chart_expressions/expression_metric/public/components/with_auto_scale.tsx @@ -0,0 +1,91 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +import React, { useRef, useEffect, useState, ComponentType, useMemo } from 'react'; +import { throttle } from 'lodash'; +import { useResizeObserver } from '@elastic/eui'; +import { autoScaleWrapperStyle } from './with_auto_scale.styles'; + +interface AutoScaleParams { + minScale?: number; +} +interface ClientDimensionable { + clientWidth: number; + clientHeight: number; +} + +const MAX_SCALE = 1; +const MIN_SCALE = 0.3; + +/** + * computeScale computes the ratio by which the child needs to shrink in order + * to fit into the parent. This function is only exported for testing purposes. + */ +export function computeScale( + parent: ClientDimensionable | null, + child: ClientDimensionable | null, + minScale: number = MIN_SCALE +) { + if (!parent || !child) { + return 1; + } + + const scaleX = parent.clientWidth / child.clientWidth; + const scaleY = parent.clientHeight / child.clientHeight; + + return Math.max(Math.min(MAX_SCALE, Math.min(scaleX, scaleY)), minScale); +} + +export function withAutoScale( + WrappedComponent: ComponentType, + autoScaleParams?: AutoScaleParams +) { + return (props: T) => { + // An initial scale of 0 means we always redraw + // at least once, which is sub-optimal, but it + // prevents an annoying flicker. + const [scale, setScale] = useState(0); + const parentRef = useRef(null); + const childrenRef = useRef(null); + const parentDimensions = useResizeObserver(parentRef.current); + + const scaleFn = useMemo( + () => + throttle(() => { + const newScale = computeScale( + { clientHeight: parentDimensions.height, clientWidth: parentDimensions.width }, + childrenRef.current, + autoScaleParams?.minScale + ); + + // Prevent an infinite render loop + if (scale !== newScale) { + setScale(newScale); + } + }), + [parentDimensions, setScale, scale] + ); + + useEffect(() => { + scaleFn(); + }, [scaleFn]); + + return ( +
+
+ +
+
+ ); + }; +} diff --git a/src/plugins/controls/storybook/main.ts b/src/plugins/controls/storybook/main.ts index 13f55f8be2df8..1261fe5a06f69 100644 --- a/src/plugins/controls/storybook/main.ts +++ b/src/plugins/controls/storybook/main.ts @@ -6,11 +6,6 @@ * Side Public License, v 1. */ -import { defaultConfigWebFinal } from '@kbn/storybook'; +import { defaultConfig } from '@kbn/storybook'; -// We have to do this because the kbn/storybook preset overrides the manager entries, -// so we can't customize the theme. -module.exports = { - ...defaultConfigWebFinal, - addons: ['@storybook/addon-a11y', '@storybook/addon-essentials'], -}; +module.exports = defaultConfig; diff --git a/src/plugins/dashboard/public/index.ts b/src/plugins/dashboard/public/index.ts index bff2d4d79108c..8acbe5f4d511f 100644 --- a/src/plugins/dashboard/public/index.ts +++ b/src/plugins/dashboard/public/index.ts @@ -17,7 +17,11 @@ export { export { DashboardConstants, createDashboardEditUrl } from './dashboard_constants'; export type { DashboardSetup, DashboardStart, DashboardFeatureFlagConfig } from './plugin'; -export type { DashboardAppLocator, DashboardAppLocatorParams } from './locator'; +export { + type DashboardAppLocator, + type DashboardAppLocatorParams, + cleanEmptyKeys, +} from './locator'; export type { DashboardSavedObject } from './saved_dashboards'; export type { SavedDashboardPanel, DashboardContainerInput } from './types'; diff --git a/src/plugins/dashboard/public/locator.ts b/src/plugins/dashboard/public/locator.ts index 42efb521cf6e5..7fa24ebf0636a 100644 --- a/src/plugins/dashboard/public/locator.ts +++ b/src/plugins/dashboard/public/locator.ts @@ -22,7 +22,7 @@ import { DashboardConstants } from './dashboard_constants'; */ const getSerializableRecord: (o: O) => O & SerializableRecord = flow(JSON.stringify, JSON.parse); -const cleanEmptyKeys = (stateObj: Record) => { +export const cleanEmptyKeys = (stateObj: Record) => { Object.keys(stateObj).forEach((key) => { if (stateObj[key] === undefined) { delete stateObj[key]; diff --git a/src/plugins/data/server/autocomplete/terms_agg.test.ts b/src/plugins/data/server/autocomplete/terms_agg.test.ts index eb24b71cae274..f9d45475d9e2f 100644 --- a/src/plugins/data/server/autocomplete/terms_agg.test.ts +++ b/src/plugins/data/server/autocomplete/terms_agg.test.ts @@ -10,7 +10,6 @@ import { coreMock } from '../../../../core/server/mocks'; import { ElasticsearchClient, SavedObjectsClientContract } from 'kibana/server'; import { ConfigSchema } from '../../config'; import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; -import type { TransportResult } from '@elastic/elasticsearch'; import { termsAggSuggestions } from './terms_agg'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { duration } from 'moment'; @@ -25,14 +24,12 @@ const configMock = { // @ts-expect-error not full interface const mockResponse = { - body: { - aggregations: { - suggestions: { - buckets: [{ key: 'whoa' }, { key: 'amazing' }], - }, + aggregations: { + suggestions: { + buckets: [{ key: 'whoa' }, { key: 'amazing' }], }, }, -} as TransportResult>; +} as estypes.SearchResponse; jest.mock('../data_views'); diff --git a/src/plugins/data/server/autocomplete/terms_agg.ts b/src/plugins/data/server/autocomplete/terms_agg.ts index 20a8a5c212f26..742812adafbb9 100644 --- a/src/plugins/data/server/autocomplete/terms_agg.ts +++ b/src/plugins/data/server/autocomplete/terms_agg.ts @@ -45,8 +45,8 @@ export async function termsAggSuggestions( ); const buckets = - get(result.body, 'aggregations.suggestions.buckets') || - get(result.body, 'aggregations.nestedSuggestions.suggestions.buckets'); + get(result, 'aggregations.suggestions.buckets') || + get(result, 'aggregations.nestedSuggestions.suggestions.buckets'); return map(buckets ?? [], 'key'); } diff --git a/src/plugins/data/server/autocomplete/terms_enum.test.ts b/src/plugins/data/server/autocomplete/terms_enum.test.ts index c0750ead5cc0a..ce2741f612ba8 100644 --- a/src/plugins/data/server/autocomplete/terms_enum.test.ts +++ b/src/plugins/data/server/autocomplete/terms_enum.test.ts @@ -11,7 +11,6 @@ import { coreMock } from '../../../../core/server/mocks'; import { ElasticsearchClient, SavedObjectsClientContract } from 'kibana/server'; import { ConfigSchema } from '../../config'; import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; -import type { TransportResult } from '@elastic/elasticsearch'; import { TermsEnumResponse } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; let savedObjectsClientMock: jest.Mocked; @@ -19,9 +18,7 @@ let esClientMock: DeeplyMockedKeys; const configMock = { autocomplete: { valueSuggestions: { tiers: ['data_hot', 'data_warm', 'data_content'] } }, } as ConfigSchema; -const mockResponse = { - body: { terms: ['whoa', 'amazing'] }, -}; +const mockResponse = { terms: ['whoa', 'amazing'] }; jest.mock('../data_views'); @@ -30,9 +27,7 @@ describe('_terms_enum suggestions', () => { const requestHandlerContext = coreMock.createRequestHandlerContext(); savedObjectsClientMock = requestHandlerContext.savedObjects.client; esClientMock = requestHandlerContext.elasticsearch.client.asCurrentUser; - esClientMock.termsEnum.mockResolvedValue( - mockResponse as unknown as TransportResult - ); + esClientMock.termsEnum.mockResolvedValue(mockResponse as unknown as TermsEnumResponse); }); it('calls the _terms_enum API with the field, query, filters, and config tiers', async () => { @@ -73,7 +68,7 @@ describe('_terms_enum suggestions', () => { "index": "index", } `); - expect(result).toEqual(mockResponse.body.terms); + expect(result).toEqual(mockResponse.terms); }); it('calls the _terms_enum API and fallback to fieldName when field is null', async () => { @@ -113,6 +108,6 @@ describe('_terms_enum suggestions', () => { "index": "index", } `); - expect(result).toEqual(mockResponse.body.terms); + expect(result).toEqual(mockResponse.terms); }); }); diff --git a/src/plugins/data/server/autocomplete/terms_enum.ts b/src/plugins/data/server/autocomplete/terms_enum.ts index 201ff32c056ce..e4dca0a739087 100644 --- a/src/plugins/data/server/autocomplete/terms_enum.ts +++ b/src/plugins/data/server/autocomplete/terms_enum.ts @@ -54,5 +54,5 @@ export async function termsEnumSuggestions( } ); - return result.body.terms; + return result.terms; } diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/fetch.test.ts b/src/plugins/data/server/kql_telemetry/usage_collector/fetch.test.ts index 912526b22151f..fb874e4a41c20 100644 --- a/src/plugins/data/server/kql_telemetry/usage_collector/fetch.test.ts +++ b/src/plugins/data/server/kql_telemetry/usage_collector/fetch.test.ts @@ -30,45 +30,41 @@ function setupMockCallCluster( function mockedEsGetMethod() { if (optCount === null) { return Promise.resolve({ - body: { - _index: '.kibana_1', - _id: 'kql-telemetry:kql-telemetry', - found: false, - }, + _index: '.kibana_1', + _id: 'kql-telemetry:kql-telemetry', + found: false, }); } else { return Promise.resolve({ - body: { - _source: { - 'kql-telemetry': { ...optCount }, - type: 'kql-telemetry', - updated_at: '2018-10-05T20:20:56.258Z', - }, + _source: { + 'kql-telemetry': { ...optCount }, + type: 'kql-telemetry', + updated_at: '2018-10-05T20:20:56.258Z', }, }); } } + function mockedEsSearchMethod() { if (language === 'missingConfigDoc') { - return Promise.resolve({ body: { hits: { hits: [] } } }); + return Promise.resolve({ hits: { hits: [] } }); } else { return Promise.resolve({ - body: { - hits: { - hits: [ - { - _source: { - config: { - 'search:queryLanguage': language, - }, + hits: { + hits: [ + { + _source: { + config: { + 'search:queryLanguage': language, }, }, - ], - }, + }, + ], }, }); } } + const esClientMock = { get: jest.fn().mockImplementation(mockedEsGetMethod), search: jest.fn().mockImplementation(mockedEsSearchMethod), diff --git a/src/plugins/data/server/kql_telemetry/usage_collector/fetch.ts b/src/plugins/data/server/kql_telemetry/usage_collector/fetch.ts index c04d8a89486af..bad26c1cf8f80 100644 --- a/src/plugins/data/server/kql_telemetry/usage_collector/fetch.ts +++ b/src/plugins/data/server/kql_telemetry/usage_collector/fetch.ts @@ -20,7 +20,7 @@ export interface Usage { export function fetchProvider(index: string) { return async ({ esClient }: CollectorFetchContext): Promise => { - const [{ body: response }, { body: config }] = await Promise.all([ + const [response, config] = await Promise.all([ esClient.get( { index, diff --git a/src/plugins/data/server/search/collectors/fetch.ts b/src/plugins/data/server/search/collectors/fetch.ts index a2d1917fc4770..054d04d6fbcae 100644 --- a/src/plugins/data/server/search/collectors/fetch.ts +++ b/src/plugins/data/server/search/collectors/fetch.ts @@ -15,7 +15,7 @@ interface SearchTelemetry { export function fetchProvider(kibanaIndex: string) { return async ({ esClient }: CollectorFetchContext): Promise => { - const { body: esResponse } = await esClient.search( + const esResponse = await esClient.search( { index: kibanaIndex, body: { diff --git a/src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.ts b/src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.ts index 3d9294765cc15..ebb07cff6e05d 100644 --- a/src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.ts +++ b/src/plugins/data/server/search/strategies/eql_search/eql_search_strategy.ts @@ -53,11 +53,15 @@ export const eqlSearchStrategyProvider = ( ...request.params, }; const response = id - ? await client.get({ ...params, id }, { ...request.options, signal: options.abortSignal }) + ? await client.get( + { ...params, id }, + { ...request.options, signal: options.abortSignal, meta: true } + ) : // @ts-expect-error optional key cannot be used since search doesn't expect undefined await client.search(params as EqlSearchStrategyRequest['params'], { ...request.options, abortController: { signal: options.abortSignal }, + meta: true, }); return toEqlKibanaSearchResponse(response as TransportResult); diff --git a/src/plugins/data/server/search/strategies/es_search/es_search_strategy.test.ts b/src/plugins/data/server/search/strategies/es_search/es_search_strategy.test.ts index c06a75f3148a8..de5962763aed4 100644 --- a/src/plugins/data/server/search/strategies/es_search/es_search_strategy.test.ts +++ b/src/plugins/data/server/search/strategies/es_search/es_search_strategy.test.ts @@ -5,7 +5,8 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ -import type { TransportResult } from '@elastic/elasticsearch'; + +import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { elasticsearchServiceMock } from '../../../../../../core/server/mocks'; import { pluginInitializerContextConfigMock } from '../../../../../../core/server/mocks'; import { esSearchStrategyProvider } from './es_search_strategy'; @@ -23,31 +24,28 @@ describe('ES search strategy', () => { skipped: 2, successful: 7, }, - } as const; - let mockedApiCaller: Promise>; - let mockApiCaller: jest.Mock<() => TransportResult>; + } as estypes.SearchResponse; + const mockLogger: any = { debug: () => {}, }; + let esClient: ReturnType; + function getMockedDeps(err?: Record) { - mockApiCaller = jest.fn().mockImplementation(() => { - if (err) { - mockedApiCaller = elasticsearchServiceMock.createErrorTransportRequestPromise(err); - } else { - mockedApiCaller = elasticsearchServiceMock.createSuccessTransportRequestPromise( - successBody, - { statusCode: 200 } - ); - } - return mockedApiCaller; - }); + esClient = elasticsearchServiceMock.createElasticsearchClient(); + + if (err) { + esClient.search.mockImplementation(() => Promise.reject(err)); + } else { + esClient.search.mockResponse(successBody, { statusCode: 200 }); + } return { uiSettingsClient: { get: () => {}, }, - esClient: { asCurrentUser: { search: mockApiCaller } }, + esClient: { asCurrentUser: esClient }, } as unknown as SearchStrategyDependencies; } @@ -65,8 +63,8 @@ describe('ES search strategy', () => { await esSearchStrategyProvider(mockConfig$, mockLogger) .search({ params }, {}, getMockedDeps()) .subscribe(() => { - expect(mockApiCaller).toBeCalled(); - expect(mockApiCaller.mock.calls[0][0]).toEqual({ + expect(esClient.search).toBeCalled(); + expect(esClient.search.mock.calls[0][0]).toEqual({ ...params, ignore_unavailable: true, track_total_hits: true, @@ -81,8 +79,8 @@ describe('ES search strategy', () => { await esSearchStrategyProvider(mockConfig$, mockLogger) .search({ params }, {}, getMockedDeps()) .subscribe(() => { - expect(mockApiCaller).toBeCalled(); - expect(mockApiCaller.mock.calls[0][0]).toEqual({ + expect(esClient.search).toBeCalled(); + expect(esClient.search.mock.calls[0][0]).toEqual({ ...params, track_total_hits: true, }); @@ -117,8 +115,8 @@ describe('ES search strategy', () => { .search({ params }, { abortSignal: abortController.signal }, getMockedDeps()) .toPromise(); - expect(mockApiCaller).toBeCalled(); - expect(mockApiCaller.mock.calls[0][0]).toEqual({ + expect(esClient.search).toBeCalled(); + expect(esClient.search.mock.calls[0][0]).toEqual({ ...params, track_total_hits: true, }); @@ -139,7 +137,7 @@ describe('ES search strategy', () => { .search({ params }, {}, getMockedDeps(errResponse)) .toPromise(); } catch (e) { - expect(mockApiCaller).toBeCalled(); + expect(esClient.search).toBeCalled(); expect(e).toBeInstanceOf(KbnServerError); expect(e.statusCode).toBe(404); expect(e.message).toBe(errResponse.message); @@ -157,7 +155,7 @@ describe('ES search strategy', () => { .search({ params }, {}, getMockedDeps(errResponse)) .toPromise(); } catch (e) { - expect(mockApiCaller).toBeCalled(); + expect(esClient.search).toBeCalled(); expect(e).toBeInstanceOf(KbnServerError); expect(e.statusCode).toBe(500); expect(e.message).toBe(errResponse.message); @@ -175,7 +173,7 @@ describe('ES search strategy', () => { .search({ params }, {}, getMockedDeps(errResponse)) .toPromise(); } catch (e) { - expect(mockApiCaller).toBeCalled(); + expect(esClient.search).toBeCalled(); expect(e).toBeInstanceOf(KbnServerError); expect(e.statusCode).toBe(500); expect(e.message).toBe(errResponse.message); @@ -192,7 +190,7 @@ describe('ES search strategy', () => { .search({ indexType: 'banana', params }, {}, getMockedDeps()) .toPromise(); } catch (e) { - expect(mockApiCaller).not.toBeCalled(); + expect(esClient.search).not.toBeCalled(); expect(e).toBeInstanceOf(KbnServerError); expect(e.message).toBe('Unsupported index pattern type banana'); expect(e.statusCode).toBe(400); diff --git a/src/plugins/data/server/search/strategies/es_search/es_search_strategy.ts b/src/plugins/data/server/search/strategies/es_search/es_search_strategy.ts index 097e099bf2997..5fd734138824d 100644 --- a/src/plugins/data/server/search/strategies/es_search/es_search_strategy.ts +++ b/src/plugins/data/server/search/strategies/es_search/es_search_strategy.ts @@ -46,7 +46,7 @@ export const esSearchStrategyProvider = ( ...(terminateAfter ? { terminate_after: terminateAfter } : {}), ...requestParams, }; - const { body } = await esClient.asCurrentUser.search(params, { + const body = await esClient.asCurrentUser.search(params, { signal: abortSignal, }); const response = shimHitsTotal(body, options); diff --git a/src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.ts b/src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.ts index e94f1aa44d351..7a9caa4998f9a 100644 --- a/src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.ts +++ b/src/plugins/data/server/search/strategies/ese_search/ese_search_strategy.ts @@ -68,9 +68,13 @@ export const enhancedEsSearchStrategyProvider = ( ...request.params, }; const { body, headers } = id - ? await client.asyncSearch.get({ ...params, id }, { signal: options.abortSignal }) + ? await client.asyncSearch.get( + { ...params, id }, + { signal: options.abortSignal, meta: true } + ) : await client.asyncSearch.submit(params, { signal: options.abortSignal, + meta: true, }); const response = shimHitsTotal(body.response, options); @@ -124,6 +128,7 @@ export const enhancedEsSearchStrategyProvider = ( }, { signal: options?.abortSignal, + meta: true, } ); diff --git a/src/plugins/data_view_field_editor/server/routes/field_preview.ts b/src/plugins/data_view_field_editor/server/routes/field_preview.ts index e95c12469ffb9..022cd92a4bb1e 100644 --- a/src/plugins/data_view_field_editor/server/routes/field_preview.ts +++ b/src/plugins/data_view_field_editor/server/routes/field_preview.ts @@ -70,7 +70,7 @@ export const registerFieldPreviewRoute = ({ router }: RouteDependencies): void = body, }); - const fieldValue = response.body.hits.hits[0]?.fields?.my_runtime_field ?? ''; + const fieldValue = response.hits.hits[0]?.fields?.my_runtime_field ?? ''; return res.ok({ body: { values: fieldValue } }); } catch (error: any) { diff --git a/src/plugins/data_view_management/server/routes/preview_scripted_field.ts b/src/plugins/data_view_management/server/routes/preview_scripted_field.ts index cc161859f4189..6756761fe9653 100644 --- a/src/plugins/data_view_management/server/routes/preview_scripted_field.ts +++ b/src/plugins/data_view_management/server/routes/preview_scripted_field.ts @@ -28,23 +28,27 @@ export function registerPreviewScriptedFieldRoute(router: IRouter): void { const { index, name, script, query, additionalFields } = request.body; try { - const response = await client.search({ - index, - body: { - _source: additionalFields && additionalFields.length > 0 ? additionalFields : undefined, - size: 10, - timeout: '30s', - query: query ?? { match_all: {} }, - script_fields: { - [name]: { - script: { - lang: 'painless', - source: script, + const response = await client.search( + { + index, + body: { + _source: + additionalFields && additionalFields.length > 0 ? additionalFields : undefined, + size: 10, + timeout: '30s', + query: query ?? { match_all: {} }, + script_fields: { + [name]: { + script: { + lang: 'painless', + source: script, + }, }, }, }, }, - }); + { meta: true } + ); return res.ok({ body: response }); } catch (err) { diff --git a/src/plugins/data_view_management/server/routes/resolve_index.ts b/src/plugins/data_view_management/server/routes/resolve_index.ts index 22c214f2adee2..f668fb1f1b8de 100644 --- a/src/plugins/data_view_management/server/routes/resolve_index.ts +++ b/src/plugins/data_view_management/server/routes/resolve_index.ts @@ -31,7 +31,7 @@ export function registerResolveIndexRoute(router: IRouter): void { }, }, async (context, req, res) => { - const { body } = await context.core.elasticsearch.client.asCurrentUser.indices.resolveIndex({ + const body = await context.core.elasticsearch.client.asCurrentUser.indices.resolveIndex({ name: req.params.query, expand_wildcards: req.query.expand_wildcards || 'open', }); diff --git a/src/plugins/data_views/server/fetcher/index_patterns_fetcher.test.ts b/src/plugins/data_views/server/fetcher/index_patterns_fetcher.test.ts index f55609d75a066..8f1749a4b61fa 100644 --- a/src/plugins/data_views/server/fetcher/index_patterns_fetcher.test.ts +++ b/src/plugins/data_views/server/fetcher/index_patterns_fetcher.test.ts @@ -5,46 +5,46 @@ * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ + +import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import { IndexPatternsFetcher } from '.'; -import { ElasticsearchClient } from 'kibana/server'; +import { elasticsearchServiceMock } from '../../../../core/server/mocks'; import * as indexNotFoundException from './index_not_found_exception.json'; describe('Index Pattern Fetcher - server', () => { let indexPatterns: IndexPatternsFetcher; - let esClient: ElasticsearchClient; + let esClient: ReturnType; const emptyResponse = { - body: { - indices: [], - }, + indices: [], }; const response = { - body: { - indices: ['b'], - fields: [{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }], - }, + indices: ['b'], + fields: [{ name: 'foo' }, { name: 'bar' }, { name: 'baz' }], }; const patternList = ['a', 'b', 'c']; beforeEach(() => { jest.clearAllMocks(); - esClient = { - fieldCaps: jest.fn().mockResolvedValueOnce(emptyResponse).mockResolvedValue(response), - } as unknown as ElasticsearchClient; + esClient = elasticsearchServiceMock.createElasticsearchClient(); indexPatterns = new IndexPatternsFetcher(esClient); }); it('Removes pattern without matching indices', async () => { + esClient.fieldCaps + .mockResponseOnce(emptyResponse as unknown as estypes.FieldCapsResponse) + .mockResponse(response as unknown as estypes.FieldCapsResponse); // first field caps request returns empty const result = await indexPatterns.validatePatternListActive(patternList); expect(result).toEqual(['b', 'c']); }); it('Keeps matching and negating patterns', async () => { + esClient.fieldCaps + .mockResponseOnce(emptyResponse as unknown as estypes.FieldCapsResponse) + .mockResponse(response as unknown as estypes.FieldCapsResponse); // first field caps request returns empty const result = await indexPatterns.validatePatternListActive(['-a', 'b', 'c']); expect(result).toEqual(['-a', 'c']); }); it('Returns all patterns when all match indices', async () => { - esClient = { - fieldCaps: jest.fn().mockResolvedValue(response), - } as unknown as ElasticsearchClient; + esClient.fieldCaps.mockResponse(response as unknown as estypes.FieldCapsResponse); indexPatterns = new IndexPatternsFetcher(esClient); const result = await indexPatterns.validatePatternListActive(patternList); expect(result).toEqual(patternList); @@ -52,6 +52,7 @@ describe('Index Pattern Fetcher - server', () => { it('Removes pattern when error is thrown', async () => { class ServerError extends Error { public body?: Record; + constructor( message: string, public readonly statusCode: number, @@ -61,34 +62,29 @@ describe('Index Pattern Fetcher - server', () => { this.body = errBody; } } - esClient = { - fieldCaps: jest - .fn() - .mockResolvedValueOnce(response) - .mockRejectedValue( + + esClient.fieldCaps + .mockResponseOnce(response as unknown as estypes.FieldCapsResponse) + .mockImplementationOnce(() => { + return Promise.reject( new ServerError('index_not_found_exception', 404, indexNotFoundException) - ), - } as unknown as ElasticsearchClient; + ); + }); + indexPatterns = new IndexPatternsFetcher(esClient); const result = await indexPatterns.validatePatternListActive(patternList); expect(result).toEqual([patternList[0]]); }); it('When allowNoIndices is false, run validatePatternListActive', async () => { - const fieldCapsMock = jest.fn(); - esClient = { - fieldCaps: fieldCapsMock.mockResolvedValue(response), - } as unknown as ElasticsearchClient; + esClient.fieldCaps.mockResponse(response as unknown as estypes.FieldCapsResponse); indexPatterns = new IndexPatternsFetcher(esClient); await indexPatterns.getFieldsForWildcard({ pattern: patternList }); - expect(fieldCapsMock.mock.calls).toHaveLength(4); + expect(esClient.fieldCaps).toHaveBeenCalledTimes(4); }); it('When allowNoIndices is true, do not run validatePatternListActive', async () => { - const fieldCapsMock = jest.fn(); - esClient = { - fieldCaps: fieldCapsMock.mockResolvedValue(response), - } as unknown as ElasticsearchClient; + esClient.fieldCaps.mockResponse(response as unknown as estypes.FieldCapsResponse); indexPatterns = new IndexPatternsFetcher(esClient, true); await indexPatterns.getFieldsForWildcard({ pattern: patternList }); - expect(fieldCapsMock.mock.calls).toHaveLength(1); + expect(esClient.fieldCaps).toHaveBeenCalledTimes(1); }); }); diff --git a/src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts b/src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts index 148e497d7ef02..dce48a6d96208 100644 --- a/src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts +++ b/src/plugins/data_views/server/fetcher/index_patterns_fetcher.ts @@ -37,10 +37,12 @@ interface FieldSubType { export class IndexPatternsFetcher { private elasticsearchClient: ElasticsearchClient; private allowNoIndices: boolean; + constructor(elasticsearchClient: ElasticsearchClient, allowNoIndices: boolean = false) { this.elasticsearchClient = elasticsearchClient; this.allowNoIndices = allowNoIndices; } + /** * Get a list of field objects for an index pattern that may contain wildcards * @@ -80,11 +82,9 @@ export class IndexPatternsFetcher { if (type === 'rollup' && rollupIndex) { const rollupFields: FieldDescriptor[] = []; const rollupIndexCapabilities = getCapabilitiesForRollupIndices( - ( - await this.elasticsearchClient.rollup.getRollupIndexCaps({ - index: rollupIndex, - }) - ).body + await this.elasticsearchClient.rollup.getRollupIndexCaps({ + index: rollupIndex, + }) )[rollupIndex].aggs; const fieldCapsResponseObj = keyBy(fieldCapsResponse, 'name'); // Keep meta fields @@ -150,7 +150,7 @@ export class IndexPatternsFetcher { ignore_unavailable: true, allow_no_indices: false, }); - return searchResponse.body.indices.length > 0; + return searchResponse.indices.length > 0; }) .map((p) => p.catch(() => false)) ); diff --git a/src/plugins/data_views/server/fetcher/lib/es_api.ts b/src/plugins/data_views/server/fetcher/lib/es_api.ts index d01bf58048f66..fe0a8fb126aec 100644 --- a/src/plugins/data_views/server/fetcher/lib/es_api.ts +++ b/src/plugins/data_views/server/fetcher/lib/es_api.ts @@ -68,13 +68,16 @@ export async function callFieldCapsApi(params: FieldCapsApiParams) { }, } = params; try { - return await callCluster.fieldCaps({ - index: indices, - fields: '*', - ignore_unavailable: true, - index_filter: filter, - ...fieldCapsOptions, - }); + return await callCluster.fieldCaps( + { + index: indices, + fields: '*', + ignore_unavailable: true, + index_filter: filter, + ...fieldCapsOptions, + }, + { meta: true } + ); } catch (error) { throw convertEsError(indices, error); } diff --git a/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.test.js b/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.test.js index 597770dff0a90..e71022bfe6b26 100644 --- a/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.test.js +++ b/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.test.js @@ -64,15 +64,13 @@ describe('server/index_patterns/service/lib/resolve_time_pattern', () => { describe('read response', () => { it('returns all aliases names in result.all, ordered by time desc', async () => { sandbox.stub(callIndexAliasApiNS, 'callIndexAliasApi').returns({ - body: { - 'logs-2016.2': {}, - 'logs-Saturday-2017.1': {}, - 'logs-2016.1': {}, - 'logs-Sunday-2017.1': {}, - 'logs-2015': {}, - 'logs-2016.3': {}, - 'logs-Friday-2017.1': {}, - }, + 'logs-2016.2': {}, + 'logs-Saturday-2017.1': {}, + 'logs-2016.1': {}, + 'logs-Sunday-2017.1': {}, + 'logs-2015': {}, + 'logs-2016.3': {}, + 'logs-Friday-2017.1': {}, }); const resp = await resolveTimePattern(noop, TIME_PATTERN); @@ -90,15 +88,13 @@ describe('server/index_patterns/service/lib/resolve_time_pattern', () => { it('returns all indices matching the time pattern in matches, ordered by time desc', async () => { sandbox.stub(callIndexAliasApiNS, 'callIndexAliasApi').returns({ - body: { - 'logs-2016.2': {}, - 'logs-Saturday-2017.1': {}, - 'logs-2016.1': {}, - 'logs-Sunday-2017.1': {}, - 'logs-2015': {}, - 'logs-2016.3': {}, - 'logs-Friday-2017.1': {}, - }, + 'logs-2016.2': {}, + 'logs-Saturday-2017.1': {}, + 'logs-2016.1': {}, + 'logs-Sunday-2017.1': {}, + 'logs-2015': {}, + 'logs-2016.3': {}, + 'logs-Friday-2017.1': {}, }); const resp = await resolveTimePattern(noop, TIME_PATTERN); diff --git a/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.ts b/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.ts index 32b9d8c7f893f..0d487cae4ef41 100644 --- a/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.ts +++ b/src/plugins/data_views/server/fetcher/lib/resolve_time_pattern.ts @@ -28,7 +28,7 @@ import { callIndexAliasApi } from './es_api'; export async function resolveTimePattern(callCluster: ElasticsearchClient, timePattern: string) { const aliases = await callIndexAliasApi(callCluster, timePatternToWildcard(timePattern)); - const allIndexDetails = chain(aliases.body) + const allIndexDetails = chain(aliases) .reduce( (acc: string[], index: any, indexName: string) => acc.concat(indexName, Object.keys(index.aliases || {})), diff --git a/src/plugins/data_views/server/has_user_index_pattern.test.ts b/src/plugins/data_views/server/has_user_index_pattern.test.ts index aeaa64b949dbc..886fa8c618e90 100644 --- a/src/plugins/data_views/server/has_user_index_pattern.test.ts +++ b/src/plugins/data_views/server/has_user_index_pattern.test.ts @@ -69,13 +69,11 @@ describe('hasUserIndexPattern', () => { }); it('calls indices.resolveIndex for the index patterns', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [], - data_streams: [], - aliases: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [], + data_streams: [], + aliases: [], + }); await hasUserIndexPattern({ esClient, soClient }); expect(esClient.indices.resolveIndex).toHaveBeenCalledWith({ name: 'logs-*,metrics-*', @@ -83,91 +81,79 @@ describe('hasUserIndexPattern', () => { }); it('returns false if no logs or metrics data_streams exist', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [], - data_streams: [], - aliases: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [], + data_streams: [], + aliases: [], + }); expect(await hasUserIndexPattern({ esClient, soClient })).toEqual(false); }); it('returns true if any index exists', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [{ name: 'logs', attributes: [] }], - data_streams: [], - aliases: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [{ name: 'logs', attributes: [] }], + data_streams: [], + aliases: [], + }); expect(await hasUserIndexPattern({ esClient, soClient })).toEqual(true); }); it('returns false if only metrics-elastic_agent data stream exists', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [], - data_streams: [ - { - name: 'metrics-elastic_agent', - timestamp_field: '@timestamp', - backing_indices: ['.ds-metrics-elastic_agent'], - }, - ], - aliases: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [], + data_streams: [ + { + name: 'metrics-elastic_agent', + timestamp_field: '@timestamp', + backing_indices: ['.ds-metrics-elastic_agent'], + }, + ], + aliases: [], + }); expect(await hasUserIndexPattern({ esClient, soClient })).toEqual(false); }); it('returns false if only logs-elastic_agent data stream exists', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [], - data_streams: [ - { - name: 'logs-elastic_agent', - timestamp_field: '@timestamp', - backing_indices: ['.ds-logs-elastic_agent'], - }, - ], - aliases: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [], + data_streams: [ + { + name: 'logs-elastic_agent', + timestamp_field: '@timestamp', + backing_indices: ['.ds-logs-elastic_agent'], + }, + ], + aliases: [], + }); expect(await hasUserIndexPattern({ esClient, soClient })).toEqual(false); }); it('returns false if only metrics-endpoint.metadata_current_default index exists', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [ - { - name: 'metrics-endpoint.metadata_current_default', - attributes: ['open'], - }, - ], - aliases: [], - data_streams: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [ + { + name: 'metrics-endpoint.metadata_current_default', + attributes: ['open'], + }, + ], + aliases: [], + data_streams: [], + }); expect(await hasUserIndexPattern({ esClient, soClient })).toEqual(false); }); it('returns true if any other data stream exists', async () => { - esClient.indices.resolveIndex.mockReturnValue( - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - indices: [], - data_streams: [ - { - name: 'other', - timestamp_field: '@timestamp', - backing_indices: ['.ds-other'], - }, - ], - aliases: [], - }) - ); + esClient.indices.resolveIndex.mockResponse({ + indices: [], + data_streams: [ + { + name: 'other', + timestamp_field: '@timestamp', + backing_indices: ['.ds-other'], + }, + ], + aliases: [], + }); expect(await hasUserIndexPattern({ esClient, soClient })).toEqual(true); }); }); diff --git a/src/plugins/data_views/server/has_user_index_pattern.ts b/src/plugins/data_views/server/has_user_index_pattern.ts index 6566f75ebc52e..cf64a2c2013da 100644 --- a/src/plugins/data_views/server/has_user_index_pattern.ts +++ b/src/plugins/data_views/server/has_user_index_pattern.ts @@ -44,13 +44,13 @@ export const hasUserIndexPattern = async ({ esClient, soClient }: Deps): Promise name: `${FLEET_ASSETS_TO_IGNORE.LOGS_INDEX_PATTERN},${FLEET_ASSETS_TO_IGNORE.METRICS_INDEX_PATTERN}`, }); - const hasAnyNonDefaultFleetIndices = resolveResponse.body.indices.some( + const hasAnyNonDefaultFleetIndices = resolveResponse.indices.some( (ds) => ds.name !== FLEET_ASSETS_TO_IGNORE.METRICS_ENDPOINT_INDEX_TO_IGNORE ); if (hasAnyNonDefaultFleetIndices) return true; - const hasAnyNonDefaultFleetDataStreams = resolveResponse.body.data_streams.some( + const hasAnyNonDefaultFleetDataStreams = resolveResponse.data_streams.some( (ds) => ds.name !== FLEET_ASSETS_TO_IGNORE.METRICS_DATA_STREAM_TO_IGNORE && ds.name !== FLEET_ASSETS_TO_IGNORE.LOGS_DATA_STREAM_TO_IGNORE diff --git a/src/plugins/data_views/server/rest_api_routes/runtime_fields/__snapshots__/response_formatter.test.ts.snap b/src/plugins/data_views/server/rest_api_routes/runtime_fields/__snapshots__/response_formatter.test.ts.snap index 12fcb0786df1b..97de2f03a4091 100644 --- a/src/plugins/data_views/server/rest_api_routes/runtime_fields/__snapshots__/response_formatter.test.ts.snap +++ b/src/plugins/data_views/server/rest_api_routes/runtime_fields/__snapshots__/response_formatter.test.ts.snap @@ -3,7 +3,7 @@ exports[`responseFormatter returns correct format 1`] = ` Object { "body": Object { - "SERVICE_KEY": Object { + "data_view": Object { "title": "dataView", }, "fields": Array [ @@ -18,12 +18,12 @@ Object { exports[`responseFormatter returns correct format for legacy 1`] = ` Object { "body": Object { - "SERVICE_KEY_LEGACY": Object { - "title": "dataView", - }, "field": Object { "name": "field", }, + "index_pattern": Object { + "title": "dataView", + }, }, } `; diff --git a/src/plugins/data_views/server/rest_api_routes/runtime_fields/response_formatter.ts b/src/plugins/data_views/server/rest_api_routes/runtime_fields/response_formatter.ts index 81e33e5290176..77f431cef48f8 100644 --- a/src/plugins/data_views/server/rest_api_routes/runtime_fields/response_formatter.ts +++ b/src/plugins/data_views/server/rest_api_routes/runtime_fields/response_formatter.ts @@ -7,7 +7,7 @@ */ import { DataView, DataViewField } from 'src/plugins/data_views/common'; -import { SERVICE_KEY_LEGACY, SERVICE_KEY_TYPE } from '../../constants'; +import { SERVICE_KEY_LEGACY, SERVICE_KEY_TYPE, SERVICE_KEY } from '../../constants'; interface ResponseFormatterArgs { serviceKey: SERVICE_KEY_TYPE; @@ -19,13 +19,13 @@ export const responseFormatter = ({ serviceKey, field, dataView }: ResponseForma const response = { body: { fields: [field.toSpec()], - SERVICE_KEY: dataView.toSpec(), + [SERVICE_KEY]: dataView.toSpec(), }, }; const legacyResponse = { body: { - SERVICE_KEY_LEGACY: dataView.toSpec(), + [SERVICE_KEY_LEGACY]: dataView.toSpec(), field: field.toSpec(), }, }; diff --git a/src/plugins/home/server/routes/fetch_es_hits_status.ts b/src/plugins/home/server/routes/fetch_es_hits_status.ts index 2939fc08712ea..b3cfef51920f1 100644 --- a/src/plugins/home/server/routes/fetch_es_hits_status.ts +++ b/src/plugins/home/server/routes/fetch_es_hits_status.ts @@ -25,7 +25,7 @@ export const registerHitsStatusRoute = (router: IRouter) => { const client = context.core.elasticsearch.client; try { - const { body } = await client.asCurrentUser.search({ + const body = await client.asCurrentUser.search({ index, size: 1, body: { diff --git a/src/plugins/home/server/services/sample_data/lib/insert_data_into_index.ts b/src/plugins/home/server/services/sample_data/lib/insert_data_into_index.ts index 4a7d7e9813dcc..e22a552b7d7bd 100644 --- a/src/plugins/home/server/services/sample_data/lib/insert_data_into_index.ts +++ b/src/plugins/home/server/services/sample_data/lib/insert_data_into_index.ts @@ -54,7 +54,7 @@ export const insertDataIntoIndex = ({ bulk.push(updateTimestamps(doc)); }); - const { body: resp } = await esClient.asCurrentUser.bulk({ + const resp = await esClient.asCurrentUser.bulk({ body: bulk, }); diff --git a/src/plugins/home/server/services/sample_data/routes/list.ts b/src/plugins/home/server/services/sample_data/routes/list.ts index a7ca32341f1f5..6bcc40c0c93e3 100644 --- a/src/plugins/home/server/services/sample_data/routes/list.ts +++ b/src/plugins/home/server/services/sample_data/routes/list.ts @@ -68,6 +68,7 @@ export const createListRoute = ( }; type ExistingSampleObjects = Map; + async function findExistingSampleObjects( context: RequestHandlerContext, logger: Logger, @@ -104,15 +105,14 @@ async function getSampleDatasetStatus( const dataIndexConfig = sampleDataset.dataIndices[i]; const index = createIndexName(sampleDataset.id, dataIndexConfig.id); try { - const { body: indexExists } = - await context.core.elasticsearch.client.asCurrentUser.indices.exists({ - index, - }); + const indexExists = await context.core.elasticsearch.client.asCurrentUser.indices.exists({ + index, + }); if (!indexExists) { return { status: NOT_INSTALLED }; } - const { body: count } = await context.core.elasticsearch.client.asCurrentUser.count({ + const count = await context.core.elasticsearch.client.asCurrentUser.count({ index, }); if (count.count === 0) { diff --git a/src/plugins/home/server/services/sample_data/sample_data_installer.test.ts b/src/plugins/home/server/services/sample_data/sample_data_installer.test.ts index 22079cbcafdb3..205b00e3df94f 100644 --- a/src/plugins/home/server/services/sample_data/sample_data_installer.test.ts +++ b/src/plugins/home/server/services/sample_data/sample_data_installer.test.ts @@ -206,17 +206,13 @@ describe('SampleDataInstaller', () => { it('deletes the alias and the index', async () => { const indexName = 'target_index'; - esClient.asCurrentUser.indices.getAlias.mockResolvedValue( - elasticsearchServiceMock.createApiResponse({ - body: { - [indexName]: { - aliases: { - kibana_sample_data_test_single_data_index: {}, - }, - }, + esClient.asCurrentUser.indices.getAlias.mockResponse({ + [indexName]: { + aliases: { + kibana_sample_data_test_single_data_index: {}, }, - }) - ); + }, + }); await installer.install('test_single_data_index'); @@ -301,17 +297,13 @@ describe('SampleDataInstaller', () => { it('deletes the alias and the index', async () => { const indexName = 'target_index'; - esClient.asCurrentUser.indices.getAlias.mockResolvedValue( - elasticsearchServiceMock.createApiResponse({ - body: { - [indexName]: { - aliases: { - kibana_sample_data_test_single_data_index: {}, - }, - }, + esClient.asCurrentUser.indices.getAlias.mockResponse({ + [indexName]: { + aliases: { + kibana_sample_data_test_single_data_index: {}, }, - }) - ); + }, + }); await installer.uninstall('test_single_data_index'); diff --git a/src/plugins/home/server/services/sample_data/sample_data_installer.ts b/src/plugins/home/server/services/sample_data/sample_data_installer.ts index 8e9315719bc16..5aec4a6b2d516 100644 --- a/src/plugins/home/server/services/sample_data/sample_data_installer.ts +++ b/src/plugins/home/server/services/sample_data/sample_data_installer.ts @@ -118,7 +118,7 @@ export class SampleDataInstaller { try { // if the sample data was reindexed using UA, the index name is actually an alias pointing to the reindexed // index. In that case, we need to get rid of the alias and to delete the underlying index - const { body: response } = await this.esClient.asCurrentUser.indices.getAlias({ + const response = await this.esClient.asCurrentUser.indices.getAlias({ name: index, }); const aliasName = index; diff --git a/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts b/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts index d2d06433634fa..c37c55bf02535 100644 --- a/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts +++ b/src/plugins/home/server/services/sample_data/usage/collector_fetch.test.ts @@ -12,7 +12,7 @@ import { fetchProvider } from './collector_fetch'; const getMockFetchClients = (hits?: unknown[]) => { const fetchParamsMock = createCollectorFetchContextMock(); - fetchParamsMock.esClient.search = jest.fn().mockResolvedValue({ body: { hits: { hits } } }); + fetchParamsMock.esClient.search = jest.fn().mockResolvedValue({ hits: { hits } }); return fetchParamsMock; }; diff --git a/src/plugins/home/server/services/sample_data/usage/collector_fetch.ts b/src/plugins/home/server/services/sample_data/usage/collector_fetch.ts index d8da9b4654152..3342912919a62 100644 --- a/src/plugins/home/server/services/sample_data/usage/collector_fetch.ts +++ b/src/plugins/home/server/services/sample_data/usage/collector_fetch.ts @@ -35,7 +35,7 @@ type ESResponse = SearchResponse; export function fetchProvider(index: string) { return async ({ esClient }: CollectorFetchContext) => { - const { body: response } = await esClient.search( + const response = await esClient.search( { index, body: { diff --git a/src/plugins/interactive_setup/server/elasticsearch_service.test.ts b/src/plugins/interactive_setup/server/elasticsearch_service.test.ts index e7b326a1d019d..63d95673cacb4 100644 --- a/src/plugins/interactive_setup/server/elasticsearch_service.test.ts +++ b/src/plugins/interactive_setup/server/elasticsearch_service.test.ts @@ -197,9 +197,7 @@ describe('ElasticsearchService', () => { }); it('checks connection status only once if connection is known to be configured right from start', async () => { - mockConnectionStatusClient.asInternalUser.ping.mockResolvedValue( - interactiveSetupMock.createApiResponse({ body: true }) - ); + mockConnectionStatusClient.asInternalUser.ping.mockResponse(true); const mockHandler = jest.fn(); setupContract.connectionStatus$.subscribe(mockHandler); @@ -410,9 +408,9 @@ describe('ElasticsearchService', () => { ); mockEnrollClient.asScoped.mockReturnValue(mockEnrollScopedClusterClient); - mockAuthenticateClient.asInternalUser.security.authenticate.mockResolvedValue( - interactiveSetupMock.createApiResponse({ statusCode: 200, body: {} as any }) - ); + mockAuthenticateClient.asInternalUser.security.authenticate.mockResponse({} as any, { + statusCode: 200, + }); mockCompatibility(false, 'Oh no!'); @@ -457,9 +455,9 @@ describe('ElasticsearchService', () => { .mockReturnValueOnce(mockHostOneEnrollScopedClusterClient) .mockReturnValueOnce(mockHostTwoEnrollScopedClusterClient); - mockAuthenticateClient.asInternalUser.security.authenticate.mockResolvedValue( - interactiveSetupMock.createApiResponse({ statusCode: 200, body: {} as any }) - ); + mockAuthenticateClient.asInternalUser.security.authenticate.mockResponse({} as any, { + statusCode: 200, + }); const expectedCa = `-----BEGIN CERTIFICATE----- @@ -521,19 +519,25 @@ some weird+ca/with ).toHaveBeenCalledTimes(1); expect( mockHostOneEnrollScopedClusterClient.asCurrentUser.transport.request - ).toHaveBeenCalledWith({ - method: 'GET', - path: '/_security/enroll/kibana', - }); + ).toHaveBeenCalledWith( + { + method: 'GET', + path: '/_security/enroll/kibana', + }, + { meta: true } + ); expect( mockHostTwoEnrollScopedClusterClient.asCurrentUser.transport.request ).toHaveBeenCalledTimes(1); expect( mockHostTwoEnrollScopedClusterClient.asCurrentUser.transport.request - ).toHaveBeenCalledWith({ - method: 'GET', - path: '/_security/enroll/kibana', - }); + ).toHaveBeenCalledWith( + { + method: 'GET', + path: '/_security/enroll/kibana', + }, + { meta: true } + ); expect(mockAuthenticateClient.asInternalUser.security.authenticate).toHaveBeenCalledTimes( 1 ); @@ -560,9 +564,7 @@ some weird+ca/with }); it('fails if version is incompatible', async () => { - mockAuthenticateClient.asInternalUser.ping.mockResolvedValue( - interactiveSetupMock.createApiResponse({ statusCode: 200, body: true }) - ); + mockAuthenticateClient.asInternalUser.ping.mockResponse(true); mockCompatibility(false, 'Oh no!'); @@ -573,9 +575,7 @@ some weird+ca/with }); it('succeeds if ping call succeeds', async () => { - mockAuthenticateClient.asInternalUser.ping.mockResolvedValue( - interactiveSetupMock.createApiResponse({ statusCode: 200, body: true }) - ); + mockAuthenticateClient.asInternalUser.ping.mockResponse(true); await expect( setupContract.authenticate({ host: 'http://localhost:9200' }) @@ -612,9 +612,8 @@ some weird+ca/with }); it('fails if host is not Elasticsearch', async () => { - mockPingClient.asInternalUser.ping.mockResolvedValue( - interactiveSetupMock.createApiResponse({ statusCode: 200, body: true }) - ); + mockAuthenticateClient.asInternalUser.ping.mockResponse(true); + mockPingClient.asInternalUser.transport.request.mockResolvedValue( interactiveSetupMock.createApiResponse({ statusCode: 200, body: {}, headers: {} }) ); @@ -626,9 +625,7 @@ some weird+ca/with }); it('succeeds if host does not require authentication', async () => { - mockPingClient.asInternalUser.ping.mockResolvedValue( - interactiveSetupMock.createApiResponse({ statusCode: 200, body: true }) - ); + mockAuthenticateClient.asInternalUser.ping.mockResponse(true); await expect(setupContract.ping('http://localhost:9200')).resolves.toEqual({ authRequired: false, diff --git a/src/plugins/interactive_setup/server/elasticsearch_service.ts b/src/plugins/interactive_setup/server/elasticsearch_service.ts index 3b5f1532e0b1f..f9bcbd60d02d3 100644 --- a/src/plugins/interactive_setup/server/elasticsearch_service.ts +++ b/src/plugins/interactive_setup/server/elasticsearch_service.ts @@ -122,6 +122,7 @@ export class ElasticsearchService { * Elasticsearch client used to check Elasticsearch connection status. */ private connectionStatusClient?: ICustomClusterClient; + constructor(private readonly logger: Logger, private kibanaVersion: string) {} public setup({ @@ -199,10 +200,13 @@ export class ElasticsearchService { try { enrollmentResponse = await enrollClient .asScoped(scopeableRequest) - .asCurrentUser.transport.request({ - method: 'GET', - path: '/_security/enroll/kibana', - }); + .asCurrentUser.transport.request( + { + method: 'GET', + path: '/_security/enroll/kibana', + }, + { meta: true } + ); } catch (err) { // We expect that all hosts belong to exactly same node and any non-connection error for one host would mean // that enrollment will fail for any other host and we should bail out. @@ -357,10 +361,13 @@ export class ElasticsearchService { this.logger.debug(`Verifying that host "${host}" responds with Elastic product header`); try { - const response = await client.asInternalUser.transport.request({ - method: 'OPTIONS', - path: '/', - }); + const response = await client.asInternalUser.transport.request( + { + method: 'OPTIONS', + path: '/', + }, + { meta: true } + ); if (response.headers?.['x-elastic-product'] !== 'Elasticsearch') { throw new Error('Host did not respond with valid Elastic product header.'); } diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.test.ts b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.test.ts index 4b3421efed96e..8fb75d1ae08e3 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.test.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.test.ts @@ -11,10 +11,8 @@ import { getSavedObjectsCounts } from './get_saved_object_counts'; function mockGetSavedObjectsCounts(params: TBody) { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - esClient.search.mockResolvedValue( - // @ts-expect-error we only care about the response body - { body: { ...params } } - ); + // @ts-expect-error arbitrary type + esClient.search.mockResponse(params); return esClient; } diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.ts b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.ts index f82a803b763c5..cb3c09efa0e3b 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/get_saved_object_counts.ts @@ -25,7 +25,7 @@ export async function getSavedObjectsCounts( aggs: { types: { terms: { field: 'type' } } }, }, }; - const { body } = await esClient.search(savedObjectCountSearchParams); + const body = await esClient.search(savedObjectCountSearchParams); // @ts-expect-error declare type for aggregations explicitly return body.aggregations?.types?.buckets || []; } diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts index d61b8ca2c7779..0f5152daa31a7 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/kibana_usage_collector.test.ts @@ -31,7 +31,7 @@ describe('kibana_usage', () => { const fetchParamsMock = createCollectorFetchContextMock(); const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; // @ts-expect-error for the sake of the tests, we only require `hits` - esClient.search.mockResolvedValue({ body: { hits: { hits } } }); + esClient.search.mockResponse({ hits: { hits } }); fetchParamsMock.esClient = esClient; return fetchParamsMock; }; @@ -58,9 +58,9 @@ describe('kibana_usage', () => { function mockGetSavedObjectsCounts(params: TBody) { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - esClient.search.mockResolvedValue( + esClient.search.mockResponse( // @ts-expect-error we only care about the response body - { body: { ...params } } + { ...params } ); return esClient; } diff --git a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts index 1f507dcc44666..a5bda0c0b3713 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/saved_objects_counts/saved_objects_count_collector.test.ts @@ -38,16 +38,14 @@ describe('saved_objects_count_collector', () => { test('should return some values when the aggregations return something', async () => { const fetchContextMock = createCollectorFetchContextMock(); fetchContextMock.esClient.search = jest.fn().mockImplementation(() => ({ - body: { - aggregations: { - types: { - buckets: [ - { key: 'type_one', doc_count: 20 }, - { key: 'type_two', doc_count: 45 }, - { key: 'type-three', doc_count: 66 }, - { key: 'type-four', doc_count: 0 }, - ], - }, + aggregations: { + types: { + buckets: [ + { key: 'type_one', doc_count: 20 }, + { key: 'type_two', doc_count: 45 }, + { key: 'type-three', doc_count: 66 }, + { key: 'type-four', doc_count: 0 }, + ], }, }, })); diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.test.ts b/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.test.ts index cd414beb42182..3c96b45ed3262 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.test.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.test.ts @@ -12,7 +12,7 @@ import { getClusterInfo } from './get_cluster_info'; export function mockGetClusterInfo(clusterInfo: ClusterInfo) { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; // @ts-expect-error we only care about the response body - esClient.info.mockResolvedValue({ body: { ...clusterInfo } }); + esClient.info.mockResponse({ ...clusterInfo }); return esClient; } diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.ts b/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.ts index 3f93bde1e7e62..667b8564e4d33 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_cluster_info.ts @@ -16,6 +16,5 @@ import { ElasticsearchClient } from 'src/core/server'; * @param {function} esClient The asInternalUser handler (exposed for testing) */ export async function getClusterInfo(esClient: ElasticsearchClient) { - const { body } = await esClient.info(); - return body; + return await esClient.info(); } diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.test.ts b/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.test.ts index 06d3ebeb7ea0e..84a0fdaacb5b1 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.test.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.test.ts @@ -12,7 +12,7 @@ import { TIMEOUT } from './constants'; describe('get_cluster_stats', () => { it('uses the esClient to get the response from the `cluster.stats` API', async () => { - const response = { body: { cluster_uuid: '1234' } }; + const response = { cluster_uuid: '1234' }; const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; esClient.cluster.stats.mockImplementationOnce( // @ts-expect-error the method only cares about the response body @@ -22,6 +22,6 @@ describe('get_cluster_stats', () => { ); const result = await getClusterStats(esClient); expect(esClient.cluster.stats).toHaveBeenCalledWith({ timeout: TIMEOUT }); - expect(result).toStrictEqual(response.body); + expect(result).toStrictEqual(response); }); }); diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts b/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts index dd5f4f97c6b02..f420291d1c131 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts @@ -9,14 +9,14 @@ import { ClusterDetailsGetter } from 'src/plugins/telemetry_collection_manager/server'; import { ElasticsearchClient } from 'src/core/server'; import { TIMEOUT } from './constants'; + /** * Get the cluster stats from the connected cluster. * * This is the equivalent to GET /_cluster/stats?timeout=30s. */ export async function getClusterStats(esClient: ElasticsearchClient) { - const { body } = await esClient.cluster.stats({ timeout: TIMEOUT }); - return body; + return await esClient.cluster.stats({ timeout: TIMEOUT }); } /** @@ -25,7 +25,6 @@ export async function getClusterStats(esClient: ElasticsearchClient) { * @param esClient Scoped Elasticsearch client */ export const getClusterUuids: ClusterDetailsGetter = async ({ esClient }) => { - const { body } = await esClient.cluster.stats({ timeout: TIMEOUT }); - + const body = await esClient.cluster.stats({ timeout: TIMEOUT }); return [{ clusterUuid: body.cluster_uuid }]; }; diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts index b3a25da0a7abf..310ba6a3ee41d 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.test.ts @@ -309,11 +309,11 @@ function mockEsClient( }, ]) ); - return { body }; + return body; }); // @ts-expect-error esClient.indices.stats.mockImplementationOnce(async () => { - return { body: indexStats }; + return indexStats; }); return esClient; } diff --git a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts index 8a0b86cf3b0f0..3f98ead25ff4e 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_data_telemetry/get_data_telemetry.ts @@ -181,59 +181,6 @@ export function buildDataTelemetryPayload(indices: DataTelemetryIndex[]): DataTe return [...acc.values()]; } -interface IndexStats { - indices: { - [indexName: string]: { - total: { - docs: { - count: number; - deleted: number; - }; - store: { - size_in_bytes: number; - }; - }; - }; - }; -} - -interface IndexMappings { - [indexName: string]: { - mappings: { - _meta?: { - beat?: string; - - // Ingest Manager provided metadata - package?: { - name?: string; - }; - managed_by?: string; // Typically "ingest-manager" - }; - properties: { - data_stream?: { - properties: { - dataset?: { - type: string; - value?: string; - }; - type?: { - type: string; - value?: string; - }; - }; - }; - ecs?: { - properties: { - version?: { - type: string; - }; - }; - }; - }; - }; - }; -} - export async function getDataTelemetry(esClient: ElasticsearchClient) { try { const index = [ @@ -271,9 +218,9 @@ export async function getDataTelemetry(esClient: ElasticsearchClient) { metric: ['docs', 'store'], filter_path: ['indices.*.total'], }; - const [{ body: indexMappings }, { body: indexStats }] = await Promise.all([ - esClient.indices.getMapping(indexMappingsParams), - esClient.indices.stats(indicesStatsParams), + const [indexMappings, indexStats] = await Promise.all([ + esClient.indices.getMapping(indexMappingsParams), + esClient.indices.stats(indicesStatsParams), ]); const indexNames = Object.keys({ ...indexMappings, ...indexStats?.indices }); diff --git a/src/plugins/telemetry/server/telemetry_collection/get_local_stats.test.ts b/src/plugins/telemetry/server/telemetry_collection/get_local_stats.test.ts index bcff58c3304c7..2392ac570ecbc 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_local_stats.test.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_local_stats.test.ts @@ -23,50 +23,45 @@ function mockUsageCollection(kibanaUsage = {}) { usageCollection.toObject = jest.fn().mockImplementation((data) => data); return usageCollection; } + // set up successful call mocks for info, cluster stats, nodes usage and data telemetry function mockGetLocalStats( clusterInfo: ClusterInfo, clusterStats: ClusterStats ) { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - esClient.info.mockResolvedValue( - // @ts-expect-error we only care about the response body - { body: { ...clusterInfo } } - ); - esClient.cluster.stats - // @ts-expect-error we only care about the response body - .mockResolvedValue({ body: { ...clusterStats } }); // @ts-expect-error we only care about the response body - esClient.nodes.usage.mockResolvedValue({ - body: { - cluster_name: 'testCluster', - nodes: { - some_node_id: { - timestamp: 1588617023177, - since: 1588616945163, - rest_actions: { - nodes_usage_action: 1, - create_index_action: 1, - document_get_action: 1, - search_action: 19, - nodes_info_action: 36, + esClient.info.mockResponse({ ...clusterInfo }); + // @ts-expect-error we only care about the response body + esClient.cluster.stats.mockResponse({ ...clusterStats }); + esClient.nodes.usage.mockResponse({ + cluster_name: 'testCluster', + nodes: { + some_node_id: { + timestamp: 1588617023177, + since: 1588616945163, + rest_actions: { + nodes_usage_action: 1, + create_index_action: 1, + document_get_action: 1, + search_action: 19, + nodes_info_action: 36, + }, + aggregations: { + scripted_metric: { + other: 7, }, - aggregations: { - scripted_metric: { - other: 7, - }, - terms: { - bytes: 2, - }, + terms: { + bytes: 2, }, }, }, }, }); // @ts-expect-error we only care about the response body - esClient.indices.getMapping.mockResolvedValue({ body: { mappings: {} } }); + esClient.indices.getMapping.mockResponse({ mappings: {} }); // @ts-expect-error we only care about the response body - esClient.indices.stats.mockResolvedValue({ body: { indices: {} } }); + esClient.indices.stats.mockResponse({ indices: {} }); return esClient; } diff --git a/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.test.ts b/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.test.ts index 9192afd3376d5..65bb6eed344aa 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.test.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.test.ts @@ -37,14 +37,11 @@ const mockedNodesFetchResponse = { describe('get_nodes_usage', () => { it('returns a modified array of nodes usage data', async () => { - const response = Promise.resolve({ body: mockedNodesFetchResponse }); + const response = Promise.resolve(mockedNodesFetchResponse); const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - esClient.nodes.usage.mockImplementationOnce( - // @ts-expect-error - async (_params = { timeout: TIMEOUT }) => { - return response; - } - ); + esClient.nodes.usage.mockImplementationOnce(async (_params = { timeout: TIMEOUT }) => { + return response; + }); const item = await getNodesUsage(esClient); expect(esClient.nodes.usage).toHaveBeenCalledWith({ timeout: TIMEOUT }); expect(item).toStrictEqual({ diff --git a/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts b/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts index a5d4f32b3a62f..b701a696f210d 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_nodes_usage.ts @@ -32,10 +32,9 @@ export type NodesUsageGetter = (esClient: ElasticsearchClient) => Promise<{ node export async function fetchNodesUsage( esClient: ElasticsearchClient ): Promise { - const { body } = await esClient.nodes.usage({ + return await esClient.nodes.usage({ timeout: TIMEOUT, }); - return body; } /** diff --git a/src/plugins/usage_collection/server/routes/stats/stats.ts b/src/plugins/usage_collection/server/routes/stats/stats.ts index d78f9ab69b66d..8e5382d163172 100644 --- a/src/plugins/usage_collection/server/routes/stats/stats.ts +++ b/src/plugins/usage_collection/server/routes/stats/stats.ts @@ -63,7 +63,7 @@ export function registerStatsRoute({ }; const getClusterUuid = async (asCurrentUser: ElasticsearchClient): Promise => { - const { body } = await asCurrentUser.info({ filter_path: 'cluster_uuid' }); + const body = await asCurrentUser.info({ filter_path: 'cluster_uuid' }); const { cluster_uuid: uuid } = body; return uuid; }; diff --git a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.test.ts b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.test.ts index 4d2608e3519ed..b74bb97c3d649 100644 --- a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.test.ts +++ b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.test.ts @@ -118,7 +118,7 @@ describe('Rollup Search Strategy', () => { }); test('should return rollup data', async () => { - rollupResolvedData = Promise.resolve({ body: 'data' }); + rollupResolvedData = Promise.resolve('data'); const rollupData = await rollupSearchStrategy.getRollupData(requestContext, indexPattern); diff --git a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts index 2508c68066017..4d6d9d832a2e0 100644 --- a/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts +++ b/src/plugins/vis_types/timeseries/server/lib/search_strategies/strategies/rollup_search_strategy.ts @@ -40,7 +40,7 @@ export class RollupSearchStrategy extends AbstractSearchStrategy { indexPattern: string ) { try { - const { body } = + const body = await requestContext.core.elasticsearch.client.asCurrentUser.rollup.getRollupIndexCaps({ index: indexPattern, }); diff --git a/test/api_integration/apis/index_patterns/runtime_fields_crud/create_runtime_field/main.ts b/test/api_integration/apis/index_patterns/runtime_fields_crud/create_runtime_field/main.ts index f9dd5bd7105b4..bc0773df056ed 100644 --- a/test/api_integration/apis/index_patterns/runtime_fields_crud/create_runtime_field/main.ts +++ b/test/api_integration/apis/index_patterns/runtime_fields_crud/create_runtime_field/main.ts @@ -47,6 +47,8 @@ export default function ({ getService }: FtrProviderContext) { }); expect(response2.status).to.be(200); + expect(response2.body[config.serviceKey]).to.not.be.empty(); + const field = config.serviceKey === 'index_pattern' ? response2.body.field : response2.body.fields[0]; @@ -82,6 +84,7 @@ export default function ({ getService }: FtrProviderContext) { ); expect(response2.status).to.be(200); + expect(response2.body[config.serviceKey]).to.not.be.empty(); const field = response2.body[config.serviceKey].fields.runtimeBar; diff --git a/test/api_integration/apis/index_patterns/runtime_fields_crud/get_runtime_field/main.ts b/test/api_integration/apis/index_patterns/runtime_fields_crud/get_runtime_field/main.ts index 8733b679c2302..4f4431452cff8 100644 --- a/test/api_integration/apis/index_patterns/runtime_fields_crud/get_runtime_field/main.ts +++ b/test/api_integration/apis/index_patterns/runtime_fields_crud/get_runtime_field/main.ts @@ -60,6 +60,7 @@ export default function ({ getService }: FtrProviderContext) { config.serviceKey === 'index_pattern' ? response2.body.field : response2.body.fields[0]; expect(response2.status).to.be(200); + expect(response2.body[config.serviceKey]).to.not.be.empty(); expect(typeof field).to.be('object'); expect(field.name).to.be('runtimeFoo'); expect(field.type).to.be('string'); diff --git a/test/api_integration/apis/index_patterns/runtime_fields_crud/put_runtime_field/main.ts b/test/api_integration/apis/index_patterns/runtime_fields_crud/put_runtime_field/main.ts index 4cbef92c49a31..d89c7f7ffc755 100644 --- a/test/api_integration/apis/index_patterns/runtime_fields_crud/put_runtime_field/main.ts +++ b/test/api_integration/apis/index_patterns/runtime_fields_crud/put_runtime_field/main.ts @@ -63,6 +63,7 @@ export default function ({ getService }: FtrProviderContext) { }); expect(response2.status).to.be(200); + expect(response2.body[config.serviceKey]).to.not.be.empty(); const response3 = await supertest.get( `${config.path}/${response1.body[config.serviceKey].id}/runtime_field/runtimeFoo` @@ -122,6 +123,7 @@ export default function ({ getService }: FtrProviderContext) { config.serviceKey === 'index_pattern' ? response2.body.field : response2.body.fields[0]; expect(response2.status).to.be(200); + expect(response2.body[config.serviceKey]).to.not.be.empty(); expect(typeof field.runtimeField).to.be('object'); }); }); diff --git a/test/api_integration/apis/index_patterns/runtime_fields_crud/update_runtime_field/main.ts b/test/api_integration/apis/index_patterns/runtime_fields_crud/update_runtime_field/main.ts index d1f569472d104..83e1b4d5716ea 100644 --- a/test/api_integration/apis/index_patterns/runtime_fields_crud/update_runtime_field/main.ts +++ b/test/api_integration/apis/index_patterns/runtime_fields_crud/update_runtime_field/main.ts @@ -70,6 +70,7 @@ export default function ({ getService }: FtrProviderContext) { config.serviceKey === 'index_pattern' ? response3.body.field : response3.body.fields[0]; expect(response3.status).to.be(200); + expect(response3.body[config.serviceKey]).to.not.be.empty(); expect(field.type).to.be('string'); expect(field.runtimeField.type).to.be('keyword'); expect(field.runtimeField.script.source).to.be("doc['something_new'].value"); diff --git a/test/functional/services/lib/web_element_wrapper/web_element_wrapper.ts b/test/functional/services/lib/web_element_wrapper/web_element_wrapper.ts index ef948d455800b..ae03721a6e7b8 100644 --- a/test/functional/services/lib/web_element_wrapper/web_element_wrapper.ts +++ b/test/functional/services/lib/web_element_wrapper/web_element_wrapper.ts @@ -202,6 +202,18 @@ export class WebElementWrapper { }); } + /** + * If possible, opens 'href' of this element directly through the URL + * + * @return {Promise} + */ + public async openHref() { + const href = await this.getAttribute('href'); + if (href) { + await this.driver.get(href); + } + } + /** * Check if webelement wrapper has a specific class. * diff --git a/test/interpreter_functional/snapshots/baseline/combined_test3.json b/test/interpreter_functional/snapshots/baseline/combined_test3.json index 2ddf40eb79006..160c990ff6dd3 100644 --- a/test/interpreter_functional/snapshots/baseline/combined_test3.json +++ b/test/interpreter_functional/snapshots/baseline/combined_test3.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/final_output_test.json b/test/interpreter_functional/snapshots/baseline/final_output_test.json index 2ddf40eb79006..160c990ff6dd3 100644 --- a/test/interpreter_functional/snapshots/baseline/final_output_test.json +++ b/test/interpreter_functional/snapshots/baseline/final_output_test.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/metric_all_data.json b/test/interpreter_functional/snapshots/baseline/metric_all_data.json index fb16bf98ce761..30bbae45b95d1 100644 --- a/test/interpreter_functional/snapshots/baseline/metric_all_data.json +++ b/test/interpreter_functional/snapshots/baseline/metric_all_data.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":2,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":2,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/metric_empty_data.json b/test/interpreter_functional/snapshots/baseline/metric_empty_data.json index d667cc6088a3a..ca2ee347582fb 100644 --- a/test/interpreter_functional/snapshots/baseline/metric_empty_data.json +++ b/test/interpreter_functional/snapshots/baseline/metric_empty_data.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/metric_multi_metric_data.json b/test/interpreter_functional/snapshots/baseline/metric_multi_metric_data.json index 6ef90caf3da3e..65a241e76ecda 100644 --- a/test/interpreter_functional/snapshots/baseline/metric_multi_metric_data.json +++ b/test/interpreter_functional/snapshots/baseline/metric_multi_metric_data.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},{"accessor":1,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/metric_percentage_mode.json b/test/interpreter_functional/snapshots/baseline/metric_percentage_mode.json index bc1ec6278dc32..0d767e8fdddec 100644 --- a/test/interpreter_functional/snapshots/baseline/metric_percentage_mode.json +++ b/test/interpreter_functional/snapshots/baseline/metric_percentage_mode.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":{"colors":["rgb(0,0,0,0)","rgb(100, 100, 100)"],"continuity":"none","gradient":false,"range":"number","rangeMax":10000,"rangeMin":0,"stops":[0,10000]},"percentageMode":true,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":{"colors":["rgb(0,0,0,0)","rgb(100, 100, 100)"],"continuity":"none","gradient":false,"range":"number","rangeMax":10000,"rangeMin":0,"stops":[0,10000]},"percentageMode":true,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/metric_single_metric_data.json b/test/interpreter_functional/snapshots/baseline/metric_single_metric_data.json index b5cc75694b4ba..626ab36bacc96 100644 --- a/test/interpreter_functional/snapshots/baseline/metric_single_metric_data.json +++ b/test/interpreter_functional/snapshots/baseline/metric_single_metric_data.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"metrics":[{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"},{"id":"col-2-1","meta":{"field":"bytes","index":"logstash-*","params":{"id":"bytes","params":null},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{"field":"bytes"},"schema":"metric","type":"max"},"type":"number"},"name":"Max bytes"}],"rows":[{"col-0-2":"200","col-1-1":12891,"col-2-1":19986},{"col-0-2":"404","col-1-1":696,"col-2-1":19881},{"col-0-2":"503","col-1-1":417,"col-2-1":0}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/partial_test_2.json b/test/interpreter_functional/snapshots/baseline/partial_test_2.json index 2ddf40eb79006..160c990ff6dd3 100644 --- a/test/interpreter_functional/snapshots/baseline/partial_test_2.json +++ b/test/interpreter_functional/snapshots/baseline/partial_test_2.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/interpreter_functional/snapshots/baseline/step_output_test3.json b/test/interpreter_functional/snapshots/baseline/step_output_test3.json index 2ddf40eb79006..160c990ff6dd3 100644 --- a/test/interpreter_functional/snapshots/baseline/step_output_test3.json +++ b/test/interpreter_functional/snapshots/baseline/step_output_test3.json @@ -1 +1 @@ -{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file +{"as":"metricVis","type":"render","value":{"visConfig":{"dimensions":{"bucket":{"accessor":0,"format":{"id":"string","params":{}},"type":"vis_dimension"},"metrics":[{"accessor":1,"format":{"id":"number","params":{}},"type":"vis_dimension"}]},"metric":{"autoScale":null,"labels":{"show":true},"metricColorMode":"None","palette":null,"percentageMode":false,"style":{"bgColor":false,"css":"font-family:'Open Sans', Helvetica, Arial, sans-serif;font-weight:normal;font-style:normal;text-decoration:none;text-align:center;font-size:60px;line-height:1","labelColor":false,"spec":{"fontFamily":"'Open Sans', Helvetica, Arial, sans-serif","fontSize":"60px","fontStyle":"normal","fontWeight":"normal","lineHeight":"1","textAlign":"center","textDecoration":"none"},"type":"style"}}},"visData":{"columns":[{"id":"col-0-2","meta":{"field":"response.raw","index":"logstash-*","params":{"id":"terms","params":{"id":"string","missingBucketLabel":"Missing","otherBucketLabel":"Other"}},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"2","indexPatternId":"logstash-*","params":{"field":"response.raw","missingBucket":false,"missingBucketLabel":"Missing","order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","size":4},"schema":"segment","type":"terms"},"type":"string"},"name":"response.raw: Descending"},{"id":"col-1-1","meta":{"field":null,"index":"logstash-*","params":{"id":"number"},"source":"esaggs","sourceParams":{"appliedTimeRange":null,"enabled":true,"hasPrecisionError":false,"id":"1","indexPatternId":"logstash-*","params":{},"schema":"metric","type":"count"},"type":"number"},"name":"Count"}],"rows":[{"col-0-2":"200","col-1-1":12891},{"col-0-2":"404","col-1-1":696},{"col-0-2":"503","col-1-1":417}],"type":"datatable"},"visType":"metric"}} \ No newline at end of file diff --git a/test/plugin_functional/plugins/core_plugin_a/server/plugin.ts b/test/plugin_functional/plugins/core_plugin_a/server/plugin.ts index 6701ff97cca80..c65690e8532fd 100644 --- a/test/plugin_functional/plugins/core_plugin_a/server/plugin.ts +++ b/test/plugin_functional/plugins/core_plugin_a/server/plugin.ts @@ -23,7 +23,7 @@ export class CorePluginAPlugin implements Plugin { (context) => { return { ping: async () => { - const { body } = await context.core.elasticsearch.client.asInternalUser.ping(); + const body = await context.core.elasticsearch.client.asInternalUser.ping(); return String(body); }, }; diff --git a/test/plugin_functional/plugins/core_plugin_execution_context/server/plugin.ts b/test/plugin_functional/plugins/core_plugin_execution_context/server/plugin.ts index 48889c6d4a455..530b90eb5e6d0 100644 --- a/test/plugin_functional/plugins/core_plugin_execution_context/server/plugin.ts +++ b/test/plugin_functional/plugins/core_plugin_execution_context/server/plugin.ts @@ -20,12 +20,16 @@ export class CorePluginExecutionContext implements Plugin { }, }, async (context, request, response) => { - const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping(); + const { headers } = await context.core.elasticsearch.client.asCurrentUser.ping( + {}, + { meta: true } + ); return response.ok({ body: headers || {} }); } ); } public start() {} + public stop() {} } diff --git a/test/plugin_functional/plugins/elasticsearch_client_plugin/server/plugin.ts b/test/plugin_functional/plugins/elasticsearch_client_plugin/server/plugin.ts index 70b4d3590c8db..ab046ab6a0131 100644 --- a/test/plugin_functional/plugins/elasticsearch_client_plugin/server/plugin.ts +++ b/test/plugin_functional/plugins/elasticsearch_client_plugin/server/plugin.ts @@ -15,7 +15,7 @@ export class ElasticsearchClientPlugin implements Plugin { router.get( { path: '/api/elasticsearch_client_plugin/context/ping', validate: false }, async (context, req, res) => { - const { body } = await context.core.elasticsearch.client.asInternalUser.ping(); + const body = await context.core.elasticsearch.client.asInternalUser.ping(); return res.ok({ body: JSON.stringify(body) }); } ); @@ -23,14 +23,14 @@ export class ElasticsearchClientPlugin implements Plugin { { path: '/api/elasticsearch_client_plugin/contract/ping', validate: false }, async (context, req, res) => { const [coreStart] = await core.getStartServices(); - const { body } = await coreStart.elasticsearch.client.asInternalUser.ping(); + const body = await coreStart.elasticsearch.client.asInternalUser.ping(); return res.ok({ body: JSON.stringify(body) }); } ); router.get( { path: '/api/elasticsearch_client_plugin/custom_client/ping', validate: false }, async (context, req, res) => { - const { body } = await this.client!.asInternalUser.ping(); + const body = await this.client!.asInternalUser.ping(); return res.ok({ body: JSON.stringify(body) }); } ); diff --git a/x-pack/plugins/actions/server/actions_client.test.ts b/x-pack/plugins/actions/server/actions_client.test.ts index 18e405f70c859..c73809cc33773 100644 --- a/x-pack/plugins/actions/server/actions_client.test.ts +++ b/x-pack/plugins/actions/server/actions_client.test.ts @@ -35,8 +35,6 @@ import { } from './authorization/get_authorization_mode_by_source'; import { actionsAuthorizationMock } from './authorization/actions_authorization.mock'; import { trackLegacyRBACExemption } from './lib/track_legacy_rbac_exemption'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { elasticsearchClientMock } from '../../../../src/core/server/elasticsearch/client/mocks'; import { ConnectorTokenClient } from './builtin_action_types/lib/connector_token_client'; import { encryptedSavedObjectsMock } from '../../encrypted_saved_objects/server/mocks'; import { Logger } from 'kibana/server'; @@ -847,14 +845,14 @@ describe('getAll()', () => { ], }; unsecuredSavedObjectsClient.find.mockResolvedValueOnce(expectedResult); - scopedClusterClient.asInternalUser.search.mockResolvedValueOnce( + scopedClusterClient.asInternalUser.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { '1': { doc_count: 6 }, testPreconfigured: { doc_count: 2 }, }, - }) + } ); actionsClient = new ActionsClient({ @@ -924,14 +922,14 @@ describe('getAll()', () => { }, ], }); - scopedClusterClient.asInternalUser.search.mockResolvedValueOnce( + scopedClusterClient.asInternalUser.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { '1': { doc_count: 6 }, testPreconfigured: { doc_count: 2 }, }, - }) + } ); await actionsClient.getAll(); @@ -986,14 +984,14 @@ describe('getAll()', () => { ], }; unsecuredSavedObjectsClient.find.mockResolvedValueOnce(expectedResult); - scopedClusterClient.asInternalUser.search.mockResolvedValueOnce( + scopedClusterClient.asInternalUser.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { '1': { doc_count: 6 }, testPreconfigured: { doc_count: 2 }, }, - }) + } ); actionsClient = new ActionsClient({ @@ -1063,14 +1061,14 @@ describe('getBulk()', () => { }, ], }); - scopedClusterClient.asInternalUser.search.mockResolvedValueOnce( + scopedClusterClient.asInternalUser.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { '1': { doc_count: 6 }, testPreconfigured: { doc_count: 2 }, }, - }) + } ); actionsClient = new ActionsClient({ @@ -1137,14 +1135,14 @@ describe('getBulk()', () => { }, ], }); - scopedClusterClient.asInternalUser.search.mockResolvedValueOnce( + scopedClusterClient.asInternalUser.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { '1': { doc_count: 6 }, testPreconfigured: { doc_count: 2 }, }, - }) + } ); await actionsClient.getBulk(['1']); @@ -1196,14 +1194,14 @@ describe('getBulk()', () => { }, ], }); - scopedClusterClient.asInternalUser.search.mockResolvedValueOnce( + scopedClusterClient.asInternalUser.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { '1': { doc_count: 6 }, testPreconfigured: { doc_count: 2 }, }, - }) + } ); actionsClient = new ActionsClient({ diff --git a/x-pack/plugins/actions/server/actions_client.ts b/x-pack/plugins/actions/server/actions_client.ts index 7d753a9106a1d..18e67c5ca8076 100644 --- a/x-pack/plugins/actions/server/actions_client.ts +++ b/x-pack/plugins/actions/server/actions_client.ts @@ -606,7 +606,7 @@ async function injectExtraFindData( }, }; } - const { body: aggregationResult } = await scopedClusterClient.asInternalUser.search({ + const aggregationResult = await scopedClusterClient.asInternalUser.search({ index: defaultKibanaIndex, body: { aggs, diff --git a/x-pack/plugins/actions/server/builtin_action_types/es_index.test.ts b/x-pack/plugins/actions/server/builtin_action_types/es_index.test.ts index 50a1deba5af20..7f9aa2298fc14 100644 --- a/x-pack/plugins/actions/server/builtin_action_types/es_index.test.ts +++ b/x-pack/plugins/actions/server/builtin_action_types/es_index.test.ts @@ -559,36 +559,34 @@ describe('execute()', () => { const scopedClusterClient = elasticsearchClientMock .createClusterClient() .asScoped().asCurrentUser; - scopedClusterClient.bulk.mockResolvedValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - took: 0, - errors: true, - items: [ - { - index: { - _index: 'indexme', - _id: '7buTjHQB0SuNSiS9Hayt', - status: 400, - error: { - type: 'mapper_parsing_exception', - reason: 'failed to parse', - caused_by: { - type: 'illegal_argument_exception', - reason: 'field name cannot be an empty string', - }, + scopedClusterClient.bulk.mockResponse({ + took: 0, + errors: true, + items: [ + { + index: { + _index: 'indexme', + _id: '7buTjHQB0SuNSiS9Hayt', + status: 400, + error: { + type: 'mapper_parsing_exception', + reason: 'failed to parse', + caused_by: { + type: 'illegal_argument_exception', + reason: 'field name cannot be an empty string', }, }, }, - ], - }) - ); + }, + ], + }); expect(await actionType.executor({ actionId, config, secrets, params, services })) .toMatchInlineSnapshot(` Object { "actionId": "some-id", "message": "error indexing documents", - "serviceMessage": "Cannot destructure property 'body' of '(intermediate value)' as it is undefined.", + "serviceMessage": "Cannot read properties of undefined (reading 'items')", "status": "error", } `); diff --git a/x-pack/plugins/actions/server/builtin_action_types/es_index.ts b/x-pack/plugins/actions/server/builtin_action_types/es_index.ts index 3662fea00e31d..6ab24293d18ad 100644 --- a/x-pack/plugins/actions/server/builtin_action_types/es_index.ts +++ b/x-pack/plugins/actions/server/builtin_action_types/es_index.ts @@ -100,7 +100,7 @@ async function executor( }; try { - const { body: result } = await services.scopedClusterClient.bulk(bulkParams); + const result = await services.scopedClusterClient.bulk(bulkParams); const err = find(result.items, 'index.error.reason'); if (err) { diff --git a/x-pack/plugins/actions/server/cleanup_failed_executions/cleanup_tasks.test.ts b/x-pack/plugins/actions/server/cleanup_failed_executions/cleanup_tasks.test.ts index b80a8d092118a..6d3647be4b65d 100644 --- a/x-pack/plugins/actions/server/cleanup_failed_executions/cleanup_tasks.test.ts +++ b/x-pack/plugins/actions/server/cleanup_failed_executions/cleanup_tasks.test.ts @@ -11,7 +11,6 @@ import { spacesMock } from '../../../spaces/server/mocks'; import { CleanupTasksOpts, cleanupTasks } from './cleanup_tasks'; import { TaskInstance } from '../../../task_manager/server'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { TransportResult } from '@elastic/elasticsearch'; describe('cleanupTasks', () => { const logger = loggingSystemMock.create().get(); @@ -70,19 +69,27 @@ describe('cleanupTasks', () => { }); it('should delete action_task_params and task objects', async () => { - esClient.bulk.mockResolvedValue({ - body: { items: [], errors: false, took: 1 }, - } as unknown as TransportResult); + esClient.bulk.mockResponse({ + items: [], + errors: false, + took: 1, + } as unknown as estypes.BulkResponse); const result = await cleanupTasks({ ...cleanupTasksOpts, tasks: [taskSO], }); - expect(esClient.bulk).toHaveBeenCalledWith({ - body: [{ delete: { _index: cleanupTasksOpts.kibanaIndex, _id: 'action_task_params:123' } }], - }); - expect(esClient.bulk).toHaveBeenCalledWith({ - body: [{ delete: { _index: cleanupTasksOpts.taskManagerIndex, _id: 'task:123' } }], - }); + expect(esClient.bulk).toHaveBeenCalledWith( + { + body: [{ delete: { _index: cleanupTasksOpts.kibanaIndex, _id: 'action_task_params:123' } }], + }, + { meta: true } + ); + expect(esClient.bulk).toHaveBeenCalledWith( + { + body: [{ delete: { _index: cleanupTasksOpts.taskManagerIndex, _id: 'task:123' } }], + }, + { meta: true } + ); expect(result).toEqual({ success: true, successCount: 1, @@ -91,33 +98,37 @@ describe('cleanupTasks', () => { }); it('should not delete the task if the action_task_params failed to delete', async () => { - esClient.bulk.mockResolvedValue({ - body: { - items: [ - { - delete: { - _index: cleanupTasksOpts.kibanaIndex, - _id: 'action_task_params:123', - status: 500, - result: 'Failure', - error: true, - }, + esClient.bulk.mockResponse({ + items: [ + { + delete: { + _index: cleanupTasksOpts.kibanaIndex, + _id: 'action_task_params:123', + status: 500, + result: 'Failure', + error: true, }, - ], - errors: true, - took: 1, - }, - } as unknown as TransportResult); + }, + ], + errors: true, + took: 1, + } as unknown as estypes.BulkResponse); const result = await cleanupTasks({ ...cleanupTasksOpts, tasks: [taskSO], }); - expect(esClient.bulk).toHaveBeenCalledWith({ - body: [{ delete: { _index: cleanupTasksOpts.kibanaIndex, _id: 'action_task_params:123' } }], - }); - expect(esClient.bulk).not.toHaveBeenCalledWith({ - body: [{ delete: { _index: cleanupTasksOpts.taskManagerIndex, _id: 'task:123' } }], - }); + expect(esClient.bulk).toHaveBeenCalledWith( + { + body: [{ delete: { _index: cleanupTasksOpts.kibanaIndex, _id: 'action_task_params:123' } }], + }, + { meta: true } + ); + expect(esClient.bulk).not.toHaveBeenCalledWith( + { + body: [{ delete: { _index: cleanupTasksOpts.taskManagerIndex, _id: 'task:123' } }], + }, + { meta: true } + ); expect(result).toEqual({ success: false, successCount: 0, diff --git a/x-pack/plugins/actions/server/cleanup_failed_executions/lib/bulk_delete.ts b/x-pack/plugins/actions/server/cleanup_failed_executions/lib/bulk_delete.ts index 5bbb48a3d520d..c93cc12b49731 100644 --- a/x-pack/plugins/actions/server/cleanup_failed_executions/lib/bulk_delete.ts +++ b/x-pack/plugins/actions/server/cleanup_failed_executions/lib/bulk_delete.ts @@ -18,9 +18,12 @@ export async function bulkDelete( return; } - return await esClient.bulk({ - body: ids.map((id) => ({ - delete: { _index: index, _id: id }, - })), - }); + return await esClient.bulk( + { + body: ids.map((id) => ({ + delete: { _index: index, _id: id }, + })), + }, + { meta: true } + ); } diff --git a/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.test.ts b/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.test.ts index a7038d8dc62eb..4a7c5908963f6 100644 --- a/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.test.ts +++ b/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.test.ts @@ -5,9 +5,7 @@ * 2.0. */ -import { ElasticsearchClient } from 'src/core/server'; import { elasticsearchServiceMock, loggingSystemMock } from 'src/core/server/mocks'; -import { DeeplyMockedKeys } from '@kbn/utility-types/jest'; import { createAlertHistoryIndexTemplate, getAlertHistoryIndexTemplate, @@ -17,19 +15,15 @@ type MockedLogger = ReturnType; describe('createAlertHistoryIndexTemplate', () => { let logger: MockedLogger; - let clusterClient: DeeplyMockedKeys; + let clusterClient: ReturnType; beforeEach(() => { logger = loggingSystemMock.createLogger(); - clusterClient = elasticsearchServiceMock.createClusterClient().asInternalUser; + clusterClient = elasticsearchServiceMock.createElasticsearchClient(); }); test(`should create index template if it doesn't exist`, async () => { - // Response type for existsIndexTemplate is still TODO - clusterClient.indices.existsIndexTemplate.mockResolvedValue({ - body: false, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - } as any); + clusterClient.indices.existsIndexTemplate.mockResponse(false); await createAlertHistoryIndexTemplate({ client: clusterClient, logger }); expect(clusterClient.indices.putIndexTemplate).toHaveBeenCalledWith({ @@ -40,11 +34,7 @@ describe('createAlertHistoryIndexTemplate', () => { }); test(`shouldn't create index template if it already exists`, async () => { - // Response type for existsIndexTemplate is still TODO - clusterClient.indices.existsIndexTemplate.mockResolvedValue({ - body: true, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - } as any); + clusterClient.indices.existsIndexTemplate.mockResponse(true); await createAlertHistoryIndexTemplate({ client: clusterClient, logger }); expect(clusterClient.indices.putIndexTemplate).not.toHaveBeenCalled(); diff --git a/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts b/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts index 28b904361e677..bf3c4ff18e570 100644 --- a/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts +++ b/x-pack/plugins/actions/server/preconfigured_connectors/alert_history_es_index/create_alert_history_index_template.ts @@ -33,14 +33,11 @@ async function doesIndexTemplateExist({ client: ElasticsearchClient; templateName: string; }) { - let result; try { - result = (await client.indices.existsIndexTemplate({ name: templateName })).body; + return await client.indices.existsIndexTemplate({ name: templateName }); } catch (err) { throw new Error(`error checking existence of index template: ${err.message}`); } - - return result; } async function createIndexTemplate({ diff --git a/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts b/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts index 07f7f83333844..c389529aa7e82 100644 --- a/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts +++ b/x-pack/plugins/actions/server/usage/actions_telemetry.test.ts @@ -12,9 +12,9 @@ import { getExecutionsPerDayCount, getInUseTotalCount, getTotalCount } from './a describe('actions telemetry', () => { test('getTotalCount should replace first symbol . to __ for action types names', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byActionTypeId: { value: { @@ -95,7 +95,7 @@ describe('actions telemetry', () => { }, ], }, - }) + } ); const telemetry = await getTotalCount(mockEsClient, 'test'); @@ -116,9 +116,9 @@ Object { test('getInUseTotalCount', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValueOnce( + mockEsClient.search.mockResponseOnce( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { refs: { actionRefIds: { @@ -132,36 +132,35 @@ Object { hits: [], }, }, - }) + } ); - mockEsClient.search.mockReturnValueOnce( - // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [ - { - _source: { - action: { - id: '1', - actionTypeId: '.server-log', - }, - namespaces: ['default'], + mockEsClient.search.mockResponse({ + hits: { + hits: [ + // @ts-expect-error not full search response + { + _source: { + action: { + id: '1', + actionTypeId: '.server-log', }, + namespaces: ['default'], }, - { - _source: { - action: { - id: '2', - actionTypeId: '.slack', - }, - namespaces: ['default'], + }, + // @ts-expect-error not full search response + { + _source: { + action: { + id: '2', + actionTypeId: '.slack', }, + namespaces: ['default'], }, - ], - }, - }) - ); + }, + ], + }, + }); const telemetry = await getInUseTotalCount(mockEsClient, 'test'); expect(mockEsClient.search).toHaveBeenCalledTimes(2); @@ -181,9 +180,9 @@ Object { test('getInUseTotalCount should count preconfigured alert history connector usage', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValueOnce( + mockEsClient.search.mockResponseOnce( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { refs: { actionRefIds: { @@ -211,35 +210,34 @@ Object { }, }, }, - }) + } ); - mockEsClient.search.mockReturnValueOnce( - // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [ - { - _source: { - action: { - id: '1', - actionTypeId: '.server-log', - }, - namespaces: ['default'], + mockEsClient.search.mockResponseOnce({ + hits: { + hits: [ + // @ts-expect-error not full search response + { + _source: { + action: { + id: '1', + actionTypeId: '.server-log', }, + namespaces: ['default'], }, - { - _source: { - action: { - id: '2', - actionTypeId: '.slack', - }, - namespaces: ['default'], + }, + // @ts-expect-error not full search response + { + _source: { + action: { + id: '2', + actionTypeId: '.slack', }, + namespaces: ['default'], }, - ], - }, - }) - ); + }, + ], + }, + }); const telemetry = await getInUseTotalCount(mockEsClient, 'test', undefined, [ { id: 'test', @@ -281,9 +279,9 @@ Object { test('getTotalCount accounts for preconfigured connectors', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byActionTypeId: { value: { @@ -364,7 +362,7 @@ Object { }, ], }, - }) + } ); const telemetry = await getTotalCount(mockEsClient, 'test', [ { @@ -401,9 +399,9 @@ Object { test('getInUseTotalCount() accounts for preconfigured connectors', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValueOnce( + mockEsClient.search.mockResponseOnce( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { refs: { actionRefIds: { @@ -439,44 +437,44 @@ Object { }, }, }, - }) + } ); - mockEsClient.search.mockReturnValueOnce( - // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [ - { - _source: { - action: { - id: '1', - actionTypeId: '.server-log', - }, - namespaces: ['default'], + mockEsClient.search.mockResponseOnce({ + hits: { + hits: [ + // @ts-expect-error not full search response + { + _source: { + action: { + id: '1', + actionTypeId: '.server-log', }, + namespaces: ['default'], }, - { - _source: { - action: { - id: '2', - actionTypeId: '.slack', - }, - namespaces: ['default'], + }, + // @ts-expect-error not full search response + { + _source: { + action: { + id: '2', + actionTypeId: '.slack', }, + namespaces: ['default'], }, - { - _source: { - action: { - id: '3', - actionTypeId: '.email', - }, - namespaces: ['default'], + }, + // @ts-expect-error not full search response + { + _source: { + action: { + id: '3', + actionTypeId: '.email', }, + namespaces: ['default'], }, - ], - }, - }) - ); + }, + ], + }, + }); const telemetry = await getInUseTotalCount(mockEsClient, 'test', undefined, [ { id: 'anotherServerLog', @@ -508,9 +506,9 @@ Object { test('getInUseTotalCount() accounts for actions namespaces', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValueOnce( + mockEsClient.search.mockResponseOnce( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { refs: { actionRefIds: { @@ -546,44 +544,44 @@ Object { }, }, }, - }) + } ); - mockEsClient.search.mockReturnValueOnce( - // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [ - { - _source: { - action: { - id: '1', - actionTypeId: '.server-log', - }, - namespaces: ['test'], + mockEsClient.search.mockResponseOnce({ + hits: { + hits: [ + // @ts-expect-error not full search response + { + _source: { + action: { + id: '1', + actionTypeId: '.server-log', }, + namespaces: ['test'], }, - { - _source: { - action: { - id: '2', - actionTypeId: '.slack', - }, - namespaces: ['default'], + }, + // @ts-expect-error not full search response + { + _source: { + action: { + id: '2', + actionTypeId: '.slack', }, + namespaces: ['default'], }, - { - _source: { - action: { - id: '3', - actionTypeId: '.email', - }, - namespaces: ['test2'], + }, + // @ts-expect-error not full search response + { + _source: { + action: { + id: '3', + actionTypeId: '.email', }, + namespaces: ['test2'], }, - ], - }, - }) - ); + }, + ], + }, + }); const telemetry = await getInUseTotalCount(mockEsClient, 'test'); expect(mockEsClient.search).toHaveBeenCalledTimes(2); @@ -607,9 +605,9 @@ Object { test('getExecutionsTotalCount', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValueOnce( + mockEsClient.search.mockResponseOnce( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { totalExecutions: { byConnectorTypeId: { @@ -668,17 +666,17 @@ Object { }, }, }, - }) + } ); // for .slack connectors - mockEsClient.search.mockReturnValueOnce( + mockEsClient.search.mockResponseOnce( // @ts-expect-error not full search response - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { avgDuration: { value: 10 }, }, - }) + } ); const telemetry = await getExecutionsPerDayCount(mockEsClient, 'test'); diff --git a/x-pack/plugins/actions/server/usage/actions_telemetry.ts b/x-pack/plugins/actions/server/usage/actions_telemetry.ts index d288611af5e21..473c440ed37fb 100644 --- a/x-pack/plugins/actions/server/usage/actions_telemetry.ts +++ b/x-pack/plugins/actions/server/usage/actions_telemetry.ts @@ -41,7 +41,7 @@ export async function getTotalCount( }, }; - const { body: searchResult } = await esClient.search({ + const searchResult = await esClient.search({ index: kibanaIndex, size: 0, body: { @@ -223,7 +223,7 @@ export async function getInUseTotalCount( }); } - const { body: actionResults } = await esClient.search({ + const actionResults = await esClient.search({ index: kibanaIndex, size: 0, body: { @@ -268,9 +268,7 @@ export async function getInUseTotalCount( // @ts-expect-error aggegation type is not specified actionResults.aggregations.preconfigured_actions?.preconfiguredActionRefIds.value; - const { - body: { hits: actions }, - } = await esClient.search<{ + const { hits: actions } = await esClient.search<{ action: ActionResult; namespaces: string[]; }>({ @@ -394,8 +392,8 @@ export async function getExecutionsPerDayCount( scripted_metric: { init_script: 'state.connectorTypes = [:]; state.total = 0;', map_script: ` - if (doc['kibana.saved_objects.type'].value == 'action') { - String connectorType = doc['kibana.saved_objects.type_id'].value; + if (doc['kibana.saved_objects.type'].value == 'action') { + String connectorType = doc['kibana.saved_objects.type_id'].value; state.connectorTypes.put(connectorType, state.connectorTypes.containsKey(connectorType) ? state.connectorTypes.get(connectorType) + 1 : 1); state.total++; } @@ -424,7 +422,7 @@ export async function getExecutionsPerDayCount( }, }; - const { body: actionResults } = await esClient.search({ + const actionResults = await esClient.search({ index: eventLogIndex, size: 0, body: { diff --git a/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.test.ts b/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.test.ts index ed334e262a3a2..d6ac850e59214 100644 --- a/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.test.ts +++ b/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.test.ts @@ -32,6 +32,7 @@ describe('createAbortableEsClientFactory', () => { await abortableSearchClient.asInternalUser.search(esQuery); expect(scopedClusterClient.asInternalUser.search).toHaveBeenCalledWith(esQuery, { signal: abortController.signal, + meta: true, }); expect(scopedClusterClient.asCurrentUser.search).not.toHaveBeenCalled(); }); @@ -47,6 +48,7 @@ describe('createAbortableEsClientFactory', () => { await abortableSearchClient.asCurrentUser.search(esQuery); expect(scopedClusterClient.asCurrentUser.search).toHaveBeenCalledWith(esQuery, { signal: abortController.signal, + meta: true, }); expect(scopedClusterClient.asInternalUser.search).not.toHaveBeenCalled(); }); @@ -63,6 +65,7 @@ describe('createAbortableEsClientFactory', () => { expect(scopedClusterClient.asInternalUser.search).toHaveBeenCalledWith(esQuery, { ignore: [404], signal: abortController.signal, + meta: true, }); expect(scopedClusterClient.asCurrentUser.search).not.toHaveBeenCalled(); }); diff --git a/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts b/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts index ded375c7de9d4..a24ad544557d6 100644 --- a/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts +++ b/x-pack/plugins/alerting/server/lib/create_abortable_es_client_factory.ts @@ -24,6 +24,7 @@ export interface IAbortableClusterClient { readonly asInternalUser: IAbortableEsClient; readonly asCurrentUser: IAbortableEsClient; } + export interface CreateAbortableEsClientFactoryOpts { scopedClusterClient: IScopedClusterClient; abortController: AbortController; @@ -42,6 +43,7 @@ export function createAbortableEsClientFactory(opts: CreateAbortableEsClientFact return await scopedClusterClient.asInternalUser.search(query, { ...searchOptions, signal: abortController.signal, + meta: true, }); } catch (e) { if (abortController.signal.aborted) { @@ -61,6 +63,7 @@ export function createAbortableEsClientFactory(opts: CreateAbortableEsClientFact return await scopedClusterClient.asCurrentUser.search(query, { ...searchOptions, signal: abortController.signal, + meta: true, }); } catch (e) { if (abortController.signal.aborted) { diff --git a/x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts b/x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts index d679c140733c2..4e34fc2a04f30 100644 --- a/x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts +++ b/x-pack/plugins/alerting/server/usage/alerting_telemetry.test.ts @@ -20,9 +20,9 @@ import { describe('alerting telemetry', () => { test('getTotalCountInUse should replace "." symbols with "__" in rule types names', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byRuleTypeId: { value: { @@ -40,7 +40,7 @@ describe('alerting telemetry', () => { hits: { hits: [], }, - }) + } ); const telemetry = await getTotalCountInUse(mockEsClient, 'test'); @@ -62,9 +62,9 @@ Object { test('getTotalCountAggregations should return min/max connectors in use', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byRuleTypeId: { value: { @@ -88,7 +88,7 @@ Object { hits: { hits: [], }, - }) + } ); const telemetry = await getTotalCountAggregations(mockEsClient, 'test'); @@ -135,9 +135,9 @@ Object { test('getExecutionsPerDayCount should return execution aggregations for total count, count by rule type and number of failed executions', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byRuleTypeId: { value: { @@ -169,7 +169,7 @@ Object { hits: { hits: [], }, - }) + } ); const telemetry = await getExecutionsPerDayCount(mockEsClient, 'test'); @@ -205,9 +205,9 @@ Object { test('getExecutionTimeoutsPerDayCount should return execution aggregations for total timeout count and count by rule type', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byRuleTypeId: { value: { @@ -222,7 +222,7 @@ Object { hits: { hits: [], }, - }) + } ); const telemetry = await getExecutionTimeoutsPerDayCount(mockEsClient, 'test'); @@ -241,9 +241,9 @@ Object { test('getFailedAndUnrecognizedTasksPerDay should aggregations for total count, count by status and count by status and rule type for failed and unrecognized tasks', async () => { const mockEsClient = elasticsearchClientMock.createClusterClient().asScoped().asInternalUser; - mockEsClient.search.mockReturnValue( + mockEsClient.search.mockResponse( // @ts-expect-error @elastic/elasticsearch Aggregate only allows unknown values - elasticsearchClientMock.createSuccessTransportRequestPromise({ + { aggregations: { byTaskTypeId: { value: { @@ -263,7 +263,7 @@ Object { hits: { hits: [], }, - }) + } ); const telemetry = await getFailedAndUnrecognizedTasksPerDay(mockEsClient, 'test'); diff --git a/x-pack/plugins/alerting/server/usage/alerting_telemetry.ts b/x-pack/plugins/alerting/server/usage/alerting_telemetry.ts index 15d6650b2cb4b..b77083c62f000 100644 --- a/x-pack/plugins/alerting/server/usage/alerting_telemetry.ts +++ b/x-pack/plugins/alerting/server/usage/alerting_telemetry.ts @@ -43,7 +43,7 @@ const ruleTypeExecutionsWithDurationMetric = { init_script: 'state.ruleTypes = [:]; state.ruleTypesDuration = [:];', map_script: ` String ruleType = doc['rule.category'].value; - long duration = doc['event.duration'].value / (1000 * 1000); + long duration = doc['event.duration'].value / (1000 * 1000); state.ruleTypes.put(ruleType, state.ruleTypes.containsKey(ruleType) ? state.ruleTypes.get(ruleType) + 1 : 1); state.ruleTypesDuration.put(ruleType, state.ruleTypesDuration.containsKey(ruleType) ? state.ruleTypesDuration.get(ruleType) + duration : duration); `, @@ -125,12 +125,12 @@ const ruleTypeFailureExecutionsMetric = { scripted_metric: { init_script: 'state.reasons = [:]', map_script: ` - if (doc['event.outcome'].value == 'failure') { - String reason = doc['event.reason'].value; - String ruleType = doc['rule.category'].value; - Map ruleTypes = state.reasons.containsKey(reason) ? state.reasons.get(reason) : [:]; - ruleTypes.put(ruleType, ruleTypes.containsKey(ruleType) ? ruleTypes.get(ruleType) + 1 : 1); - state.reasons.put(reason, ruleTypes); + if (doc['event.outcome'].value == 'failure') { + String reason = doc['event.reason'].value; + String ruleType = doc['rule.category'].value; + Map ruleTypes = state.reasons.containsKey(reason) ? state.reasons.get(reason) : [:]; + ruleTypes.put(ruleType, ruleTypes.containsKey(ruleType) ? ruleTypes.get(ruleType) + 1 : 1); + state.reasons.put(reason, ruleTypes); } `, // Combine script is executed per cluster, but we already have a key-value pair per cluster. @@ -168,7 +168,7 @@ export async function getTotalCountAggregations( | 'count_rules_namespaces' > > { - const { body: results } = await esClient.search({ + const results = await esClient.search({ index: kibanaIndex, body: { size: 0, @@ -182,13 +182,13 @@ export async function getTotalCountAggregations( type: 'long', script: { source: ` - def alert = params._source['alert']; - if (alert != null) { - def actions = alert.actions; - if (actions != null) { - emit(actions.length); - } else { - emit(0); + def alert = params._source['alert']; + if (alert != null) { + def actions = alert.actions; + if (actions != null) { + emit(actions.length); + } else { + emit(0); } }`, }, @@ -331,7 +331,7 @@ export async function getTotalCountAggregations( } export async function getTotalCountInUse(esClient: ElasticsearchClient, kibanaIndex: string) { - const { body: searchResult } = await esClient.search({ + const searchResult = await esClient.search({ index: kibanaIndex, size: 0, body: { @@ -367,7 +367,7 @@ export async function getExecutionsPerDayCount( esClient: ElasticsearchClient, eventLogIndex: string ) { - const { body: searchResult } = await esClient.search({ + const searchResult = await esClient.search({ index: eventLogIndex, size: 0, body: { @@ -489,7 +489,7 @@ export async function getExecutionTimeoutsPerDayCount( esClient: ElasticsearchClient, eventLogIndex: string ) { - const { body: searchResult } = await esClient.search({ + const searchResult = await esClient.search({ index: eventLogIndex, size: 0, body: { @@ -544,7 +544,7 @@ export async function getFailedAndUnrecognizedTasksPerDay( esClient: ElasticsearchClient, taskManagerIndex: string ) { - const { body: searchResult } = await esClient.search({ + const searchResult = await esClient.search({ index: taskManagerIndex, size: 0, body: { diff --git a/x-pack/plugins/apm/server/lib/apm_telemetry/index.ts b/x-pack/plugins/apm/server/lib/apm_telemetry/index.ts index bdbb1fe1dbcd3..310e9c30c71e0 100644 --- a/x-pack/plugins/apm/server/lib/apm_telemetry/index.ts +++ b/x-pack/plugins/apm/server/lib/apm_telemetry/index.ts @@ -76,14 +76,21 @@ export async function createApmTelemetry({ }); const search: CollectTelemetryParams['search'] = (params) => - unwrapEsResponse(esClient.asInternalUser.search(params)) as any; + unwrapEsResponse( + esClient.asInternalUser.search(params, { meta: true }) + ) as any; const indicesStats: CollectTelemetryParams['indicesStats'] = (params) => - unwrapEsResponse(esClient.asInternalUser.indices.stats(params)); + unwrapEsResponse( + esClient.asInternalUser.indices.stats(params, { meta: true }) + ); const transportRequest: CollectTelemetryParams['transportRequest'] = ( params - ) => unwrapEsResponse(esClient.asInternalUser.transport.request(params)); + ) => + unwrapEsResponse( + esClient.asInternalUser.transport.request(params, { meta: true }) + ); const dataTelemetry = await collectDataTelemetry({ search, diff --git a/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_apm_event_client/index.ts b/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_apm_event_client/index.ts index 6e09e2aecfd48..ac801367662fc 100644 --- a/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_apm_event_client/index.ts +++ b/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_apm_event_client/index.ts @@ -118,7 +118,10 @@ export class APMEventClient { const searchPromise = withApmSpan(operationName, () => { const controller = new AbortController(); return cancelEsRequestOnAbort( - this.esClient.search(searchParams, { signal: controller.signal }), + this.esClient.search(searchParams, { + signal: controller.signal, + meta: true, + }), this.request, controller ); @@ -161,7 +164,7 @@ export class APMEventClient { index: Array.isArray(index) ? index.join(',') : index, ...rest, }, - { signal: controller.signal } + { signal: controller.signal, meta: true } ), this.request, controller diff --git a/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts b/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts index 621f65f74d9f4..bd54c0916ef96 100644 --- a/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts +++ b/x-pack/plugins/apm/server/lib/helpers/create_es_client/create_internal_es_client/index.ts @@ -72,14 +72,14 @@ export function createInternalESClient({ ): Promise> => { return callEs(operationName, { requestType: 'search', - cb: (signal) => asInternalUser.search(params, { signal }), + cb: (signal) => asInternalUser.search(params, { signal, meta: true }), params, }); }, index: (operationName: string, params: APMIndexDocumentParams) => { return callEs(operationName, { requestType: 'index', - cb: (signal) => asInternalUser.index(params, { signal }), + cb: (signal) => asInternalUser.index(params, { signal, meta: true }), params, }); }, @@ -89,7 +89,7 @@ export function createInternalESClient({ ): Promise<{ result: string }> => { return callEs(operationName, { requestType: 'delete', - cb: (signal) => asInternalUser.delete(params, { signal }), + cb: (signal) => asInternalUser.delete(params, { signal, meta: true }), params, }); }, @@ -99,7 +99,8 @@ export function createInternalESClient({ ) => { return callEs(operationName, { requestType: 'indices.create', - cb: (signal) => asInternalUser.indices.create(params, { signal }), + cb: (signal) => + asInternalUser.indices.create(params, { signal, meta: true }), params, }); }, diff --git a/x-pack/plugins/apm/server/lib/helpers/setup_request.test.ts b/x-pack/plugins/apm/server/lib/helpers/setup_request.test.ts index 9cde37d1d93f7..9e7eb1ea8c021 100644 --- a/x-pack/plugins/apm/server/lib/helpers/setup_request.test.ts +++ b/x-pack/plugins/apm/server/lib/helpers/setup_request.test.ts @@ -5,6 +5,7 @@ * 2.0. */ +import { elasticsearchServiceMock } from '../../../../../../src/core/server/mocks'; import { setupRequest } from './setup_request'; import { APMConfig } from '../..'; import { APMRouteHandlerResources } from '../../routes/typings'; @@ -32,14 +33,11 @@ jest.mock('../../routes/data_view/get_dynamic_data_view', () => ({ })); function getMockResources() { - const esClientMock = { - asCurrentUser: { - search: jest.fn().mockResolvedValue({ body: {} }), - }, - asInternalUser: { - search: jest.fn().mockResolvedValue({ body: {} }), - }, - }; + const esClientMock = elasticsearchServiceMock.createScopedClusterClient(); + // @ts-expect-error incomplete definition + esClientMock.asCurrentUser.search.mockResponse({}); + // @ts-expect-error incomplete definition + esClientMock.asInternalUser.search.mockResponse({}); const mockResources = { config: new Proxy( @@ -135,6 +133,7 @@ describe('setupRequest', () => { }, { signal: expect.any(Object), + meta: true, } ); }); @@ -157,6 +156,7 @@ describe('setupRequest', () => { }, { signal: expect.any(Object), + meta: true, } ); }); @@ -177,6 +177,7 @@ describe('setupRequest', () => { const params = mockResources.context.core.elasticsearch.client.asCurrentUser.search .mock.calls[0][0]; + // @ts-expect-error missing body definition expect(params.body).toEqual({ query: { bool: { @@ -205,6 +206,7 @@ describe('setupRequest', () => { const params = mockResources.context.core.elasticsearch.client.asCurrentUser.search .mock.calls[0][0]; + // @ts-expect-error missing body definition expect(params.body).toEqual({ query: { bool: { @@ -235,6 +237,7 @@ describe('without a bool filter', () => { const params = mockResources.context.core.elasticsearch.client.asCurrentUser.search.mock .calls[0][0]; + // @ts-expect-error missing body definition expect(params.body).toEqual({ query: { bool: { @@ -266,6 +269,7 @@ describe('with includeFrozen=false', () => { const params = mockResources.context.core.elasticsearch.client.asCurrentUser.search.mock .calls[0][0]; + // @ts-expect-error missing body definition expect(params.ignore_throttled).toBe(undefined); }); }); @@ -286,6 +290,7 @@ describe('with includeFrozen=true', () => { const params = mockResources.context.core.elasticsearch.client.asCurrentUser.search.mock .calls[0][0]; + // @ts-expect-error missing body definition expect(params.ignore_throttled).toBe(false); }); }); diff --git a/x-pack/plugins/apm/server/routes/agent_keys/create_agent_key.ts b/x-pack/plugins/apm/server/routes/agent_keys/create_agent_key.ts index d83a7af2737cd..3b47b81a86416 100644 --- a/x-pack/plugins/apm/server/routes/agent_keys/create_agent_key.ts +++ b/x-pack/plugins/apm/server/routes/agent_keys/create_agent_key.ts @@ -7,25 +7,9 @@ import Boom from '@hapi/boom'; import { ApmPluginRequestHandlerContext } from '../typings'; -import { CreateApiKeyResponse } from '../../../common/agent_key_types'; -import { PrivilegeType } from '../../../common/privilege_type'; const resource = '*'; -interface SecurityHasPrivilegesResponse { - application: { - apm: { - [resource]: { - [PrivilegeType.SOURCEMAP]: boolean; - [PrivilegeType.EVENT]: boolean; - [PrivilegeType.AGENT_CONFIG]: boolean; - }; - }; - }; - has_all_requested: boolean; - username: string; -} - export async function createAgentKey({ context, requestBody, @@ -46,12 +30,10 @@ export async function createAgentKey({ // Elasticsearch will allow a user without the right apm privileges to create API keys, but the keys won't validate // check first whether the user has the right privileges, and bail out early if not const { - body: { - application: userApplicationPrivileges, - username, - has_all_requested: hasRequiredPrivileges, - }, - } = await context.core.elasticsearch.client.asCurrentUser.security.hasPrivileges( + application: userApplicationPrivileges, + username, + has_all_requested: hasRequiredPrivileges, + } = await context.core.elasticsearch.client.asCurrentUser.security.hasPrivileges( { body: { application: [application], @@ -97,8 +79,8 @@ export async function createAgentKey({ }, }; - const { body: agentKey } = - await context.core.elasticsearch.client.asCurrentUser.security.createApiKey( + const agentKey = + await context.core.elasticsearch.client.asCurrentUser.security.createApiKey( { body, } diff --git a/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys.ts b/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys.ts index 9c5b3e04c94f2..dff7b3b5c32ab 100644 --- a/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys.ts +++ b/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys.ts @@ -36,7 +36,7 @@ export async function getAgentKeys({ body, }); - const agentKeys = apiResponse.body.api_keys.filter( + const agentKeys = apiResponse.api_keys.filter( ({ invalidated }) => !invalidated ); return { diff --git a/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts b/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts index 4aed9314f433c..29514739f2225 100644 --- a/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts +++ b/x-pack/plugins/apm/server/routes/agent_keys/get_agent_keys_privileges.ts @@ -8,14 +8,6 @@ import { ApmPluginRequestHandlerContext } from '../typings'; import { APMPluginStartDependencies } from '../../types'; -interface SecurityHasPrivilegesResponse { - cluster: { - manage_security: boolean; - manage_api_key: boolean; - manage_own_api_key: boolean; - }; -} - export async function getAgentKeysPrivileges({ context, securityPluginStart, @@ -24,23 +16,19 @@ export async function getAgentKeysPrivileges({ securityPluginStart: NonNullable; }) { const [securityHasPrivilegesResponse, areApiKeysEnabled] = await Promise.all([ - context.core.elasticsearch.client.asCurrentUser.security.hasPrivileges( - { - body: { - cluster: ['manage_security', 'manage_api_key', 'manage_own_api_key'], - }, - } - ), + context.core.elasticsearch.client.asCurrentUser.security.hasPrivileges({ + body: { + cluster: ['manage_security', 'manage_api_key', 'manage_own_api_key'], + }, + }), securityPluginStart.authc.apiKeys.areAPIKeysEnabled(), ]); const { - body: { - cluster: { - manage_security: manageSecurity, - manage_api_key: manageApiKey, - manage_own_api_key: manageOwnApiKey, - }, + cluster: { + manage_security: manageSecurity, + manage_api_key: manageApiKey, + manage_own_api_key: manageOwnApiKey, }, } = securityHasPrivilegesResponse; diff --git a/x-pack/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts b/x-pack/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts index 1ccb63382de4e..99c5008718403 100644 --- a/x-pack/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts +++ b/x-pack/plugins/apm/server/routes/agent_keys/invalidate_agent_key.ts @@ -13,16 +13,15 @@ export async function invalidateAgentKey({ context: ApmPluginRequestHandlerContext; id: string; }) { - const { - body: { invalidated_api_keys: invalidatedAgentKeys }, - } = await context.core.elasticsearch.client.asCurrentUser.security.invalidateApiKey( - { - body: { - ids: [id], - owner: true, - }, - } - ); + const { invalidated_api_keys: invalidatedAgentKeys } = + await context.core.elasticsearch.client.asCurrentUser.security.invalidateApiKey( + { + body: { + ids: [id], + owner: true, + }, + } + ); return { invalidatedAgentKeys, diff --git a/x-pack/plugins/apm/server/routes/alerts/alerting_es_client.ts b/x-pack/plugins/apm/server/routes/alerts/alerting_es_client.ts index 9445a0f0610f6..876d02137c3f8 100644 --- a/x-pack/plugins/apm/server/routes/alerts/alerting_es_client.ts +++ b/x-pack/plugins/apm/server/routes/alerts/alerting_es_client.ts @@ -27,5 +27,5 @@ export async function alertingEsClient({ ignore_unavailable: true, }); - return response.body as unknown as ESSearchResponse; + return response as unknown as ESSearchResponse; } diff --git a/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.test.ts b/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.test.ts index 01aa64b85f720..e1e807c05400c 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.test.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_error_count_alert_type.test.ts @@ -6,8 +6,6 @@ */ import { registerErrorCountAlertType } from './register_error_count_alert_type'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; import { createRuleTypeMocks } from './test_utils'; describe('Error count alert', () => { @@ -18,25 +16,23 @@ describe('Error count alert', () => { const params = { threshold: 1 }; - services.scopedClusterClient.asCurrentUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [], - total: { - relation: 'eq', - value: 0, - }, + services.scopedClusterClient.asCurrentUser.search.mockResponse({ + hits: { + hits: [], + total: { + relation: 'eq', + value: 0, }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - skipped: 0, - successful: 1, - total: 1, - }, - }) - ); + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + skipped: 0, + successful: 1, + total: 1, + }, + }); await executor({ params }); expect(services.alertFactory.create).not.toBeCalled(); @@ -50,87 +46,85 @@ describe('Error count alert', () => { const params = { threshold: 2, windowSize: 5, windowUnit: 'm' }; - services.scopedClusterClient.asCurrentUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [], - total: { - relation: 'eq', - value: 2, - }, + services.scopedClusterClient.asCurrentUser.search.mockResponse({ + hits: { + hits: [], + total: { + relation: 'eq', + value: 2, }, - aggregations: { - error_counts: { - buckets: [ - { - key: ['foo', 'env-foo'], - doc_count: 5, - latest: { - top: [ - { - metrics: { - 'service.name': 'foo', - 'service.environment': 'env-foo', - }, + }, + aggregations: { + error_counts: { + buckets: [ + { + key: ['foo', 'env-foo'], + doc_count: 5, + latest: { + top: [ + { + metrics: { + 'service.name': 'foo', + 'service.environment': 'env-foo', }, - ], - }, + }, + ], }, - { - key: ['foo', 'env-foo-2'], - doc_count: 4, - latest: { - top: [ - { - metrics: { - 'service.name': 'foo', - 'service.environment': 'env-foo-2', - }, + }, + { + key: ['foo', 'env-foo-2'], + doc_count: 4, + latest: { + top: [ + { + metrics: { + 'service.name': 'foo', + 'service.environment': 'env-foo-2', }, - ], - }, + }, + ], }, - { - key: ['bar', 'env-bar'], - doc_count: 3, - latest: { - top: [ - { - metrics: { - 'service.name': 'bar', - 'service.environment': 'env-bar', - }, + }, + { + key: ['bar', 'env-bar'], + doc_count: 3, + latest: { + top: [ + { + metrics: { + 'service.name': 'bar', + 'service.environment': 'env-bar', }, - ], - }, + }, + ], }, - { - key: ['bar', 'env-bar-2'], - doc_count: 1, - latest: { - top: [ - { - metrics: { - 'service.name': 'bar', - 'service.environment': 'env-bar-2', - }, + }, + { + key: ['bar', 'env-bar-2'], + doc_count: 1, + latest: { + top: [ + { + metrics: { + 'service.name': 'bar', + 'service.environment': 'env-bar-2', }, - ], - }, + }, + ], }, - ], - }, + }, + ], }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - skipped: 0, - successful: 1, - total: 1, - }, - }) - ); + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + skipped: 0, + successful: 1, + total: 1, + }, + }); await executor({ params }); [ diff --git a/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.test.ts b/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.test.ts index 956347098d787..debe14e41db11 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.test.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_transaction_duration_alert_type.test.ts @@ -7,8 +7,6 @@ import { registerTransactionDurationAlertType } from './register_transaction_duration_alert_type'; import { createRuleTypeMocks } from './test_utils'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; describe('registerTransactionDurationAlertType', () => { it('sends alert when value is greater than threashold', async () => { @@ -17,30 +15,28 @@ describe('registerTransactionDurationAlertType', () => { registerTransactionDurationAlertType(dependencies); - services.scopedClusterClient.asCurrentUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [], - total: { - relation: 'eq', - value: 2, - }, + services.scopedClusterClient.asCurrentUser.search.mockResponse({ + hits: { + hits: [], + total: { + relation: 'eq', + value: 2, }, - aggregations: { - latency: { - value: 5500000, - }, + }, + aggregations: { + latency: { + value: 5500000, }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - skipped: 0, - successful: 1, - total: 1, - }, - }) - ); + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + skipped: 0, + successful: 1, + total: 1, + }, + }); const params = { threshold: 3000, diff --git a/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.test.ts b/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.test.ts index 64540e144d8a8..a054dcba53a3b 100644 --- a/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.test.ts +++ b/x-pack/plugins/apm/server/routes/alerts/register_transaction_error_rate_alert_type.test.ts @@ -6,8 +6,6 @@ */ import { registerTransactionErrorRateAlertType } from './register_transaction_error_rate_alert_type'; -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; import { createRuleTypeMocks } from './test_utils'; describe('Transaction error rate alert', () => { @@ -20,30 +18,28 @@ describe('Transaction error rate alert', () => { const params = { threshold: 1 }; - services.scopedClusterClient.asCurrentUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [], - total: { - relation: 'eq', - value: 0, - }, + services.scopedClusterClient.asCurrentUser.search.mockResponse({ + hits: { + hits: [], + total: { + relation: 'eq', + value: 0, }, - took: 0, - timed_out: false, - aggregations: { - series: { - buckets: [], - }, + }, + took: 0, + timed_out: false, + aggregations: { + series: { + buckets: [], }, - _shards: { - failed: 0, - skipped: 0, - successful: 1, - total: 1, - }, - }) - ); + }, + _shards: { + failed: 0, + skipped: 0, + successful: 1, + total: 1, + }, + }); await executor({ params }); expect(services.alertFactory.create).not.toBeCalled(); @@ -57,61 +53,59 @@ describe('Transaction error rate alert', () => { ...dependencies, }); - services.scopedClusterClient.asCurrentUser.search.mockReturnValue( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - hits: { - hits: [], - total: { - relation: 'eq', - value: 0, - }, + services.scopedClusterClient.asCurrentUser.search.mockResponse({ + hits: { + hits: [], + total: { + relation: 'eq', + value: 0, }, - aggregations: { - series: { - buckets: [ - { - key: ['foo', 'env-foo', 'type-foo'], - outcomes: { - buckets: [ - { - key: 'success', - doc_count: 90, - }, - { - key: 'failure', - doc_count: 10, - }, - ], - }, + }, + aggregations: { + series: { + buckets: [ + { + key: ['foo', 'env-foo', 'type-foo'], + outcomes: { + buckets: [ + { + key: 'success', + doc_count: 90, + }, + { + key: 'failure', + doc_count: 10, + }, + ], }, - { - key: ['bar', 'env-bar', 'type-bar'], - outcomes: { - buckets: [ - { - key: 'success', - doc_count: 90, - }, - { - key: 'failure', - doc_count: 1, - }, - ], - }, + }, + { + key: ['bar', 'env-bar', 'type-bar'], + outcomes: { + buckets: [ + { + key: 'success', + doc_count: 90, + }, + { + key: 'failure', + doc_count: 1, + }, + ], }, - ], - }, + }, + ], }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - skipped: 0, - successful: 1, - total: 1, - }, - }) - ); + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + skipped: 0, + successful: 1, + total: 1, + }, + }); const params = { threshold: 10, windowSize: 5, windowUnit: 'm' }; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_boolean_field_stats.ts b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_boolean_field_stats.ts index 9fe1c1f882f1d..13910ef7104fb 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_boolean_field_stats.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_boolean_field_stats.ts @@ -72,7 +72,7 @@ export const fetchBooleanFieldStats = async ( field.fieldName, termFilters ); - const { body } = await esClient.search(request); + const body = await esClient.search(request); const aggregations = body.aggregations; const stats: BooleanFieldStats = { fieldName: field.fieldName, diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_stats.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_stats.test.ts index 30bebc4c24774..1c979bc3e4c6d 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_stats.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_stats.test.ts @@ -99,31 +99,23 @@ describe('field_stats', () => { describe('fetchFieldsStats', () => { it('returns field candidates and total hits', async () => { const fieldsCaps = { - body: { - fields: { - myIpFieldName: { ip: {} }, - myKeywordFieldName: { keyword: {} }, - myMultiFieldName: { keyword: {}, text: {} }, - myHistogramFieldName: { histogram: {} }, - myNumericFieldName: { number: {} }, - }, + fields: { + myIpFieldName: { ip: {} }, + myKeywordFieldName: { keyword: {} }, + myMultiFieldName: { keyword: {}, text: {} }, + myHistogramFieldName: { histogram: {} }, + myNumericFieldName: { number: {} }, }, }; const esClientFieldCapsMock = jest.fn(() => fieldsCaps); - const fieldsToSample = Object.keys(fieldsCaps.body.fields); + const fieldsToSample = Object.keys(fieldsCaps.fields); const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - aggregations: { sample: {} }, - } as unknown as estypes.SearchResponse, - }; + aggregations: { sample: {} }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_value_stats.ts b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_value_stats.ts index 709e2ad4a99fd..c500d1d49dd6e 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_value_stats.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_field_value_stats.ts @@ -55,7 +55,7 @@ export const fetchFieldValueFieldStats = async ( ): Promise => { const request = getFieldValueFieldStatsRequest(params, field); - const { body } = await esClient.search(request); + const body = await esClient.search(request); const aggregations = body.aggregations as { filtered_count: estypes.AggregationsSingleBucketAggregateBase; }; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_fields_stats.ts b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_fields_stats.ts index 513252ee65e11..e44996337f4b1 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_fields_stats.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_fields_stats.ts @@ -34,7 +34,7 @@ export const fetchFieldsStats = async ( fields: fieldsToSample, }); - const fieldStatsPromises = Object.entries(respMapping.body.fields) + const fieldStatsPromises = Object.entries(respMapping.fields) .map(([key, value], idx) => { const field: FieldValuePair = { fieldName: key, fieldValue: '' }; const fieldTypes = Object.keys(value); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_keyword_field_stats.ts b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_keyword_field_stats.ts index 55ead5230e951..35b8eab5712ec 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_keyword_field_stats.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_keyword_field_stats.ts @@ -52,6 +52,7 @@ interface SampledTopAggs extends estypes.AggregationsTermsAggregateBase { buckets: TopValueBucket[]; } + export const fetchKeywordFieldStats = async ( esClient: ElasticsearchClient, params: FieldStatsCommonRequestParams, @@ -63,10 +64,9 @@ export const fetchKeywordFieldStats = async ( field.fieldName, termFilters ); - const { body } = await esClient.search< - unknown, - { sampled_top: SampledTopAggs } - >(request); + const body = await esClient.search( + request + ); const aggregations = body.aggregations; const topValues = aggregations?.sampled_top?.buckets ?? []; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_numeric_field_stats.ts b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_numeric_field_stats.ts index 2adb4502e4043..192377b88a992 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_numeric_field_stats.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/field_stats/get_numeric_field_stats.ts @@ -82,7 +82,7 @@ export const fetchNumericFieldStats = async ( field.fieldName, termFilters ); - const { body } = await esClient.search(request); + const body = await esClient.search(request); const aggregations = body.aggregations; const docCount = aggregations?.sampled_field_stats?.doc_count ?? 0; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.test.ts index 6cbf97a163871..8f5029c7a3e9e 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.test.ts @@ -72,24 +72,18 @@ describe('query_correlation', () => { const KsTestLess = 0.01; const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - aggregations: { - latency_ranges: { - buckets: latencyRangesBuckets, - }, - transaction_duration_correlation: { - value: transactionDurationCorrelationValue, - }, - ks_test: { less: KsTestLess }, + aggregations: { + latency_ranges: { + buckets: latencyRangesBuckets, + }, + transaction_duration_correlation: { + value: transactionDurationCorrelationValue, }, - } as unknown as estypes.SearchResponse, - }; + ks_test: { less: KsTestLess }, + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.ts index caf1386fbf025..c859853f6896b 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation.ts @@ -123,16 +123,16 @@ export const fetchTransactionDurationCorrelation = async ( ) ); - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationCorrelation failed, did not return aggregations.' ); } const result = { - ranges: resp.body.aggregations.latency_ranges.buckets, - correlation: resp.body.aggregations.transaction_duration_correlation.value, - ksTest: resp.body.aggregations.ks_test.less, + ranges: resp.aggregations.latency_ranges.buckets, + correlation: resp.aggregations.transaction_duration_correlation.value, + ksTest: resp.aggregations.ks_test.less, }; return result; }; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation_with_histogram.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation_with_histogram.test.ts index 2e1a635671794..10994c6c017e0 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation_with_histogram.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_correlation_with_histogram.test.ts @@ -38,14 +38,8 @@ describe('query_correlation_with_histogram', () => { describe('fetchTransactionDurationCorrelationWithHistogram', () => { it(`doesn't break on failing ES queries and adds messages to the log`, async () => { const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { - return { - body: {} as unknown as estypes.SearchResponse, - }; + (req: estypes.SearchRequest): Promise => { + return Promise.resolve({} as unknown as estypes.SearchResponse); } ); @@ -81,21 +75,15 @@ describe('query_correlation_with_histogram', () => { it('returns items with correlation and ks-test value', async () => { const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { - return { - body: { - aggregations: { - latency_ranges: { buckets: [] }, - transaction_duration_correlation: { value: 0.6 }, - ks_test: { less: 0.001 }, - logspace_ranges: { buckets: [] }, - }, - } as unknown as estypes.SearchResponse, - }; + (req: estypes.SearchRequest): Promise => { + return Promise.resolve({ + aggregations: { + latency_ranges: { buckets: [] }, + transaction_duration_correlation: { value: 0.6 }, + ks_test: { less: 0.001 }, + logspace_ranges: { buckets: [] }, + }, + } as unknown as estypes.SearchResponse); } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_failure_correlation.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_failure_correlation.ts index f50a610aeac71..46a980a53ab48 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_failure_correlation.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_failure_correlation.ts @@ -80,13 +80,13 @@ export const fetchFailedTransactionsCorrelationPValues = async ( getFailureCorrelationRequest(params, fieldName) ); - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchErrorCorrelation failed, did not return aggregations.' ); } - const overallResult = resp.body.aggregations.failure_p_value; + const overallResult = resp.aggregations.failure_p_value; // Using for of to sequentially augment the results with histogram data. const result: FailedTransactionsCorrelation[] = []; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.test.ts index 957e2393558ed..0ecbd6477fda7 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.test.ts @@ -97,36 +97,28 @@ describe('query_field_candidates', () => { describe('fetchTransactionDurationFieldCandidates', () => { it('returns field candidates and total hits', async () => { const esClientFieldCapsMock = jest.fn(() => ({ - body: { - fields: { - myIpFieldName: { ip: {} }, - myKeywordFieldName: { keyword: {} }, - myUnpopulatedKeywordFieldName: { keyword: {} }, - myNumericFieldName: { number: {} }, - }, + fields: { + myIpFieldName: { ip: {} }, + myKeywordFieldName: { keyword: {} }, + myUnpopulatedKeywordFieldName: { keyword: {} }, + myNumericFieldName: { number: {} }, }, })); const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - hits: { - hits: [ - { - fields: { - myIpFieldName: '1.1.1.1', - myKeywordFieldName: 'myKeywordFieldValue', - myNumericFieldName: 1234, - }, + hits: { + hits: [ + { + fields: { + myIpFieldName: '1.1.1.1', + myKeywordFieldName: 'myKeywordFieldValue', + myNumericFieldName: 1234, }, - ], - }, - } as unknown as estypes.SearchResponse, - }; + }, + ], + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.ts index 801bb18e8957a..2d6347362e8ea 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_candidates.ts @@ -70,7 +70,7 @@ export const fetchTransactionDurationFieldCandidates = async ( const finalFieldCandidates = new Set(FIELDS_TO_ADD_AS_CANDIDATE); const acceptableFields: Set = new Set(); - Object.entries(respMapping.body.fields).forEach(([key, value]) => { + Object.entries(respMapping.fields).forEach(([key, value]) => { const fieldTypes = Object.keys(value) as ES_FIELD_TYPES[]; const isSupportedType = fieldTypes.some((type) => SUPPORTED_ES_FIELD_TYPES.includes(type) @@ -87,7 +87,7 @@ export const fetchTransactionDurationFieldCandidates = async ( }); const resp = await esClient.search(getRandomDocsRequest(params)); - const sampledDocs = resp.body.hits.hits.map((d) => d.fields ?? {}); + const sampledDocs = resp.hits.hits.map((d) => d.fields ?? {}); // Get all field names for each returned doc and flatten it // to a list of unique field names used across all docs diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.test.ts index 80016930184b3..4f7c44e5f3107 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.test.ts @@ -42,20 +42,14 @@ describe('query_field_value_pairs', () => { ]; const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - aggregations: { - attribute_terms: { - buckets: [{ key: 'myValue1' }, { key: 'myValue2' }], - }, + aggregations: { + attribute_terms: { + buckets: [{ key: 'myValue1' }, { key: 'myValue2' }], }, - } as unknown as estypes.SearchResponse, - }; + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.ts index ac31985ecd190..6bcec359c157a 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_field_value_pairs.ts @@ -55,13 +55,13 @@ const fetchTransactionDurationFieldTerms = async ( getTermsAggRequest(params, fieldName) ); - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationFieldTerms failed, did not return aggregations.' ); } - const buckets = resp.body.aggregations.attribute_terms?.buckets; + const buckets = resp.aggregations.attribute_terms?.buckets; if (buckets?.length >= 1) { return buckets.map((d) => ({ fieldName, diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.test.ts index 12b054e18bab7..d8fada32cb74c 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.test.ts @@ -40,21 +40,15 @@ describe('query_fractions', () => { describe('fetchTransactionDurationFractions', () => { it('computes the actual percentile bucket counts and actual fractions', async () => { const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - hits: { total: { value: 3 } }, - aggregations: { - latency_ranges: { - buckets: [{ doc_count: 1 }, { doc_count: 2 }], - }, + hits: { total: { value: 3 } }, + aggregations: { + latency_ranges: { + buckets: [{ doc_count: 1 }, { doc_count: 2 }], }, - } as unknown as estypes.SearchResponse, - }; + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.ts index a4e9e0c13fa59..867a4defcb01b 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_fractions.ts @@ -52,20 +52,20 @@ export const fetchTransactionDurationFractions = async ( getTransactionDurationRangesRequest(params, ranges) ); - if ((resp.body.hits.total as estypes.SearchTotalHits).value === 0) { + if ((resp.hits.total as estypes.SearchTotalHits).value === 0) { return { fractions: [], totalDocCount: 0, }; } - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationFractions failed, did not return aggregations.' ); } - const buckets = resp.body.aggregations.latency_ranges?.buckets; + const buckets = resp.aggregations.latency_ranges?.buckets; const totalDocCount = buckets.reduce((acc, bucket) => { return acc + bucket.doc_count; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.test.ts index c9ea70452bdb0..7b60d93d0b745 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.test.ts @@ -79,20 +79,14 @@ describe('query_histogram', () => { ]; const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - aggregations: { - transaction_duration_histogram: { - buckets: histogramBucket, - }, + aggregations: { + transaction_duration_histogram: { + buckets: histogramBucket, }, - } as unknown as estypes.SearchResponse, - }; + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.ts index 5f32e1ef7cf5b..943718c986a7a 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram.ts @@ -52,11 +52,11 @@ export const fetchTransactionDurationHistogram = async ( { transaction_duration_histogram: Aggs } >(getTransactionDurationHistogramRequest(params, interval, termFilters)); - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationHistogram failed, did not return aggregations.' ); } - return resp.body.aggregations.transaction_duration_histogram.buckets ?? []; + return resp.aggregations.transaction_duration_histogram.buckets ?? []; }; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.test.ts index 526207beaabce..891c2af077e63 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.test.ts @@ -75,24 +75,18 @@ describe('query_histogram_range_steps', () => { describe('fetchTransactionDurationHistogramRangeSteps', () => { it('fetches the range steps for the log histogram', async () => { const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - hits: { total: { value: 10 } }, - aggregations: { - transaction_duration_max: { - value: 10000, - }, - transaction_duration_min: { - value: 10, - }, + hits: { total: { value: 10 } }, + aggregations: { + transaction_duration_max: { + value: 10000, }, - } as unknown as estypes.SearchResponse, - }; + transaction_duration_min: { + value: 10, + }, + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.ts index 159b5379df194..d260a22fb6e84 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_histogram_range_steps.ts @@ -61,18 +61,18 @@ export const fetchTransactionDurationHistogramRangeSteps = async ( } >(getHistogramIntervalRequest(params)); - if ((resp.body.hits.total as estypes.SearchTotalHits).value === 0) { + if ((resp.hits.total as estypes.SearchTotalHits).value === 0) { return getHistogramRangeSteps(0, 1, 100); } - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationHistogramRangeSteps failed, did not return aggregations.' ); } - const min = resp.body.aggregations.transaction_duration_min.value; - const max = resp.body.aggregations.transaction_duration_max.value * 2; + const min = resp.aggregations.transaction_duration_min.value; + const max = resp.aggregations.transaction_duration_max.value * 2; return getHistogramRangeSteps(min, max, steps); }; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.test.ts index 4e637d1ca6f4a..876225179aaa7 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.test.ts @@ -85,24 +85,17 @@ describe('query_percentiles', () => { }; const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - hits: { total: { value: totalDocs } }, - aggregations: { - transaction_duration_percentiles: { - values: percentilesValues, - }, + hits: { total: { value: totalDocs } }, + aggregations: { + transaction_duration_percentiles: { + values: percentilesValues, }, - } as unknown as estypes.SearchResponse, - }; + }, + } as unknown as estypes.SearchResponse; } ); - const esClientMock = { search: esClientSearchMock, } as unknown as ElasticsearchClient; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.ts index c5d2e8a5af7fd..e7ecb03fa342e 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_percentiles.ts @@ -64,19 +64,19 @@ export const fetchTransactionDurationPercentiles = async ( >(getTransactionDurationPercentilesRequest(params, percents, termFilters)); // return early with no results if the search didn't return any documents - if ((resp.body.hits.total as estypes.SearchTotalHits).value === 0) { + if ((resp.hits.total as estypes.SearchTotalHits).value === 0) { return { totalDocs: 0, percentiles: {} }; } - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationPercentiles failed, did not return aggregations.' ); } return { - totalDocs: (resp.body.hits.total as estypes.SearchTotalHits).value, + totalDocs: (resp.hits.total as estypes.SearchTotalHits).value, percentiles: - resp.body.aggregations.transaction_duration_percentiles.values ?? {}, + resp.aggregations.transaction_duration_percentiles.values ?? {}, }; }; diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.test.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.test.ts index 5c43b771f69ee..2b233958ce273 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.test.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.test.ts @@ -110,20 +110,14 @@ describe('query_ranges', () => { ]; const esClientSearchMock = jest.fn( - ( - req: estypes.SearchRequest - ): { - body: estypes.SearchResponse; - } => { + (req: estypes.SearchRequest): estypes.SearchResponse => { return { - body: { - aggregations: { - logspace_ranges: { - buckets: logspaceRangesBuckets, - }, + aggregations: { + logspace_ranges: { + buckets: logspaceRangesBuckets, }, - } as unknown as estypes.SearchResponse, - }; + }, + } as unknown as estypes.SearchResponse; } ); diff --git a/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.ts b/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.ts index 1440e9a1576d9..b2b591519dc9c 100644 --- a/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.ts +++ b/x-pack/plugins/apm/server/routes/correlations/queries/query_ranges.ts @@ -72,13 +72,13 @@ export const fetchTransactionDurationRanges = async ( getTransactionDurationRangesRequest(params, rangesSteps, termFilters) ); - if (resp.body.aggregations === undefined) { + if (resp.aggregations === undefined) { throw new Error( 'fetchTransactionDurationCorrelation failed, did not return aggregations.' ); } - return resp.body.aggregations.logspace_ranges.buckets + return resp.aggregations.logspace_ranges.buckets .map((d) => ({ key: d.from, doc_count: d.doc_count, diff --git a/x-pack/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts b/x-pack/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts index 308a1b9a2db26..7ce9eddf65981 100644 --- a/x-pack/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts +++ b/x-pack/plugins/apm/server/routes/services/annotations/get_stored_annotations.ts @@ -56,10 +56,13 @@ export function getStoredAnnotations({ try { const response: ESSearchResponse = (await unwrapEsResponse( - client.search({ - index: annotationsClient.index, - body, - }) + client.search( + { + index: annotationsClient.index, + body, + }, + { meta: true } + ) )) as any; return response.hits.hits.map((hit) => { diff --git a/x-pack/plugins/canvas/server/collectors/custom_element_collector.ts b/x-pack/plugins/canvas/server/collectors/custom_element_collector.ts index b0e219a4d886d..bd855c93ed507 100644 --- a/x-pack/plugins/canvas/server/collectors/custom_element_collector.ts +++ b/x-pack/plugins/canvas/server/collectors/custom_element_collector.ts @@ -152,7 +152,7 @@ const customElementCollector: TelemetryCollector = async function customElementC body: { query: { bool: { filter: { term: { type: CUSTOM_ELEMENT_TYPE } } } } }, }; - const { body: esResponse } = await esClient.search(customElementParams); + const esResponse = await esClient.search(customElementParams); if (get(esResponse, 'hits.hits.length') > 0) { const customElements = esResponse.hits.hits.map((hit) => hit._source![CUSTOM_ELEMENT_TYPE]); diff --git a/x-pack/plugins/canvas/server/collectors/workpad_collector.ts b/x-pack/plugins/canvas/server/collectors/workpad_collector.ts index 62b0ce200e320..b47ea33a24f4c 100644 --- a/x-pack/plugins/canvas/server/collectors/workpad_collector.ts +++ b/x-pack/plugins/canvas/server/collectors/workpad_collector.ts @@ -386,7 +386,7 @@ const workpadCollector: TelemetryCollector = async function (kibanaIndex, esClie body: { query: { bool: { filter: { term: { type: CANVAS_TYPE } } } } }, }; - const { body: esResponse } = await esClient.search(searchParams); + const esResponse = await esClient.search(searchParams); if (get(esResponse, 'hits.hits.length') > 0) { const workpads = esResponse.hits.hits.map((hit) => hit._source![CANVAS_TYPE]); diff --git a/x-pack/plugins/canvas/server/lib/essql_strategy.ts b/x-pack/plugins/canvas/server/lib/essql_strategy.ts index 273ffb53b0ed2..0cc5c8a21121b 100644 --- a/x-pack/plugins/canvas/server/lib/essql_strategy.ts +++ b/x-pack/plugins/canvas/server/lib/essql_strategy.ts @@ -27,23 +27,26 @@ export const essqlSearchStrategyProvider = (): ISearchStrategy< const searchUntilEnd = async () => { try { - let response = await esClient.asCurrentUser.sql.query({ - format: 'json', - body: { - query, - // @ts-expect-error `params` missing from `QuerySqlRequest` type - params, - field_multi_value_leniency: true, - time_zone: timezone, - fetch_size: count, - client_id: 'canvas', - filter: { - bool: { - must: [{ match_all: {} }, ...buildBoolArray(filter)], + let response = await esClient.asCurrentUser.sql.query( + { + format: 'json', + body: { + query, + // @ts-expect-error `params` missing from `QuerySqlRequest` type + params, + field_multi_value_leniency: true, + time_zone: timezone, + fetch_size: count, + client_id: 'canvas', + filter: { + bool: { + must: [{ match_all: {} }, ...buildBoolArray(filter)], + }, }, }, }, - }); + { meta: true } + ); let body = response.body; @@ -60,12 +63,16 @@ export const essqlSearchStrategyProvider = (): ISearchStrategy< // If we still have rows to retrieve, continue requesting data // using the cursor until we have everything while (rows.length < count && body.cursor !== undefined) { - response = await esClient.asCurrentUser.sql.query({ - format: 'json', - body: { - cursor: body.cursor, + // @ts-expect-error previous ts-ignore mess with the signature override + response = await esClient.asCurrentUser.sql.query( + { + format: 'json', + body: { + cursor: body.cursor, + }, }, - }); + { meta: true } + ); body = response.body; diff --git a/x-pack/plugins/canvas/server/routes/es_fields/es_fields.test.ts b/x-pack/plugins/canvas/server/routes/es_fields/es_fields.test.ts index 21b3357703866..ee17b2d3035b8 100644 --- a/x-pack/plugins/canvas/server/routes/es_fields/es_fields.test.ts +++ b/x-pack/plugins/canvas/server/routes/es_fields/es_fields.test.ts @@ -33,29 +33,27 @@ describe('Retrieve ES Fields', () => { it(`returns 200 with fields from existing index/data view`, async () => { const index = 'test'; const mockResults = { - body: { - indices: ['test'], - fields: { - '@timestamp': { - date: { - type: 'date', - searchable: true, - aggregatable: true, - }, + indices: ['test'], + fields: { + '@timestamp': { + date: { + type: 'date', + searchable: true, + aggregatable: true, }, - name: { - text: { - type: 'text', - searchable: true, - aggregatable: false, - }, + }, + name: { + text: { + type: 'text', + searchable: true, + aggregatable: false, }, - products: { - object: { - type: 'object', - searchable: false, - aggregatable: false, - }, + }, + products: { + object: { + type: 'object', + searchable: false, + aggregatable: false, }, }, }, @@ -87,7 +85,7 @@ describe('Retrieve ES Fields', () => { it(`returns 200 with empty object when index/data view has no fields`, async () => { const index = 'test'; - const mockResults = { body: { indices: [index], fields: {} } }; + const mockResults = { indices: [index], fields: {} }; const request = httpServerMock.createKibanaRequest({ method: 'get', path, @@ -111,10 +109,8 @@ describe('Retrieve ES Fields', () => { const index = 'test'; const mockResults = { - body: { - indices: [index], - fields: {}, - }, + indices: [index], + fields: {}, }; const request = httpServerMock.createKibanaRequest({ diff --git a/x-pack/plugins/canvas/server/routes/es_fields/es_fields.ts b/x-pack/plugins/canvas/server/routes/es_fields/es_fields.ts index 340a6cdb902ff..f9523cee0ce4d 100644 --- a/x-pack/plugins/canvas/server/routes/es_fields/es_fields.ts +++ b/x-pack/plugins/canvas/server/routes/es_fields/es_fields.ts @@ -37,7 +37,7 @@ export function initializeESFieldsRoute(deps: RouteInitializerDeps) { }; const esFields = await client.fieldCaps(config).then((resp) => { - return mapValues(resp.body.fields, (types) => { + return mapValues(resp.fields, (types) => { if (keys(types).length > 1) { return 'conflict'; } diff --git a/x-pack/plugins/cases/server/plugin.ts b/x-pack/plugins/cases/server/plugin.ts index 8d2582d9c5857..5881b7b7633be 100644 --- a/x-pack/plugins/cases/server/plugin.ts +++ b/x-pack/plugins/cases/server/plugin.ts @@ -59,11 +59,13 @@ export interface PluginStartContract { export class CasePlugin { private readonly log: Logger; + private readonly kibanaVersion: PluginInitializerContext['env']['packageInfo']['version']; private clientFactory: CasesClientFactory; private securityPluginSetup?: SecurityPluginSetup; private lensEmbeddableFactory?: LensServerPluginSetup['lensEmbeddableFactory']; constructor(private readonly initializerContext: PluginInitializerContext) { + this.kibanaVersion = initializerContext.env.packageInfo.version; this.log = this.initializerContext.logger.get(); this.clientFactory = new CasesClientFactory(this.log); } @@ -101,6 +103,7 @@ export class CasePlugin { initCaseApi({ logger: this.log, router, + kibanaVersion: this.kibanaVersion, }); } diff --git a/x-pack/plugins/cases/server/routes/api/cases/get_case.ts b/x-pack/plugins/cases/server/routes/api/cases/get_case.ts index f8b85313482f4..c8558d09e5c5f 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/get_case.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/get_case.ts @@ -8,10 +8,10 @@ import { schema } from '@kbn/config-schema'; import { RouteDeps } from '../types'; -import { wrapError } from '../utils'; +import { getWarningHeader, logDeprecatedEndpoint, wrapError } from '../utils'; import { CASE_DETAILS_URL } from '../../../../common/constants'; -export function initGetCaseApi({ router, logger }: RouteDeps) { +export function initGetCaseApi({ router, logger, kibanaVersion }: RouteDeps) { router.get( { path: CASE_DETAILS_URL, @@ -20,16 +20,35 @@ export function initGetCaseApi({ router, logger }: RouteDeps) { case_id: schema.string(), }), query: schema.object({ + /** + * @deprecated since version 8.1.0 + */ includeComments: schema.boolean({ defaultValue: true }), }), }, }, async (context, request, response) => { try { + const isIncludeCommentsParamProvidedByTheUser = + request.url.searchParams.has('includeComments'); + + if (isIncludeCommentsParamProvidedByTheUser) { + logDeprecatedEndpoint( + logger, + request.headers, + `The query parameter 'includeComments' of the get case API '${CASE_DETAILS_URL}' is deprecated` + ); + } + const casesClient = await context.cases.getCasesClient(); const id = request.params.case_id; return response.ok({ + ...(isIncludeCommentsParamProvidedByTheUser && { + headers: { + ...getWarningHeader(kibanaVersion, 'Deprecated query parameter includeComments'), + }, + }), body: await casesClient.cases.get({ id, includeComments: request.query.includeComments, diff --git a/x-pack/plugins/cases/server/routes/api/comments/get_all_comment.ts b/x-pack/plugins/cases/server/routes/api/comments/get_all_comment.ts index d7f95d503c394..e94b19cdd9a1c 100644 --- a/x-pack/plugins/cases/server/routes/api/comments/get_all_comment.ts +++ b/x-pack/plugins/cases/server/routes/api/comments/get_all_comment.ts @@ -8,10 +8,13 @@ import { schema } from '@kbn/config-schema'; import { RouteDeps } from '../types'; -import { wrapError } from '../utils'; +import { wrapError, getWarningHeader, logDeprecatedEndpoint } from '../utils'; import { CASE_COMMENTS_URL } from '../../../../common/constants'; -export function initGetAllCommentsApi({ router, logger }: RouteDeps) { +/** + * @deprecated since version 8.1.0 + */ +export function initGetAllCommentsApi({ router, logger, kibanaVersion }: RouteDeps) { router.get( { path: CASE_COMMENTS_URL, @@ -23,9 +26,18 @@ export function initGetAllCommentsApi({ router, logger }: RouteDeps) { }, async (context, request, response) => { try { + logDeprecatedEndpoint( + logger, + request.headers, + `The get all cases comments API '${CASE_COMMENTS_URL}' is deprecated.` + ); + const client = await context.cases.getCasesClient(); return response.ok({ + headers: { + ...getWarningHeader(kibanaVersion), + }, body: await client.attachments.getAll({ caseID: request.params.case_id, }), diff --git a/x-pack/plugins/cases/server/routes/api/stats/get_status.ts b/x-pack/plugins/cases/server/routes/api/stats/get_status.ts index ffbc101a75dc4..90044c9516b3a 100644 --- a/x-pack/plugins/cases/server/routes/api/stats/get_status.ts +++ b/x-pack/plugins/cases/server/routes/api/stats/get_status.ts @@ -6,12 +6,15 @@ */ import { RouteDeps } from '../types'; -import { escapeHatch, wrapError } from '../utils'; +import { escapeHatch, wrapError, getWarningHeader, logDeprecatedEndpoint } from '../utils'; import { CasesStatusRequest } from '../../../../common/api'; import { CASE_STATUS_URL } from '../../../../common/constants'; -export function initGetCasesStatusApi({ router, logger }: RouteDeps) { +/** + * @deprecated since version 8.1.0 + */ +export function initGetCasesStatusApi({ router, logger, kibanaVersion }: RouteDeps) { router.get( { path: CASE_STATUS_URL, @@ -19,8 +22,17 @@ export function initGetCasesStatusApi({ router, logger }: RouteDeps) { }, async (context, request, response) => { try { + logDeprecatedEndpoint( + logger, + request.headers, + `The get cases status API '${CASE_STATUS_URL}' is deprecated.` + ); + const client = await context.cases.getCasesClient(); return response.ok({ + headers: { + ...getWarningHeader(kibanaVersion), + }, body: await client.metrics.getStatusTotalsByType(request.query as CasesStatusRequest), }); } catch (error) { diff --git a/x-pack/plugins/cases/server/routes/api/types.ts b/x-pack/plugins/cases/server/routes/api/types.ts index 9211aee5606a6..e3aa6e0e970fa 100644 --- a/x-pack/plugins/cases/server/routes/api/types.ts +++ b/x-pack/plugins/cases/server/routes/api/types.ts @@ -5,13 +5,14 @@ * 2.0. */ -import type { Logger } from 'kibana/server'; +import type { Logger, PluginInitializerContext } from 'kibana/server'; import type { CasesRouter } from '../../types'; export interface RouteDeps { router: CasesRouter; logger: Logger; + kibanaVersion: PluginInitializerContext['env']['packageInfo']['version']; } export interface TotalCommentByCase { diff --git a/x-pack/plugins/cases/server/routes/api/user_actions/get_all_user_actions.ts b/x-pack/plugins/cases/server/routes/api/user_actions/get_all_user_actions.ts index cf258c284568b..2e38ac8b4ebc7 100644 --- a/x-pack/plugins/cases/server/routes/api/user_actions/get_all_user_actions.ts +++ b/x-pack/plugins/cases/server/routes/api/user_actions/get_all_user_actions.ts @@ -8,10 +8,13 @@ import { schema } from '@kbn/config-schema'; import { RouteDeps } from '../types'; -import { wrapError } from '../utils'; +import { getWarningHeader, logDeprecatedEndpoint, wrapError } from '../utils'; import { CASE_USER_ACTIONS_URL } from '../../../../common/constants'; -export function initGetAllCaseUserActionsApi({ router, logger }: RouteDeps) { +/** + * @deprecated since version 8.1.0 + */ +export function initGetAllCaseUserActionsApi({ router, logger, kibanaVersion }: RouteDeps) { router.get( { path: CASE_USER_ACTIONS_URL, @@ -27,10 +30,19 @@ export function initGetAllCaseUserActionsApi({ router, logger }: RouteDeps) { return response.badRequest({ body: 'RouteHandlerContext is not registered for cases' }); } + logDeprecatedEndpoint( + logger, + request.headers, + `The get all cases user actions API '${CASE_USER_ACTIONS_URL}' is deprecated.` + ); + const casesClient = await context.cases.getCasesClient(); const caseId = request.params.case_id; return response.ok({ + headers: { + ...getWarningHeader(kibanaVersion), + }, body: await casesClient.userActions.getAll({ caseId }), }); } catch (error) { diff --git a/x-pack/plugins/cases/server/routes/api/utils.test.ts b/x-pack/plugins/cases/server/routes/api/utils.test.ts index c2cff04f56a49..2614536e3242b 100644 --- a/x-pack/plugins/cases/server/routes/api/utils.test.ts +++ b/x-pack/plugins/cases/server/routes/api/utils.test.ts @@ -6,8 +6,9 @@ */ import { isBoom, boomify } from '@hapi/boom'; +import { loggingSystemMock } from '../../../../../../src/core/server/mocks'; import { HTTPError } from '../../common/error'; -import { wrapError } from './utils'; +import { logDeprecatedEndpoint, wrapError } from './utils'; describe('Utils', () => { describe('wrapError', () => { @@ -55,4 +56,23 @@ describe('Utils', () => { expect(res.headers).toEqual({}); }); }); + + describe('logDeprecatedEndpoint', () => { + const logger = loggingSystemMock.createLogger(); + const kibanaHeader = { 'kbn-version': '8.1.0', referer: 'test' }; + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it('does NOT log when the request is from the kibana client', () => { + logDeprecatedEndpoint(logger, kibanaHeader, 'test'); + expect(logger.warn).not.toHaveBeenCalledWith('test'); + }); + + it('does log when the request is NOT from the kibana client', () => { + logDeprecatedEndpoint(logger, {}, 'test'); + expect(logger.warn).toHaveBeenCalledWith('test'); + }); + }); }); diff --git a/x-pack/plugins/cases/server/routes/api/utils.ts b/x-pack/plugins/cases/server/routes/api/utils.ts index a09fd4cc9c746..532a316e9a7b8 100644 --- a/x-pack/plugins/cases/server/routes/api/utils.ts +++ b/x-pack/plugins/cases/server/routes/api/utils.ts @@ -6,9 +6,8 @@ */ import { Boom, boomify, isBoom } from '@hapi/boom'; - import { schema } from '@kbn/config-schema'; -import { CustomHttpResponseOptions, ResponseError } from 'kibana/server'; +import type { CustomHttpResponseOptions, ResponseError, Headers, Logger } from 'kibana/server'; import { CaseError, isCaseError, HTTPError, isHTTPError } from '../../common/error'; /** @@ -35,3 +34,32 @@ export function wrapError( } export const escapeHatch = schema.object({}, { unknowns: 'allow' }); + +/** + * Creates a warning header with a message formatted according to RFC7234. + * We follow the same formatting as Elasticsearch + * https://github.com/elastic/elasticsearch/blob/5baabff6670a8ed49297488ca8cac8ec12a2078d/server/src/main/java/org/elasticsearch/common/logging/HeaderWarning.java#L55 + */ +export const getWarningHeader = ( + kibanaVersion: string, + msg: string | undefined = 'Deprecated endpoint' +): { warning: string } => ({ + warning: `299 Kibana-${kibanaVersion} "${msg}"`, +}); + +/** + * Taken from + * https://github.com/elastic/kibana/blob/ec30f2aeeb10fb64b507935e558832d3ef5abfaa/x-pack/plugins/spaces/server/usage_stats/usage_stats_client.ts#L113-L118 + */ + +const getIsKibanaRequest = (headers?: Headers) => { + // The presence of these two request headers gives us a good indication that this is a first-party request from the Kibana client. + // We can't be 100% certain, but this is a reasonable attempt. + return headers && headers['kbn-version'] && headers.referer; +}; + +export const logDeprecatedEndpoint = (logger: Logger, headers: Headers, msg: string) => { + if (!getIsKibanaRequest(headers)) { + logger.warn(msg); + } +}; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts index 77059d5b3c338..d4c60003782fd 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts @@ -10,7 +10,7 @@ import { SavedObjectMigrationContext, SavedObjectsMigrationLogger, } from 'kibana/server'; -import { cloneDeep, omit } from 'lodash'; +import { cloneDeep, omit, set } from 'lodash'; import { migrationMocks } from 'src/core/server/mocks'; import { removeRuleInformation } from './alerts'; @@ -22,6 +22,89 @@ describe('alert user actions', () => { context = migrationMocks.createContext(); }); + describe('JSON.stringify throws an error', () => { + let jsonStringifySpy: jest.SpyInstance; + beforeEach(() => { + jsonStringifySpy = jest.spyOn(JSON, 'stringify').mockImplementation(() => { + throw new Error('failed to stringify'); + }); + }); + + afterEach(() => { + jsonStringifySpy.mockRestore(); + }); + + it('logs an error when an error is thrown outside of the JSON.parse function', () => { + const doc = { + id: '123', + attributes: { + action: 'create', + action_field: ['comment'], + new_value: + '{"type":"generated_alert","alertId":"4eb4cd05b85bc65c7b9f22b776e0136f970f7538eb0d1b2e6e8c7d35b2e875cb","index":".internal.alerts-security.alerts-default-000001","rule":{"id":"43104810-7875-11ec-abc6-6f72e72f6004","name":"A rule"},"owner":"securitySolution"}', + }, + type: 'abc', + references: [], + }; + + expect(removeRuleInformation(doc, context)).toEqual(doc); + + const log = context.log as jest.Mocked; + expect(log.error.mock.calls[0]).toMatchInlineSnapshot(` + Array [ + "Failed to migrate user action alerts with doc id: 123 version: 8.0.0 error: failed to stringify", + Object { + "migrations": Object { + "userAction": Object { + "id": "123", + }, + }, + }, + ] + `); + }); + }); + + describe('JSON.parse spy', () => { + let jsonParseSpy: jest.SpyInstance; + beforeEach(() => { + jsonParseSpy = jest.spyOn(JSON, 'parse'); + }); + + afterEach(() => { + jsonParseSpy.mockRestore(); + }); + + it.each([ + ['update', ['status']], + ['update', ['comment']], + [undefined, ['comment']], + ['create', ['status']], + ['create', []], + ])( + 'does not modify the document and does not call JSON.parse when action: %s and action_field: %s', + (action, actionField) => { + const doc = { + id: '123', + attributes: { + action, + action_field: actionField, + new_value: 'open', + }, + type: 'abc', + references: [], + }; + + expect(removeRuleInformation(doc, context)).toEqual(doc); + + expect(jsonParseSpy).not.toBeCalled(); + + const log = context.log as jest.Mocked; + expect(log.error).not.toBeCalled(); + } + ); + }); + it('does not modify non-alert user action', () => { const doc = { id: '123', @@ -51,18 +134,7 @@ describe('alert user actions', () => { expect(removeRuleInformation(doc, context)).toEqual(doc); const log = context.log as jest.Mocked; - expect(log.error.mock.calls[0]).toMatchInlineSnapshot(` - Array [ - "Failed to migrate user action alerts with doc id: 123 version: 8.0.0 error: Unexpected end of JSON input", - Object { - "migrations": Object { - "userAction": Object { - "id": "123", - }, - }, - }, - ] - `); + expect(log.error).not.toBeCalled(); }); it('does not modify the document when new_value is null', () => { @@ -127,6 +199,27 @@ describe('alert user actions', () => { ensureRuleFieldsAreNull(newDoc); expect(docWithoutNewValue(newDoc)).toEqual(docWithoutNewValue(doc)); + expectParsedDocsToEqual(newDoc, doc); + }); + + it('sets the rule fields to null when the alert has an extra field', () => { + const doc = { + id: '123', + attributes: { + action: 'create', + action_field: ['comment'], + new_value: + '{"anExtraField": "some value","type":"alert","alertId":"4eb4cd05b85bc65c7b9f22b776e0136f970f7538eb0d1b2e6e8c7d35b2e875cb","index":".internal.alerts-security.alerts-default-000001","rule":{"id":"43104810-7875-11ec-abc6-6f72e72f6004","name":"A rule"},"owner":"securitySolution"}', + }, + type: 'abc', + references: [], + }; + + const newDoc = removeRuleInformation(doc, context) as SavedObject<{ new_value: string }>; + ensureRuleFieldsAreNull(newDoc); + + expect(docWithoutNewValue(newDoc)).toEqual(docWithoutNewValue(doc)); + expectParsedDocsToEqual(newDoc, doc); }); it('sets the rule fields to null for a generated alert', () => { @@ -146,6 +239,7 @@ describe('alert user actions', () => { ensureRuleFieldsAreNull(newDoc); expect(docWithoutNewValue(newDoc)).toEqual(docWithoutNewValue(doc)); + expectParsedDocsToEqual(newDoc, doc); }); it('preserves the references field', () => { @@ -165,10 +259,38 @@ describe('alert user actions', () => { ensureRuleFieldsAreNull(newDoc); expect(docWithoutNewValue(newDoc)).toEqual(docWithoutNewValue(doc)); + expectParsedDocsToEqual(newDoc, doc); }); }); }); +const expectParsedDocsToEqual = ( + nulledRuleDoc: SavedObject<{ new_value: string }>, + originalDoc: SavedObject<{ new_value: string }> +) => { + expect(parseDoc(nulledRuleDoc)).toEqual(injectNullRuleFields(parseDoc(originalDoc))); +}; + +const parseDoc = (doc: SavedObject<{ new_value: string }>): SavedObject<{ new_value: {} }> => { + const copyOfDoc = cloneDeep(doc); + + const decodedNewValue = JSON.parse(doc.attributes.new_value); + set(copyOfDoc, 'attributes.new_value', decodedNewValue); + + return copyOfDoc; +}; + +const injectNullRuleFields = (doc: SavedObject<{ new_value: {} }>) => { + const copyOfDoc = cloneDeep(doc); + + set(copyOfDoc, 'attributes.new_value', { + ...doc.attributes.new_value, + rule: { id: null, name: null }, + }); + + return copyOfDoc; +}; + const docWithoutNewValue = (doc: {}) => { const copyOfDoc = cloneDeep(doc); return omit(copyOfDoc, 'attributes.new_value'); diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts index 697514b1777f6..8642c9b2af9ba 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts @@ -26,9 +26,13 @@ export function removeRuleInformation( try { const { new_value, action, action_field } = doc.attributes; + if (!isCreateComment(action, action_field)) { + return originalDocWithReferences; + } + const decodedNewValueData = decodeNewValue(new_value); - if (!isAlertUserAction(action, action_field, decodedNewValueData)) { + if (!isAlertUserAction(decodedNewValueData)) { return originalDocWithReferences; } @@ -66,15 +70,21 @@ function decodeNewValue(data?: string | null): unknown | null { return null; } - return JSON.parse(data); + try { + return JSON.parse(data); + } catch (error) { + return null; + } } -function isAlertUserAction( - action?: string, - actionFields?: string[], - newValue?: unknown | null -): newValue is AlertCommentOptional { - return isCreateComment(action, actionFields) && isAlertObject(newValue); +function isAlertUserAction(newValue?: unknown | null): newValue is AlertCommentOptional { + const unsafeAlertData = newValue as AlertCommentOptional; + + return ( + unsafeAlertData !== undefined && + unsafeAlertData !== null && + (unsafeAlertData.type === GENERATED_ALERT || unsafeAlertData.type === CommentType.alert) + ); } function isCreateComment(action?: string, actionFields?: string[]): boolean { @@ -89,13 +99,3 @@ function isCreateComment(action?: string, actionFields?: string[]): boolean { type AlertCommentOptional = Partial> & { type: CommentType.alert | typeof GENERATED_ALERT; }; - -function isAlertObject(data?: unknown | null): boolean { - const unsafeAlertData = data as AlertCommentOptional; - - return ( - unsafeAlertData !== undefined && - unsafeAlertData !== null && - (unsafeAlertData.type === GENERATED_ALERT || unsafeAlertData.type === CommentType.alert) - ); -} diff --git a/x-pack/plugins/cases/server/services/alerts/index.ts b/x-pack/plugins/cases/server/services/alerts/index.ts index 7f966a471c725..e205899ead380 100644 --- a/x-pack/plugins/cases/server/services/alerts/index.ts +++ b/x-pack/plugins/cases/server/services/alerts/index.ts @@ -48,7 +48,7 @@ export class AlertService { aggregations: builtAggs, }); - return res.body.aggregations; + return res.aggregations; } catch (error) { const aggregationNames = aggregationBuilders.map((agg) => agg.getName()); diff --git a/x-pack/plugins/cross_cluster_replication/server/plugin.ts b/x-pack/plugins/cross_cluster_replication/server/plugin.ts index 8041e0858ea84..9e4a8c484964b 100644 --- a/x-pack/plugins/cross_cluster_replication/server/plugin.ts +++ b/x-pack/plugins/cross_cluster_replication/server/plugin.ts @@ -23,9 +23,7 @@ const ccrDataEnricher = async (indicesList: Index[], client: IScopedClusterClien } try { - const { - body: { follower_indices: followerIndices }, - } = await client.asCurrentUser.ccr.followInfo({ + const { follower_indices: followerIndices } = await client.asCurrentUser.ccr.followInfo({ index: '_all', }); diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_create_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_create_route.ts index dd1481b45f875..3fe320fe5bdd4 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_create_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_create_route.ts @@ -56,7 +56,7 @@ export const registerCreateRoute = ({ } try { - const { body: responseBody } = await client.asCurrentUser.ccr.putAutoFollowPattern({ + const responseBody = await client.asCurrentUser.ccr.putAutoFollowPattern({ name: id, body, }); diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.test.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.test.ts index 7b694cfe77efd..67ea716976417 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.test.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.test.ts @@ -33,19 +33,17 @@ describe('[CCR API] Fetch all auto-follow patterns', () => { it('deserializes the response from Elasticsearch', async () => { const ccrAutoFollowPatternResponseMock = { - body: { - patterns: [ - { - name: 'autoFollowPattern', - pattern: { - active: true, - remote_cluster: 'remoteCluster', - leader_index_patterns: ['leader*'], - follow_index_pattern: 'follow', - }, + patterns: [ + { + name: 'autoFollowPattern', + pattern: { + active: true, + remote_cluster: 'remoteCluster', + leader_index_patterns: ['leader*'], + follow_index_pattern: 'follow', }, - ], - }, + }, + ], }; const routeContextMock = mockRouteContext({ diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.ts index 98ce37d1054bc..7cd9508bd7372 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_fetch_route.ts @@ -26,9 +26,7 @@ export const registerFetchRoute = ({ const { client } = context.core.elasticsearch; try { - const { - body: { patterns }, - } = await client.asCurrentUser.ccr.getAutoFollowPattern(); + const { patterns } = await client.asCurrentUser.ccr.getAutoFollowPattern(); return response.ok({ body: { // @ts-expect-error Once #98266 is merged, test this again. diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.test.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.test.ts index 61fdd6e57ab7a..a2bf912a99728 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.test.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.test.ts @@ -33,19 +33,17 @@ describe('[CCR API] Get one auto-follow pattern', () => { it('should return a single resource even though ES returns an array with 1 item', async () => { const ccrAutoFollowPatternResponseMock = { - body: { - patterns: [ - { - name: 'autoFollowPattern', - pattern: { - active: true, - remote_cluster: 'remoteCluster', - leader_index_patterns: ['leader*'], - follow_index_pattern: 'follow', - }, + patterns: [ + { + name: 'autoFollowPattern', + pattern: { + active: true, + remote_cluster: 'remoteCluster', + leader_index_patterns: ['leader*'], + follow_index_pattern: 'follow', }, - ], - }, + }, + ], }; const routeContextMock = mockRouteContext({ diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.ts index bc452982df63e..a5a70805d518d 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_get_route.ts @@ -39,7 +39,7 @@ export const registerGetRoute = ({ name: id, }); - const autoFollowPattern = result.body.patterns[0]; + const autoFollowPattern = result.patterns[0]; return response.ok({ // @ts-expect-error Once #98266 is merged, test this again. diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.test.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.test.ts index 5ada82049632b..19d165a80eb3b 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.test.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.test.ts @@ -35,7 +35,7 @@ describe('[CCR API] Update auto-follow pattern', () => { const routeContextMock = mockRouteContext({ ccr: { // Just echo back what we send so we can inspect it. - putAutoFollowPattern: jest.fn().mockImplementation((payload) => ({ body: payload })), + putAutoFollowPattern: jest.fn().mockImplementation((payload) => payload), }, }); diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.ts index 81aaa59725e3a..98a716eb88cc6 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/auto_follow_pattern/register_update_route.ts @@ -44,7 +44,7 @@ export const registerUpdateRoute = ({ const body = serializeAutoFollowPattern(request.body as AutoFollowPattern); try { - const { body: responseBody } = await client.asCurrentUser.ccr.putAutoFollowPattern({ + const responseBody = await client.asCurrentUser.ccr.putAutoFollowPattern({ name: id, body, }); diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_permissions_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_permissions_route.ts index 600924e145039..dbee279a01336 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_permissions_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_permissions_route.ts @@ -36,13 +36,12 @@ export const registerPermissionsRoute = ({ } try { - const { - body: { has_all_requested: hasPermission, cluster }, - } = await client.asCurrentUser.security.hasPrivileges({ - body: { - cluster: ['manage', 'manage_ccr'], - }, - }); + const { has_all_requested: hasPermission, cluster } = + await client.asCurrentUser.security.hasPrivileges({ + body: { + cluster: ['manage', 'manage_ccr'], + }, + }); const missingClusterPrivileges = Object.keys(cluster).reduce( (permissions: string[], permissionName: string) => { diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_stats_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_stats_route.ts index fa8f792afc419..bab31c53a83a2 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_stats_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/cross_cluster_replication/register_stats_route.ts @@ -26,9 +26,7 @@ export const registerStatsRoute = ({ const { client } = context.core.elasticsearch; try { - const { - body: { auto_follow_stats: autoFollowStats }, - } = await client.asCurrentUser.ccr.stats(); + const { auto_follow_stats: autoFollowStats } = await client.asCurrentUser.ccr.stats(); return response.ok({ // @ts-expect-error Once #98266 is merged, test this again. diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_create_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_create_route.ts index 9ddbf76cceed2..0aae8f9c115bc 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_create_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_create_route.ts @@ -49,7 +49,7 @@ export const registerCreateRoute = ({ const body = removeEmptyFields(serializeFollowerIndex(rest as FollowerIndex)); try { - const { body: responseBody } = await client.asCurrentUser.ccr.follow({ + const responseBody = await client.asCurrentUser.ccr.follow({ index: name, body, }); diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.test.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.test.ts index e4063e1e64df5..3d818f40b0262 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.test.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.test.ts @@ -33,69 +33,65 @@ describe('[CCR API] Fetch all follower indices', () => { it('deserializes the response from Elasticsearch', async () => { const ccrInfoMockResponse = { - body: { - follower_indices: [ - { - follower_index: 'followerIndexName', - remote_cluster: 'remoteCluster', - leader_index: 'leaderIndex', - status: 'active', - parameters: { - max_read_request_operation_count: 1, - max_outstanding_read_requests: 1, - max_read_request_size: '1b', - max_write_request_operation_count: 1, - max_write_request_size: '1b', - max_outstanding_write_requests: 1, - max_write_buffer_count: 1, - max_write_buffer_size: '1b', - max_retry_delay: '1s', - read_poll_timeout: '1s', - }, + follower_indices: [ + { + follower_index: 'followerIndexName', + remote_cluster: 'remoteCluster', + leader_index: 'leaderIndex', + status: 'active', + parameters: { + max_read_request_operation_count: 1, + max_outstanding_read_requests: 1, + max_read_request_size: '1b', + max_write_request_operation_count: 1, + max_write_request_size: '1b', + max_outstanding_write_requests: 1, + max_write_buffer_count: 1, + max_write_buffer_size: '1b', + max_retry_delay: '1s', + read_poll_timeout: '1s', }, - ], - }, + }, + ], }; // These stats correlate to the above follower indices. const ccrStatsMockResponse = { - body: { - follow_stats: { - indices: [ - { - index: 'followerIndexName', - shards: [ - { - shard_id: 1, - leader_index: 'leaderIndex', - leader_global_checkpoint: 1, - leader_max_seq_no: 1, - follower_global_checkpoint: 1, - follower_max_seq_no: 1, - last_requested_seq_no: 1, - outstanding_read_requests: 1, - outstanding_write_requests: 1, - write_buffer_operation_count: 1, - write_buffer_size_in_bytes: 1, - follower_mapping_version: 1, - follower_settings_version: 1, - total_read_time_millis: 1, - total_read_remote_exec_time_millis: 1, - successful_read_requests: 1, - failed_read_requests: 1, - operations_read: 1, - bytes_read: 1, - total_write_time_millis: 1, - successful_write_requests: 1, - failed_write_requests: 1, - operations_written: 1, - read_exceptions: 1, - time_since_last_read_millis: 1, - }, - ], - }, - ], - }, + follow_stats: { + indices: [ + { + index: 'followerIndexName', + shards: [ + { + shard_id: 1, + leader_index: 'leaderIndex', + leader_global_checkpoint: 1, + leader_max_seq_no: 1, + follower_global_checkpoint: 1, + follower_max_seq_no: 1, + last_requested_seq_no: 1, + outstanding_read_requests: 1, + outstanding_write_requests: 1, + write_buffer_operation_count: 1, + write_buffer_size_in_bytes: 1, + follower_mapping_version: 1, + follower_settings_version: 1, + total_read_time_millis: 1, + total_read_remote_exec_time_millis: 1, + successful_read_requests: 1, + failed_read_requests: 1, + operations_read: 1, + bytes_read: 1, + total_write_time_millis: 1, + successful_write_requests: 1, + failed_write_requests: 1, + operations_written: 1, + read_exceptions: 1, + time_since_last_read_millis: 1, + }, + ], + }, + ], }, }; diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.ts index b4d7ead75e830..7bbe2c8c05d4a 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_fetch_route.ts @@ -26,14 +26,12 @@ export const registerFetchRoute = ({ const { client } = context.core.elasticsearch; try { - const { - body: { follower_indices: followerIndices }, - } = await client.asCurrentUser.ccr.followInfo({ index: '_all' }); + const { follower_indices: followerIndices } = await client.asCurrentUser.ccr.followInfo({ + index: '_all', + }); const { - body: { - follow_stats: { indices: followerIndicesStats }, - }, + follow_stats: { indices: followerIndicesStats }, } = await client.asCurrentUser.ccr.stats(); const followerIndicesStatsMap = followerIndicesStats.reduce((map: any, stats: any) => { diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.test.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.test.ts index 493703ca6de27..a0af8827b8744 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.test.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.test.ts @@ -33,68 +33,64 @@ describe('[CCR API] Get one follower index', () => { it('should return a single resource even though ES returns an array with 1 item', async () => { const ccrInfoMockResponse = { - body: { - follower_indices: [ - { - follower_index: 'followerIndexName', - remote_cluster: 'remoteCluster', - leader_index: 'leaderIndex', - status: 'active', - parameters: { - max_read_request_operation_count: 1, - max_outstanding_read_requests: 1, - max_read_request_size: '1b', - max_write_request_operation_count: 1, - max_write_request_size: '1b', - max_outstanding_write_requests: 1, - max_write_buffer_count: 1, - max_write_buffer_size: '1b', - max_retry_delay: '1s', - read_poll_timeout: '1s', - }, + follower_indices: [ + { + follower_index: 'followerIndexName', + remote_cluster: 'remoteCluster', + leader_index: 'leaderIndex', + status: 'active', + parameters: { + max_read_request_operation_count: 1, + max_outstanding_read_requests: 1, + max_read_request_size: '1b', + max_write_request_operation_count: 1, + max_write_request_size: '1b', + max_outstanding_write_requests: 1, + max_write_buffer_count: 1, + max_write_buffer_size: '1b', + max_retry_delay: '1s', + read_poll_timeout: '1s', }, - ], - }, + }, + ], }; // These stats correlate to the above follower indices. const ccrFollowerIndexStatsMockResponse = { - body: { - indices: [ - { - index: 'followerIndexName', - shards: [ - { - shard_id: 1, - leader_index: 'leaderIndex', - leader_global_checkpoint: 1, - leader_max_seq_no: 1, - follower_global_checkpoint: 1, - follower_max_seq_no: 1, - last_requested_seq_no: 1, - outstanding_read_requests: 1, - outstanding_write_requests: 1, - write_buffer_operation_count: 1, - write_buffer_size_in_bytes: 1, - follower_mapping_version: 1, - follower_settings_version: 1, - total_read_time_millis: 1, - total_read_remote_exec_time_millis: 1, - successful_read_requests: 1, - failed_read_requests: 1, - operations_read: 1, - bytes_read: 1, - total_write_time_millis: 1, - successful_write_requests: 1, - failed_write_requests: 1, - operations_written: 1, - read_exceptions: 1, - time_since_last_read_millis: 1, - }, - ], - }, - ], - }, + indices: [ + { + index: 'followerIndexName', + shards: [ + { + shard_id: 1, + leader_index: 'leaderIndex', + leader_global_checkpoint: 1, + leader_max_seq_no: 1, + follower_global_checkpoint: 1, + follower_max_seq_no: 1, + last_requested_seq_no: 1, + outstanding_read_requests: 1, + outstanding_write_requests: 1, + write_buffer_operation_count: 1, + write_buffer_size_in_bytes: 1, + follower_mapping_version: 1, + follower_settings_version: 1, + total_read_time_millis: 1, + total_read_remote_exec_time_millis: 1, + successful_read_requests: 1, + failed_read_requests: 1, + operations_read: 1, + bytes_read: 1, + total_write_time_millis: 1, + successful_write_requests: 1, + failed_write_requests: 1, + operations_written: 1, + read_exceptions: 1, + time_since_last_read_millis: 1, + }, + ], + }, + ], }; const routeContextMock = mockRouteContext({ diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.ts index 21cb9e08a6160..c33ed97c289f0 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_get_route.ts @@ -34,9 +34,9 @@ export const registerGetRoute = ({ const { id } = request.params; try { - const { - body: { follower_indices: followerIndices }, - } = await client.asCurrentUser.ccr.followInfo({ index: id }); + const { follower_indices: followerIndices } = await client.asCurrentUser.ccr.followInfo({ + index: id, + }); const followerIndexInfo = followerIndices && followerIndices[0]; @@ -55,9 +55,9 @@ export const registerGetRoute = ({ }), }); } else { - const { - body: { indices: followerIndicesStats }, - } = await client.asCurrentUser.ccr.followStats({ index: id }); + const { indices: followerIndicesStats } = await client.asCurrentUser.ccr.followStats({ + index: id, + }); return response.ok({ // @ts-expect-error Once #98266 is merged, test this again. diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.test.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.test.ts index 92b9c3dded08e..d2cd579687106 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.test.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.test.ts @@ -34,11 +34,9 @@ describe('[CCR API] Update follower index', () => { it('should serialize the payload before sending it to Elasticsearch', async () => { const routeContextMock = mockRouteContext({ ccr: { - followInfo: jest - .fn() - .mockResolvedValueOnce({ body: { follower_indices: [{ status: 'paused' }] } }), + followInfo: jest.fn().mockResolvedValueOnce({ follower_indices: [{ status: 'paused' }] }), // Just echo back what we send so we can inspect it. - resumeFollow: jest.fn().mockImplementation((payload) => ({ body: payload })), + resumeFollow: jest.fn().mockImplementation((payload) => payload), }, }); diff --git a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.ts b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.ts index 5029c8be96043..0bacbd5fb3450 100644 --- a/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.ts +++ b/x-pack/plugins/cross_cluster_replication/server/routes/api/follower_index/register_update_route.ts @@ -49,9 +49,9 @@ export const registerUpdateRoute = ({ // We need to first pause the follower and then resume it by passing the advanced settings try { - const { - body: { follower_indices: followerIndices }, - } = await client.asCurrentUser.ccr.followInfo({ index: id }); + const { follower_indices: followerIndices } = await client.asCurrentUser.ccr.followInfo({ + index: id, + }); const followerIndexInfo = followerIndices && followerIndices[0]; @@ -72,7 +72,7 @@ export const registerUpdateRoute = ({ serializeAdvancedSettings(request.body as FollowerIndexAdvancedSettings) ); - const { body: responseBody } = await client.asCurrentUser.ccr.resumeFollow({ + const responseBody = await client.asCurrentUser.ccr.resumeFollow({ index: id, body, }); diff --git a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/abstract_dashboard_drilldown/abstract_dashboard_drilldown.tsx b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/abstract_dashboard_drilldown/abstract_dashboard_drilldown.tsx index daec52bccda37..5ee62cd414d4c 100644 --- a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/abstract_dashboard_drilldown/abstract_dashboard_drilldown.tsx +++ b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/abstract_dashboard_drilldown/abstract_dashboard_drilldown.tsx @@ -45,7 +45,11 @@ export abstract class AbstractDashboardDrilldown string[]; - protected abstract getLocation(config: Config, context: Context): Promise; + protected abstract getLocation( + config: Config, + context: Context, + useUrlForState: boolean + ): Promise; public readonly order = 100; @@ -73,7 +77,7 @@ export abstract class AbstractDashboardDrilldown => { - const { app, path } = await this.getLocation(config, context); + const { app, path } = await this.getLocation(config, context, true); const url = await this.params.start().core.application.getUrlForApp(app, { path, absolute: true, @@ -82,7 +86,7 @@ export abstract class AbstractDashboardDrilldown { - const { app, path, state } = await this.getLocation(config, context); + const { app, path, state } = await this.getLocation(config, context, false); await this.params.start().core.application.navigateToApp(app, { path, state, diff --git a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.test.tsx b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.test.tsx index a140cf25ba517..f8b26f0012325 100644 --- a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.test.tsx +++ b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.test.tsx @@ -5,20 +5,12 @@ * 2.0. */ +import type { Filter, RangeFilter } from '@kbn/es-query'; import { EmbeddableToDashboardDrilldown } from './embeddable_to_dashboard_drilldown'; import { AbstractDashboardDrilldownConfig as Config } from '../abstract_dashboard_drilldown'; import { savedObjectsServiceMock } from '../../../../../../../src/core/public/mocks'; -import { - Filter, - FilterStateStore, - Query, - RangeFilter, - TimeRange, -} from '../../../../../../../src/plugins/data/common'; -import { - ApplyGlobalFilterActionContext, - esFilters, -} from '../../../../../../../src/plugins/data/public'; +import { FilterStateStore, Query, TimeRange } from '../../../../../../../src/plugins/data/common'; +import { ApplyGlobalFilterActionContext } from '../../../../../../../src/plugins/data/public'; import { DashboardAppLocatorDefinition, DashboardAppLocatorParams, @@ -318,7 +310,7 @@ describe('.execute() & getHref', () => { function getFilter(isPinned: boolean, queryKey: string): Filter { return { $state: { - store: isPinned ? esFilters.FilterStateStore.GLOBAL_STATE : FilterStateStore.APP_STATE, + store: isPinned ? FilterStateStore.GLOBAL_STATE : FilterStateStore.APP_STATE, }, meta: { index: 'logstash-*', diff --git a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx index 97b66e1b7de39..b5085054b3192 100644 --- a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx +++ b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/embeddable_to_dashboard_drilldown/embeddable_to_dashboard_drilldown.tsx @@ -4,19 +4,21 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ - +import { type Filter, isFilters, isFilterPinned } from '@kbn/es-query'; import type { KibanaLocation } from 'src/plugins/share/public'; -import { DashboardAppLocatorParams } from '../../../../../../../src/plugins/dashboard/public'; +import { + DashboardAppLocatorParams, + cleanEmptyKeys, +} from '../../../../../../../src/plugins/dashboard/public'; +import { setStateToKbnUrl } from '../../../../../../../src/plugins/kibana_utils/public'; import { ApplyGlobalFilterActionContext, APPLY_FILTER_TRIGGER, - esFilters, - Filter, - isFilters, isQuery, isTimeRange, Query, TimeRange, + extractTimeRange, } from '../../../../../../../src/plugins/data/public'; import { IEmbeddable, EmbeddableInput } from '../../../../../../../src/plugins/embeddable/public'; import { @@ -49,7 +51,11 @@ export class EmbeddableToDashboardDrilldown extends AbstractDashboardDrilldown [APPLY_FILTER_TRIGGER]; - protected async getLocation(config: Config, context: Context): Promise { + protected async getLocation( + config: Config, + context: Context, + useUrlForState: boolean + ): Promise { const params: DashboardAppLocatorParams = { dashboardId: config.dashboardId, }; @@ -70,11 +76,13 @@ export class EmbeddableToDashboardDrilldown extends AbstractDashboardDrilldown esFilters.isFilterPinned(f)); + : input.filters?.filter((f) => isFilterPinned(f)); } - const { restOfFilters: filtersFromEvent, timeRange: timeRangeFromEvent } = - esFilters.extractTimeRange(context.filters, context.timeFieldName); + const { restOfFilters: filtersFromEvent, timeRange: timeRangeFromEvent } = extractTimeRange( + context.filters, + context.timeFieldName + ); if (filtersFromEvent) { params.filters = [...(params.filters ?? []), ...filtersFromEvent]; @@ -85,10 +93,27 @@ export class EmbeddableToDashboardDrilldown extends AbstractDashboardDrilldown) { + const state = location.state; + location.path = setStateToKbnUrl( + '_a', + cleanEmptyKeys({ + query: state.query, + filters: state.filters?.filter((f) => !isFilterPinned(f)), + savedQuery: state.savedQuery, + }), + { useHash: false, storeInHashQuery: true }, + location.path + ); + } + public readonly inject = createInject({ drilldownId: this.id }); public readonly extract = createExtract({ drilldownId: this.id }); diff --git a/x-pack/plugins/data_enhanced/server/collectors/fetch.test.ts b/x-pack/plugins/data_enhanced/server/collectors/fetch.test.ts index 47e6fb05c2329..ed079fe948750 100644 --- a/x-pack/plugins/data_enhanced/server/collectors/fetch.test.ts +++ b/x-pack/plugins/data_enhanced/server/collectors/fetch.test.ts @@ -5,17 +5,13 @@ * 2.0. */ -import { - ElasticsearchClient, - SavedObjectsErrorHelpers, - Logger, -} from '../../../../../src/core/server'; +import { SavedObjectsErrorHelpers, Logger } from '../../../../../src/core/server'; import { fetchProvider } from './fetch'; import { elasticsearchServiceMock } from '../../../../../src/core/server/mocks'; describe('fetchProvider', () => { let fetchFn: any; - let esClient: jest.Mocked; + let esClient: ReturnType; let mockLogger: Logger; beforeEach(async () => { @@ -29,13 +25,10 @@ describe('fetchProvider', () => { }); test('returns when ES returns no results', async () => { - esClient.search.mockResolvedValue({ - statusCode: 200, - body: { - aggregations: { - persisted: { - buckets: [], - }, + esClient.search.mockResponse({ + aggregations: { + persisted: { + buckets: [], }, }, } as any); @@ -60,22 +53,19 @@ describe('fetchProvider', () => { }); test('returns when ES returns full buckets', async () => { - esClient.search.mockResolvedValue({ - statusCode: 200, - body: { - aggregations: { - persisted: { - buckets: [ - { - key_as_string: 'true', - doc_count: 10, - }, - { - key_as_string: 'false', - doc_count: 7, - }, - ], - }, + esClient.search.mockResponse({ + aggregations: { + persisted: { + buckets: [ + { + key_as_string: 'true', + doc_count: 10, + }, + { + key_as_string: 'false', + doc_count: 7, + }, + ], }, }, } as any); diff --git a/x-pack/plugins/data_enhanced/server/collectors/fetch.ts b/x-pack/plugins/data_enhanced/server/collectors/fetch.ts index b566ceb9065d2..82597a9003051 100644 --- a/x-pack/plugins/data_enhanced/server/collectors/fetch.ts +++ b/x-pack/plugins/data_enhanced/server/collectors/fetch.ts @@ -18,7 +18,7 @@ interface SessionPersistedTermsBucket { export function fetchProvider(kibanaIndex: string, logger: Logger) { return async ({ esClient }: CollectorFetchContext): Promise => { try { - const { body: esResponse } = await esClient.search({ + const esResponse = await esClient.search({ index: kibanaIndex, body: { size: 0, diff --git a/x-pack/plugins/data_enhanced/server/search/session/check_non_persisted_sessions.test.ts b/x-pack/plugins/data_enhanced/server/search/session/check_non_persisted_sessions.test.ts index 4d9ecb9221709..85bfbc8d037db 100644 --- a/x-pack/plugins/data_enhanced/server/search/session/check_non_persisted_sessions.test.ts +++ b/x-pack/plugins/data_enhanced/server/search/session/check_non_persisted_sessions.test.ts @@ -488,7 +488,7 @@ describe('checkNonPersistedSessions', () => { config ); - expect(mockClient.asyncSearch.status).toBeCalledWith({ id: 'search-id' }); + expect(mockClient.asyncSearch.status).toBeCalledWith({ id: 'search-id' }, { meta: true }); const [updateInput] = savedObjectsClient.bulkUpdate.mock.calls[0]; const updatedAttributes = updateInput[0] as SavedObjectsBulkUpdateObject; expect(updatedAttributes.namespace).toBe('awesome'); @@ -532,7 +532,7 @@ describe('checkNonPersistedSessions', () => { config ); - expect(mockClient.asyncSearch.status).toBeCalledWith({ id: 'search-id' }); + expect(mockClient.asyncSearch.status).toBeCalledWith({ id: 'search-id' }, { meta: true }); const [updateInput] = savedObjectsClient.bulkUpdate.mock.calls[0]; const updatedAttributes = updateInput[0].attributes as SearchSessionSavedObjectAttributes; expect(updatedAttributes.status).toBe(SearchSessionStatus.COMPLETE); diff --git a/x-pack/plugins/data_enhanced/server/search/session/get_search_status.ts b/x-pack/plugins/data_enhanced/server/search/session/get_search_status.ts index a49dc30b84fb5..abfe089e82a38 100644 --- a/x-pack/plugins/data_enhanced/server/search/session/get_search_status.ts +++ b/x-pack/plugins/data_enhanced/server/search/session/get_search_status.ts @@ -22,7 +22,8 @@ export async function getSearchStatus( const apiResponse: TransportResult = await client.asyncSearch.status( { id: asyncId, - } + }, + { meta: true } ); const response = apiResponse.body; if ((response.is_partial && !response.is_running) || response.completion_status >= 400) { diff --git a/x-pack/plugins/data_enhanced/server/search/session/update_session_status.test.ts b/x-pack/plugins/data_enhanced/server/search/session/update_session_status.test.ts index d9e3fa6f8cab3..3b6b0a7a16d85 100644 --- a/x-pack/plugins/data_enhanced/server/search/session/update_session_status.test.ts +++ b/x-pack/plugins/data_enhanced/server/search/session/update_session_status.test.ts @@ -186,7 +186,7 @@ describe('bulkUpdateSessions', () => { expect(updated).toBeTruthy(); - expect(mockClient.asyncSearch.status).toBeCalledWith({ id: 'search-id' }); + expect(mockClient.asyncSearch.status).toBeCalledWith({ id: 'search-id' }, { meta: true }); expect(so.attributes.status).toBe(SearchSessionStatus.COMPLETE); expect(so.attributes.status).toBe(SearchSessionStatus.COMPLETE); expect(so.attributes.touched).not.toBe('123'); diff --git a/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts b/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts index 0d4f4136b42ed..5ff3b6c481d74 100644 --- a/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts +++ b/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts @@ -5,7 +5,6 @@ * 2.0. */ -import { ElasticsearchClient } from 'src/core/server'; import { elasticsearchServiceMock, loggingSystemMock } from 'src/core/server/mocks'; import { ClusterClientAdapter, @@ -15,14 +14,12 @@ import { import { findOptionsSchema } from '../event_log_client'; import { delay } from '../lib/delay'; import { times } from 'lodash'; -import { DeeplyMockedKeys } from '@kbn/utility-types/jest'; import type * as estypes from '@elastic/elasticsearch/lib/api/types'; -import type { TransportResult } from '@elastic/elasticsearch'; type MockedLogger = ReturnType; let logger: MockedLogger; -let clusterClient: DeeplyMockedKeys; +let clusterClient: ReturnType; let clusterClientAdapter: IClusterClientAdapter; beforeEach(() => { @@ -191,7 +188,7 @@ describe('doesIlmPolicyExist', () => { describe('createIlmPolicy', () => { test('should call cluster client with given policy', async () => { - clusterClient.transport.request.mockResolvedValue(asApiResponse({ success: true })); + clusterClient.transport.request.mockResolvedValue({ success: true }); await clusterClientAdapter.createIlmPolicy('foo', { args: true }); expect(clusterClient.transport.request).toHaveBeenCalledWith({ method: 'PUT', @@ -217,20 +214,20 @@ describe('doesIndexTemplateExist', () => { }); test('should return true when call cluster to legacy template API returns true', async () => { - clusterClient.indices.existsTemplate.mockResolvedValue(asApiResponse(true)); - clusterClient.indices.existsIndexTemplate.mockResolvedValue(asApiResponse(false)); + clusterClient.indices.existsTemplate.mockResponse(true); + clusterClient.indices.existsIndexTemplate.mockResponse(false); await expect(clusterClientAdapter.doesIndexTemplateExist('foo')).resolves.toEqual(true); }); test('should return true when call cluster to index template API returns true', async () => { - clusterClient.indices.existsTemplate.mockResolvedValue(asApiResponse(false)); - clusterClient.indices.existsIndexTemplate.mockResolvedValue(asApiResponse(true)); + clusterClient.indices.existsTemplate.mockResponse(false); + clusterClient.indices.existsIndexTemplate.mockResponse(true); await expect(clusterClientAdapter.doesIndexTemplateExist('foo')).resolves.toEqual(true); }); test('should return false when both call cluster calls returns false', async () => { - clusterClient.indices.existsTemplate.mockResolvedValue(asApiResponse(false)); - clusterClient.indices.existsIndexTemplate.mockResolvedValue(asApiResponse(false)); + clusterClient.indices.existsTemplate.mockResponse(false); + clusterClient.indices.existsIndexTemplate.mockResponse(false); await expect(clusterClientAdapter.doesIndexTemplateExist('foo')).resolves.toEqual(false); }); @@ -265,8 +262,8 @@ describe('createIndexTemplate', () => { test(`should throw error if index template still doesn't exist after error is thrown`, async () => { clusterClient.indices.putIndexTemplate.mockRejectedValueOnce(new Error('Fail')); - clusterClient.indices.existsTemplate.mockResolvedValueOnce(asApiResponse(false)); - clusterClient.indices.existsIndexTemplate.mockResolvedValueOnce(asApiResponse(false)); + clusterClient.indices.existsTemplate.mockResponseOnce(false); + clusterClient.indices.existsIndexTemplate.mockResponseOnce(false); await expect( clusterClientAdapter.createIndexTemplate('foo', { args: true }) ).rejects.toThrowErrorMatchingInlineSnapshot(`"error creating index template: Fail"`); @@ -274,7 +271,7 @@ describe('createIndexTemplate', () => { test('should not throw error if index template exists after error is thrown', async () => { clusterClient.indices.putIndexTemplate.mockRejectedValueOnce(new Error('Fail')); - clusterClient.indices.existsTemplate.mockResolvedValueOnce(asApiResponse(true)); + clusterClient.indices.existsTemplate.mockResponseOnce(true); await clusterClientAdapter.createIndexTemplate('foo', { args: true }); }); }); @@ -300,9 +297,7 @@ describe('getExistingLegacyIndexTemplates', () => { aliases: {}, }, }; - clusterClient.indices.getTemplate.mockResolvedValue( - asApiResponse(response) - ); + clusterClient.indices.getTemplate.mockResponse(response); await expect(clusterClientAdapter.getExistingLegacyIndexTemplates('foo*')).resolves.toEqual( response ); @@ -378,9 +373,7 @@ describe('getExistingIndices', () => { }, }, }; - clusterClient.indices.getSettings.mockResolvedValue( - asApiResponse(response) - ); + clusterClient.indices.getSettings.mockResponse(response as estypes.IndicesGetSettingsResponse); await expect(clusterClientAdapter.getExistingIndices('foo*')).resolves.toEqual(response); }); @@ -436,9 +429,7 @@ describe('getExistingIndexAliases', () => { }, }, }; - clusterClient.indices.getAlias.mockResolvedValue( - asApiResponse(response) - ); + clusterClient.indices.getAlias.mockResponse(response as estypes.IndicesGetAliasResponse); await expect(clusterClientAdapter.getExistingIndexAliases('foo*')).resolves.toEqual(response); }); @@ -524,12 +515,12 @@ describe('doesAliasExist', () => { }); test('should return true when call cluster returns true', async () => { - clusterClient.indices.existsAlias.mockResolvedValueOnce(asApiResponse(true)); + clusterClient.indices.existsAlias.mockResponse(true); await expect(clusterClientAdapter.doesAliasExist('foo')).resolves.toEqual(true); }); test('should return false when call cluster returns false', async () => { - clusterClient.indices.existsAlias.mockResolvedValueOnce(asApiResponse(false)); + clusterClient.indices.existsAlias.mockResponse(false); await expect(clusterClientAdapter.doesAliasExist('foo')).resolves.toEqual(false); }); @@ -577,22 +568,20 @@ describe('queryEventsBySavedObject', () => { const DEFAULT_OPTIONS = findOptionsSchema.validate({}); test('should call cluster with proper arguments with non-default namespace', async () => { - clusterClient.search.mockResolvedValue( - asApiResponse({ - hits: { - hits: [], - total: { relation: 'eq', value: 0 }, - }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - successful: 0, - total: 0, - skipped: 0, - }, - }) - ); + clusterClient.search.mockResponse({ + hits: { + hits: [], + total: { relation: 'eq', value: 0 }, + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + successful: 0, + total: 0, + skipped: 0, + }, + }); await clusterClientAdapter.queryEventsBySavedObjects({ index: 'index-name', namespace: 'namespace', @@ -789,22 +778,20 @@ describe('queryEventsBySavedObject', () => { }); test('should call cluster with proper arguments with default namespace', async () => { - clusterClient.search.mockResolvedValue( - asApiResponse({ - hits: { - hits: [], - total: { relation: 'eq', value: 0 }, - }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - successful: 0, - total: 0, - skipped: 0, - }, - }) - ); + clusterClient.search.mockResponse({ + hits: { + hits: [], + total: { relation: 'eq', value: 0 }, + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + successful: 0, + total: 0, + skipped: 0, + }, + }); await clusterClientAdapter.queryEventsBySavedObjects({ index: 'index-name', namespace: undefined, @@ -908,22 +895,20 @@ describe('queryEventsBySavedObject', () => { }); test('should call cluster with sort', async () => { - clusterClient.search.mockResolvedValue( - asApiResponse({ - hits: { - hits: [], - total: { relation: 'eq', value: 0 }, - }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - successful: 0, - total: 0, - skipped: 0, - }, - }) - ); + clusterClient.search.mockResponse({ + hits: { + hits: [], + total: { relation: 'eq', value: 0 }, + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + successful: 0, + total: 0, + skipped: 0, + }, + }); await clusterClientAdapter.queryEventsBySavedObjects({ index: 'index-name', namespace: 'namespace', @@ -942,22 +927,20 @@ describe('queryEventsBySavedObject', () => { }); test('supports open ended date', async () => { - clusterClient.search.mockResolvedValue( - asApiResponse({ - hits: { - hits: [], - total: { relation: 'eq', value: 0 }, - }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - successful: 0, - total: 0, - skipped: 0, - }, - }) - ); + clusterClient.search.mockResponse({ + hits: { + hits: [], + total: { relation: 'eq', value: 0 }, + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + successful: 0, + total: 0, + skipped: 0, + }, + }); const start = '2020-07-08T00:52:28.350Z'; @@ -1069,22 +1052,20 @@ describe('queryEventsBySavedObject', () => { }); test('supports optional date range', async () => { - clusterClient.search.mockResolvedValue( - asApiResponse({ - hits: { - hits: [], - total: { relation: 'eq', value: 0 }, - }, - took: 0, - timed_out: false, - _shards: { - failed: 0, - successful: 0, - total: 0, - skipped: 0, - }, - }) - ); + clusterClient.search.mockResponse({ + hits: { + hits: [], + total: { relation: 'eq', value: 0 }, + }, + took: 0, + timed_out: false, + _shards: { + failed: 0, + successful: 0, + total: 0, + skipped: 0, + }, + }); const start = '2020-07-08T00:52:28.350Z'; const end = '2020-07-08T00:00:00.000Z'; @@ -1254,12 +1235,6 @@ type RetryableFunction = () => boolean; const RETRY_UNTIL_DEFAULT_COUNT = 20; const RETRY_UNTIL_DEFAULT_WAIT = 1000; // milliseconds -function asApiResponse(body: T): TransportResult { - return { - body, - } as TransportResult; -} - async function retryUntil( label: string, fn: RetryableFunction, diff --git a/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts b/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts index dd740aa5533b9..010d162c62ea1 100644 --- a/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts +++ b/x-pack/plugins/event_log/server/es/cluster_client_adapter.ts @@ -120,9 +120,9 @@ export class ClusterClientAdapter { try { const esClient = await this.elasticsearchClientPromise; - const { body: legacyResult } = await esClient.indices.existsTemplate({ name }); - const { body: indexTemplateResult } = await esClient.indices.existsIndexTemplate({ name }); + const legacyResult = await esClient.indices.existsTemplate({ name }); + const indexTemplateResult = await esClient.indices.existsIndexTemplate({ name }); return (legacyResult as boolean) || (indexTemplateResult as boolean); } catch (err) { throw new Error(`error checking existence of index template: ${err.message}`); @@ -200,11 +200,7 @@ export class ClusterClientAdapter { try { const esClient = await this.elasticsearchClientPromise; - const { body: templates } = await esClient.indices.getTemplate( - { name: indexTemplatePattern }, - { ignore: [404] } - ); - return templates; + return await esClient.indices.getTemplate({ name: indexTemplatePattern }, { ignore: [404] }); } catch (err) { throw new Error(`error getting existing legacy index templates: ${err.message}`); } @@ -238,11 +234,7 @@ export class ClusterClientAdapter { try { const esClient = await this.elasticsearchClientPromise; - const { body: indexSettings } = await esClient.indices.getSettings( - { index: indexPattern }, - { ignore: [404] } - ); - return indexSettings; + return await esClient.indices.getSettings({ index: indexPattern }, { ignore: [404] }); } catch (err) { throw new Error( `error getting existing indices matching pattern ${indexPattern}: ${err.message}` @@ -269,11 +261,7 @@ export class ClusterClientAdapter { try { const esClient = await this.elasticsearchClientPromise; - const { body: indexAliases } = await esClient.indices.getAlias( - { index: indexPattern }, - { ignore: [404] } - ); - return indexAliases; + return await esClient.indices.getAlias({ index: indexPattern }, { ignore: [404] }); } catch (err) { throw new Error( `error getting existing index aliases matching pattern ${indexPattern}: ${err.message}` @@ -318,7 +306,7 @@ export class ClusterClientAdapter { try { const esClient = await this.elasticsearchClientPromise; - const { body } = await esClient.indices.existsAlias({ name }); + const body = await esClient.indices.existsAlias({ name }); return body as boolean; } catch (err) { throw new Error(`error checking existance of initial index: ${err.message}`); @@ -527,9 +515,7 @@ export class ClusterClientAdapter({ index, track_total_hits: true, diff --git a/x-pack/plugins/event_log/server/es/context.test.ts b/x-pack/plugins/event_log/server/es/context.test.ts index 97d68b64d1f39..f6b4178ce7f11 100644 --- a/x-pack/plugins/event_log/server/es/context.test.ts +++ b/x-pack/plugins/event_log/server/es/context.test.ts @@ -6,19 +6,18 @@ */ import { createEsContext } from './context'; -import { ElasticsearchClient, Logger } from '../../../../../src/core/server'; +import { Logger } from '../../../../../src/core/server'; import { elasticsearchServiceMock, loggingSystemMock } from '../../../../../src/core/server/mocks'; -import { DeeplyMockedKeys } from '@kbn/utility-types/jest'; -import type { TransportResult } from '@elastic/elasticsearch'; + jest.mock('../lib/../../../../package.json', () => ({ version: '1.2.3' })); jest.mock('./init'); let logger: Logger; -let elasticsearchClient: DeeplyMockedKeys; +let elasticsearchClient: ReturnType; beforeEach(() => { logger = loggingSystemMock.createLogger(); - elasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; + elasticsearchClient = elasticsearchServiceMock.createElasticsearchClient(); }); describe('createEsContext', () => { @@ -64,9 +63,9 @@ describe('createEsContext', () => { elasticsearchClientPromise: Promise.resolve(elasticsearchClient), }); - elasticsearchClient.indices.existsTemplate.mockResolvedValue(asApiResponse(false)); - elasticsearchClient.indices.existsIndexTemplate.mockResolvedValue(asApiResponse(false)); - elasticsearchClient.indices.existsAlias.mockResolvedValue(asApiResponse(false)); + elasticsearchClient.indices.existsTemplate.mockResponse(false); + elasticsearchClient.indices.existsIndexTemplate.mockResponse(false); + elasticsearchClient.indices.existsAlias.mockResponse(false); const doesAliasExist = await context.esAdapter.doesAliasExist(context.esNames.alias); expect(doesAliasExist).toBeFalsy(); @@ -83,7 +82,7 @@ describe('createEsContext', () => { kibanaVersion: '1.2.3', elasticsearchClientPromise: Promise.resolve(elasticsearchClient), }); - elasticsearchClient.indices.existsTemplate.mockResolvedValue(asApiResponse(true)); + elasticsearchClient.indices.existsTemplate.mockResponse(true); context.initialize(); const doesIlmPolicyExist = await context.esAdapter.doesIlmPolicyExist( @@ -113,9 +112,3 @@ describe('createEsContext', () => { expect(success).toBe(false); }); }); - -function asApiResponse(body: T): TransportResult { - return { - body, - } as TransportResult; -} diff --git a/x-pack/plugins/file_upload/server/analyze_file.tsx b/x-pack/plugins/file_upload/server/analyze_file.tsx index cdb0bddecb395..ae2b1aeef81bd 100644 --- a/x-pack/plugins/file_upload/server/analyze_file.tsx +++ b/x-pack/plugins/file_upload/server/analyze_file.tsx @@ -19,7 +19,7 @@ export async function analyzeFile( overrides: InputOverrides ): Promise { overrides.explain = overrides.explain === undefined ? 'true' : overrides.explain; - const { body } = await client.asInternalUser.textStructure.findStructure( + const body = await client.asInternalUser.textStructure.findStructure( { body: data, ...overrides, diff --git a/x-pack/plugins/file_upload/server/get_time_field_range.ts b/x-pack/plugins/file_upload/server/get_time_field_range.ts index 84fc6ac002008..9da8e7fb2b7e4 100644 --- a/x-pack/plugins/file_upload/server/get_time_field_range.ts +++ b/x-pack/plugins/file_upload/server/get_time_field_range.ts @@ -22,9 +22,7 @@ export async function getTimeFieldRange( }> { const obj = { success: true, start: { epoch: 0, string: '' }, end: { epoch: 0, string: '' } }; - const { - body: { aggregations }, - } = await client.asCurrentUser.search({ + const { aggregations } = await client.asCurrentUser.search({ index, size: 0, body: { diff --git a/x-pack/plugins/file_upload/server/import_data.ts b/x-pack/plugins/file_upload/server/import_data.ts index c2975fca959f0..c093cfcee190c 100644 --- a/x-pack/plugins/file_upload/server/import_data.ts +++ b/x-pack/plugins/file_upload/server/import_data.ts @@ -120,7 +120,7 @@ export function importDataProvider({ asCurrentUser }: IScopedClusterClient) { settings.pipeline = pipelineId; } - const { body: resp } = await asCurrentUser.bulk(settings, { maxRetries: 0 }); + const resp = await asCurrentUser.bulk(settings, { maxRetries: 0 }); if (resp.errors) { throw resp; } else { @@ -153,8 +153,7 @@ export function importDataProvider({ asCurrentUser }: IScopedClusterClient) { } async function createPipeline(id: string, pipeline: any) { - const { body } = await asCurrentUser.ingest.putPipeline({ id, body: pipeline }); - return body; + return await asCurrentUser.ingest.putPipeline({ id, body: pipeline }); } function getFailures(items: any[], data: InputData): ImportFailure[] { diff --git a/x-pack/plugins/file_upload/server/routes.ts b/x-pack/plugins/file_upload/server/routes.ts index e8d32152c8afc..eeb22faefb1ca 100644 --- a/x-pack/plugins/file_upload/server/routes.ts +++ b/x-pack/plugins/file_upload/server/routes.ts @@ -182,8 +182,9 @@ export function fileUploadRoutes(coreSetup: CoreSetup, logge }, async (context, request, response) => { try { - const { body: indexExists } = - await context.core.elasticsearch.client.asCurrentUser.indices.exists(request.body); + const indexExists = await context.core.elasticsearch.client.asCurrentUser.indices.exists( + request.body + ); return response.ok({ body: { exists: indexExists } }); } catch (e) { return response.customError(wrapError(e)); diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx b/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx index dc931f835b043..6dae7920fa692 100644 --- a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx +++ b/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/assets/assets.tsx @@ -13,9 +13,10 @@ import { groupBy } from 'lodash'; import type { ResolvedSimpleSavedObject } from 'src/core/public'; +import { useKibana } from '../../../../../../../../../../../src/plugins/kibana_react/public'; import { Loading, Error, ExtensionWrapper } from '../../../../../components'; -import type { PackageInfo } from '../../../../../types'; +import type { PackageInfo, StartPlugins } from '../../../../../types'; import { InstallStatus } from '../../../../../types'; import { @@ -36,8 +37,8 @@ interface AssetsPanelProps { export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => { const { name, version } = packageInfo; + const { spaces } = useKibana().services; const pkgkey = `${name}-${version}`; - const { savedObjects: { client: savedObjectsClient }, } = useStartServices(); @@ -47,6 +48,8 @@ export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => { const getPackageInstallStatus = useGetPackageInstallStatus(); const packageInstallStatus = getPackageInstallStatus(packageInfo.name); + // assume assets are installed in this space until we find otherwise + const [assetsInstalledInCurrentSpace, setAssetsInstalledInCurrentSpace] = useState(true); const [assetSavedObjects, setAssetsSavedObjects] = useState(); const [fetchError, setFetchError] = useState(); const [isLoading, setIsLoading] = useState(true); @@ -54,6 +57,17 @@ export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => { useEffect(() => { const fetchAssetSavedObjects = async () => { if ('savedObject' in packageInfo) { + if (spaces) { + const { id: spaceId } = await spaces.getActiveSpace(); + const assetInstallSpaceId = packageInfo.savedObject.attributes.installed_kibana_space_id; + // if assets are installed in a different space no need to attempt to load them. + if (assetInstallSpaceId && assetInstallSpaceId !== spaceId) { + setAssetsInstalledInCurrentSpace(false); + setIsLoading(false); + return; + } + } + const { savedObject: { attributes: packageAttributes }, } = packageInfo; @@ -114,7 +128,7 @@ export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => { } }; fetchAssetSavedObjects(); - }, [savedObjectsClient, packageInfo]); + }, [savedObjectsClient, packageInfo, spaces]); // if they arrive at this page and the package is not installed, send them to overview // this happens if they arrive with a direct url or they uninstall while on this tab @@ -137,9 +151,20 @@ export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => { error={fetchError} /> ); + } else if (!assetsInstalledInCurrentSpace) { + content = ( + +

+ +

+
+ ); } else if (assetSavedObjects === undefined || assetSavedObjects.length === 0) { if (customAssetsExtension) { - // If a UI extension for custom asset entries is defined, render the custom component here depisite + // If a UI extension for custom asset entries is defined, render the custom component here despite // there being no saved objects found content = ( diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.ts b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.ts index 79cfb7ff2b2d1..acb9b198fdcba 100644 --- a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.ts +++ b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.mocks.ts @@ -13,6 +13,7 @@ jest.mock('../../hooks/use_request', () => { sendGetFleetStatus: jest.fn(), sendGetOneAgentPolicy: jest.fn(), useGetAgents: jest.fn(), + useGetAgentPolicies: jest.fn(), }; }); diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx index 617bd95e18a6d..b46996ef164bd 100644 --- a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx +++ b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/agent_enrollment_flyout.test.tsx @@ -21,6 +21,7 @@ import { sendGetFleetStatus, sendGetOneAgentPolicy, useGetAgents, + useGetAgentPolicies, } from '../../hooks/use_request'; import { FleetStatusProvider, ConfigContext } from '../../hooks'; @@ -101,6 +102,10 @@ describe('', () => { data: { items: [{ policy_id: 'fleet-server-policy' }] }, }); + (useGetAgentPolicies as jest.Mock).mockReturnValue?.({ + data: { items: [{ id: 'fleet-server-policy' }] }, + }); + await act(async () => { testBed = await setup({ agentPolicies: [{ id: 'fleet-server-policy' } as AgentPolicy], @@ -143,6 +148,25 @@ describe('', () => { }); }); + describe('with a specific policy when no agentPolicies set', () => { + beforeEach(async () => { + jest.clearAllMocks(); + await act(async () => { + testBed = await setup({ + agentPolicy: testAgentPolicy, + onClose: jest.fn(), + }); + testBed.component.update(); + }); + }); + + it('should not show fleet server instructions', () => { + const { exists } = testBed; + expect(exists('agentEnrollmentFlyout')).toBe(true); + expect(AgentEnrollmentKeySelectionStep).toHaveBeenCalled(); + }); + }); + // Skipped due to implementation details in the step components. See https://github.com/elastic/kibana/issues/103894 describe.skip('"View data" extension point', () => { it('shows the "View data" step when UI extension is provided', async () => { diff --git a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/managed_instructions.tsx b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/managed_instructions.tsx index 6d65476e3641f..d3294692c9e55 100644 --- a/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/managed_instructions.tsx +++ b/x-pack/plugins/fleet/public/components/agent_enrollment_flyout/managed_instructions.tsx @@ -11,7 +11,13 @@ import type { EuiContainedStepProps } from '@elastic/eui/src/components/steps/st import { i18n } from '@kbn/i18n'; import { FormattedMessage } from '@kbn/i18n-react'; -import { useGetOneEnrollmentAPIKey, useLink, useFleetStatus, useGetAgents } from '../../hooks'; +import { + useGetOneEnrollmentAPIKey, + useLink, + useFleetStatus, + useGetAgents, + useGetAgentPolicies, +} from '../../hooks'; import { ManualInstructions } from '../../components/enrollment_instructions'; import { @@ -81,14 +87,24 @@ export const ManagedInstructions = React.memo( showInactive: false, }); + const { data: agentPoliciesData, isLoading: isLoadingAgentPolicies } = useGetAgentPolicies({ + page: 1, + perPage: 1000, + full: true, + }); + const fleetServers = useMemo(() => { - const fleetServerAgentPolicies: string[] = (agentPolicies ?? []) + let policies = agentPolicies; + if (!agentPolicies && !isLoadingAgentPolicies) { + policies = agentPoliciesData?.items; + } + const fleetServerAgentPolicies: string[] = (policies ?? []) .filter((pol) => policyHasFleetServer(pol)) .map((pol) => pol.id); return (agents?.items ?? []).filter((agent) => fleetServerAgentPolicies.includes(agent.policy_id ?? '') ); - }, [agents, agentPolicies]); + }, [agents, agentPolicies, agentPoliciesData, isLoadingAgentPolicies]); const fleetServerSteps = useMemo(() => { const { diff --git a/x-pack/plugins/fleet/public/types/index.ts b/x-pack/plugins/fleet/public/types/index.ts index ead44a798cfc7..6fbe645c9bea3 100644 --- a/x-pack/plugins/fleet/public/types/index.ts +++ b/x-pack/plugins/fleet/public/types/index.ts @@ -121,3 +121,4 @@ export { entries, ElasticsearchAssetType, KibanaAssetType, InstallStatus } from export * from './intra_app_route_state'; export * from './ui_extensions'; export * from './in_memory_package_policy'; +export * from './start_plugins'; diff --git a/x-pack/plugins/security_solution/public/ueba/pages/display.tsx b/x-pack/plugins/fleet/public/types/start_plugins.ts similarity index 58% rename from x-pack/plugins/security_solution/public/ueba/pages/display.tsx rename to x-pack/plugins/fleet/public/types/start_plugins.ts index a907f1fdb5997..8fcad821f2ccb 100644 --- a/x-pack/plugins/security_solution/public/ueba/pages/display.tsx +++ b/x-pack/plugins/fleet/public/types/start_plugins.ts @@ -5,10 +5,8 @@ * 2.0. */ -import styled from 'styled-components'; +import type { SpacesPluginStart } from '../../../spaces/public'; -export const Display = styled.div<{ show: boolean }>` - ${({ show }) => (show ? '' : 'display: none;')}; -`; - -Display.displayName = 'Display'; +export interface StartPlugins { + spaces?: SpacesPluginStart; +} diff --git a/x-pack/plugins/fleet/server/routes/app/index.ts b/x-pack/plugins/fleet/server/routes/app/index.ts index b9f9f0ee494fc..079850dc07478 100644 --- a/x-pack/plugins/fleet/server/routes/app/index.ts +++ b/x-pack/plugins/fleet/server/routes/app/index.ts @@ -39,9 +39,7 @@ export const getCheckPermissionsHandler: FleetRequestHandler< // check the manage_service_account cluster privilege else if (request.query.fleetServerSetup) { const esClient = context.core.elasticsearch.client.asCurrentUser; - const { - body: { has_all_requested: hasAllPrivileges }, - } = await esClient.security.hasPrivileges({ + const { has_all_requested: hasAllPrivileges } = await esClient.security.hasPrivileges({ body: { cluster: ['manage_service_account'] }, }); @@ -63,7 +61,7 @@ export const generateServiceTokenHandler: RequestHandler = async (context, reque // Generate the fleet server service token as the current user as the internal user do not have the correct permissions const esClient = context.core.elasticsearch.client.asCurrentUser; try { - const { body: tokenResponse } = await esClient.transport.request<{ + const tokenResponse = await esClient.transport.request<{ created?: boolean; token?: GenerateServiceTokenResponse; }>({ diff --git a/x-pack/plugins/fleet/server/routes/data_streams/handlers.ts b/x-pack/plugins/fleet/server/routes/data_streams/handlers.ts index bc64d9bf02f0c..070def907bcff 100644 --- a/x-pack/plugins/fleet/server/routes/data_streams/handlers.ts +++ b/x-pack/plugins/fleet/server/routes/data_streams/handlers.ts @@ -15,6 +15,7 @@ import { getPackageSavedObjects } from '../../services/epm/packages/get'; import { defaultIngestErrorHandler } from '../../errors'; const DATA_STREAM_INDEX_PATTERN = 'logs-*-*,metrics-*-*,traces-*-*,synthetics-*-*'; + interface ESDataStreamInfo { name: string; timestamp_field: { @@ -54,12 +55,8 @@ export const getListHandler: RequestHandler = async (context, request, response) try { // Get matching data streams, their stats, and package SOs const [ - { - body: { data_streams: dataStreamsInfo }, - }, - { - body: { data_streams: dataStreamStats }, - }, + { data_streams: dataStreamsInfo }, + { data_streams: dataStreamStats }, packageSavedObjects, ] = await Promise.all([ esClient.indices.getDataStream({ name: DATA_STREAM_INDEX_PATTERN }), @@ -134,9 +131,7 @@ export const getListHandler: RequestHandler = async (context, request, response) }; // Query backing indices to extract data stream dataset, namespace, and type values - const { - body: { aggregations: dataStreamAggs }, - } = await esClient.search({ + const { aggregations: dataStreamAggs } = await esClient.search({ index: dataStream.name, body: { size: 0, diff --git a/x-pack/plugins/fleet/server/services/agent_policy.ts b/x-pack/plugins/fleet/server/services/agent_policy.ts index d473504622bad..50586badbe0c8 100644 --- a/x-pack/plugins/fleet/server/services/agent_policy.ts +++ b/x-pack/plugins/fleet/server/services/agent_policy.ts @@ -57,6 +57,7 @@ import { elasticAgentManifest } from './elastic_agent_manifest'; import { getPackageInfo } from './epm/packages'; import { getAgentsByKuery } from './agents'; import { packagePolicyService } from './package_policy'; +import { incrementPackagePolicyCopyName } from './package_policies'; import { outputService } from './output'; import { agentPolicyUpdateEventHandler } from './agent_policy_update'; import { normalizeKuery, escapeSearchQueryPhrase } from './saved_object'; @@ -360,14 +361,16 @@ class AgentPolicyService { options ); - // Copy all package policies and append (copy) to their names + // Copy all package policies and append (copy n) to their names if (baseAgentPolicy.package_policies.length) { - const newPackagePolicies = (baseAgentPolicy.package_policies as PackagePolicy[]).map( - (packagePolicy: PackagePolicy) => { + const newPackagePolicies = await pMap( + baseAgentPolicy.package_policies as PackagePolicy[], + async (packagePolicy: PackagePolicy) => { const { id: packagePolicyId, version, ...newPackagePolicy } = packagePolicy; + const updatedPackagePolicy = { ...newPackagePolicy, - name: `${packagePolicy.name} (copy)`, + name: await incrementPackagePolicyCopyName(soClient, packagePolicy.name), }; return updatedPackagePolicy; } @@ -675,7 +678,7 @@ class AgentPolicyService { return null; } - return res.body.hits.hits[0]._source; + return res.hits.hits[0]._source; } public async getFullAgentConfigMap( diff --git a/x-pack/plugins/fleet/server/services/agent_policy_create.test.ts b/x-pack/plugins/fleet/server/services/agent_policy_create.test.ts index 8ee6f2e69052f..6be992b7f7a8b 100644 --- a/x-pack/plugins/fleet/server/services/agent_policy_create.test.ts +++ b/x-pack/plugins/fleet/server/services/agent_policy_create.test.ts @@ -12,7 +12,7 @@ import type { AgentPolicy, PackagePolicy } from '../types'; import { agentPolicyService, packagePolicyService } from '.'; import { createAgentPolicyWithPackages } from './agent_policy_create'; import { bulkInstallPackages } from './epm/packages'; -import { incrementPackageName } from './package_policy'; +import { incrementPackageName } from './package_policies'; const mockedAgentPolicyService = agentPolicyService as jest.Mocked; const mockedPackagePolicyService = packagePolicyService as jest.Mocked; @@ -36,6 +36,7 @@ jest.mock('./setup', () => { jest.mock('./agent_policy'); jest.mock('./package_policy'); +jest.mock('./package_policies'); function getPackagePolicy(name: string, policyId = '') { return { diff --git a/x-pack/plugins/fleet/server/services/agent_policy_create.ts b/x-pack/plugins/fleet/server/services/agent_policy_create.ts index 30ee5b162a74d..7ec6662192a05 100644 --- a/x-pack/plugins/fleet/server/services/agent_policy_create.ts +++ b/x-pack/plugins/fleet/server/services/agent_policy_create.ts @@ -18,7 +18,7 @@ import { import type { AgentPolicy, NewAgentPolicy } from '../types'; import { agentPolicyService, packagePolicyService } from '.'; -import { incrementPackageName } from './package_policy'; +import { incrementPackageName } from './package_policies'; import { bulkInstallPackages } from './epm/packages'; import { ensureDefaultEnrollmentAPIKeysExists } from './setup'; diff --git a/x-pack/plugins/fleet/server/services/agents/crud.test.ts b/x-pack/plugins/fleet/server/services/agents/crud.test.ts index 01b7d21ef2809..6ae8fbd471238 100644 --- a/x-pack/plugins/fleet/server/services/agents/crud.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/crud.test.ts @@ -26,19 +26,19 @@ describe('Agents CRUD test', () => { search: searchMock, } as unknown as ElasticsearchClient; }); + function getEsResponse(ids: string[], total: number) { return { - body: { - hits: { - total: { value: total }, - hits: ids.map((id: string) => ({ - _id: id, - _source: {}, - })), - }, + hits: { + total: { value: total }, + hits: ids.map((id: string) => ({ + _id: id, + _source: {}, + })), }, }; } + it('should return upgradeable on first page', async () => { searchMock .mockImplementationOnce(() => Promise.resolve(getEsResponse(['1', '2', '3', '4', '5'], 7))) diff --git a/x-pack/plugins/fleet/server/services/agents/crud.ts b/x-pack/plugins/fleet/server/services/agents/crud.ts index b37073b11c2ad..426bddd1bd9b9 100644 --- a/x-pack/plugins/fleet/server/services/agents/crud.ts +++ b/x-pack/plugins/fleet/server/services/agents/crud.ts @@ -136,8 +136,8 @@ export async function getAgentsByKuery( }); const res = await queryAgents((page - 1) * perPage, perPage); - let agents = res.body.hits.hits.map(searchHitToAgent); - let total = (res.body.hits.total as estypes.SearchTotalHits).value; + let agents = res.hits.hits.map(searchHitToAgent); + let total = (res.hits.total as estypes.SearchTotalHits).value; // filtering for a range on the version string will not work, // nor does filtering on a flattened field (local_metadata), so filter here if (showUpgradeable) { @@ -146,7 +146,7 @@ export async function getAgentsByKuery( // if there are more than SO_SEARCH_LIMIT agents, the logic falls back to same as before if (total < SO_SEARCH_LIMIT) { const response = await queryAgents(0, SO_SEARCH_LIMIT); - agents = response.body.hits.hits + agents = response.hits.hits .map(searchHitToAgent) .filter((agent) => isAgentUpgradeable(agent, appContextService.getKibanaVersion())); total = agents.length; @@ -217,11 +217,11 @@ export async function getAgentById(esClient: ElasticsearchClient, agentId: strin id: agentId, }); - if (agentHit.body.found === false) { + if (agentHit.found === false) { throw agentNotFoundError; } - return searchHitToAgent(agentHit.body); + return searchHitToAgent(agentHit); } catch (err) { if (isESClientError(err) && err.meta.statusCode === 404) { throw agentNotFoundError; @@ -247,7 +247,7 @@ export async function getAgentDocuments( body: { docs: agentIds.map((_id) => ({ _id })) }, }); - return res.body.docs || []; + return res.docs || []; } export async function getAgentsById( @@ -276,7 +276,7 @@ export async function getAgentByAccessAPIKeyId( q: `access_api_key_id:${escapeSearchQueryPhrase(accessAPIKeyId)}`, }); - const searchHit = res.body.hits.hits[0]; + const searchHit = res.hits.hits[0]; const agent = searchHit && searchHitToAgent(searchHit); if (!searchHit || !agent) { @@ -334,7 +334,7 @@ export async function bulkUpdateAgents( }); return { - items: res.body.items.map((item) => ({ + items: res.items.map((item) => ({ id: item.update!._id as string, success: !item.update!.error, // @ts-expect-error it not assignable to ErrorCause diff --git a/x-pack/plugins/fleet/server/services/agents/reassign.test.ts b/x-pack/plugins/fleet/server/services/agents/reassign.test.ts index 71935ffa5f90c..3a25efc6d49d1 100644 --- a/x-pack/plugins/fleet/server/services/agents/reassign.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/reassign.test.ts @@ -129,7 +129,7 @@ function createClientsMock() { const esClientMock = elasticsearchServiceMock.createClusterClient().asInternalUser; // @ts-expect-error - esClientMock.mget.mockImplementation(async () => { + esClientMock.mget.mockResponseImplementation(() => { return { body: { docs: [agentInHostedDoc, agentInRegularDoc, agentInHostedDoc2], @@ -137,7 +137,7 @@ function createClientsMock() { }; }); // @ts-expect-error - esClientMock.get.mockImplementation(async ({ id }) => { + esClientMock.get.mockResponseImplementation(({ id }) => { switch (id) { case agentInHostedDoc._id: return { body: agentInHostedDoc }; @@ -147,10 +147,10 @@ function createClientsMock() { throw new Error(`${id} not found`); } }); - esClientMock.bulk.mockResolvedValue({ + esClientMock.bulk.mockResponse( // @ts-expect-error not full interface - body: { items: [] }, - }); + { items: [] } + ); return { soClient: soClientMock, esClient: esClientMock }; } diff --git a/x-pack/plugins/fleet/server/services/agents/status.test.ts b/x-pack/plugins/fleet/server/services/agents/status.test.ts index 35300dfc02769..a6fd604ea0e30 100644 --- a/x-pack/plugins/fleet/server/services/agents/status.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/status.test.ts @@ -12,26 +12,26 @@ import { getAgentStatusById } from './status'; describe('Agent status service', () => { it('should return inactive when agent is not active', async () => { const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockElasticsearchClient.get.mockResolvedValue({ + mockElasticsearchClient.get.mockResponse( // @ts-expect-error not full interface - body: { + { _id: 'id', _source: { active: false, local_metadata: {}, user_provided_metadata: {}, }, - }, - }); + } + ); const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('inactive'); }); it('should return online when agent is active', async () => { const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockElasticsearchClient.get.mockResolvedValue({ + mockElasticsearchClient.get.mockResponse( // @ts-expect-error not full interface - body: { + { _id: 'id', _source: { active: true, @@ -39,36 +39,35 @@ describe('Agent status service', () => { local_metadata: {}, user_provided_metadata: {}, }, - }, - }); + } + ); const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('online'); }); it('should return enrolling when agent is active but never checkin', async () => { const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockElasticsearchClient.get.mockResolvedValue({ + mockElasticsearchClient.get.mockResponse( // @ts-expect-error not full interface - body: { + { _id: 'id', _source: { active: true, local_metadata: {}, user_provided_metadata: {}, }, - }, - }); + } + ); const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('enrolling'); }); it('should return unenrolling when agent is unenrolling', async () => { const mockElasticsearchClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - mockElasticsearchClient.get.mockResolvedValue({ + mockElasticsearchClient.get.mockResponse( // @ts-expect-error not full interface - body: { + { _id: 'id', - _source: { active: true, last_checkin: new Date().toISOString(), @@ -76,8 +75,8 @@ describe('Agent status service', () => { local_metadata: {}, user_provided_metadata: {}, }, - }, - }); + } + ); const status = await getAgentStatusById(mockElasticsearchClient, 'id'); expect(status).toEqual('unenrolling'); }); diff --git a/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts b/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts index 7f744ba6a59f4..181b517159c6f 100644 --- a/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts +++ b/x-pack/plugins/fleet/server/services/agents/unenroll.test.ts @@ -263,7 +263,7 @@ function createClientMock() { const esClientMock = elasticsearchServiceMock.createClusterClient().asInternalUser; // @ts-expect-error - esClientMock.get.mockImplementation(async ({ id }) => { + esClientMock.get.mockResponseImplementation(({ id }) => { switch (id) { case agentInHostedDoc._id: return { body: agentInHostedDoc }; @@ -275,13 +275,12 @@ function createClientMock() { throw new Error('not found'); } }); - esClientMock.bulk.mockResolvedValue({ + esClientMock.bulk.mockResponse( // @ts-expect-error not full interface - body: { items: [] }, - }); + { items: [] } + ); - // @ts-expect-error - esClientMock.mget.mockImplementation(async (params) => { + esClientMock.mget.mockResponseImplementation((params) => { // @ts-expect-error const docs = params?.body.docs.map(({ _id }) => { switch (_id) { diff --git a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts index 045e6495c9675..03c9e4f979953 100644 --- a/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts +++ b/x-pack/plugins/fleet/server/services/api_keys/enrollment_api_key.ts @@ -51,12 +51,12 @@ export async function listEnrollmentApiKeys( }); // @ts-expect-error @elastic/elasticsearch _source is optional - const items = res.body.hits.hits.map(esDocToEnrollmentApiKey); + const items = res.hits.hits.map(esDocToEnrollmentApiKey); return { items, // @ts-expect-error value is number | TotalHits - total: res.body.hits.total.value, + total: res.hits.total.value, page, perPage, }; @@ -78,13 +78,13 @@ export async function getEnrollmentAPIKey( id: string ): Promise { try { - const res = await esClient.get({ + const body = await esClient.get({ index: ENROLLMENT_API_KEYS_INDEX, id, }); // @ts-expect-error esDocToEnrollmentApiKey doesn't accept optional _source - return esDocToEnrollmentApiKey(res.body); + return esDocToEnrollmentApiKey(body); } catch (e) { if (e instanceof errors.ResponseError && e.statusCode === 404) { throw Boom.notFound(`Enrollment api key ${id} not found`); @@ -207,7 +207,7 @@ export async function generateEnrollmentAPIKey( const name = providedKeyName ? `${providedKeyName} (${id})` : id; - const { body: key } = await esClient.security + const key = await esClient.security .createApiKey({ body: { name, @@ -264,7 +264,7 @@ export async function generateEnrollmentAPIKey( }); return { - id: res.body._id, + id: res._id, ...body, }; } @@ -300,7 +300,7 @@ export async function getEnrollmentAPIKeyById(esClient: ElasticsearchClient, api }); // @ts-expect-error esDocToEnrollmentApiKey doesn't accept optional _source - const [enrollmentAPIKey] = res.body.hits.hits.map(esDocToEnrollmentApiKey); + const [enrollmentAPIKey] = res.hits.hits.map(esDocToEnrollmentApiKey); if (enrollmentAPIKey?.api_key_id !== apiKeyId) { throw new Error( diff --git a/x-pack/plugins/fleet/server/services/artifacts/artifacts.test.ts b/x-pack/plugins/fleet/server/services/artifacts/artifacts.test.ts index 745fc1ab196bc..fedb89c1e779b 100644 --- a/x-pack/plugins/fleet/server/services/artifacts/artifacts.test.ts +++ b/x-pack/plugins/fleet/server/services/artifacts/artifacts.test.ts @@ -44,11 +44,7 @@ describe('When using the artifacts services', () => { describe('and calling `getArtifact()`', () => { it('should get artifact using id', async () => { // @ts-expect-error not full interface - esClientMock.get.mockImplementation(() => { - return elasticsearchServiceMock.createSuccessTransportRequestPromise( - generateArtifactEsGetSingleHitMock() - ); - }); + esClientMock.get.mockResponse(generateArtifactEsGetSingleHitMock()); expect(await getArtifact(esClientMock, '123')).toEqual(generateArtifactMock()); expect(esClientMock.get).toHaveBeenCalledWith({ @@ -140,11 +136,7 @@ describe('When using the artifacts services', () => { describe('and calling `listArtifacts()`', () => { beforeEach(() => { - esClientMock.search.mockImplementation(() => { - return elasticsearchServiceMock.createSuccessTransportRequestPromise( - generateArtifactEsSearchResultHitsMock() - ); - }); + esClientMock.search.mockResponse(generateArtifactEsSearchResultHitsMock()); }); it('should use defaults when options is not provided', async () => { diff --git a/x-pack/plugins/fleet/server/services/artifacts/artifacts.ts b/x-pack/plugins/fleet/server/services/artifacts/artifacts.ts index 3a6db6fd0d04f..336a03e841266 100644 --- a/x-pack/plugins/fleet/server/services/artifacts/artifacts.ts +++ b/x-pack/plugins/fleet/server/services/artifacts/artifacts.ts @@ -48,7 +48,7 @@ export const getArtifact = async ( }); // @ts-expect-error @elastic/elasticsearch _source is optional - return esSearchHitToArtifact(esData.body); + return esSearchHitToArtifact(esData); } catch (e) { if (isElasticsearchItemNotFoundError(e)) { return; @@ -114,11 +114,11 @@ export const listArtifacts = async ( return { // @ts-expect-error @elastic/elasticsearch _source is optional - items: searchResult.body.hits.hits.map((hit) => esSearchHitToArtifact(hit)), + items: searchResult.hits.hits.map((hit) => esSearchHitToArtifact(hit)), page, perPage, // @ts-expect-error doesn't handle total as number - total: searchResult.body.hits.total.value, + total: searchResult.hits.total.value, }; } catch (e) { throw new ArtifactsElasticsearchError(e); diff --git a/x-pack/plugins/fleet/server/services/artifacts/client.test.ts b/x-pack/plugins/fleet/server/services/artifacts/client.test.ts index 8b98dc861a756..d5aa2765908c1 100644 --- a/x-pack/plugins/fleet/server/services/artifacts/client.test.ts +++ b/x-pack/plugins/fleet/server/services/artifacts/client.test.ts @@ -29,9 +29,7 @@ describe('When using the Fleet Artifacts Client', () => { } // @ts-expect-error not full interface - esClientMock.get.mockImplementation(() => { - return elasticsearchServiceMock.createSuccessTransportRequestPromise(singleHit); - }); + esClientMock.get.mockResponse(singleHit); }; beforeEach(() => { @@ -105,11 +103,7 @@ describe('When using the Fleet Artifacts Client', () => { describe('and calling `listArtifacts()`', () => { beforeEach(() => { - esClientMock.search.mockImplementation(() => { - return elasticsearchServiceMock.createSuccessTransportRequestPromise( - generateArtifactEsSearchResultHitsMock() - ); - }); + esClientMock.search.mockResponse(generateArtifactEsSearchResultHitsMock()); }); it('should retrieve list bound to packageName', async () => { diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts index d857d7c6bc2fb..7f7e7b2ec10e9 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/ingest_pipeline/install.ts @@ -262,7 +262,7 @@ export async function ensureFleetFinalPipelineIsInstalled( }; const res = await esClient.ingest.getPipeline( { id: FLEET_FINAL_PIPELINE_ID }, - esClientRequestOptions + { ...esClientRequestOptions, meta: true } ); const installedVersion = res?.body[FLEET_FINAL_PIPELINE_ID]?.version; diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts index 554105bb00a92..84dbe324891bc 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.test.ts @@ -63,9 +63,7 @@ describe('EPM install', () => { it('tests installPackage to use correct priority and index_patterns for data stream with dataset_is_prefix set to false', async () => { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - esClient.indices.getIndexTemplate.mockImplementation(() => - elasticsearchServiceMock.createSuccessTransportRequestPromise({ index_templates: [] }) - ); + esClient.indices.getIndexTemplate.mockResponse({ index_templates: [] }); const fields: Field[] = []; const dataStreamDatasetIsPrefixFalse = { @@ -104,9 +102,7 @@ describe('EPM install', () => { it('tests installPackage to use correct priority and index_patterns for data stream with dataset_is_prefix set to true', async () => { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - esClient.indices.getIndexTemplate.mockImplementation(() => - elasticsearchServiceMock.createSuccessTransportRequestPromise({ index_templates: [] }) - ); + esClient.indices.getIndexTemplate.mockResponse({ index_templates: [] }); const fields: Field[] = []; const dataStreamDatasetIsPrefixTrue = { @@ -145,20 +141,19 @@ describe('EPM install', () => { it('tests installPackage remove the aliases property if the property existed', async () => { const esClient = elasticsearchServiceMock.createClusterClient().asInternalUser; - // @ts-expect-error not full interface - esClient.indices.getIndexTemplate.mockImplementation(() => - elasticsearchServiceMock.createSuccessTransportRequestPromise({ - index_templates: [ - { - name: 'metrics-package.dataset', - index_template: { - index_patterns: ['metrics-package.dataset-*'], - template: { aliases: {} }, - }, + + esClient.indices.getIndexTemplate.mockResponse({ + index_templates: [ + { + name: 'metrics-package.dataset', + // @ts-expect-error not full interface + index_template: { + index_patterns: ['metrics-package.dataset-*'], + template: { aliases: {} }, }, - ], - }) - ); + }, + ], + }); const fields: Field[] = []; const dataStreamDatasetIsPrefixUnset = { diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts index 4224ff6b01a19..6bd346f3aff89 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/install.ts @@ -203,7 +203,9 @@ interface TemplateMapEntry { settings: NonNullable | object; }; } + type TemplateMap = Record; + function putComponentTemplate( esClient: ElasticsearchClient, logger: Logger, @@ -300,7 +302,7 @@ async function installDataStreamComponentTemplates(params: { () => esClient.cluster.getComponentTemplate({ name }, { ignore: [404] }), { logger } ); - const hasUserSettingsTemplate = result.body.component_templates?.length === 1; + const hasUserSettingsTemplate = result.component_templates?.length === 1; if (!hasUserSettingsTemplate) { // only add if one isn't already present const { clusterPromise } = putComponentTemplate(esClient, logger, { @@ -323,7 +325,7 @@ export async function ensureDefaultComponentTemplate( esClient: ElasticsearchClient, logger: Logger ) { - const { body: getTemplateRes } = await retryTransientEsErrors( + const getTemplateRes = await retryTransientEsErrors( () => esClient.cluster.getComponentTemplate( { @@ -378,7 +380,7 @@ export async function installTemplate({ } // Datastream now throw an error if the aliases field is present so ensure that we remove that field. - const { body: getTemplateRes } = await retryTransientEsErrors( + const getTemplateRes = await retryTransientEsErrors( () => esClient.indices.getIndexTemplate( { diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts index 927b7cb75816c..7999cfa40a11a 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.test.ts @@ -841,10 +841,8 @@ describe('EPM template', () => { describe('updateCurrentWriteIndices', () => { it('update all the index matching, index template index pattern', async () => { const esClient = elasticsearchServiceMock.createElasticsearchClient(); - esClient.indices.getDataStream.mockResolvedValue({ - body: { - data_streams: [{ name: 'test.prefix1-default' }], - }, + esClient.indices.getDataStream.mockResponse({ + data_streams: [{ name: 'test.prefix1-default' }], } as any); const logger = loggerMock.create(); await updateCurrentWriteIndices(esClient, logger, [ @@ -868,13 +866,11 @@ describe('EPM template', () => { }); it('update non replicated datastream', async () => { const esClient = elasticsearchServiceMock.createElasticsearchClient(); - esClient.indices.getDataStream.mockResolvedValue({ - body: { - data_streams: [ - { name: 'test-non-replicated' }, - { name: 'test-replicated', replicated: true }, - ], - }, + esClient.indices.getDataStream.mockResponse({ + data_streams: [ + { name: 'test-non-replicated' }, + { name: 'test-replicated', replicated: true }, + ], } as any); const logger = loggerMock.create(); await updateCurrentWriteIndices(esClient, logger, [ diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts index 1988be042a235..a144663546ef3 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/template/template.ts @@ -470,7 +470,7 @@ const getDataStreams = async ( ): Promise => { const { indexTemplate } = template; - const { body } = await esClient.indices.getDataStream({ + const body = await esClient.indices.getDataStream({ name: indexTemplate.index_patterns.join(','), }); diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.ts index 39681401ac955..6a2284e0df742 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/remove.ts @@ -28,17 +28,8 @@ export const deleteTransforms = async (esClient: ElasticsearchClient, transformI } await Promise.all( transformIds.map(async (transformId) => { - interface TransformResponse { - count: number; - transforms?: Array<{ - dest: { - index: string; - }; - }>; - } - // get the index the transform - const { body: transformResponse } = await esClient.transform.getTransform( + const transformResponse = await esClient.transform.getTransform( { transform_id: transformId }, { ignore: [404] } ); diff --git a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts b/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts index 144bd2240aa01..879c7614fedbf 100644 --- a/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts +++ b/x-pack/plugins/fleet/server/services/epm/elasticsearch/transform/transform.test.ts @@ -19,8 +19,7 @@ jest.mock('./common', () => { }); import { errors } from '@elastic/elasticsearch'; -import type { DeeplyMockedKeys } from '@kbn/utility-types/jest'; -import type { ElasticsearchClient, SavedObject, SavedObjectsClientContract } from 'kibana/server'; +import type { SavedObject, SavedObjectsClientContract } from 'kibana/server'; import { loggerMock } from '@kbn/logging-mocks'; import { ElasticsearchAssetType } from '../../../../types'; @@ -38,7 +37,7 @@ import { installTransform } from './install'; import { getAsset } from './common'; describe('test transform install', () => { - let esClient: DeeplyMockedKeys; + let esClient: ReturnType; let savedObjectsClient: jest.Mocked; beforeEach(() => { appContextService.start(createAppContextStartContractMock()); @@ -104,18 +103,16 @@ describe('test transform install', () => { } as unknown as SavedObject) ); - esClient.transform.getTransform.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - count: 1, - transforms: [ - { - dest: { - index: 'index', - }, + esClient.transform.getTransform.mockResponseOnce({ + count: 1, + transforms: [ + { + dest: { + index: 'index', }, - ], - }) - ); + }, + ], + }); await installTransform( { @@ -394,18 +391,16 @@ describe('test transform install', () => { } as unknown as SavedObject) ); - esClient.transform.getTransform.mockReturnValueOnce( - elasticsearchClientMock.createSuccessTransportRequestPromise({ - count: 1, - transforms: [ - { - dest: { - index: 'index', - }, + esClient.transform.getTransform.mockResponseOnce({ + count: 1, + transforms: [ + { + dest: { + index: 'index', }, - ], - }) - ); + }, + ], + }); await installTransform( { diff --git a/x-pack/plugins/fleet/server/services/fleet_server/index.ts b/x-pack/plugins/fleet/server/services/fleet_server/index.ts index 55b0fb0dff225..0ac47df1bfdaf 100644 --- a/x-pack/plugins/fleet/server/services/fleet_server/index.ts +++ b/x-pack/plugins/fleet/server/services/fleet_server/index.ts @@ -19,5 +19,5 @@ export async function hasFleetServers(esClient: ElasticsearchClient) { }); // @ts-expect-error value is number | TotalHits - return res.body.hits.total.value > 0; + return res.hits.total.value > 0; } diff --git a/x-pack/plugins/security_solution/public/ueba/pages/navigation/index.ts b/x-pack/plugins/fleet/server/services/package_policies/index.ts similarity index 58% rename from x-pack/plugins/security_solution/public/ueba/pages/navigation/index.ts rename to x-pack/plugins/fleet/server/services/package_policies/index.ts index dd549659a3eab..e79ef47502504 100644 --- a/x-pack/plugins/security_solution/public/ueba/pages/navigation/index.ts +++ b/x-pack/plugins/fleet/server/services/package_policies/index.ts @@ -5,7 +5,4 @@ * 2.0. */ -export * from './host_rules_query_tab_body'; -export * from './host_tactics_query_tab_body'; -export * from './risk_score_query_tab_body'; -export * from './user_rules_query_tab_body'; +export * from './package_policy_name_helper'; diff --git a/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.test.ts b/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.test.ts new file mode 100644 index 0000000000000..bd4223fbe7019 --- /dev/null +++ b/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.test.ts @@ -0,0 +1,94 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { savedObjectsClientMock } from 'src/core/server/mocks'; + +import { packagePolicyService } from '../package_policy'; + +import { incrementPackageName, incrementPackagePolicyCopyName } from './package_policy_name_helper'; + +describe('Package policy name helper', () => { + describe('increment package name', () => { + it('should return 1 if no existing policies', async () => { + packagePolicyService.list = jest.fn().mockResolvedValue(undefined); + const newName = await incrementPackageName(savedObjectsClientMock.create(), 'apache'); + expect(newName).toEqual('apache-1'); + }); + + it('should return 11 if max policy name is 10', async () => { + packagePolicyService.list = jest.fn().mockResolvedValue({ + items: [ + { name: 'apache-1' }, + { name: 'aws-11' }, + { name: 'apache-10' }, + { name: 'apache-9' }, + ], + }); + const newName = await incrementPackageName(savedObjectsClientMock.create(), 'apache'); + expect(newName).toEqual('apache-11'); + }); + }); + + describe('increment package policy copy name', () => { + it('should return packagePolicyName (copy) if no existing policies', async () => { + packagePolicyService.list = jest.fn().mockResolvedValue({ items: [] }); + const newName = await incrementPackagePolicyCopyName( + savedObjectsClientMock.create(), + 'packagePolicyName' + ); + expect(newName).toEqual('packagePolicyName (copy)'); + }); + + it('should return packagePolicyName (copy 2) if there is an existing copy', async () => { + packagePolicyService.list = jest.fn().mockResolvedValue({ + items: [ + { + name: 'packagePolicyName (copy)', + }, + ], + }); + const newName = await incrementPackagePolicyCopyName( + savedObjectsClientMock.create(), + 'packagePolicyName' + ); + expect(newName).toEqual('packagePolicyName (copy 2)'); + }); + + it('should return packagePolicyName (copy 2) if there is an existing copy and copying a copy', async () => { + packagePolicyService.list = jest.fn().mockResolvedValue({ + items: [ + { + name: 'packagePolicyName (copy)', + }, + ], + }); + const newName = await incrementPackagePolicyCopyName( + savedObjectsClientMock.create(), + 'packagePolicyName (copy)' + ); + expect(newName).toEqual('packagePolicyName (copy 2)'); + }); + + it('should return packagePolicyName (copy 3) if there is 2 copy', async () => { + packagePolicyService.list = jest.fn().mockResolvedValue({ + items: [ + { + name: 'packagePolicyName (copy)', + }, + { + name: 'packagePolicyName (copy 2)', + }, + ], + }); + const newName = await incrementPackagePolicyCopyName( + savedObjectsClientMock.create(), + 'packagePolicyName' + ); + expect(newName).toEqual('packagePolicyName (copy 3)'); + }); + }); +}); diff --git a/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.ts b/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.ts new file mode 100644 index 0000000000000..b7ebec3415453 --- /dev/null +++ b/x-pack/plugins/fleet/server/services/package_policies/package_policy_name_helper.ts @@ -0,0 +1,65 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { SavedObjectsClientContract } from 'src/core/server'; + +import { SO_SEARCH_LIMIT, getMaxPackageName } from '../../../common'; +import { PACKAGE_POLICY_SAVED_OBJECT_TYPE } from '../../constants'; + +import { packagePolicyService } from '../package_policy'; + +export async function incrementPackageName( + soClient: SavedObjectsClientContract, + packageName: string +): Promise { + // Fetch all packagePolicies having the package name + const packagePolicyData = await packagePolicyService.list(soClient, { + perPage: SO_SEARCH_LIMIT, + kuery: `${PACKAGE_POLICY_SAVED_OBJECT_TYPE}.package.name: "${packageName}"`, + }); + + return getMaxPackageName(packageName, packagePolicyData?.items); +} + +export async function incrementPackagePolicyCopyName( + soClient: SavedObjectsClientContract, + packagePolicyName: string +): Promise { + let packageName = packagePolicyName; + const packageNameMatches = packagePolicyName.match(/^(.*)\s\(copy\s?[0-9]*\)$/); + if (packageNameMatches) { + packageName = packageNameMatches[1]; + } + + // find all pacakge policies starting with the same name and increment the name + const packagePolicyData = await packagePolicyService.list(soClient, { + perPage: SO_SEARCH_LIMIT, + kuery: `${PACKAGE_POLICY_SAVED_OBJECT_TYPE}.name: ${packageName}*`, + }); + + const maxVersion = + packagePolicyData.items.length > 0 + ? Math.max( + ...packagePolicyData.items.map((item) => { + const matches = item.name.match(/^(.*)\s\(copy\s?([0-9]*)\)$/); + if (matches) { + return parseInt(matches[2], 10) || 1; + } + + return 0; + }) + ) + : 0; + + const copyVersion = maxVersion + 1; + + if (copyVersion === 1) { + return `${packageName} (copy)`; + } + + return `${packageName} (copy ${copyVersion})`; +} diff --git a/x-pack/plugins/fleet/server/services/package_policy.test.ts b/x-pack/plugins/fleet/server/services/package_policy.test.ts index 51489adcd68f0..735f41f499868 100644 --- a/x-pack/plugins/fleet/server/services/package_policy.test.ts +++ b/x-pack/plugins/fleet/server/services/package_policy.test.ts @@ -49,7 +49,6 @@ import { updatePackageInputs, packagePolicyService, _applyIndexPrivileges, - incrementPackageName, } from './package_policy'; import { appContextService } from './app_context'; import { fetchInfo } from './epm/registry'; @@ -3242,25 +3241,4 @@ describe('_applyIndexPrivileges()', () => { const streamOut = _applyIndexPrivileges(packageStream, inputStream); expect(streamOut).toEqual(expectedStream); }); - - describe('increment package name', () => { - it('should return 1 if no existing policies', async () => { - packagePolicyService.list = jest.fn().mockResolvedValue(undefined); - const newName = await incrementPackageName(savedObjectsClientMock.create(), 'apache'); - expect(newName).toEqual('apache-1'); - }); - - it('should return 11 if max policy name is 10', async () => { - packagePolicyService.list = jest.fn().mockResolvedValue({ - items: [ - { name: 'apache-1' }, - { name: 'aws-11' }, - { name: 'apache-10' }, - { name: 'apache-9' }, - ], - }); - const newName = await incrementPackageName(savedObjectsClientMock.create(), 'apache'); - expect(newName).toEqual('apache-11'); - }); - }); }); diff --git a/x-pack/plugins/fleet/server/services/package_policy.ts b/x-pack/plugins/fleet/server/services/package_policy.ts index 69d7a81a24efd..3e185de8f8618 100644 --- a/x-pack/plugins/fleet/server/services/package_policy.ts +++ b/x-pack/plugins/fleet/server/services/package_policy.ts @@ -28,8 +28,6 @@ import { doesAgentPolicyAlreadyIncludePackage, validatePackagePolicy, validationHasErrors, - SO_SEARCH_LIMIT, - getMaxPackageName, } from '../../common'; import type { DeletePackagePoliciesResponse, @@ -1388,16 +1386,3 @@ function deepMergeVars(original: any, override: any, keepOriginalValue = false): return result; } - -export async function incrementPackageName( - soClient: SavedObjectsClientContract, - packageName: string -): Promise { - // Fetch all packagePolicies having the package name - const packagePolicyData = await packagePolicyService.list(soClient, { - perPage: SO_SEARCH_LIMIT, - kuery: `${PACKAGE_POLICY_SAVED_OBJECT_TYPE}.package.name: "${packageName}"`, - }); - - return getMaxPackageName(packageName, packagePolicyData?.items); -} diff --git a/x-pack/plugins/fleet/server/telemetry/sender.ts b/x-pack/plugins/fleet/server/telemetry/sender.ts index 2377f5e016deb..47f8a90f6cd68 100644 --- a/x-pack/plugins/fleet/server/telemetry/sender.ts +++ b/x-pack/plugins/fleet/server/telemetry/sender.ts @@ -110,8 +110,7 @@ export class TelemetryEventsSender { throw Error('elasticsearch client is unavailable: cannot retrieve cluster infomation'); } - const { body } = await this.esClient.info(); - return body; + return await this.esClient.info(); } public async sendEvents( diff --git a/x-pack/plugins/graph/server/routes/explore.ts b/x-pack/plugins/graph/server/routes/explore.ts index 7109eee3b9111..6318d8574c397 100644 --- a/x-pack/plugins/graph/server/routes/explore.ts +++ b/x-pack/plugins/graph/server/routes/explore.ts @@ -49,13 +49,11 @@ export function registerExploreRoute({ try { return response.ok({ body: { - resp: ( - await esClient.asCurrentUser.transport.request({ - path: '/' + encodeURIComponent(request.body.index) + '/_graph/explore', - body: request.body.query, - method: 'POST', - }) - ).body, + resp: await esClient.asCurrentUser.transport.request({ + path: '/' + encodeURIComponent(request.body.index) + '/_graph/explore', + body: request.body.query, + method: 'POST', + }), }, }); } catch (error) { diff --git a/x-pack/plugins/graph/server/routes/search.ts b/x-pack/plugins/graph/server/routes/search.ts index 92f3d7a02b072..ba169bf291751 100644 --- a/x-pack/plugins/graph/server/routes/search.ts +++ b/x-pack/plugins/graph/server/routes/search.ts @@ -44,14 +44,12 @@ export function registerSearchRoute({ try { return response.ok({ body: { - resp: ( - await esClient.asCurrentUser.search({ - index: request.body.index, - body: request.body.body, - track_total_hits: true, - ...(includeFrozen ? { ignore_throttled: false } : {}), - }) - ).body, + resp: await esClient.asCurrentUser.search({ + index: request.body.index, + body: request.body.body, + track_total_hits: true, + ...(includeFrozen ? { ignore_throttled: false } : {}), + }), }, }); } catch (error) { diff --git a/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.ts b/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.ts index 1f2927436d4ae..fb20812f3307e 100644 --- a/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.ts +++ b/x-pack/plugins/grokdebugger/server/routes/api/grokdebugger/register_grok_simulate_route.ts @@ -39,9 +39,7 @@ export function registerGrokSimulateRoute(framework: KibanaFramework) { await requestContext.core.elasticsearch.client.asCurrentUser.ingest.simulate({ body: grokdebuggerRequest.upstreamJSON, }); - const grokdebuggerResponse = GrokdebuggerResponse.fromUpstreamJSON( - simulateResponseFromES.body - ); + const grokdebuggerResponse = GrokdebuggerResponse.fromUpstreamJSON(simulateResponseFromES); return response.ok({ body: grokdebuggerResponse, }); diff --git a/x-pack/plugins/index_lifecycle_management/server/plugin.ts b/x-pack/plugins/index_lifecycle_management/server/plugin.ts index 08b1033371ad5..e8f675ea7e674 100644 --- a/x-pack/plugins/index_lifecycle_management/server/plugin.ts +++ b/x-pack/plugins/index_lifecycle_management/server/plugin.ts @@ -26,9 +26,7 @@ const indexLifecycleDataEnricher = async ( return []; } - const { - body: { indices: ilmIndicesData }, - } = await client.asCurrentUser.ilm.explainLifecycle({ + const { indices: ilmIndicesData } = await client.asCurrentUser.ilm.explainLifecycle({ index: '*', }); // @ts-expect-error IndexLifecyclePolicy is not compatible with IlmExplainLifecycleResponse @@ -100,5 +98,6 @@ export class IndexLifecycleManagementServerPlugin implements Plugin { const policyEntry = policiesMap[lifecycleName]; @@ -50,6 +51,7 @@ async function fetchPolicies(client: ElasticsearchClient): Promise { const response = await client.indices.getTemplate({ name: templateName }); - return response.body[templateName]; + return response[templateName]; } async function getIndexTemplate( @@ -39,7 +39,7 @@ async function getIndexTemplate( options ); - const { index_templates: templates } = response.body as { + const { index_templates: templates } = response as { index_templates: TemplateFromEs[]; }; return templates.find((template) => template.name === templateName)?.index_template; diff --git a/x-pack/plugins/index_lifecycle_management/server/routes/api/templates/register_fetch_route.ts b/x-pack/plugins/index_lifecycle_management/server/routes/api/templates/register_fetch_route.ts index 34a1bac2c4fd9..11811c7b7d26c 100644 --- a/x-pack/plugins/index_lifecycle_management/server/routes/api/templates/register_fetch_route.ts +++ b/x-pack/plugins/index_lifecycle_management/server/routes/api/templates/register_fetch_route.ts @@ -74,7 +74,7 @@ async function fetchTemplates( const response = isLegacy ? await client.indices.getTemplate({}, options) : await client.indices.getIndexTemplate({}, options); - return response.body; + return response; } const querySchema = schema.object({ diff --git a/x-pack/plugins/index_management/server/lib/fetch_indices.test.ts b/x-pack/plugins/index_management/server/lib/fetch_indices.test.ts index 900e3ecc32501..570e609219263 100644 --- a/x-pack/plugins/index_management/server/lib/fetch_indices.test.ts +++ b/x-pack/plugins/index_management/server/lib/fetch_indices.test.ts @@ -33,15 +33,11 @@ describe('[Index management API Routes] fetch indices lib function', () => { test('regular index', async () => { getIndices.mockResolvedValue({ - body: { - regular_index: createTestIndexState(), - }, + regular_index: createTestIndexState(), }); getIndicesStats.mockResolvedValue({ - body: { - indices: { - regular_index: createTestIndexStats({ uuid: 'regular_index' }), - }, + indices: { + regular_index: createTestIndexStats({ uuid: 'regular_index' }), }, }); @@ -51,17 +47,13 @@ describe('[Index management API Routes] fetch indices lib function', () => { }); test('index with aliases', async () => { getIndices.mockResolvedValue({ - body: { - index_with_aliases: createTestIndexState({ - aliases: { test_alias: {}, another_alias: {} }, - }), - }, + index_with_aliases: createTestIndexState({ + aliases: { test_alias: {}, another_alias: {} }, + }), }); getIndicesStats.mockResolvedValue({ - body: { - indices: { - index_with_aliases: createTestIndexStats({ uuid: 'index_with_aliases' }), - }, + indices: { + index_with_aliases: createTestIndexStats({ uuid: 'index_with_aliases' }), }, }); @@ -77,18 +69,14 @@ describe('[Index management API Routes] fetch indices lib function', () => { }); test('frozen index', async () => { getIndices.mockResolvedValue({ - body: { - frozen_index: createTestIndexState({ - // @ts-expect-error - settings: { index: { number_of_shards: 1, number_of_replicas: 1, frozen: 'true' } }, - }), - }, + frozen_index: createTestIndexState({ + // @ts-expect-error + settings: { index: { number_of_shards: 1, number_of_replicas: 1, frozen: 'true' } }, + }), }); getIndicesStats.mockResolvedValue({ - body: { - indices: { - frozen_index: createTestIndexStats({ uuid: 'frozen_index' }), - }, + indices: { + frozen_index: createTestIndexStats({ uuid: 'frozen_index' }), }, }); @@ -104,17 +92,13 @@ describe('[Index management API Routes] fetch indices lib function', () => { }); test('hidden index', async () => { getIndices.mockResolvedValue({ - body: { - hidden_index: createTestIndexState({ - settings: { index: { number_of_shards: 1, number_of_replicas: 1, hidden: 'true' } }, - }), - }, + hidden_index: createTestIndexState({ + settings: { index: { number_of_shards: 1, number_of_replicas: 1, hidden: 'true' } }, + }), }); getIndicesStats.mockResolvedValue({ - body: { - indices: { - hidden_index: createTestIndexStats({ uuid: 'hidden_index' }), - }, + indices: { + hidden_index: createTestIndexStats({ uuid: 'hidden_index' }), }, }); @@ -130,17 +114,13 @@ describe('[Index management API Routes] fetch indices lib function', () => { }); test('data stream index', async () => { getIndices.mockResolvedValue({ - body: { - data_stream_index: createTestIndexState({ - data_stream: 'test_data_stream', - }), - }, + data_stream_index: createTestIndexState({ + data_stream: 'test_data_stream', + }), }); getIndicesStats.mockResolvedValue({ - body: { - indices: { - data_stream_index: createTestIndexStats({ uuid: 'data_stream_index' }), - }, + indices: { + data_stream_index: createTestIndexStats({ uuid: 'data_stream_index' }), }, }); @@ -156,17 +136,13 @@ describe('[Index management API Routes] fetch indices lib function', () => { }); test('index missing in stats call', async () => { getIndices.mockResolvedValue({ - body: { - index_missing_stats: createTestIndexState(), - }, + index_missing_stats: createTestIndexState(), }); // simulates when an index has been deleted after get indices call // deleted index won't be present in the indices stats call response getIndicesStats.mockResolvedValue({ - body: { - indices: { - some_other_index: createTestIndexStats({ uuid: 'some_other_index' }), - }, + indices: { + some_other_index: createTestIndexStats({ uuid: 'some_other_index' }), }, }); await expect(router.runRequest(mockRequest)).resolves.toEqual({ diff --git a/x-pack/plugins/index_management/server/lib/fetch_indices.ts b/x-pack/plugins/index_management/server/lib/fetch_indices.ts index f4b39784dde22..9e8a8b23a7d9d 100644 --- a/x-pack/plugins/index_management/server/lib/fetch_indices.ts +++ b/x-pack/plugins/index_management/server/lib/fetch_indices.ts @@ -17,7 +17,7 @@ async function fetchIndicesCall( const indexNamesString = indexNames && indexNames.length ? indexNames.join(',') : '*'; // This call retrieves alias and settings (incl. hidden status) information about indices - const { body: indices } = await client.asCurrentUser.indices.get({ + const indices = await client.asCurrentUser.indices.get({ index: indexNamesString, expand_wildcards: ['hidden', 'all'], // only get specified index properties from ES to keep the response under 536MB @@ -39,9 +39,7 @@ async function fetchIndicesCall( return []; } - const { - body: { indices: indicesStats = {} }, - } = await client.asCurrentUser.indices.stats({ + const { indices: indicesStats = {} } = await client.asCurrentUser.indices.stats({ index: indexNamesString, expand_wildcards: ['hidden', 'all'], forbid_closed_indices: false, diff --git a/x-pack/plugins/index_management/server/lib/get_managed_templates.ts b/x-pack/plugins/index_management/server/lib/get_managed_templates.ts index 8e60044dc4951..c224799a8c35c 100644 --- a/x-pack/plugins/index_management/server/lib/get_managed_templates.ts +++ b/x-pack/plugins/index_management/server/lib/get_managed_templates.ts @@ -13,9 +13,7 @@ export const getCloudManagedTemplatePrefix = async ( client: IScopedClusterClient ): Promise => { try { - const { - body: { persistent, transient, defaults }, - } = await client.asCurrentUser.cluster.getSettings({ + const { persistent, transient, defaults } = await client.asCurrentUser.cluster.getSettings({ filter_path: '*.*managed_index_templates', flat_settings: true, include_defaults: true, diff --git a/x-pack/plugins/index_management/server/routes/api/component_templates/register_create_route.ts b/x-pack/plugins/index_management/server/routes/api/component_templates/register_create_route.ts index b4683f1b8cb14..296dcd726e52a 100644 --- a/x-pack/plugins/index_management/server/routes/api/component_templates/register_create_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/component_templates/register_create_route.ts @@ -32,11 +32,10 @@ export const registerCreateRoute = ({ try { // Check that a component template with the same name doesn't already exist - const { - body: { component_templates: componentTemplates }, - } = await client.asCurrentUser.cluster.getComponentTemplate({ - name, - }); + const { component_templates: componentTemplates } = + await client.asCurrentUser.cluster.getComponentTemplate({ + name, + }); if (componentTemplates.length) { return response.conflict({ @@ -55,7 +54,7 @@ export const registerCreateRoute = ({ } try { - const { body: responseBody } = await client.asCurrentUser.cluster.putComponentTemplate({ + const responseBody = await client.asCurrentUser.cluster.putComponentTemplate({ name, // @ts-expect-error ComponentTemplateSerialized conflicts with @elastic/elasticsearch ClusterPutComponentTemplateRequest body: serializedComponentTemplate, diff --git a/x-pack/plugins/index_management/server/routes/api/component_templates/register_get_route.ts b/x-pack/plugins/index_management/server/routes/api/component_templates/register_get_route.ts index a77aa90c52f73..039eb24f4d9d6 100644 --- a/x-pack/plugins/index_management/server/routes/api/component_templates/register_get_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/component_templates/register_get_route.ts @@ -27,13 +27,11 @@ export function registerGetAllRoute({ router, lib: { handleEsError } }: RouteDep const { client } = context.core.elasticsearch; try { - const { - body: { component_templates: componentTemplates }, - } = await client.asCurrentUser.cluster.getComponentTemplate(); + const { component_templates: componentTemplates } = + await client.asCurrentUser.cluster.getComponentTemplate(); - const { - body: { index_templates: indexTemplates }, - } = await client.asCurrentUser.indices.getIndexTemplate(); + const { index_templates: indexTemplates } = + await client.asCurrentUser.indices.getIndexTemplate(); const body = componentTemplates.map((componentTemplate: ComponentTemplateFromEs) => { const deserializedComponentTemplateListItem = deserializeComponentTemplateList( @@ -63,15 +61,13 @@ export function registerGetAllRoute({ router, lib: { handleEsError } }: RouteDep const { name } = request.params; try { - const { - body: { component_templates: componentTemplates }, - } = await client.asCurrentUser.cluster.getComponentTemplate({ - name, - }); + const { component_templates: componentTemplates } = + await client.asCurrentUser.cluster.getComponentTemplate({ + name, + }); - const { - body: { index_templates: indexTemplates }, - } = await client.asCurrentUser.indices.getIndexTemplate(); + const { index_templates: indexTemplates } = + await client.asCurrentUser.indices.getIndexTemplate(); return response.ok({ body: deserializeComponentTemplate(componentTemplates[0], indexTemplates), diff --git a/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.test.ts b/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.test.ts index 2c5070ab846ad..dd37ad56ea4b4 100644 --- a/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.test.ts +++ b/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.test.ts @@ -58,13 +58,11 @@ describe('GET privileges', () => { it('should return the correct response when a user has privileges', async () => { const privilegesResponseMock = { - body: { - username: 'elastic', - has_all_requested: true, - cluster: { manage_index_templates: true }, - index: {}, - application: {}, - }, + username: 'elastic', + has_all_requested: true, + cluster: { manage_index_templates: true }, + index: {}, + application: {}, }; const routeContextMock = mockRouteContext({ @@ -84,13 +82,11 @@ describe('GET privileges', () => { it('should return the correct response when a user does not have privileges', async () => { const privilegesResponseMock = { - body: { - username: 'elastic', - has_all_requested: false, - cluster: { manage_index_templates: false }, - index: {}, - application: {}, - }, + username: 'elastic', + has_all_requested: false, + cluster: { manage_index_templates: false }, + index: {}, + application: {}, }; const routeContextMock = mockRouteContext({ diff --git a/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.ts b/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.ts index 327e6421525c6..b99e16f7eb1f2 100644 --- a/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/component_templates/register_privileges_route.ts @@ -43,13 +43,12 @@ export const registerPrivilegesRoute = ({ const { client } = context.core.elasticsearch; try { - const { - body: { has_all_requested: hasAllPrivileges, cluster }, - } = await client.asCurrentUser.security.hasPrivileges({ - body: { - cluster: ['manage_index_templates'], - }, - }); + const { has_all_requested: hasAllPrivileges, cluster } = + await client.asCurrentUser.security.hasPrivileges({ + body: { + cluster: ['manage_index_templates'], + }, + }); if (!hasAllPrivileges) { privilegesResult.missingPrivileges.cluster = extractMissingPrivileges(cluster); diff --git a/x-pack/plugins/index_management/server/routes/api/component_templates/register_update_route.ts b/x-pack/plugins/index_management/server/routes/api/component_templates/register_update_route.ts index c2235b9eb85ab..97d7c52dde044 100644 --- a/x-pack/plugins/index_management/server/routes/api/component_templates/register_update_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/component_templates/register_update_route.ts @@ -37,7 +37,7 @@ export const registerUpdateRoute = ({ // Verify component exists; ES will throw 404 if not await client.asCurrentUser.cluster.getComponentTemplate({ name }); - const { body: responseBody } = await client.asCurrentUser.cluster.putComponentTemplate({ + const responseBody = await client.asCurrentUser.cluster.putComponentTemplate({ name, body: { template: template as estypes.IndicesIndexState, diff --git a/x-pack/plugins/index_management/server/routes/api/data_streams/register_get_route.ts b/x-pack/plugins/index_management/server/routes/api/data_streams/register_get_route.ts index 87eecfbfbbbad..4c44d1a8212f9 100644 --- a/x-pack/plugins/index_management/server/routes/api/data_streams/register_get_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/data_streams/register_get_route.ts @@ -108,24 +108,20 @@ export function registerGetAllRoute({ router, lib: { handleEsError }, config }: const includeStats = (request.query as TypeOf).includeStats === 'true'; try { - const { - body: { data_streams: dataStreams }, - } = await getDataStreams(client); + const { data_streams: dataStreams } = await getDataStreams(client); let dataStreamsStats; let dataStreamsPrivileges; if (includeStats) { - ({ - body: { data_streams: dataStreamsStats }, - } = await getDataStreamsStats(client)); + ({ data_streams: dataStreamsStats } = await getDataStreamsStats(client)); } if (config.isSecurityEnabled() && dataStreams.length > 0) { - ({ body: dataStreamsPrivileges } = await getDataStreamsPrivileges( + dataStreamsPrivileges = await getDataStreamsPrivileges( client, dataStreams.map((dataStream) => dataStream.name) - )); + ); } const enhancedDataStreams = enhanceDataStreams({ @@ -158,21 +154,13 @@ export function registerGetOneRoute({ router, lib: { handleEsError }, config }: const { name } = request.params as TypeOf; const { client } = context.core.elasticsearch; try { - const [ - { - body: { data_streams: dataStreams }, - }, - { - body: { data_streams: dataStreamsStats }, - }, - ] = await Promise.all([getDataStreams(client, name), getDataStreamsStats(client, name)]); + const [{ data_streams: dataStreams }, { data_streams: dataStreamsStats }] = + await Promise.all([getDataStreams(client, name), getDataStreamsStats(client, name)]); if (dataStreams[0]) { let dataStreamsPrivileges; if (config.isSecurityEnabled()) { - ({ body: dataStreamsPrivileges } = await getDataStreamsPrivileges(client, [ - dataStreams[0].name, - ])); + dataStreamsPrivileges = await getDataStreamsPrivileges(client, [dataStreams[0].name]); } const enhancedDataStreams = enhanceDataStreams({ diff --git a/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.ts b/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.ts index 1bb54798c6804..cef20539f9403 100644 --- a/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/mapping/register_mapping_route.ts @@ -33,7 +33,7 @@ export function registerMappingRoute({ router, lib: { handleEsError } }: RouteDe }; try { - const { body: hit } = await client.asCurrentUser.indices.getMapping(params); + const hit = await client.asCurrentUser.indices.getMapping(params); const responseBody = formatHit(hit, indexName); return response.ok({ body: responseBody }); } catch (error) { diff --git a/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.test.ts b/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.test.ts index aa3591d2d064f..fb104b3dc868f 100644 --- a/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.test.ts +++ b/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.test.ts @@ -29,14 +29,12 @@ describe('[Index management API Routes] Nodes info', () => { // Mock the response from the ES client ('nodes.info()') getNodesInfo.mockResolvedValue({ - body: { - nodes: { - node1: { - plugins: [{ name: 'plugin-1' }, { name: 'plugin-2' }], - }, - node2: { - plugins: [{ name: 'plugin-1' }, { name: 'plugin-3' }], - }, + nodes: { + node1: { + plugins: [{ name: 'plugin-1' }, { name: 'plugin-2' }], + }, + node2: { + plugins: [{ name: 'plugin-1' }, { name: 'plugin-3' }], }, }, }); diff --git a/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.ts b/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.ts index f2cfae32d00fe..5c9751c8506cf 100644 --- a/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/nodes/register_nodes_route.ts @@ -16,7 +16,7 @@ export function registerNodesRoute({ router, lib: { handleEsError } }: RouteDepe const { client } = context.core.elasticsearch; try { - const { body } = await client.asCurrentUser.nodes.info(); + const body = await client.asCurrentUser.nodes.info(); const plugins: Set = Object.values(body.nodes).reduce((acc, nodeInfo) => { nodeInfo.plugins?.forEach(({ name }) => { acc.add(name); diff --git a/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.ts b/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.ts index b942f1976b2fd..ceb59916811d8 100644 --- a/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/settings/register_load_route.ts @@ -36,7 +36,7 @@ export function registerLoadRoute({ router, lib: { handleEsError } }: RouteDepen }; try { - const { body: hit } = await client.asCurrentUser.indices.getSettings(params); + const hit = await client.asCurrentUser.indices.getSettings(params); return response.ok({ body: formatHit(hit) }); } catch (error) { return handleEsError({ error, response }); diff --git a/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.ts b/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.ts index 4021af3b75014..b7a38cb04782e 100644 --- a/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/settings/register_update_route.ts @@ -34,7 +34,7 @@ export function registerUpdateRoute({ router, lib: { handleEsError } }: RouteDep }; try { - const { body: responseBody } = await client.asCurrentUser.indices.putSettings(params); + const responseBody = await client.asCurrentUser.indices.putSettings(params); return response.ok({ body: responseBody }); } catch (error) { return handleEsError({ error, response }); diff --git a/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.ts b/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.ts index 6e74523dbd197..f178cc8ace6bc 100644 --- a/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/stats/register_stats_route.ts @@ -41,7 +41,7 @@ export function registerStatsRoute({ router, lib: { handleEsError } }: RouteDepe }; try { - const { body: hit } = await client.asCurrentUser.indices.stats(params); + const hit = await client.asCurrentUser.indices.stats(params); return response.ok({ body: formatHit(hit, indexName) }); } catch (error) { diff --git a/x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts b/x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts index 21be254eb9d73..20a3e1e97dd6c 100644 --- a/x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts @@ -28,7 +28,7 @@ export function registerCreateRoute({ router, lib: { handleEsError } }: RouteDep } = template; // Check that template with the same name doesn't already exist - const { body: templateExists } = await doesTemplateExist({ + const templateExists = await doesTemplateExist({ name: template.name, client, isLegacy, @@ -48,7 +48,7 @@ export function registerCreateRoute({ router, lib: { handleEsError } }: RouteDep } // Otherwise create new index template - const { body: responseBody } = await saveTemplate({ template, client, isLegacy }); + const responseBody = await saveTemplate({ template, client, isLegacy }); return response.ok({ body: responseBody }); } catch (error) { diff --git a/x-pack/plugins/index_management/server/routes/api/templates/register_get_routes.ts b/x-pack/plugins/index_management/server/routes/api/templates/register_get_routes.ts index 9d0b7302b5587..8eedcee590fd5 100644 --- a/x-pack/plugins/index_management/server/routes/api/templates/register_get_routes.ts +++ b/x-pack/plugins/index_management/server/routes/api/templates/register_get_routes.ts @@ -26,10 +26,9 @@ export function registerGetAllRoute({ router, lib: { handleEsError } }: RouteDep try { const cloudManagedTemplatePrefix = await getCloudManagedTemplatePrefix(client); - const { body: legacyTemplatesEs } = await client.asCurrentUser.indices.getTemplate(); - const { - body: { index_templates: templatesEs }, - } = await client.asCurrentUser.indices.getIndexTemplate(); + const legacyTemplatesEs = await client.asCurrentUser.indices.getTemplate(); + const { index_templates: templatesEs } = + await client.asCurrentUser.indices.getIndexTemplate(); const legacyTemplates = deserializeLegacyTemplateList( legacyTemplatesEs, @@ -74,7 +73,7 @@ export function registerGetOneRoute({ router, lib: { handleEsError } }: RouteDep const cloudManagedTemplatePrefix = await getCloudManagedTemplatePrefix(client); if (isLegacy) { - const { body: indexTemplateByName } = await client.asCurrentUser.indices.getTemplate({ + const indexTemplateByName = await client.asCurrentUser.indices.getTemplate({ name, }); @@ -87,9 +86,8 @@ export function registerGetOneRoute({ router, lib: { handleEsError } }: RouteDep }); } } else { - const { - body: { index_templates: indexTemplates }, - } = await client.asCurrentUser.indices.getIndexTemplate({ name }); + const { index_templates: indexTemplates } = + await client.asCurrentUser.indices.getIndexTemplate({ name }); if (indexTemplates.length > 0) { return response.ok({ diff --git a/x-pack/plugins/index_management/server/routes/api/templates/register_simulate_route.ts b/x-pack/plugins/index_management/server/routes/api/templates/register_simulate_route.ts index e45d86f3e2b27..ab937fc366d4c 100644 --- a/x-pack/plugins/index_management/server/routes/api/templates/register_simulate_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/templates/register_simulate_route.ts @@ -23,7 +23,7 @@ export function registerSimulateRoute({ router, lib: { handleEsError } }: RouteD const template = request.body as TypeOf; try { - const { body: templatePreview } = await client.asCurrentUser.indices.simulateTemplate({ + const templatePreview = await client.asCurrentUser.indices.simulateTemplate({ body: { ...template, // Until ES fixes a bug on their side we need to send a fake index pattern diff --git a/x-pack/plugins/index_management/server/routes/api/templates/register_update_route.ts b/x-pack/plugins/index_management/server/routes/api/templates/register_update_route.ts index 669a1fff66317..f700497e924b4 100644 --- a/x-pack/plugins/index_management/server/routes/api/templates/register_update_route.ts +++ b/x-pack/plugins/index_management/server/routes/api/templates/register_update_route.ts @@ -35,14 +35,14 @@ export function registerUpdateRoute({ router, lib: { handleEsError } }: RouteDep } = template; // Verify the template exists (ES will throw 404 if not) - const { body: templateExists } = await doesTemplateExist({ name, client, isLegacy }); + const templateExists = await doesTemplateExist({ name, client, isLegacy }); if (!templateExists) { return response.notFound(); } // Next, update index template - const { body: responseBody } = await saveTemplate({ template, client, isLegacy }); + const responseBody = await saveTemplate({ template, client, isLegacy }); return response.ok({ body: responseBody }); } catch (error) { diff --git a/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts index 0c0284e328dd3..3ed94af04031f 100644 --- a/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts +++ b/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts @@ -199,7 +199,7 @@ export class KibanaFramework { } as estypes.MlGetBucketsRequest); break; } - return apiResult ? (await apiResult).body : undefined; + return apiResult ? await apiResult : undefined; } public async getIndexPatternsServiceWithRequestContext( diff --git a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts index 83751087d9aff..9f8bd5674dcef 100644 --- a/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts +++ b/x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/get_data.ts @@ -84,7 +84,7 @@ export const getData = async ( filterQuery, customMetric ); - const { body } = await esClient.search(request); + const body = await esClient.search(request); if (body.aggregations) { return handleResponse(body.aggregations, previousNodes); } diff --git a/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts b/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts index f817b68b919ba..674ba977e09c0 100644 --- a/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts +++ b/x-pack/plugins/infra/server/lib/alerting/log_threshold/log_threshold_executor.ts @@ -759,7 +759,7 @@ const getQueryMappingForComparator = (comparator: Comparator) => { }; const getUngroupedResults = async (query: object, esClient: ElasticsearchClient) => { - return decodeOrThrow(UngroupedSearchQueryResponseRT)((await esClient.search(query)).body); + return decodeOrThrow(UngroupedSearchQueryResponseRT)(await esClient.search(query)); }; const getGroupedResults = async (query: object, esClient: ElasticsearchClient) => { @@ -770,7 +770,7 @@ const getGroupedResults = async (query: object, esClient: ElasticsearchClient) = const queryWithAfterKey: any = { ...query }; queryWithAfterKey.body.aggregations.groups.composite.after = lastAfterKey; const groupResponse: GroupedSearchQueryResponse = decodeOrThrow(GroupedSearchQueryResponseRT)( - (await esClient.search(queryWithAfterKey)).body + await esClient.search(queryWithAfterKey) ); compositeGroupBuckets = [ ...compositeGroupBuckets, diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts index 4fbac02cff19b..744fd80134aec 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts @@ -199,7 +199,7 @@ const getMetric: ( ); const compositeBuckets = (await getAllCompositeData( // @ts-expect-error @elastic/elasticsearch SearchResponse.body.timeout is not required - (body) => esClient.search({ body, index }), + (body) => esClient.search({ body, index }, { meta: true }), searchBody, bucketSelector, afterKeyHandler @@ -218,7 +218,7 @@ const getMetric: ( } return groupedResults; } - const { body: result } = await esClient.search({ + const result = await esClient.search({ body: searchBody, index, }); diff --git a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts index 57001d8cbdb1a..1929a91d763d1 100644 --- a/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts +++ b/x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts @@ -5,8 +5,6 @@ * 2.0. */ -// eslint-disable-next-line @kbn/eslint/no-restricted-paths -import { elasticsearchClientMock } from 'src/core/server/elasticsearch/client/mocks'; import { AlertInstanceContext as AlertContext, AlertInstanceState as AlertState, @@ -784,43 +782,39 @@ const services: AlertServicesMock & LifecycleAlertServices { - const from = params?.body.query.bool.filter[0]?.range['@timestamp'].gte; - if (params.index === 'alternatebeat-*') return mocks.changedSourceIdResponse(from); +services.scopedClusterClient.asCurrentUser.search.mockResponseImplementation( + (params?: any): any => { + const from = params?.body.query.bool.filter[0]?.range['@timestamp'].gte; - if (params.index === 'empty-response') return mocks.emptyMetricResponse; + if (params.index === 'alternatebeat-*') return { body: mocks.changedSourceIdResponse(from) }; - const metric = params?.body.query.bool.filter[1]?.exists.field; - if (metric === 'test.metric.3') { - return elasticsearchClientMock.createSuccessTransportRequestPromise( - params?.body.aggs.aggregatedIntervals?.aggregations.aggregatedValueMax - ? mocks.emptyRateResponse - : mocks.emptyMetricResponse - ); - } - if (params?.body.aggs.groupings) { - if (params?.body.aggs.groupings.composite.after) { - return elasticsearchClientMock.createSuccessTransportRequestPromise( - mocks.compositeEndResponse - ); + if (params.index === 'empty-response') return { body: mocks.emptyMetricResponse }; + + const metric = params?.body.query.bool.filter[1]?.exists.field; + if (metric === 'test.metric.3') { + return { + body: params?.body.aggs.aggregatedIntervals?.aggregations.aggregatedValueMax + ? mocks.emptyRateResponse + : mocks.emptyMetricResponse, + }; + } + if (params?.body.aggs.groupings) { + if (params?.body.aggs.groupings.composite.after) { + return { body: mocks.compositeEndResponse }; + } + if (metric === 'test.metric.2') { + return { body: mocks.alternateCompositeResponse(from) }; + } + return { body: mocks.basicCompositeResponse(from) }; } if (metric === 'test.metric.2') { - return elasticsearchClientMock.createSuccessTransportRequestPromise( - mocks.alternateCompositeResponse(from) - ); + return { body: mocks.alternateMetricResponse() }; } - return elasticsearchClientMock.createSuccessTransportRequestPromise( - mocks.basicCompositeResponse(from) - ); + return { body: mocks.basicMetricResponse() }; } - if (metric === 'test.metric.2') { - return elasticsearchClientMock.createSuccessTransportRequestPromise( - mocks.alternateMetricResponse() - ); - } - return elasticsearchClientMock.createSuccessTransportRequestPromise(mocks.basicMetricResponse()); -}); +); + services.savedObjectsClient.get.mockImplementation(async (type: string, sourceId: string) => { if (sourceId === 'alternate') return { @@ -909,7 +903,9 @@ declare global { namespace jest { interface Matchers { toBeAlertAction(action?: Action): R; + toBeNoDataAction(action?: Action): R; + toBeErrorAction(action?: Action): R; } } diff --git a/x-pack/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts b/x-pack/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts index d1d136c741876..316f868589064 100644 --- a/x-pack/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts +++ b/x-pack/plugins/infra/server/lib/log_analysis/log_entry_categories_analysis.ts @@ -416,20 +416,18 @@ async function fetchLogEntryCategoryExamples( const { hits: { hits }, } = decodeOrThrow(logEntryCategoryExamplesResponseRT)( - ( - await requestContext.core.elasticsearch.client.asCurrentUser.search( - createLogEntryCategoryExamplesQuery( - indices, - runtimeMappings, - timestampField, - tiebreakerField, - startTime, - endTime, - categoryQuery, - exampleCount - ) + await requestContext.core.elasticsearch.client.asCurrentUser.search( + createLogEntryCategoryExamplesQuery( + indices, + runtimeMappings, + timestampField, + tiebreakerField, + startTime, + endTime, + categoryQuery, + exampleCount ) - ).body + ) ); const esSearchSpan = finalizeEsSearchSpan(); diff --git a/x-pack/plugins/ingest_pipelines/server/routes/api/create.ts b/x-pack/plugins/ingest_pipelines/server/routes/api/create.ts index b078ca051a272..90893b2841cc0 100644 --- a/x-pack/plugins/ingest_pipelines/server/routes/api/create.ts +++ b/x-pack/plugins/ingest_pipelines/server/routes/api/create.ts @@ -38,7 +38,7 @@ export const registerCreateRoute = ({ try { // Check that a pipeline with the same name doesn't already exist - const { body: pipelineByName } = await clusterClient.asCurrentUser.ingest.getPipeline({ + const pipelineByName = await clusterClient.asCurrentUser.ingest.getPipeline({ id: name, }); @@ -59,7 +59,7 @@ export const registerCreateRoute = ({ } try { - const { body: response } = await clusterClient.asCurrentUser.ingest.putPipeline({ + const response = await clusterClient.asCurrentUser.ingest.putPipeline({ id: name, body: { description, diff --git a/x-pack/plugins/ingest_pipelines/server/routes/api/documents.ts b/x-pack/plugins/ingest_pipelines/server/routes/api/documents.ts index 6f7233c70dbfe..d9f27ed84f899 100644 --- a/x-pack/plugins/ingest_pipelines/server/routes/api/documents.ts +++ b/x-pack/plugins/ingest_pipelines/server/routes/api/documents.ts @@ -31,7 +31,7 @@ export const registerDocumentsRoute = ({ const { index, id } = req.params; try { - const { body: document } = await clusterClient.asCurrentUser.get({ index, id }); + const document = await clusterClient.asCurrentUser.get({ index, id }); const { _id, _index, _source } = document; diff --git a/x-pack/plugins/ingest_pipelines/server/routes/api/get.ts b/x-pack/plugins/ingest_pipelines/server/routes/api/get.ts index b512ebda5ecdb..7da2cf3e6a13a 100644 --- a/x-pack/plugins/ingest_pipelines/server/routes/api/get.ts +++ b/x-pack/plugins/ingest_pipelines/server/routes/api/get.ts @@ -21,7 +21,7 @@ export const registerGetRoutes = ({ router, lib: { handleEsError } }: RouteDepen const { client: clusterClient } = ctx.core.elasticsearch; try { - const { body: pipelines } = await clusterClient.asCurrentUser.ingest.getPipeline(); + const pipelines = await clusterClient.asCurrentUser.ingest.getPipeline(); return res.ok({ body: deserializePipelines(pipelines) }); } catch (error) { @@ -48,7 +48,7 @@ export const registerGetRoutes = ({ router, lib: { handleEsError } }: RouteDepen const { name } = req.params; try { - const { body: pipelines } = await clusterClient.asCurrentUser.ingest.getPipeline({ + const pipelines = await clusterClient.asCurrentUser.ingest.getPipeline({ id: name, }); diff --git a/x-pack/plugins/ingest_pipelines/server/routes/api/privileges.ts b/x-pack/plugins/ingest_pipelines/server/routes/api/privileges.ts index a2882fd7855d6..c1d79eabceb04 100644 --- a/x-pack/plugins/ingest_pipelines/server/routes/api/privileges.ts +++ b/x-pack/plugins/ingest_pipelines/server/routes/api/privileges.ts @@ -38,12 +38,11 @@ export const registerPrivilegesRoute = ({ router, config }: RouteDependencies) = const { client: clusterClient } = ctx.core.elasticsearch; - const { - body: { has_all_requested: hasAllPrivileges, cluster }, - } = await clusterClient.asCurrentUser.security.hasPrivileges({ - // @ts-expect-error @elastic/elasticsearch SecurityClusterPrivilege doesn’t contain all the priviledges - body: { cluster: APP_CLUSTER_REQUIRED_PRIVILEGES }, - }); + const { has_all_requested: hasAllPrivileges, cluster } = + await clusterClient.asCurrentUser.security.hasPrivileges({ + // @ts-expect-error @elastic/elasticsearch SecurityClusterPrivilege doesn’t contain all the priviledges + body: { cluster: APP_CLUSTER_REQUIRED_PRIVILEGES }, + }); if (!hasAllPrivileges) { privilegesResult.missingPrivileges.cluster = extractMissingPrivileges(cluster); diff --git a/x-pack/plugins/ingest_pipelines/server/routes/api/simulate.ts b/x-pack/plugins/ingest_pipelines/server/routes/api/simulate.ts index c6d628294a734..9e4e894e2c7cb 100644 --- a/x-pack/plugins/ingest_pipelines/server/routes/api/simulate.ts +++ b/x-pack/plugins/ingest_pipelines/server/routes/api/simulate.ts @@ -34,7 +34,7 @@ export const registerSimulateRoute = ({ const { pipeline, documents, verbose } = req.body; try { - const { body: response } = await clusterClient.asCurrentUser.ingest.simulate({ + const response = await clusterClient.asCurrentUser.ingest.simulate({ verbose, body: { pipeline, diff --git a/x-pack/plugins/ingest_pipelines/server/routes/api/update.ts b/x-pack/plugins/ingest_pipelines/server/routes/api/update.ts index 35af1395f5e37..51983f12e6a60 100644 --- a/x-pack/plugins/ingest_pipelines/server/routes/api/update.ts +++ b/x-pack/plugins/ingest_pipelines/server/routes/api/update.ts @@ -39,7 +39,7 @@ export const registerUpdateRoute = ({ // Verify pipeline exists; ES will throw 404 if it doesn't await clusterClient.asCurrentUser.ingest.getPipeline({ id: name }); - const { body: response } = await clusterClient.asCurrentUser.ingest.putPipeline({ + const response = await clusterClient.asCurrentUser.ingest.putPipeline({ id: name, body: { description, diff --git a/x-pack/plugins/lens/common/expressions/datatable/datatable_column.ts b/x-pack/plugins/lens/common/expressions/datatable/datatable_column.ts index 892631c3b0f45..7d9954697f493 100644 --- a/x-pack/plugins/lens/common/expressions/datatable/datatable_column.ts +++ b/x-pack/plugins/lens/common/expressions/datatable/datatable_column.ts @@ -6,6 +6,7 @@ */ import type { Direction } from '@elastic/eui'; +import { SortingHint } from '../..'; import type { CustomPaletteState, PaletteOutput, @@ -28,6 +29,7 @@ export type ColumnConfigArg = Omit & { type: 'lens_datatable_column'; palette?: PaletteOutput; summaryRowValue?: unknown; + sortingHint?: SortingHint; }; export interface ColumnState { @@ -53,7 +55,7 @@ export type DatatableColumnResult = ColumnState & { type: 'lens_datatable_column export const datatableColumn: ExpressionFunctionDefinition< 'lens_datatable_column', null, - ColumnState, + ColumnState & { sortingHint?: SortingHint }, DatatableColumnResult > = { name: 'lens_datatable_column', @@ -64,6 +66,7 @@ export const datatableColumn: ExpressionFunctionDefinition< args: { columnId: { types: ['string'], help: '' }, alignment: { types: ['string'], help: '' }, + sortingHint: { types: ['string'], help: '' }, hidden: { types: ['boolean'], help: '' }, width: { types: ['number'], help: '' }, isTransposed: { types: ['boolean'], help: '' }, diff --git a/x-pack/plugins/lens/common/expressions/datatable/datatable_fn.ts b/x-pack/plugins/lens/common/expressions/datatable/datatable_fn.ts index 4cd2a57cbc429..9d9e666e12762 100644 --- a/x-pack/plugins/lens/common/expressions/datatable/datatable_fn.ts +++ b/x-pack/plugins/lens/common/expressions/datatable/datatable_fn.ts @@ -64,11 +64,13 @@ export const datatableFn = } if (sortBy && columnsReverseLookup[sortBy] && sortDirection !== 'none') { + const sortingHint = args.columns.find((col) => col.columnId === sortBy)?.sortingHint; // Sort on raw values for these types, while use the formatted value for the rest const sortingCriteria = getSortingCriteria( - isRange(columnsReverseLookup[sortBy]?.meta) - ? 'range' - : columnsReverseLookup[sortBy]?.meta?.type, + sortingHint ?? + (isRange(columnsReverseLookup[sortBy]?.meta) + ? 'range' + : columnsReverseLookup[sortBy]?.meta?.type), sortBy, formatters[sortBy], sortDirection diff --git a/x-pack/plugins/lens/common/expressions/datatable/sorting.test.tsx b/x-pack/plugins/lens/common/expressions/datatable/sorting.test.tsx index b5ff0a7e6915b..24dca87c7f138 100644 --- a/x-pack/plugins/lens/common/expressions/datatable/sorting.test.tsx +++ b/x-pack/plugins/lens/common/expressions/datatable/sorting.test.tsx @@ -24,7 +24,7 @@ function testSorting({ input: unknown[]; output: unknown[]; direction: 'asc' | 'desc'; - type: DatatableColumnType | 'range'; + type: DatatableColumnType | 'range' | 'version'; keepLast?: boolean; // special flag to handle values that should always be last no matter the direction reverseOutput?: boolean; }) { @@ -106,6 +106,37 @@ describe('Data sorting criteria', () => { }); }); + describe('Version sorting', () => { + for (const direction of ['asc', 'desc'] as const) { + it(`should provide the version criteria for terms values (${direction})`, () => { + testSorting({ + input: ['1.21.0', '1.1.0', '1.112.0', '1.0.0'], + output: ['1.0.0', '1.1.0', '1.21.0', '1.112.0'], + direction, + type: 'version', + }); + }); + } + + it('should sort non-version stuff to the end', () => { + testSorting({ + input: ['1.21.0', undefined, '1.1.0', null, '1.112.0', '__other__', '1.0.0'], + output: ['1.0.0', '1.1.0', '1.21.0', '1.112.0', undefined, null, '__other__'], + direction: 'asc', + type: 'version', + reverseOutput: false, + }); + + testSorting({ + input: ['1.21.0', undefined, '1.1.0', null, '1.112.0', '__other__', '1.0.0'], + output: ['1.112.0', '1.21.0', '1.1.0', '1.0.0', undefined, null, '__other__'], + direction: 'desc', + type: 'version', + reverseOutput: false, + }); + }); + }); + describe('String or anything else as string', () => { for (const direction of ['asc', 'desc'] as const) { it(`should provide the string criteria for terms values (${direction})`, () => { diff --git a/x-pack/plugins/lens/common/expressions/datatable/sorting.tsx b/x-pack/plugins/lens/common/expressions/datatable/sorting.tsx index 30060c10ea37e..d4a3ba0ea6908 100644 --- a/x-pack/plugins/lens/common/expressions/datatable/sorting.tsx +++ b/x-pack/plugins/lens/common/expressions/datatable/sorting.tsx @@ -5,6 +5,8 @@ * 2.0. */ +import versionCompare from 'compare-versions'; +import valid from 'semver/functions/valid'; import ipaddr from 'ipaddr.js'; import type { IPv4, IPv6 } from 'ipaddr.js'; import type { FieldFormat } from '../../../../../../src/plugins/field_formats/common'; @@ -48,6 +50,25 @@ function getIPCriteria(sortBy: string, directionFactor: number) { }; } +function getVersionCriteria(sortBy: string, directionFactor: number) { + return (rowA: Record, rowB: Record) => { + const valueA = String(rowA[sortBy] ?? ''); + const valueB = String(rowB[sortBy] ?? ''); + const aInvalid = !valueA || !valid(valueA); + const bInvalid = !valueB || !valid(valueB); + if (aInvalid && bInvalid) { + return 0; + } + if (aInvalid) { + return 1; + } + if (bInvalid) { + return -1; + } + return directionFactor * versionCompare(valueA, valueB); + }; +} + function getRangeCriteria(sortBy: string, directionFactor: number) { // fill missing fields with these open bounds to perform number sorting const openRange = { gte: -Infinity, lt: Infinity }; @@ -86,6 +107,9 @@ export function getSortingCriteria( // IP have a special sorting else if (type === 'ip') { criteria = getIPCriteria(sortBy, directionFactor); + } else if (type === 'version') { + // do not wrap in undefined behandler because of special invalid-case handling + return getVersionCriteria(sortBy, directionFactor); } else { // use a string sorter for the rest criteria = (rowA: Record, rowB: Record) => { diff --git a/x-pack/plugins/lens/common/types.ts b/x-pack/plugins/lens/common/types.ts index 0243aeef41c2d..f3572fea90f9e 100644 --- a/x-pack/plugins/lens/common/types.ts +++ b/x-pack/plugins/lens/common/types.ts @@ -47,6 +47,8 @@ export interface ColorStop { stop: number; } +export type SortingHint = 'version'; + export interface CustomPaletteParams { name?: string; reverse?: boolean; diff --git a/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx b/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx index ccfd6a49a2d8b..6f5fb9c17a5aa 100644 --- a/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx +++ b/x-pack/plugins/lens/public/datatable_visualization/visualization.tsx @@ -363,6 +363,7 @@ export const getDatatableVisualization = ({ : [], reverse: false, // managed at UI level }; + const sortingHint = datasource!.getOperationForColumnId(column.columnId)!.sortingHint; const hasNoSummaryRow = column.summaryRow == null || column.summaryRow === 'none'; @@ -388,6 +389,7 @@ export const getDatatableVisualization = ({ summaryLabel: hasNoSummaryRow ? [] : [column.summaryLabel ?? getDefaultSummaryLabel(column.summaryRow!)], + sortingHint: sortingHint ? [sortingHint] : [], }, }, ], diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx index 005cbd4b11977..8efb667120f77 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/indexpattern.tsx @@ -48,12 +48,17 @@ import { getVisualDefaultsForLayer, isColumnInvalid } from './utils'; import { normalizeOperationDataType, isDraggedField } from './pure_utils'; import { LayerPanel } from './layerpanel'; import { GenericIndexPatternColumn, getErrorMessages, insertNewColumn } from './operations'; -import { IndexPatternField, IndexPatternPrivateState, IndexPatternPersistedState } from './types'; +import { + IndexPatternField, + IndexPatternPrivateState, + IndexPatternPersistedState, + IndexPattern, +} from './types'; import { KibanaContextProvider, KibanaThemeProvider, } from '../../../../../src/plugins/kibana_react/public'; -import { DataPublicPluginStart } from '../../../../../src/plugins/data/public'; +import { DataPublicPluginStart, ES_FIELD_TYPES } from '../../../../../src/plugins/data/public'; import { VisualizeFieldContext } from '../../../../../src/plugins/ui_actions/public'; import { mergeLayer } from './state_helpers'; import { Datasource, StateSetter } from '../types'; @@ -69,15 +74,22 @@ export { deleteColumn } from './operations'; export function columnToOperation( column: GenericIndexPatternColumn, - uniqueLabel?: string + uniqueLabel?: string, + dataView?: IndexPattern ): Operation { const { dataType, label, isBucketed, scale, operationType } = column; + const fieldTypes = + 'sourceField' in column ? dataView?.getFieldByName(column.sourceField)?.esTypes : undefined; return { dataType: normalizeOperationDataType(dataType), isBucketed, scale, label: uniqueLabel || label, isStaticValue: operationType === 'static_value', + sortingHint: + column.dataType === 'string' && fieldTypes?.includes(ES_FIELD_TYPES.VERSION) + ? 'version' + : undefined, }; } @@ -446,7 +458,11 @@ export function getIndexPatternDatasource({ if (layer && layer.columns[columnId]) { if (!isReferenced(layer, columnId)) { - return columnToOperation(layer.columns[columnId], columnLabelMap[columnId]); + return columnToOperation( + layer.columns[columnId], + columnLabelMap[columnId], + state.indexPatterns[layer.indexPatternId] + ); } } return null; diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.test.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.test.tsx index a204c1ec590a4..9984bc4c22ab3 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.test.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.test.tsx @@ -41,7 +41,7 @@ describe('filter popover', () => { }, setFilter: jest.fn(), indexPattern: createMockedIndexPattern(), - Button: () => trigger, + button: trigger, isOpen: true, triggerClose: () => {}, }; diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.tsx index cf95ae2dfd0e8..b0e0c6c1dfa41 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/filters/filter_popover.tsx @@ -19,14 +19,14 @@ export const FilterPopover = ({ filter, setFilter, indexPattern, - Button, + button, isOpen, triggerClose, }: { filter: FilterValue; setFilter: Function; indexPattern: IndexPattern; - Button: React.FunctionComponent; + button: React.ReactChild; isOpen: boolean; triggerClose: () => void; }) => { @@ -78,12 +78,13 @@ export const FilterPopover = ({ isOpen={isOpen} ownFocus closePopover={() => triggerClose()} - button={