diff --git a/.bazeliskversion b/.bazeliskversion index 4dae2985b58cc..1cac385c6cb86 100644 --- a/.bazeliskversion +++ b/.bazeliskversion @@ -1 +1 @@ -1.10.1 +1.11.0 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/.buildkite/scripts/steps/cloud/purge.js b/.buildkite/scripts/steps/cloud/purge.js index 0eccb55cef830..336f7daf736ae 100644 --- a/.buildkite/scripts/steps/cloud/purge.js +++ b/.buildkite/scripts/steps/cloud/purge.js @@ -26,7 +26,7 @@ for (const deployment of prDeployments) { const lastCommit = pullRequest.commits.slice(-1)[0]; const lastCommitTimestamp = new Date(lastCommit.committedDate).getTime() / 1000; - if (pullRequest.state !== 'open') { + if (pullRequest.state !== 'OPEN') { console.log(`Pull Request #${prNumber} is no longer open, will delete associated deployment`); deploymentsToPurge.push(deployment); } else if (!pullRequest.labels.filter((label) => label.name === 'ci:deploy-cloud')) { @@ -50,6 +50,9 @@ for (const deployment of deploymentsToPurge) { console.log(`Scheduling deployment for deletion: ${deployment.name} / ${deployment.id}`); try { execSync(`ecctl deployment shutdown --force '${deployment.id}'`, { stdio: 'inherit' }); + execSync(`vault delete secret/kibana-issues/dev/cloud-deploy/${deployment.name}`, { + stdio: 'inherit', + }); } catch (ex) { console.error(ex.toString()); } diff --git a/.buildkite/scripts/steps/code_coverage/oss_cigroup.sh b/.buildkite/scripts/steps/code_coverage/oss_cigroup.sh index 44d4bb500e1d2..7a54e770b8a3e 100755 --- a/.buildkite/scripts/steps/code_coverage/oss_cigroup.sh +++ b/.buildkite/scripts/steps/code_coverage/oss_cigroup.sh @@ -20,10 +20,19 @@ export CODE_COVERAGE=1 echo "--- OSS CI Group $CI_GROUP" echo " -> Running Functional tests with code coverage" -node scripts/functional_tests \ +NODE_OPTIONS=--max_old_space_size=14336 \ + ./node_modules/.bin/nyc \ + --nycrc-path src/dev/code_coverage/nyc_config/nyc.server.config.js \ + node scripts/functional_tests \ --include-tag "ciGroup$CI_GROUP" \ --exclude-tag "skipCoverage" || true +if [[ -d "$KIBANA_DIR/target/kibana-coverage/server" ]]; then + echo "--- Server side code coverage collected" + mkdir -p target/kibana-coverage/functional + mv target/kibana-coverage/server/coverage-final.json "target/kibana-coverage/functional/oss-${CI_GROUP}-server-coverage.json" +fi + if [[ -d "$KIBANA_DIR/target/kibana-coverage/functional" ]]; then echo "--- Merging code coverage for CI Group $CI_GROUP" yarn nyc report --nycrc-path src/dev/code_coverage/nyc_config/nyc.functional.config.js --reporter json diff --git a/.buildkite/scripts/steps/code_coverage/xpack_cigroup.sh b/.buildkite/scripts/steps/code_coverage/xpack_cigroup.sh index c85191e4e4632..a3fdff6690485 100755 --- a/.buildkite/scripts/steps/code_coverage/xpack_cigroup.sh +++ b/.buildkite/scripts/steps/code_coverage/xpack_cigroup.sh @@ -22,12 +22,21 @@ echo " -> Running X-Pack functional tests with code coverage" cd "$XPACK_DIR" -node scripts/functional_tests \ +NODE_OPTIONS=--max_old_space_size=14336 \ + ./../node_modules/.bin/nyc \ + --nycrc-path ./../src/dev/code_coverage/nyc_config/nyc.server.config.js \ + node scripts/functional_tests \ --include-tag "ciGroup$CI_GROUP" \ --exclude-tag "skipCoverage" || true cd "$KIBANA_DIR" +if [[ -d "$KIBANA_DIR/target/kibana-coverage/server" ]]; then + echo "--- Server side code coverage collected" + mkdir -p target/kibana-coverage/functional + mv target/kibana-coverage/server/coverage-final.json "target/kibana-coverage/functional/xpack-${CI_GROUP}-server-coverage.json" +fi + if [[ -d "$KIBANA_DIR/target/kibana-coverage/functional" ]]; then echo "--- Merging code coverage for CI Group $CI_GROUP" yarn nyc report --nycrc-path src/dev/code_coverage/nyc_config/nyc.functional.config.js --reporter json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 604179ec75706..a8619643d1b2e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -138,13 +138,11 @@ # Uptime /x-pack/plugins/uptime @elastic/uptime /x-pack/plugins/ux @elastic/uptime -/x-pack/plugins/observability/public/components/shared/exploratory_view @elastic/uptime /x-pack/test/functional_with_es_ssl/apps/uptime @elastic/uptime /x-pack/test/functional/apps/uptime @elastic/uptime /x-pack/test/functional/es_archives/uptime @elastic/uptime /x-pack/test/functional/services/uptime @elastic/uptime /x-pack/test/api_integration/apis/uptime @elastic/uptime -/x-pack/plugins/observability/public/components/shared/exploratory_view @elastic/uptime # Client Side Monitoring / Uptime (lives in APM directories but owned by Uptime) /x-pack/plugins/apm/public/application/uxApp.tsx @elastic/uptime @@ -268,6 +266,7 @@ /packages/kbn-std/ @elastic/kibana-core /packages/kbn-config/ @elastic/kibana-core /packages/kbn-logging/ @elastic/kibana-core +/packages/kbn-logging-mocks/ @elastic/kibana-core /packages/kbn-http-tools/ @elastic/kibana-core /src/plugins/saved_objects_management/ @elastic/kibana-core /src/dev/run_check_published_api_changes.ts @elastic/kibana-core diff --git a/.github/ISSUE_TEMPLATE/APM.yml b/.github/ISSUE_TEMPLATE/APM.yml deleted file mode 100644 index cbcabdee25718..0000000000000 --- a/.github/ISSUE_TEMPLATE/APM.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: APM Issue -description: Issues related to the curated APM UI in Kibana -labels: Team:apm -title: "[APM] " -body: - - type: markdown - attributes: - value: | - Thank you for our interest in Elastic APM. This issue tracker is meant for reporting bugs and problems with APM UI. For questions around how to use or setup APM, please refer to our [Discuss Forum](https://discuss.elastic.co/) - - type: input - attributes: - label: Kibana version - validations: - required: true - - type: input - attributes: - label: APM Server version (if applicable) - validations: - required: false - - type: input - attributes: - label: Elasticsearch version (if applicable) - validations: - required: false - - type: textarea - attributes: - label: Steps to Reproduce - description: Steps to reproduce the behavior. - validations: - required: false - - type: textarea - attributes: - label: Expected Behavior - description: A concise description of what you expected to happen. - validations: - required: false - - type: textarea - attributes: - label: Actual Behavior - description: A concise description of what you're experiencing. - validations: - required: false - - diff --git a/.github/workflows/add-to-fleet-project.yml b/.github/workflows/add-to-fleet-project.yml new file mode 100644 index 0000000000000..59b3513c85284 --- /dev/null +++ b/.github/workflows/add-to-fleet-project.yml @@ -0,0 +1,36 @@ +name: Add to Fleet:Quality project +on: + issues: + types: + - labeled +jobs: + add_to_project: + runs-on: ubuntu-latest + if: | + contains(github.event.issue.labels.*.name, 'Team:Fleet') && ( + contains(github.event.issue.labels.*.name, 'technical debt') || + contains(github.event.issue.labels.*.name, 'bug') || + contains(github.event.issue.labels.*.name, 'performance') || + contains(github.event.issue.labels.*.name, 'failed-test') || + contains(github.event.issue.labels.*.name, 'chore') + ) + steps: + - uses: octokit/graphql-action@v2.x + id: add_to_project + with: + headers: '{"GraphQL-Features": "projects_next_graphql"}' + query: | + mutation add_to_project($projectid:String!,$contentid:String!) { + addProjectNextItem(input:{projectId:$projectid contentId:$contentid}) { + projectNextItem { + id + } + } + } + projectid: ${{ env.PROJECT_ID }} + contentid: ${{ github.event.issue.node_id }} + env: + # https://github.com/orgs/elastic/projects/763 + PROJECT_ID: "PN_kwDOAGc3Zs4AAsH6" + # Token with `write:org` access + GITHUB_TOKEN: ${{ secrets.FLEET_TECH_KIBANA_USER_TOKEN }} diff --git a/.github/workflows/dev-doc-builder.yml b/.github/workflows/dev-doc-builder.yml deleted file mode 100644 index bbc8745854e48..0000000000000 --- a/.github/workflows/dev-doc-builder.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Dev docs -on: - pull_request_target: - paths: - - '**.mdx' - - '**.docnav.json' - - '**.docapi.json' - - '**.devdocs.json' - - '**.jpg' - - '**.jpeg' - - '**.png' - - '**.gif' - types: [closed, opened, synchronize, reopened] - -jobs: - internal-docs: - uses: elastic/workflows/.github/workflows/dev-docs-builder.yml@main - secrets: - VERCEL_GITHUB_TOKEN: ${{ secrets.VERCEL_GITHUB_TOKEN }} - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID_DOCS_DEV: ${{ secrets.VERCEL_PROJECT_ID_DOCS_DEV }} diff --git a/.github/workflows/label-qa-fixed-in.yml b/.github/workflows/label-qa-fixed-in.yml new file mode 100644 index 0000000000000..e1dafa061f623 --- /dev/null +++ b/.github/workflows/label-qa-fixed-in.yml @@ -0,0 +1,78 @@ +name: Add QA labels to Fleet issues +on: + pull_request: + types: + - closed + +jobs: + fetch_issues_to_label: + runs-on: ubuntu-latest + # Only run on PRs that were merged for the Fleet team + if: | + github.event.pull_request.merged_at && + contains(github.event.pull_request.labels.*.name, 'Team:Fleet') + outputs: + matrix: ${{ steps.issues_to_label.outputs.value }} + label_ids: ${{ steps.label_ids.outputs.value }} + steps: + - uses: octokit/graphql-action@v2.x + id: closing_issues + with: + query: | + query closingIssueNumbersQuery($prnumber: Int!) { + repository(owner: "elastic", name: "kibana") { + pullRequest(number: $prnumber) { + closingIssuesReferences(first: 10) { + nodes { + id + labels(first: 20) { + nodes { + id + name + } + } + } + } + } + } + } + prnumber: ${{ github.event.number }} + token: ${{ secrets.GITHUB_TOKEN }} + - uses: sergeysova/jq-action@v2 + id: issues_to_label + with: + # Map to the issues' node id + cmd: echo $CLOSING_ISSUES | jq -c '.repository.pullRequest.closingIssuesReferences.nodes | map(.id)' + multiline: true + env: + CLOSING_ISSUES: ${{ steps.closing_issues.outputs.data }} + - uses: sergeysova/jq-action@v2 + id: label_ids + with: + # Get list of version labels on pull request and map to label's node id, append 'QA:Ready For Testing' id ("MDU6TGFiZWwyNTQ1NjcwOTI4") + cmd: echo $PR_LABELS | jq -c 'map(select(.name | test("v[0-9]+\\.[0-9]+\\.[0-9]+")) | .node_id) + ["MDU6TGFiZWwyNTQ1NjcwOTI4"]' + multiline: true + env: + PR_LABELS: ${{ toJSON(github.event.pull_request.labels) }} + + label_issues: + needs: fetch_issues_to_label + runs-on: ubuntu-latest + # For each issue closed by the PR run this job + strategy: + matrix: + issueNodeId: ${{ fromJSON(needs.fetch_issues_to_label.outputs.matrix) }} + name: Label issue ${{ matrix.issueNodeId }} + steps: + - uses: octokit/graphql-action@v2.x + id: add_labels_to_closed_issue + with: + query: | + mutation add_label($issueid:String!, $labelids:[String!]!) { + addLabelsToLabelable(input: {labelableId: $issueid, labelIds: $labelids}) { + clientMutationId + } + } + issueid: ${{ matrix.issueNodeId }} + labelids: ${{ needs.fetch_issues_to_label.outputs.label_ids }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 18302cebd1641..818d3a472d52c 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,7 @@ npm-debug.log* .ci/bash_standard_lib.sh .gradle .vagrant +.envrc ## @cypress/snapshot from apm plugin /snapshots.js 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/dev_docs/key_concepts/building_blocks.mdx b/dev_docs/key_concepts/building_blocks.mdx index 6536019f668cf..61e3a711775c3 100644 --- a/dev_docs/key_concepts/building_blocks.mdx +++ b/dev_docs/key_concepts/building_blocks.mdx @@ -122,6 +122,12 @@ sharing and space isolation, and tags. **Github labels**: `Team:Core`, `Feature:Saved Objects` +## Advanced Settings + + + - + - + - + +`uiSettings` are registered synchronously during `core`'s setup lifecycle phase. This means that once you add a new advanced setting, you cannot change or remove it without . + +### Configuration with Advanced Settings UI + +The `uiSettings` service is the programmatic interface to Kibana's Advanced Settings UI. Kibana plugins use the service to extend Kibana UI Settings Management with custom settings for a plugin. + +Configuration through the Advanced Settings UI is restricted to users authorised to access the Advanced Settings page. Users who don't have permissions to change these values default to using the csettings configuration defined for the space that they are in. The `config` saved object can be shared between spaces. + +### Configuration with UI settings overrides + +When a setting is configured as an override in `kibana.yml`, it overrides any other value store in the `config` saved object. The override applies to Kibana as a whole for all spaces and users, and the option is disabled on the Advanced Settings page. We refer to these as "global" overrides. + +Note: If an override is misconfigured, it fails config validation and prevents Kibana from starting up. Validation is, however, limited to value _type_ and not to _key_ (name). For example, when a plugin registers the `my_plugin_foo: 42` setting , then declares the following override, the config validation fails: + +```kibana.yml +uiSettings.overrides: + my_plugin_foo: "42" +``` +The following override results in a successful config validation: + +```kibana.yml +uiSettings.overrides: + my_pluginFoo: 42 +``` + +### Client side usage + +On the client, the `uiSettings` service is accessible directly from `core` and the client provides plugins access to the `config` entries stored in Elasticsearch. + + + Refer to [the client-side uiSettings service API docs](https://github.com/elastic/kibana/blob/main/docs/development/core/server/kibana-plugin-core-public.iuisettingsclient.md) + + +The following is a basic example for using the `uiSettings` service: + +**src/plugins/charts/public/plugin.ts** +```ts +import { Plugin, CoreSetup } from 'kibana/public'; +import { ExpressionsSetup } from '../../expressions/public'; +import { palette, systemPalette } from '../common'; + +import { ThemeService, LegacyColorsService } from './services'; +import { PaletteService } from './services/palettes/service'; +import { ActiveCursor } from './services/active_cursor'; + +export type Theme = Omit; +export type Color = Omit; + +interface SetupDependencies { + expressions: ExpressionsSetup; +} + +/** @public */ +export interface ChartsPluginSetup { + legacyColors: Color; + theme: Theme; + palettes: ReturnType; +} + +/** @public */ +export type ChartsPluginStart = ChartsPluginSetup & { + activeCursor: ActiveCursor; +}; + +/** @public */ +export class ChartsPlugin implements Plugin { + private readonly themeService = new ThemeService(); + private readonly legacyColorsService = new LegacyColorsService(); + private readonly paletteService = new PaletteService(); + private readonly activeCursor = new ActiveCursor(); + + private palettes: undefined | ReturnType; + + public setup(core: CoreSetup, dependencies: SetupDependencies): ChartsPluginSetup { + dependencies.expressions.registerFunction(palette); + dependencies.expressions.registerFunction(systemPalette); + this.themeService.init(core.uiSettings); + this.legacyColorsService.init(core.uiSettings); + this.palettes = this.paletteService.setup(this.legacyColorsService); + + this.activeCursor.setup(); + + return { + legacyColors: this.legacyColorsService, + theme: this.themeService, + palettes: this.palettes, + }; + } + + public start(): ChartsPluginStart { + return { + legacyColors: this.legacyColorsService, + theme: this.themeService, + palettes: this.palettes!, + activeCursor: this.activeCursor, + }; + } +} + +``` + +### Server side usage + +On the server side, `uiSettings` are accessible directly from `core`. The following example shows how to register a new setting with the minimum required schema parameter against which validations are performed on read and write. +The example also shows how plugins can leverage the optional deprecation parameter on registration for handling deprecation notices and renames. The deprecation warnings are rendered in the Advanced Settings UI and should also be added to the Configure Kibana guide. + + + Refer to [the server-side uiSettings service API docs](https://github.com/elastic/kibana/blob/main/docs/development/core/server/kibana-plugin-core-server.iuisettingsclient.md) + + +**src/plugins/charts/server/plugin.ts** + +```ts +import { i18n } from '@kbn/i18n'; +import { schema } from '@kbn/config-schema'; +import { CoreSetup, Plugin } from 'kibana/server'; +import { COLOR_MAPPING_SETTING, LEGACY_TIME_AXIS, palette, systemPalette } from '../common'; +import { ExpressionsServerSetup } from '../../expressions/server'; + +interface SetupDependencies { + expressions: ExpressionsServerSetup; +} + +export class ChartsServerPlugin implements Plugin { + public setup(core: CoreSetup, dependencies: SetupDependencies) { + dependencies.expressions.registerFunction(palette); + dependencies.expressions.registerFunction(systemPalette); + core.uiSettings.register({ + [COLOR_MAPPING_SETTING]: { + name: i18n.translate('charts.advancedSettings.visualization.colorMappingTitle', { + defaultMessage: 'Color mapping', + }), + value: JSON.stringify({ + Count: '#00A69B', + }), + type: 'json', + description: i18n.translate('charts.advancedSettings.visualization.colorMappingText', { + defaultMessage: + 'Maps values to specific colors in charts using the Compatibility palette.', + }), + deprecation: { + message: i18n.translate( + 'charts.advancedSettings.visualization.colorMappingTextDeprecation', + { + defaultMessage: + 'This setting is deprecated and will not be supported in a future version.', + } + ), + docLinksKey: 'visualizationSettings', + }, + category: ['visualization'], + schema: schema.string(), + }, + ... + }); + + return {}; + } + + public start() { + return {}; + } + + public stop() {} +} +``` +For optimal Kibana performance, `uiSettings` are cached. Any changes that require a cache refresh should use the `requiresPageReload` parameter on registration. + +For example, changing the time filter refresh interval triggers a prompt in the UI that the page needs to be refreshed to save the new value: + +**src/plugins/data/server/ui_settings.ts** + +```ts +import { i18n } from '@kbn/i18n'; +import { schema } from '@kbn/config-schema'; +import type { DocLinksServiceSetup, UiSettingsParams } from 'kibana/server'; +import { DEFAULT_QUERY_LANGUAGE, UI_SETTINGS } from '../common'; + +export function getUiSettings( + docLinks: DocLinksServiceSetup +): Record> { + return { + ... + [UI_SETTINGS.TIMEPICKER_REFRESH_INTERVAL_DEFAULTS]: { + name: i18n.translate('data.advancedSettings.timepicker.refreshIntervalDefaultsTitle', { + defaultMessage: 'Time filter refresh interval', + }), + value: `{ + "pause": false, + "value": 0 + }`, + type: 'json', + description: i18n.translate('data.advancedSettings.timepicker.refreshIntervalDefaultsText', { + defaultMessage: `The timefilter's default refresh interval. The "value" needs to be specified in milliseconds.`, + }), + requiresPageReload: true, + schema: schema.object({ + pause: schema.boolean(), + value: schema.number(), + }), + }, + ... + } +} +``` + +### Registering Migrations +To change or remove a `uiSetting`, you must migrate the whole `config` Saved Object. `uiSettings` migrations are declared directly in the service. + +For example, in 7.9.0, `siem` as renamed to `securitySolution`, and in 8.0.0, `theme:version` was removed: + +**src/core/server/ui_settings/saved_objects/migrations.ts** + +```ts +import { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from 'kibana/server'; + +export const migrations = { + '7.9.0': (doc: SavedObjectUnsanitizedDoc): SavedObjectSanitizedDoc => ({ + ...doc, + ...(doc.attributes && { + attributes: Object.keys(doc.attributes).reduce( + (acc, key) => + key.startsWith('siem:') + ? { + ...acc, + [key.replace('siem', 'securitySolution')]: doc.attributes[key], + } + : { + ...acc, + [key]: doc.attributes[key], + }, + {} + ), + }), + references: doc.references || [], + }), + '7.12.0': (doc: SavedObjectUnsanitizedDoc): SavedObjectSanitizedDoc => ({...}), + '7.13.0': (doc: SavedObjectUnsanitizedDoc): SavedObjectSanitizedDoc => ({...}), + '8.0.0': (doc: SavedObjectUnsanitizedDoc): SavedObjectSanitizedDoc => ({ + ...doc, + ...(doc.attributes && { + attributes: Object.keys(doc.attributes).reduce( + (acc, key) => + [ + // owner: Team:Geo [1] + 'visualization:regionmap:showWarnings', + ... + // owner: Team:Core + ... + 'theme:version', + // owner: Team:AppServices + ... + ].includes(key) + ? { + ...acc, + } + : { + ...acc, + [key]: doc.attributes[key], + }, + {} + ), + }), + references: doc.references || [], + }), + '8.1.0': (doc: SavedObjectUnsanitizedDoc): SavedObjectSanitizedDoc => ({...}), +}; +``` +[1] Since all `uiSettings` migrations are added to the same migration function, while not required, grouping settings by team is good practice. diff --git a/docs/CHANGELOG.asciidoc b/docs/CHANGELOG.asciidoc index 446c305c03b95..47ebcd573edc2 100644 --- a/docs/CHANGELOG.asciidoc +++ b/docs/CHANGELOG.asciidoc @@ -10,6 +10,7 @@ Review important information about the {kib} 8.0.0 releases. +* <> * <> * <> * <> @@ -17,6 +18,139 @@ Review important information about the {kib} 8.0.0 releases. * <> -- +[[release-notes-8.0.0]] +== {kib} 8.0.0 + +Review the {kib} 8.0.0 changes, then use the {kibana-ref-all}/7.17/upgrade-assistant.html[Upgrade Assistant] to complete the upgrade. + +[float] +[[breaking-changes-8.0.0]] +=== Breaking change + +Breaking changes can prevent your application from optimal operation and performance. +Before you upgrade to 8.0.0, review the breaking change, then mitigate the impact to your application. + +// tag::notable-breaking-changes[] + +[discrete] +[[breaking-123754]] +.Removes the `console.ssl` setting +[%collapsible] +==== +*Details* + +The `console.ssl` setting has been removed. For more information, refer to {kibana-pull}123754[#123754]. + +*Impact* + +Before you upgrade to 8.0.0, remove `console.ssl` from kibana.yml. +==== + +// end::notable-breaking-changes[] + + +To review the breaking changes in previous versions, refer to the following: + +<> | <> | <> | <> | +<> + +[float] +[[deprecations-8.0.0]] +=== Deprecation + +The following functionality is deprecated in 8.0.0, and will be removed in 9.0.0. +Deprecated functionality does not have an immediate impact on your application, but we strongly recommend +you make the necessary updates after you upgrade to 8.0.0. + +[discrete] +[[deprecation-123229]] +.Removes support for `monitoring.cluster_alerts.allowedSpaces` +[%collapsible] +==== +*Details* + +The `monitoring.cluster_alerts.allowedSpaces` setting, which {kib} uses to create Stack Monitoring alerts, has been removed. For more information, refer to {kibana-pull}123229[#123229]. + +*Impact* + +Before you upgrade to 8.0.0, remove `monitoring.cluster_alerts.allowedSpaces` from kibana.yml. +==== + +To review the deprecations in previous versions, refer to the following: + +<> | <> + +[float] +[[known-issue-8.0.0]] +=== Known issue + +[discrete] +[[known-issue-123550]] +.Importing and copying saved objects causes weak links to break +[%collapsible] +==== +*Details* + +{kib} supports weak links in some saved objects. For example, a dashboard may include a Markdown panel that contains a relative URL to +another dashboard. Weak links are defined by free text, _not_ the saved object's relationships, and can break if **both** of the following +conditions are true: + +* You are importing saved objects into multiple spaces, _OR_ you are copying saved objects into another space +* Before you upgraded to 8.0.0, the saved objects did not already exist in the destinations + +In 8.0.0 and later, weak links break because <>. +This applies to both the UI and the API. +This issue will be fixed 8.0.1 and 8.1.0. For more information, refer to {kibana-issue}123550[#123550]. + +*Impact* + +Saved objects in 7.x that are migrated during upgrade are **not** impacted. +Only _new_ saved objects that are imported or copied _multiple times_ (causing object IDs to change) are impacted. +If you are impacted, you can re-import or re-copy your saved objects after the fix is +implemented to preserve the weak links. +==== + +[float] +[[features-8.0.0]] +=== Features +For information about the features introduced in 8.0.0, refer to <>. + +Elastic Security:: +For the Elastic Security 8.0.0 release information, refer to {security-guide}/release-notes.html[_Elastic Security Solution Release Notes_]. + +To review the features in previous versions, refer to the following: + +<> | <> | <> | <> + +[[enhancements-and-bug-fixes-v8.0.0]] +=== Enhancements and bug fixes + +For detailed information about the 8.0.0 release, review the enhancements and bug fixes. + +[float] +[[enhancement-v8.0.0]] +==== Enhancements +Dashboard:: +Clone ReferenceOrValueEmbeddables by value {kibana-pull}122199[#122199] + +Elastic Security:: +For the Elastic Security 8.0.0 release information, refer to {security-guide}/release-notes.html[_Elastic Security Solution Release Notes_]. + +[float] +[[fixes-v8.0.0]] +==== Bug Fixes +APM:: +Restrict aggregated transaction metrics search to date range {kibana-pull}123445[#123445] + +Elastic Security:: +For the Elastic Security 8.0.0 release information, refer to {security-guide}/release-notes.html[_Elastic Security Solution Release Notes_]. + +Fleet:: +Allow empty strings for required text fields in package policies {kibana-pull}123610[#123610] + +Maps:: +Fixes Label border color is not removed from legend when disabled {kibana-pull}122705[#122705] + +Monitoring:: +Ensure logstash getNodes always contains a uuid {kibana-pull}124201[#124201] + +Security:: +Long-running requests no longer cause sporadic logouts in certain cases, even when user sessions are active {kibana-pull}122155[#122155] + [[release-notes-8.0.0-rc2]] == {kib} 8.0.0-rc2 @@ -29,8 +163,6 @@ For information about the {kib} 8.0.0-rc2 release, review the following informat Breaking changes can prevent your application from optimal operation and performance. Before you upgrade, review the breaking change, then mitigate the impact to your application. -// tag::notable-breaking-changes[] - [discrete] [[breaking-122722]] .Removes the ability to use `elasticsearch.username: elastic` in production @@ -42,14 +174,12 @@ In production, you are no longer able to use the `elastic` superuser to authenti *Impact* + When you configure `elasticsearch.username: elastic`, {kib} fails. ==== - -// end::notable-breaking-changes[] To review the breaking changes in previous versions, refer to the following: <> | <> | <> | <> - + [float] [[features-8.0.0-rc2]] === Features @@ -1304,7 +1434,7 @@ Use the `xpack.monitoring.clusterAlertsEmail` in kibana.yml. ==== [float] -[[enhancements-and-bug-fixes-v8.0.0]] +[[enhancements-and-bug-fixes-v8.0.0-alpha1]] === Bug fix The 8.0.0-alpha1 release includes the following bug fix. diff --git a/docs/developer/advanced/sharing-saved-objects.asciidoc b/docs/developer/advanced/sharing-saved-objects.asciidoc index 9a009e6ad49b7..beff7cc007b6d 100644 --- a/docs/developer/advanced/sharing-saved-objects.asciidoc +++ b/docs/developer/advanced/sharing-saved-objects.asciidoc @@ -405,8 +405,8 @@ necessary. However, such handling of secondary objects is not considered critica ==== 4. What is a "legacy URL alias"? As depicted above, when an object is converted to become share-capable, if it exists in a non-Default space, its ID gets changed. To -preserve its old ID, we also create a special object called a _legacy URL alias_ ("alias" for short); this alias retains the target object's -old ID (_sourceId_), and it contains a pointer to the target object's new ID (_targetId_). +preserve its old ID, we also create a special object called a <> ("alias" for short); this alias +retains the target object's old ID (_sourceId_), and it contains a pointer to the target object's new ID (_targetId_). Aliases are meant to be mostly invisible to end-users by design. There is no UI to manage them directly. Our vision is that aliases will be used as a stop-gap to help us through the 8.0 upgrade process, but we will nudge users away from relying on aliases so we can eventually @@ -473,3 +473,7 @@ change any other data flows to use `resolve()`. External plugins (those not shipped with {kib}) can use this guide to convert any isolated objects to become share-capable or fully shareable! If you are an external plugin developer, the steps are the same, but you don't need to worry about getting anything done before a specific release. The only thing you need to know is that your plugin cannot convert your objects until the 8.0 release. + +==== 8. How will users be impacted? + +Refer to <> documentation for more details how users should expect to be impacted. diff --git a/docs/developer/architecture/core/index.asciidoc b/docs/developer/architecture/core/index.asciidoc index 53720a593d3f2..6c70205c3590d 100644 --- a/docs/developer/architecture/core/index.asciidoc +++ b/docs/developer/architecture/core/index.asciidoc @@ -36,9 +36,3 @@ The services that core provides are: * <> * <> * <> - - - - - - diff --git a/docs/setup/upgrade/logging-configuration-changes.asciidoc b/docs/developer/architecture/core/logging-configuration-migration.asciidoc similarity index 89% rename from docs/setup/upgrade/logging-configuration-changes.asciidoc rename to docs/developer/architecture/core/logging-configuration-migration.asciidoc index 4d5f5f732536e..4a9d03d3b5312 100644 --- a/docs/setup/upgrade/logging-configuration-changes.asciidoc +++ b/docs/developer/architecture/core/logging-configuration-migration.asciidoc @@ -2,7 +2,7 @@ [[logging-config-changes]] === Logging configuration changes -WARNING: {kib} 8.0 and later uses a new logging system. Be sure to read the documentation for your version of {kib} before proceeding. +WARNING: {kib} 8.0.0 and later uses a new logging system. Before you upgrade, read the documentation for your {kib} version. [[logging-pattern-format-old-and-new-example]] [options="header"] diff --git a/docs/developer/architecture/development-visualize-index.asciidoc b/docs/developer/architecture/development-visualize-index.asciidoc index d41ee32c1fb27..b941cdedf9df9 100644 --- a/docs/developer/architecture/development-visualize-index.asciidoc +++ b/docs/developer/architecture/development-visualize-index.asciidoc @@ -19,7 +19,7 @@ We would recommend waiting until later in `7.x` to upgrade your plugins if possi If you would like to keep up with progress on the visualizations plugin in the meantime, here are a few resources: -* The <> documentation, where we try to capture any changes to the APIs as they occur across minors. +* The <> documentation, where we try to capture any changes to the APIs as they occur across minors. * link:https://github.com/elastic/kibana/issues/44121[Meta issue] which is tracking the move of the plugin to the new {kib} platform * Our link:https://www.elastic.co/blog/join-our-elastic-stack-workspace-on-slack[Elastic Stack workspace on Slack]. * The {kib-repo}blob/{branch}/src/plugins/visualizations[source code], which will continue to be diff --git a/docs/developer/architecture/index.asciidoc b/docs/developer/architecture/index.asciidoc index 774292f513f03..90a0972d65f2f 100644 --- a/docs/developer/architecture/index.asciidoc +++ b/docs/developer/architecture/index.asciidoc @@ -40,6 +40,8 @@ include::core/http-service.asciidoc[leveloffset=+1] include::core/logging-service.asciidoc[leveloffset=+1] +include::core/logging-configuration-migration.asciidoc[leveloffset=+1] + include::core/saved-objects-service.asciidoc[leveloffset=+1] include::core/uisettings-service.asciidoc[leveloffset=+1] diff --git a/docs/development/core/public/kibana-plugin-core-public.iexternalurl.isinternalurl.md b/docs/development/core/public/kibana-plugin-core-public.iexternalurl.isinternalurl.md new file mode 100644 index 0000000000000..396e5586f1fed --- /dev/null +++ b/docs/development/core/public/kibana-plugin-core-public.iexternalurl.isinternalurl.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [IExternalUrl](./kibana-plugin-core-public.iexternalurl.md) > [isInternalUrl](./kibana-plugin-core-public.iexternalurl.isinternalurl.md) + +## IExternalUrl.isInternalUrl() method + +Determines if the provided URL is an internal url. + +Signature: + +```typescript +isInternalUrl(relativeOrAbsoluteUrl: string): boolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| relativeOrAbsoluteUrl | string | | + +Returns: + +boolean + diff --git a/docs/development/core/public/kibana-plugin-core-public.iexternalurl.md b/docs/development/core/public/kibana-plugin-core-public.iexternalurl.md index 5a598281c7be7..d0d4e6a3a4464 100644 --- a/docs/development/core/public/kibana-plugin-core-public.iexternalurl.md +++ b/docs/development/core/public/kibana-plugin-core-public.iexternalurl.md @@ -16,5 +16,6 @@ export interface IExternalUrl | Method | Description | | --- | --- | +| [isInternalUrl(relativeOrAbsoluteUrl)](./kibana-plugin-core-public.iexternalurl.isinternalurl.md) | Determines if the provided URL is an internal url. | | [validateUrl(relativeOrAbsoluteUrl)](./kibana-plugin-core-public.iexternalurl.validateurl.md) | Determines if the provided URL is a valid location to send users. Validation is based on the configured allow list in kibana.yml.If the URL is valid, then a URL will be returned. Otherwise, this will return null. | 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/index.asciidoc b/docs/index.asciidoc index ec1a99fa5bffc..668a6edcad3db 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -24,8 +24,6 @@ include::user/index.asciidoc[] include::accessibility.asciidoc[] -include::migration.asciidoc[] - include::CHANGELOG.asciidoc[] include::developer/index.asciidoc[] diff --git a/docs/management/connectors/pre-configured-connectors.asciidoc b/docs/management/connectors/pre-configured-connectors.asciidoc index 4d304cdd6c5a2..aaef1b673d0b6 100644 --- a/docs/management/connectors/pre-configured-connectors.asciidoc +++ b/docs/management/connectors/pre-configured-connectors.asciidoc @@ -11,6 +11,8 @@ action are predefined, including the connector name and ID. - Appear in all spaces because they are not saved objects. - Cannot be edited or deleted. +NOTE: Preconfigured connectors cannot be used with cases. + [float] [[preconfigured-connector-example]] ==== Preconfigured connectors example @@ -70,4 +72,4 @@ image::images/pre-configured-connectors-managing.png[Connectors managing tab wit Clicking a preconfigured connector shows the description, but not the configuration. A message indicates that this is a preconfigured connector. [role="screenshot"] -image::images/pre-configured-connectors-view-screen.png[Pre-configured connector view details] \ No newline at end of file +image::images/pre-configured-connectors-view-screen.png[Pre-configured connector view details] diff --git a/docs/management/managing-saved-objects.asciidoc b/docs/management/managing-saved-objects.asciidoc index b9859575051af..3901d178e1461 100644 --- a/docs/management/managing-saved-objects.asciidoc +++ b/docs/management/managing-saved-objects.asciidoc @@ -126,3 +126,5 @@ WARNING: Validation is not performed for object properties. Submitting an invali change will render the object unusable. A more failsafe approach is to use *Discover* or *Dashboard* to create new objects instead of directly editing an existing one. + +include::saved-objects/saved-object-ids.asciidoc[] diff --git a/docs/management/saved-objects/saved-object-ids.asciidoc b/docs/management/saved-objects/saved-object-ids.asciidoc new file mode 100644 index 0000000000000..a09f91ee361cd --- /dev/null +++ b/docs/management/saved-objects/saved-object-ids.asciidoc @@ -0,0 +1,87 @@ +[[saved-object-ids]] +=== Saved Object IDs + +In the past, many saved object types could have the same ID in different <>. For example, if you copied dashboard "123" +from the one space to another space, the second dashboard would also have an ID of "123". While the saved object ID is not something +that users would interact with directly, many aspects of {kib} rely on it, notably URLs. If you have a "deep link" URL to a saved dashboard, +that URL includes the saved object ID. + +**Starting in the 8.0 release**, {kib} requires most saved objects to have _globally unique_ IDs. This is a change that we needed to make to +support sharing saved objects to multiple spaces. Most saved objects cannot be shared to multiple spaces _yet_, but we needed to start +enforcing globally unique object IDs first. + +We have made several enhancements to minimize the impact, and this document describes what you need to know about the changes and +how it will affect you. + +[[saved-object-ids-impact-upon-upgrading]] +==== Impact upon upgrading to 8.x + +Every time you upgrade {kib}, <>. When you +first upgrade from 7.x to 8.x, this migration process will start enforcing globally unique saved object IDs. + +In practical terms, **any old saved objects that exist in a custom space will have their IDs changed to a new UUID**, while saved objects in +the Default space will be unchanged. This is how we can ensure that every saved object ID is unique. For example: if you had dashboard "123" +in the Default space and dashboard "123" in Another space, after the upgrade you would have dashboard "123" in the Default space and +dashboard "456" in Another space. + +[[saved-object-ids-impact-when-using]] +==== Impact when using 8.x + +After you upgrade, or if you set up a new {kib} instance using 8.x, there are a few more things that behave differently. + +[[saved-object-ids-impact-when-using-legacy-urls]] +===== Accessing saved objects using old URLs + +When you upgrade {kib} and saved object IDs change, the "deep link" URLs to access those saved objects will also change. To reduce the impact, +each existing URL is preserved with a special <>. This means that if you use a bookmark for +a saved object ID that was changed, you'll be redirected to the new URL for that saved object. + +[[saved-object-ids-impact-when-using-import-and-copy]] +===== Importing and copying saved objects + +When you <>, {kib} effectively +<>. In this way, copying a saved object has always behaved +like an import. In this document when we say "import", it applies to both features. + +Historically, whether you imported or copied a saved object, {kib} would create _at most_ one copy of a saved object in that space. If you +imported the saved object multiple times, {kib} would overwrite the existing object, because it used the same ID. Since saved object IDs are +now globally unique, {kib} maintains this functionality by tracking each saved object's _origin_. When you import an object in 8.x, {kib} +uses either the saved object ID _or_ the origin to determine its destination. + +If you import a saved object using the "Check for existing objects" option -- whether it was exported from 7.x or 8.x -- {kib} will +take the following steps: + +1. If {kib} finds a matching saved object with the exact same ID in the target space, that will be the import destination -- you can **overwrite** that +destination or **skip** it. + +2. Otherwise, if {kib} finds a matching saved object with a _different_ ID that has the same origin, that will be the import destination +-- again, you can **overwrite** that destination or **skip** it. + +3. Otherwise, if a saved object with the exact same ID exists in a _different_ space, then {kib} will generate a random ID for the import +destination, preserving the saved object's origin. + +4. Otherwise, {kib} creates the saved object with the given ID. + +For example, you have a saved object in an `export.ndjson` file, and you set up a brand new {kib} instance. You attempt to import the saved +object using the "Check for existing objects" and "Automatically overwrite conflicts" options. The first time you import the saved object, +{kib} will create a new object with the same ID (step 4 above). If you import it again, {kib} will find that object and overwrite it (step 1 +above). If you then create a _different_ space and import it there, {kib} will create a new object with a random ID (step 3 above). Finally, +if you import it into the second space again, {kib} will find the second object with a matching origin and overwrite it (step 2 above). + +WARNING: When you import a saved object and it is created with a different ID, if 1. it contains weak links to other saved objects (such as +a dashboard with a Markdown URL to navigate to another dashboard) and 2. the object's ID has changed (step 3 above), those weak links will +be broken. For more information, refer to <>. + +[[saved-object-ids-impact-when-using-apis]] +===== Using the saved objects APIs + +If you are using the saved objects APIs directly, you should be aware of these changes: + +* When using the <> or <> API, you may encounter + <> that **cannot** be overridden using the `overwrite: true` + option. This can occur if there is already a saved object with this ID in a _different_ space, or if there is a legacy URL alias for this + ID in the same space. +* When using the <> or <> API, objects can potentially be + created with a different ID as described above. +* When using the <> API, if the saved object exists in multiple spaces, it can only be deleted by using the + <>. diff --git a/docs/management/upgrade-assistant/index.asciidoc b/docs/management/upgrade-assistant/index.asciidoc deleted file mode 100644 index ccd3f41b9d886..0000000000000 --- a/docs/management/upgrade-assistant/index.asciidoc +++ /dev/null @@ -1,26 +0,0 @@ -[role="xpack"] -[[upgrade-assistant]] -== Upgrade Assistant - -The Upgrade Assistant helps you prepare for your upgrade -to the next major version of the Elastic Stack. -To access the assistant, open the main menu and go to *Stack Management > Upgrade Assistant*. - -The assistant identifies deprecated settings in your configuration, -enables you to see if you are using deprecated features, -and guides you through the process of resolving issues. - -If you have indices that were created prior to 7.0, -you can use the assistant to reindex them so they can be accessed from 8.0+. - -IMPORTANT: To see the most up-to-date deprecation information before -upgrading to 8.0, upgrade to the latest {prev-major-last} release. - -For more information about upgrading, -refer to {stack-ref}/upgrading-elastic-stack.html[Upgrading to Elastic {version}.] - -[discrete] -=== Required permissions - -The `manage` cluster privilege is required to access the *Upgrade assistant*. -Additional privileges may be needed to perform certain actions. \ No newline at end of file diff --git a/docs/migration/migrate_8_0.asciidoc b/docs/migration/migrate_8_0.asciidoc index 8936e41762c69..18be9a9364c22 100644 --- a/docs/migration/migrate_8_0.asciidoc +++ b/docs/migration/migrate_8_0.asciidoc @@ -7,8 +7,6 @@ This section discusses the changes that you need to be aware of when migrating your application to Kibana 8.0. -coming[8.0.0] - See also <> and <>. * <> diff --git a/docs/redirects.asciidoc b/docs/redirects.asciidoc index ff6ccbd6fab36..2c9d48813781a 100644 --- a/docs/redirects.asciidoc +++ b/docs/redirects.asciidoc @@ -386,12 +386,22 @@ This content has moved. Refer to <>. This content has moved. Refer to <>. -[role="exclude" logging-configuration-changes] -== Logging configuration changes - -This content has moved. Refer to <>. - -[role="exclude" upgrade-migrations] +[role="exclude",id="upgrade-migrations"] == Upgrade migrations This content has moved. Refer to <>. + +[role="exclude",id="upgrade-standard"] +== Standard Upgrade + +This content has moved. Refer to {stack-ref}/upgrading-kibana.html[Upgrade Kibana]. + +[role="exclude",id="upgrade-assistant"] +== Upgrade Assistant + +This content has moved. Refer to {kibana-ref-all}/7.17/upgrade-assistant.html[Upgrade Assistant]. + +[role="exclude",id="brew"] +== Install {kib} on macOS with Homebrew + +This page has been deleted. Refer to <>. diff --git a/docs/settings/apm-settings.asciidoc b/docs/settings/apm-settings.asciidoc index 27ea7f4dc7cd0..7441621f441f9 100644 --- a/docs/settings/apm-settings.asciidoc +++ b/docs/settings/apm-settings.asciidoc @@ -74,7 +74,7 @@ Changing these settings may disable features of the APM App. | Index name where Observability annotations are stored. Defaults to `observability-annotations`. | `xpack.apm.searchAggregatedTransactions` {ess-icon} - | experimental[] Enables Transaction histogram metrics. Defaults to `never` and aggregated transactions are not used. When set to `auto`, the UI will use metric indices over transaction indices for transactions if aggregated transactions are found. When set to `always`, additional configuration in APM Server is required. + | Enables Transaction histogram metrics. Defaults to `auto` so the UI will use metric indices over transaction indices for transactions if aggregated transactions are found. When set to `always`, additional configuration in APM Server is required. When set to `never` and aggregated transactions are not used. See {apm-guide-ref}/transaction-metrics.html[Configure transaction metrics] for more information. | `xpack.apm.metricsInterval` {ess-icon} 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/settings/security-settings.asciidoc b/docs/settings/security-settings.asciidoc index 56d08ee24efe1..787efa64f0775 100644 --- a/docs/settings/security-settings.asciidoc +++ b/docs/settings/security-settings.asciidoc @@ -8,10 +8,6 @@ You do not need to configure any additional settings to use the {security-features} in {kib}. They are enabled by default. -[float] -[[general-security-settings]] -==== General security settings - [float] [[authentication-security-settings]] ==== Authentication security settings @@ -46,123 +42,80 @@ xpack.security.authc: <3> Specifies the settings for the SAML authentication provider with a `saml1` name. <4> Specifies the settings for the SAML authentication provider with a `saml2` name. -The valid settings in the `xpack.security.authc.providers` namespace vary depending on the authentication provider type. For more information, refer to <>. - [float] [[authentication-provider-settings]] -===== Valid settings for all authentication providers - -[cols="2*<"] -|=== -| `xpack.security.authc.providers.` -`..enabled` {ess-icon} -| Determines if the authentication provider should be enabled. By default, {kib} enables the provider as soon as you configure any of its properties. - -| `xpack.security.authc.providers.` -`..order` {ess-icon} -| Order of the provider in the authentication chain and on the Login Selector UI. - -| `xpack.security.authc.providers.` -`..description` {ess-icon} -| Custom description of the provider entry displayed on the Login Selector UI. - -| `xpack.security.authc.providers.` -`..hint` {ess-icon} -| Custom hint for the provider entry displayed on the Login Selector UI. - -| `xpack.security.authc.providers.` -`..icon` {ess-icon} -| Custom icon for the provider entry displayed on the Login Selector UI. - -| `xpack.security.authc.providers..` -`.showInSelector` {ess-icon} -| Flag that indicates if the provider should have an entry on the Login Selector UI. Setting this to `false` doesn't remove the provider from the authentication chain. - -2+a| -[TIP] -[NOTE] -============ -You are unable to set this setting to `false` for `basic` and `token` authentication providers. -============ - -| `xpack.security.authc.providers..` -`.accessAgreement.message` {ess-icon} -| Access agreement text in Markdown format. For more information, refer to <>. - -| [[xpack-security-provider-session-idleTimeout]] `xpack.security.authc.providers..` -`.session.idleTimeout` {ess-icon} -| Ensures that user sessions will expire after a period of inactivity. Setting this to `0` will prevent sessions from expiring because of inactivity. By default, this setting is equal to <>. - -2+a| -[TIP] -============ -Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). -============ - -| [[xpack-security-provider-session-lifespan]] `xpack.security.authc.providers..` -`.session.lifespan` {ess-icon} -| Ensures that user sessions will expire after the defined time period. This behavior is also known as an "absolute timeout". If -this is set to `0`, user sessions could stay active indefinitely. By default, this setting is equal to <>. +==== Valid settings for all authentication providers + +The valid settings in the `xpack.security.authc.providers` namespace vary depending on the authentication provider type. For more information, refer to <>. + +xpack.security.authc.providers...enabled {ess-icon}:: +Determines if the authentication provider should be enabled. By default, {kib} enables the provider as soon as you configure any of its properties. + +xpack.security.authc.providers...order {ess-icon}:: +Order of the provider in the authentication chain and on the Login Selector UI. + +xpack.security.authc.providers...description {ess-icon}:: +Custom description of the provider entry displayed on the Login Selector UI. -2+a| -[TIP] -============ -Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). -============ +xpack.security.authc.providers...hint {ess-icon}:: +Custom hint for the provider entry displayed on the Login Selector UI. -|=== +xpack.security.authc.providers...icon {ess-icon}:: +Custom icon for the provider entry displayed on the Login Selector UI. + +xpack.security.authc.providers...showInSelector {ess-icon}:: +Flag that indicates if the provider should have an entry on the Login Selector UI. Setting this to `false` doesn't remove the provider from the authentication chain. ++ +NOTE: You are unable to set this setting to `false` for `basic` and `token` authentication providers. + +xpack.security.authc.providers...accessAgreement.message {ess-icon}:: +Access agreement text in Markdown format. For more information, refer to <>. + +[[xpack-security-provider-session-idleTimeout]] xpack.security.authc.providers...session.idleTimeout {ess-icon}:: +Ensures that user sessions will expire after a period of inactivity. Setting this to `0` will prevent sessions from expiring because of inactivity. By default, this setting is equal to <>. ++ +NOTE: Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). + +[[xpack-security-provider-session-lifespan]] xpack.security.authc.providers...session.lifespan {ess-icon}:: +Ensures that user sessions will expire after the defined time period. This behavior is also known as an "absolute timeout". If +this is set to `0`, user sessions could stay active indefinitely. By default, this setting is equal to <>. ++ +NOTE: Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). [float] [[saml-authentication-provider-settings]] -===== SAML authentication provider settings +==== SAML authentication provider settings In addition to <>, you can specify the following settings: -[cols="2*<"] -|=== -| `xpack.security.authc.providers.` -`saml..realm` {ess-icon} -| SAML realm in {es} that provider should use. +xpack.security.authc.providers.saml..realm {ess-icon}:: +SAML realm in {es} that provider should use. -| `xpack.security.authc.providers.` -`saml..useRelayStateDeepLink` {ess-icon} -| Determines if the provider should treat the `RelayState` parameter as a deep link in {kib} during Identity Provider initiated log in. By default, this setting is set to `false`. The link specified in `RelayState` should be a relative, URL-encoded {kib} URL. For example, the `/app/dashboards#/list` link in `RelayState` parameter would look like this: `RelayState=%2Fapp%2Fdashboards%23%2Flist`. - -|=== +xpack.security.authc.providers.saml..useRelayStateDeepLink {ess-icon}:: +Determines if the provider should treat the `RelayState` parameter as a deep link in {kib} during Identity Provider initiated log in. By default, this setting is set to `false`. The link specified in `RelayState` should be a relative, URL-encoded {kib} URL. For example, the `/app/dashboards#/list` link in `RelayState` parameter would look like this: `RelayState=%2Fapp%2Fdashboards%23%2Flist`. [float] [[oidc-authentication-provider-settings]] -===== OpenID Connect authentication provider settings +==== OpenID Connect authentication provider settings In addition to <>, you can specify the following settings: -[cols="2*<"] -|=== -| `xpack.security.authc.providers.` -`oidc..realm` {ess-icon} -| OpenID Connect realm in {es} that the provider should use. - -|=== +xpack.security.authc.providers.oidc..realm {ess-icon}:: +OpenID Connect realm in {es} that the provider should use. [float] [[anonymous-authentication-provider-settings]] -===== Anonymous authentication provider settings +==== Anonymous authentication provider settings In addition to <>, you can specify the following settings: -[NOTE] -============ -You can configure only one anonymous provider per {kib} instance. -============ - -[cols="2*<"] -|=== -| `xpack.security.authc.providers.` -`anonymous..credentials` {ess-icon} -| Credentials that {kib} should use internally to authenticate anonymous requests to {es}. Possible values are: username and password, API key, or the constant `elasticsearch_anonymous_user` if you want to leverage {ref}/anonymous-access.html[{es} anonymous access]. - -2+a| For example: +NOTE: You can configure only one anonymous provider per {kib} instance. +xpack.security.authc.providers.anonymous..credentials {ess-icon}:: +Credentials that {kib} should use internally to authenticate anonymous requests to {es}. Possible values are: username and password, API key, or the constant `elasticsearch_anonymous_user` if you want to leverage {ref}/anonymous-access.html[{es} anonymous access]. ++ +For example: ++ [source,yaml] ---------------------------------------- # Username and password credentials @@ -187,45 +140,35 @@ xpack.security.authc.providers.anonymous.anonymous1: credentials: "elasticsearch_anonymous_user" ---------------------------------------- -|=== - [float] [[http-authentication-settings]] -===== HTTP authentication settings +==== HTTP authentication settings There is a very limited set of cases when you'd want to change these settings. For more information, refer to <>. -[cols="2*<"] -|=== -| `xpack.security.authc.http.enabled` -| Determines if HTTP authentication should be enabled. By default, this setting is set to `true`. - -| `xpack.security.authc.http.autoSchemesEnabled` -| Determines if HTTP authentication schemes used by the enabled authentication providers should be automatically supported during HTTP authentication. By default, this setting is set to `true`. +xpack.security.authc.http.enabled:: +Determines if HTTP authentication should be enabled. By default, this setting is set to `true`. -| `xpack.security.authc.http.schemes[]` -| List of HTTP authentication schemes that {kib} HTTP authentication should support. By default, this setting is set to `['apikey', 'bearer']` to support HTTP authentication with the <> and <> schemes. +xpack.security.authc.http.autoSchemesEnabled:: +Determines if HTTP authentication schemes used by the enabled authentication providers should be automatically supported during HTTP authentication. By default, this setting is set to `true`. -|=== +xpack.security.authc.http.schemes[]:: +List of HTTP authentication schemes that {kib} HTTP authentication should support. By default, this setting is set to `['apikey', 'bearer']` to support HTTP authentication with the <> and <> schemes. [float] [[login-ui-settings]] -===== Login user interface settings +==== Login user interface settings You can configure the following settings in the `kibana.yml` file. -[cols="2*<"] -|=== -| `xpack.security.loginAssistanceMessage` {ess-icon} -| Adds a message to the login UI. Useful for displaying information about maintenance windows, links to corporate sign up pages, and so on. +xpack.security.loginAssistanceMessage {ess-icon}:: +Adds a message to the login UI. Useful for displaying information about maintenance windows, links to corporate sign up pages, and so on. -| `xpack.security.loginHelp` {ess-icon} -| Adds a message accessible at the login UI with additional help information for the login process. +xpack.security.loginHelp {ess-icon}:: +Adds a message accessible at the login UI with additional help information for the login process. -| `xpack.security.authc.selector.enabled` {ess-icon} -| Determines if the login selector UI should be enabled. By default, this setting is set to `true` if more than one authentication provider is configured. - -|=== +xpack.security.authc.selector.enabled {ess-icon}:: +Determines if the login selector UI should be enabled. By default, this setting is set to `true` if more than one authentication provider is configured. [float] [[security-session-and-cookie-settings]] @@ -233,81 +176,49 @@ You can configure the following settings in the `kibana.yml` file. You can configure the following settings in the `kibana.yml` file. -[cols="2*<"] -|=== -| `xpack.security.cookieName` - | Sets the name of the cookie used for the session. The default value is `"sid"`. - -|[[xpack-security-encryptionKey]] `xpack.security.encryptionKey` - | An arbitrary string of 32 characters or more that is used to encrypt session information. Do **not** expose this key to users of {kib}. By - default, a value is automatically generated in memory. If you use that default - behavior, all sessions are invalidated when {kib} restarts. - In addition, high-availability deployments of {kib} will behave unexpectedly - if this setting isn't the same for all instances of {kib}. - -|[[xpack-security-secureCookies]] `xpack.security.secureCookies` - | Sets the `secure` flag of the session cookie. The default value is `false`. It - is automatically set to `true` if <> is set to `true`. Set - this to `true` if SSL is configured outside of {kib} (for example, you are - routing requests through a load balancer or proxy). - -| [[xpack-security-sameSiteCookies]] `xpack.security.sameSiteCookies` {ess-icon} - | Sets the `SameSite` attribute of the session cookie. This allows you to declare whether your cookie should be restricted to a first-party or same-site context. - Valid values are `Strict`, `Lax`, `None`. - This is *not set* by default, which modern browsers will treat as `Lax`. If you use Kibana embedded in an iframe in modern browsers, you might need to set it to `None`. Setting this value to `None` requires cookies to be sent over a secure connection by setting <>: `true`. - -|[[xpack-session-idleTimeout]] `xpack.security.session.idleTimeout` {ess-icon} - | Ensures that user sessions will expire after a period of inactivity. This and <> are both -highly recommended. You can also specify this setting for <>. If this is set to `0`, then sessions will never expire due to inactivity. By default, this value is 8 hours. - -2+a| -[TIP] -============ -Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). -============ - -|[[xpack-session-lifespan]] `xpack.security.session.lifespan` {ess-icon} - | Ensures that user sessions will expire after the defined time period. This behavior is also known as an "absolute timeout". If -this is set to `0`, user sessions could stay active indefinitely. This and <> are both highly -recommended. You can also specify this setting for <>. By default, this value is 30 days. +xpack.security.cookieName:: +Sets the name of the cookie used for the session. The default value is `"sid"`. -2+a| -[TIP] -============ -Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). -============ +[[xpack-security-encryptionKey]] xpack.security.encryptionKey:: +An arbitrary string of 32 characters or more that is used to encrypt session information. Do **not** expose this key to users of {kib}. By default, a value is automatically generated in memory. If you use that default behavior, all sessions are invalidated when {kib} restarts. In addition, high-availability deployments of {kib} will behave unexpectedly if this setting isn't the same for all instances of {kib}. -| `xpack.security.session.cleanupInterval` {ess-icon} -| Sets the interval at which {kib} tries to remove expired and invalid sessions from the session index. By default, this value is 1 hour. The minimum value is 10 seconds. +[[xpack-security-secureCookies]] xpack.security.secureCookies:: +Sets the `secure` flag of the session cookie. The default value is `false`. It +is automatically set to `true` if <> is set to `true`. Set this to `true` if SSL is configured outside of {kib} (for example, you are routing requests through a load balancer or proxy). -2+a| -[TIP] -============ -Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). -============ +[[xpack-security-sameSiteCookies]] xpack.security.sameSiteCookies {ess-icon}:: +Sets the `SameSite` attribute of the session cookie. This allows you to declare whether your cookie should be restricted to a first-party or same-site context. +Valid values are `Strict`, `Lax`, `None`. +This is *not set* by default, which modern browsers will treat as `Lax`. If you use Kibana embedded in an iframe in modern browsers, you might need to set it to `None`. Setting this value to `None` requires cookies to be sent over a secure connection by setting <>: `true`. -|=== +[[xpack-session-idleTimeout]] xpack.security.session.idleTimeout {ess-icon}:: +Ensures that user sessions will expire after a period of inactivity. This and <> are both highly recommended. You can also specify this setting for <>. If this is set to `0`, then sessions will never expire due to inactivity. By default, this value is 8 hours. ++ +NOTE: Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). + +[[xpack-session-lifespan]] xpack.security.session.lifespan {ess-icon}:: +Ensures that user sessions will expire after the defined time period. This behavior is also known as an "absolute timeout". If this is set to `0`, user sessions could stay active indefinitely. This and <> are both highly +recommended. You can also specify this setting for <>. By default, this value is 30 days. ++ +TIP: Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). + +xpack.security.session.cleanupInterval {ess-icon}:: +Sets the interval at which {kib} tries to remove expired and invalid sessions from the session index. By default, this value is 1 hour. The minimum value is 10 seconds. ++ +TIP: Use a string of `[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w'). [[security-encrypted-saved-objects-settings]] ==== Encrypted saved objects settings These settings control the encryption of saved objects with sensitive data. For more details, refer to <>. -[IMPORTANT] -============ -In high-availability deployments, make sure you use the same encryption and decryption keys for all instances of {kib}. Although the keys can be specified in clear text in `kibana.yml`, it's recommended to store them securely in the <>. -============ +IMPORTANT: In high-availability deployments, make sure you use the same encryption and decryption keys for all instances of {kib}. Although the keys can be specified in clear text in `kibana.yml`, it's recommended to store them securely in the <>. -[cols="2*<"] -|=== -| [[xpack-encryptedSavedObjects-encryptionKey]] `xpack.encryptedSavedObjects.` -`encryptionKey` -| An arbitrary string of at least 32 characters that is used to encrypt sensitive properties of saved objects before they're stored in {es}. If not set, {kib} will generate a random key on startup, but certain features won't be available until you set the encryption key explicitly. +[[xpack-encryptedSavedObjects-encryptionKey]] xpack.encryptedSavedObjects.encryptionKey:: +An arbitrary string of at least 32 characters that is used to encrypt sensitive properties of saved objects before they're stored in {es}. If not set, {kib} will generate a random key on startup, but certain features won't be available until you set the encryption key explicitly. -| [[xpack-encryptedSavedObjects-keyRotation-decryptionOnlyKeys]] `xpack.encryptedSavedObjects.` -`keyRotation.decryptionOnlyKeys` -| An optional list of previously used encryption keys. Like <>, these must be at least 32 characters in length. {kib} doesn't use these keys for encryption, but may still require them to decrypt some existing saved objects. Use this setting if you wish to change your encryption key, but don't want to lose access to saved objects that were previously encrypted with a different key. -|=== +[[xpack-encryptedSavedObjects-keyRotation-decryptionOnlyKeys]] xpack.encryptedSavedObjects.keyRotation.decryptionOnlyKeys:: +An optional list of previously used encryption keys. Like <>, these must be at least 32 characters in length. {kib} doesn't use these keys for encryption, but may still require them to decrypt some existing saved objects. Use this setting if you wish to change your encryption key, but don't want to lose access to saved objects that were previously encrypted with a different key. [float] [[audit-logging-settings]] @@ -315,18 +226,17 @@ In high-availability deployments, make sure you use the same encryption and decr You can enable audit logging to support compliance, accountability, and security. When enabled, {kib} will capture: -- Who performed an action -- What action was performed -- When the action occurred +* Who performed an action +* What action was performed +* When the action occurred For more details and a reference of audit events, refer to <>. -[cols="2*<"] -|====== -| `xpack.security.audit.enabled` {ess-icon} -| Set to `true` to enable audit logging`. *Default:* `false` - -2+a| For example: +xpack.security.audit.enabled {ess-icon}:: +Set to `true` to enable audit logging`. *Default:* `false` ++ +For example: ++ [source,yaml] ---------------------------------------- xpack.security.audit.enabled: true @@ -346,128 +256,103 @@ xpack.security.audit.appender: <1> <2> Rotates log files every 24 hours. <3> Keeps maximum of 10 log files before deleting older ones. -| `xpack.security.audit.appender` -| Optional. Specifies where audit logs should be written to and how they should be formatted. If no appender is specified, a default appender will be used (see above). - -| `xpack.security.audit.appender.type` -| Required. Specifies where audit logs should be written to. Allowed values are `console`, `file`, or `rolling-file`. +xpack.security.audit.appender:: +Optional. Specifies where audit logs should be written to and how they should be formatted. If no appender is specified, a default appender will be used (see above). +xpack.security.audit.appender.type:: +Required. Specifies where audit logs should be written to. Allowed values are `console`, `file`, or `rolling-file`. ++ Refer to <> and <> for appender specific settings. -| `xpack.security.audit.appender.layout.type` -| Required. Specifies how audit logs should be formatted. Allowed values are `json` or `pattern`. - +xpack.security.audit.appender.layout.type:: +Required. Specifies how audit logs should be formatted. Allowed values are `json` or `pattern`. ++ Refer to <> for layout specific settings. - -2+a| -[TIP] -============ -We recommend using `json` format to allow ingesting {kib} audit logs into {es} using Filebeat. -============ - -|====== ++ +TIP: We recommend using `json` format to allow ingesting {kib} audit logs into {es} using Filebeat. [float] [[audit-logging-file-appender,file appender]] -===== File appender +==== File appender The `file` appender writes to a file and can be configured using the following settings: -[cols="2*<"] -|====== -| `xpack.security.audit.appender.fileName` -| Required. Full file path the log file should be written to. -|====== +xpack.security.audit.appender.fileName:: +Required. Full file path the log file should be written to. [float] [[audit-logging-rolling-file-appender, rolling file appender]] -===== Rolling file appender +==== Rolling file appender The `rolling-file` appender writes to a file and rotates it using a rolling strategy, when a particular policy is triggered: -[cols="2*<"] -|====== -| `xpack.security.audit.appender.fileName` -| Required. Full file path the log file should be written to. - -| `xpack.security.audit.appender.policy.type` -| Specifies when a rollover should occur. Allowed values are `size-limit` and `time-interval`. *Default:* `time-interval`. +xpack.security.audit.appender.fileName:: +Required. Full file path the log file should be written to. +xpack.security.audit.appender.policy.type:: +Specifies when a rollover should occur. Allowed values are `size-limit` and `time-interval`. *Default:* `time-interval`. ++ Refer to <> and <> for policy specific settings. -| `xpack.security.audit.appender.strategy.type` -| Specifies how the rollover should occur. Only allowed value is currently `numeric`. *Default:* `numeric` +xpack.security.audit.appender.strategy.type:: +Specifies how the rollover should occur. Only allowed value is currently `numeric`. *Default:* `numeric` ++ Refer to <> for strategy specific settings. -|====== [float] [[audit-logging-size-limit-policy, size limit policy]] -===== Size limit triggering policy +==== Size limit triggering policy The `size-limit` triggering policy will rotate the file when it reaches a certain size: -[cols="2*<"] -|====== -| `xpack.security.audit.appender.policy.size` -| Maximum size the log file should reach before a rollover should be performed. *Default:* `100mb` -|====== +xpack.security.audit.appender.policy.size:: +Maximum size the log file should reach before a rollover should be performed. *Default:* `100mb` [float] [[audit-logging-time-interval-policy, time interval policy]] -===== Time interval triggering policy +==== Time interval triggering policy The `time-interval` triggering policy will rotate the file every given interval of time: -[cols="2*<"] -|====== -| `xpack.security.audit.appender.policy.interval` -| How often a rollover should occur. *Default:* `24h` +xpack.security.audit.appender.policy.interval:: +How often a rollover should occur. *Default:* `24h` -| `xpack.security.audit.appender.policy.modulate` -| Whether the interval should be adjusted to cause the next rollover to occur on the interval boundary. *Default:* `true` -|====== +xpack.security.audit.appender.policy.modulate:: +Whether the interval should be adjusted to cause the next rollover to occur on the interval boundary. *Default:* `true` [float] [[audit-logging-numeric-strategy, numeric strategy]] -===== Numeric rolling strategy +==== Numeric rolling strategy The `numeric` rolling strategy will suffix the log file with a given pattern when rolling over, and will retain a fixed number of rolled files: -[cols="2*<"] -|====== -| `xpack.security.audit.appender.strategy.pattern` -| Suffix to append to the file name when rolling over. Must include `%i`. *Default:* `-%i` +xpack.security.audit.appender.strategy.pattern:: +Suffix to append to the file name when rolling over. Must include `%i`. *Default:* `-%i` -| `xpack.security.audit.appender.strategy.max` -| Maximum number of files to keep. Once this number is reached, oldest files will be deleted. *Default:* `7` -|====== +xpack.security.audit.appender.strategy.max:: +Maximum number of files to keep. Once this number is reached, oldest files will be deleted. *Default:* `7` [float] [[audit-logging-pattern-layout, pattern layout]] -===== Pattern layout +==== Pattern layout The `pattern` layout outputs a string, formatted using a pattern with special placeholders, which will be replaced with data from the actual log message: -[cols="2*<"] -|====== -| `xpack.security.audit.appender.layout.pattern` -| Optional. Specifies how the log line should be formatted. *Default:* `[%date][%level][%logger]%meta %message` +xpack.security.audit.appender.layout.pattern:: +Optional. Specifies how the log line should be formatted. *Default:* `[%date][%level][%logger]%meta %message` -| `xpack.security.audit.appender.layout.highlight` -| Optional. Set to `true` to enable highlighting log messages with colors. -|====== +xpack.security.audit.appender.layout.highlight:: +Optional. Set to `true` to enable highlighting log messages with colors. [float] [[audit-logging-ignore-filters]] -===== Ignore filters - -[cols="2*<"] -|====== -| `xpack.security.audit.ignore_filters[]` {ess-icon} -| List of filters that determine which events should be excluded from the audit log. An event will get filtered out if at least one of the provided filters matches. - -2+a| For example: +==== Ignore filters +xpack.security.audit.ignore_filters[] {ess-icon}:: +List of filters that determine which events should be excluded from the audit log. An event will get filtered out if at least one of the provided filters matches. ++ +For example: ++ [source,yaml] ---------------------------------------- xpack.security.audit.ignore_filters: @@ -478,15 +363,14 @@ xpack.security.audit.ignore_filters: <1> Filters out HTTP request events <2> Filters out any data write events -| `xpack.security.audit.ignore_filters[].actions[]` {ess-icon} -| List of values matched against the `event.action` field of an audit event. Refer to <> for a list of available events. +xpack.security.audit.ignore_filters[].actions[] {ess-icon}:: +List of values matched against the `event.action` field of an audit event. Refer to <> for a list of available events. -| `xpack.security.audit.ignore_filters[].categories[]` {ess-icon} -| List of values matched against the `event.category` field of an audit event. Refer to https://www.elastic.co/guide/en/ecs/1.5/ecs-allowed-values-event-category.html[ECS categorization field] for allowed values. +xpack.security.audit.ignore_filters[].categories[] {ess-icon}:: +List of values matched against the `event.category` field of an audit event. Refer to https://www.elastic.co/guide/en/ecs/1.5/ecs-allowed-values-event-category.html[ECS categorization field] for allowed values. -| `xpack.security.audit.ignore_filters[].types[]` {ess-icon} -| List of values matched against the `event.type` field of an audit event. Refer to https://www.elastic.co/guide/en/ecs/1.5/ecs-allowed-values-event-type.html[ECS type field] for allowed values. +xpack.security.audit.ignore_filters[].types[] {ess-icon}:: +List of values matched against the `event.type` field of an audit event. Refer to https://www.elastic.co/guide/en/ecs/1.5/ecs-allowed-values-event-type.html[ECS type field] for allowed values. -| `xpack.security.audit.ignore_filters[].outcomes[]` {ess-icon} -| List of values matched against the `event.outcome` field of an audit event. Refer to https://www.elastic.co/guide/en/ecs/1.5/ecs-allowed-values-event-outcome.html[ECS outcome field] for allowed values. -|====== +xpack.security.audit.ignore_filters[].outcomes[] {ess-icon}:: +List of values matched against the `event.outcome` field of an audit event. Refer to https://www.elastic.co/guide/en/ecs/1.5/ecs-allowed-values-event-outcome.html[ECS outcome field] for allowed values. \ No newline at end of file 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/setup/install.asciidoc b/docs/setup/install.asciidoc index 8b64bdf5fe2a2..ac49946d877bc 100644 --- a/docs/setup/install.asciidoc +++ b/docs/setup/install.asciidoc @@ -46,12 +46,6 @@ downloaded from the Elastic Docker Registry. + <> -`brew`:: - -Formulae are available from the Elastic Homebrew tap for installing {kib} on macOS with the Homebrew package manager. -+ -<> - IMPORTANT: If your Elasticsearch installation is protected by {ref}/elasticsearch-security.html[{stack-security-features}] see {kibana-ref}/using-kibana-with-security.html[Configuring security in {kib}] for @@ -66,5 +60,3 @@ include::install/deb.asciidoc[] include::install/rpm.asciidoc[] include::{kib-repo-dir}/setup/docker.asciidoc[] - -include::install/brew.asciidoc[] diff --git a/docs/setup/install/brew-running.asciidoc b/docs/setup/install/brew-running.asciidoc deleted file mode 100644 index d73102b098ec1..0000000000000 --- a/docs/setup/install/brew-running.asciidoc +++ /dev/null @@ -1,9 +0,0 @@ -==== Run {kib} with `brew services` - -With Homebrew, Kibana can be started and stopped as follows: - -[source,sh] --------------------------------------------------- -brew services start elastic/tap/kibana-full -brew services stop elastic/tap/kibana-full --------------------------------------------------- diff --git a/docs/setup/install/brew.asciidoc b/docs/setup/install/brew.asciidoc deleted file mode 100644 index eeba869a259d4..0000000000000 --- a/docs/setup/install/brew.asciidoc +++ /dev/null @@ -1,65 +0,0 @@ -[[brew]] -=== Install {kib} on macOS with Homebrew -++++ -Install on macOS with Homebrew -++++ - -Elastic publishes Homebrew formulae so you can install {kib} with the https://brew.sh/[Homebrew] package manager. - -To install with Homebrew, you first need to tap the Elastic Homebrew repository: - -[source,sh] -------------------------- -brew tap elastic/tap -------------------------- - -Once you've tapped the Elastic Homebrew repo, you can use `brew install` to -install the **latest version** of {kib}: - -[source,sh] -------------------------- -brew install elastic/tap/kibana-full -------------------------- - -[[brew-layout]] -==== Directory layout for Homebrew installs - -When you install {kib} with `brew install`, the config files, logs, -and data directory are stored in the following locations. - -[cols="> -when required. +When required, {kib} automatically migrates <>. In case of an upgrade failure, you can roll back to an earlier version of {kib}. To roll back, you **must** have a {ref}/snapshot-restore.html[backup snapshot] that includes the `kibana` feature -state. Snapshots include this feature state by default. +state. By default, snapshots include the `kibana` feature state. ==== -For more information about upgrading, +For more information about upgrading, refer to {stack-ref}/upgrading-elastic-stack.html[Upgrading to Elastic {version}.] -IMPORTANT: You can upgrade to pre-release versions for testing, -but upgrading from a pre-release to the General Available version is not supported. -Pre-releases should only be used for testing in a temporary environment. +IMPORTANT: You can upgrade to pre-release versions for testing, +but upgrading from a pre-release to the General Available version is unsupported. +You should use pre-release versions only for testing in a temporary environment. + +[float] +=== Upgrading multiple {kib} instances +When upgrading several {kib} instances connected to the same {es} cluster, +ensure that all outdated instances are shut down before starting the upgrade. + +Rolling upgrades are unsupported in {kib}. However, when outdated instances are shut down, you can start all upgraded instances in parallel, +which allows all instances to participate in the upgrade migration in parallel. + +For large deployments with more than 10 {kib} instances, and more than 10,000 saved objects, +you can reduce the upgrade downtime by bringing up a single {kib} instance and waiting for it to +complete the upgrade migration before bringing up the remaining instances. + +[float] +[[preventing-migration-failures]] +=== Preparing for migration + +There are extra steps you can follow to ensure you are ready for migration. + +[float] +==== Ensure your {es} cluster is healthy +Problems with your {es} cluster can prevent {kib} upgrades from succeeding. Ensure that your cluster has: + + * Enough free disk space, at least twice the amount of storage taken up by the `.kibana` and `.kibana_task_manager` indices + * Sufficient heap size + * A "green" cluster status + +[float] +==== Ensure that all {kib} instances are the same +When you perform an upgrade migration of different {kib} versions, the migration can fail. +Ensure that all {kib} instances are running the same version, configuration, and plugins. + +[float] +==== Back up your data +Be sure to have a {ref}/snapshot-restore.html[snapshot] of all your data before attempting a migration. +If something goes wrong during migration, you can restore from the snapshot and try again. + +Review the <> and how to prevent them. + + +include::upgrade/saved-objects-migration.asciidoc[] -include::upgrade/upgrade-migrations.asciidoc[leveloffset=-1] +include::upgrade/resolving-migration-failures.asciidoc[] -include::upgrade/logging-configuration-changes.asciidoc[] +include::upgrade/rollback-migration.asciidoc[] diff --git a/docs/setup/upgrade/resolving-migration-failures.asciidoc b/docs/setup/upgrade/resolving-migration-failures.asciidoc new file mode 100644 index 0000000000000..454dfe948fe4e --- /dev/null +++ b/docs/setup/upgrade/resolving-migration-failures.asciidoc @@ -0,0 +1,125 @@ +[[resolve-migrations-failures]] +=== Resolve migration failures + +Migrating {kib} primarily involves migrating saved object documents to be compatible +with the new version. + +[float] +==== Resolve saved object migration failures + +If {kib} unexpectedly terminates while migrating a saved object index, {kib} automatically attempts to +perform the migration again when the process restarts. Do not delete any saved objects indices to +to fix a failed migration. Unlike previous versions, {kib} 7.12.0 and +later does not require deleting indices to release a failed migration lock. + +If upgrade migrations fail repeatedly, refer to +<>. +When you address the root cause for the migration failure, +{kib} automatically retries the migration. +If you're unable to resolve a failed migration, contact Support. + + +[float] +[[upgrade-migrations-old-indices]] +==== Handle old `.kibana_N` indices + +After the migrations complete, multiple {kib} indices are created in {es}: (`.kibana_1`, `.kibana_2`, `.kibana_7.12.0` etc). +{kib} only uses the index that the `.kibana` and `.kibana_task_manager` aliases point to. +The other {kib} indices can be safely deleted, but are left around as a matter of historical record, and to facilitate rolling {kib} back to a previous version. + +[float] +==== Handle known issues with {fleet} beta +If you see a`timeout_exception` or `receive_timeout_transport_exception` error, +it might be from a known known issue in 7.12.0 if you tried the {fleet} beta. +Upgrade migrations fail because of a large number of documents in the `.kibana` index, +which causes {kib} to log errors such as: + +[source,sh] +-------------------------------------------- +Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. Error: [receive_timeout_transport_exception]: [instance-0000000002][10.32.1.112:19541][cluster:monitor/task/get] request_id [2648] timed out after [59940ms] + +Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. Error: [timeout_exception]: Timed out waiting for completion of [org.elasticsearch.index.reindex.BulkByScrollTask@6a74c54] +-------------------------------------------- + +For instructions on how to mitigate the known issue, refer to https://github.com/elastic/kibana/issues/95321[the GitHub issue]. + + +[float] +==== Handle corrupt saved objects +To find and remedy problems caused by corrupt documents, we highly recommend testing your {kib} upgrade in a development cluster, +especially when there are custom integrations that create saved objects in your environment. + +Saved objects that are corrupted through manual editing or integrations cause migration +failures with a log message, such as `Unable to migrate the corrupt Saved Object document ...`. +For a successful upgrade migration, you must fix or delete corrupt documents. + +For example, you receive the following error message: + +[source,sh] +-------------------------------------------- +Unable to migrate the corrupt saved object document with _id: 'marketing_space:dashboard:e3c5fc71-ac71-4805-bcab-2bcc9cc93275'. To allow migrations to proceed, please delete this document from the [.kibana_7.12.0_001] index. +-------------------------------------------- + +To delete the documents that cause migrations to fail, take the following steps: + +. Remove the write block which the migration system has placed on the previous index: ++ +[source,sh] +-------------------------------------------- +PUT .kibana_7.12.1_001/_settings +{ + "index": { + "blocks.write": false + } +} +-------------------------------------------- + +. Delete the corrupt document: ++ +[source,sh] +-------------------------------------------- +DELETE .kibana_7.12.0_001/_doc/marketing_space:dashboard:e3c5fc71-ac71-4805-bcab-2bcc9cc93275 +-------------------------------------------- + +. Restart {kib}. ++ +The dashboard with the `e3c5fc71-ac71-4805-bcab-2bcc9cc93275` ID that belongs to the `marketing_space` space **is no longer available**. + +[float] +[[unknown-saved-object-types]] +==== Handle documents for unknown saved objects +Migrations will fail if saved objects belong to an unknown +saved object type. Unknown saved objects are typically caused by +to the {es} index, or by disabling a plugin that had previously +created a saved object. + +We recommend using the {kibana-ref-all}/7.17/upgrade-assistant.html[Upgrade Assistant] +to discover and remedy any unknown saved object types. {kib} version 7.17.0 deployments containing unknown saved +object types will also log the following warning message: + +[source,sh] +-------------------------------------------- +CHECK_UNKNOWN_DOCUMENTS Upgrades will fail for 8.0+ because documents were found for unknown saved object types. To ensure that upgrades will succeed in the future, either re-enable plugins or delete these documents from the ".kibana_7.17.0_001" index after the current upgrade completes. +-------------------------------------------- + +If you fail to remedy this, your upgrade to 8.0+ will fail with a message like: + +[source,sh] +-------------------------------------------- +Unable to complete saved object migrations for the [.kibana] index: Migration failed because documents were found for unknown saved object types. To proceed with the migration, please delete these documents from the ".kibana_7.17.0_001" index. +-------------------------------------------- + +[float] +==== Handle incompatible settings or mappings +Matching index templates that specify `settings.refresh_interval` or +`mappings` are known to interfere with {kib} upgrades. +This can happen when index templates are defined manually. + +To make sure the index templates won't apply to new `.kibana*` indices, narrow down the {data-sources} of any user-defined index templates. + +[float] +==== Handle incompatible `xpack.tasks.index` configuration setting +In {kib} 7.5.0 and earlier, when the task manager index is set to `.tasks` +with the configuration setting `xpack.tasks.index: ".tasks"`, +upgrade migrations fail. In {kib} 7.5.1 and later, the incompatible configuration +setting prevents upgrade migrations from starting. diff --git a/docs/setup/upgrade/rollback-migration.asciidoc b/docs/setup/upgrade/rollback-migration.asciidoc new file mode 100644 index 0000000000000..1b87d0f335b8c --- /dev/null +++ b/docs/setup/upgrade/rollback-migration.asciidoc @@ -0,0 +1,41 @@ +[[upgrade-migrations-rolling-back]] +=== Roll back to a previous version of {kib} + +If you've followed <> +and <>, and +{kib} is still unable to successfully upgrade, rollback {kib} until +you're able to identify and fix the root cause. + +WARNING: Before you roll back {kib}, ensure that the version you want to roll back to is compatible with +your {es} cluster. If the version you want to roll back to is not compatible, you must also rollback {es}. +Any changes made after an upgrade are lost when you roll back to a previous version. + +To roll back after a failed upgrade migration, you must also rollback the saved object indices to be compatible with the previous {kib} version. + +[float] +==== Roll back by restoring a backup snapshot + +. Before proceeding, {ref}/snapshots-take-snapshot.html[take a snapshot] that contains the `kibana` feature state. + By default, snapshots include the `kibana` feature state. +. To make sure no {kib} instances are performing an upgrade migration, shut down all {kib} instances. +. To delete all saved object indices, use `DELETE /.kibana*`. +. {ref}/snapshots-restore-snapshot.html[Restore] the `kibana` feature state from the snapshot. +. Start all {kib} instances on the older version you want to rollback to. + +[float] +==== (Not recommended) Roll back without a backup snapshot + +. To make sure no {kib} instances are performing an upgrade migration, shut down all {kib} instances. +. {ref}/snapshots-take-snapshot.html[Take a snapshot] that includes the `kibana` feature state. By default, snapshots include the `kibana` feature state. +. Delete the version-specific indices created by the failed upgrade migration. ++ +For example, to rollback from a failed upgrade +to v7.12.0, use `DELETE /.kibana_7.12.0_*,.kibana_task_manager_7.12.0_*`. +. Inspect the output of `GET /_cat/aliases`. ++ +If the `.kibana` or `.kibana_task_manager` aliases are missing, you must create them manually. +Find the latest index from the output of `GET /_cat/indices` and create the missing alias to point to the latest index. +For example, if the `.kibana` alias is missing, and the latest index is `.kibana_3`, create a new alias using `POST /.kibana_3/_aliases/.kibana`. +. To remove the write block from the roll back indices, use +`PUT /.kibana,.kibana_task_manager/_settings {"index.blocks.write": false}` +. Start {kib} on the older version you want to rollback to. diff --git a/docs/setup/upgrade/saved-objects-migration.asciidoc b/docs/setup/upgrade/saved-objects-migration.asciidoc new file mode 100644 index 0000000000000..cc4406f8cdd1f --- /dev/null +++ b/docs/setup/upgrade/saved-objects-migration.asciidoc @@ -0,0 +1,39 @@ +[[saved-object-migrations]] +=== Migrate saved objects + +Each time you upgrade {kib}, an upgrade migration is performed to ensure that all <> are compatible with the new version. + +NOTE: To help you prepare for the upgrade to 8.0.0, 7.17.0 includes an https://www.elastic.co/guide/en/kibana/7.17/upgrade-assistant.html[*Upgrade Assistant*]. +To access the assistant, go to *Stack Management > Upgrade Assistant*. + +WARNING: {kib} 7.12.0 and later uses a new migration process and index naming scheme. Before you upgrade, read the documentation for your version of {kib}. + +WARNING: The following instructions assumes {kib} is using the default index names. If the `kibana.index` or `xpack.tasks.index` configuration settings are different from the default, adapt the instructions accordingly. + +[float] +[[upgrade-migrations-process]] +==== How saved objects migrations work + +Saved objects are stored in two indices: + +* `.kibana_{kibana_version}_001`, e.g. for {kib} 7.12.0 `.kibana_7.12.0_001`. +* `.kibana_task_manager_{kibana_version}_001`, e.g. for {kib} 7.12.0 `.kibana_task_manager_7.12.0_001`. + +The index aliases `.kibana` and `.kibana_task_manager` always point to +the most up-to-date saved object indices. + +When you start a new {kib} installation, an upgrade migration is performed before starting plugins or serving HTTP traffic. +Before you upgrade, shut down old nodes to prevent losing acknowledged writes. +To reduce the likelihood of old nodes losing acknowledged writes, {kib} 7.12.0 and later +adds a write block to the outdated index. Table 1 lists the saved objects indices used by previous {kib} versions. + +.Saved object indices and aliases per {kib} version +[options="header"] +|======================= +|Upgrading from version | Outdated index (alias) +| 6.5.0 through 7.3.x | `.kibana_N` (`.kibana` alias) +| 7.4.0 through 7.11.x +| `.kibana_N` (`.kibana` alias) + +`.kibana_task_manager_N` (`.kibana_task_manager` alias) +|======================= diff --git a/docs/setup/upgrade/upgrade-migrations.asciidoc b/docs/setup/upgrade/upgrade-migrations.asciidoc deleted file mode 100644 index fc921f9118bdf..0000000000000 --- a/docs/setup/upgrade/upgrade-migrations.asciidoc +++ /dev/null @@ -1,176 +0,0 @@ -[float] -[[saved-object-migrations]] -=== Saved object migrations - -Every time {kib} is upgraded it will perform an upgrade migration to ensure that all <> are compatible with the new version. - -NOTE: 6.7 includes an https://www.elastic.co/guide/en/kibana/6.7/upgrade-assistant.html[Upgrade Assistant] -to help you prepare for your upgrade to 7.0. To access the assistant, go to *Management > 7.0 Upgrade Assistant*. - -WARNING: {kib} 7.12.0 and later uses a new migration process and index naming scheme. Be sure to read the documentation for your version of {kib} before proceeding. - -WARNING: The following instructions assumes {kib} is using the default index names. If the `kibana.index` or `xpack.tasks.index` configuration settings were changed these instructions will have to be adapted accordingly. - -[float] -[[upgrade-migrations-process]] -==== Background - -Saved objects are stored in two indices: - -* `.kibana_{kibana_version}_001`, e.g. for Kibana v7.12.0 `.kibana_7.12.0_001`. -* `.kibana_task_manager_{kibana_version}_001`, e.g. for Kibana v7.12.0 `.kibana_task_manager_7.12.0_001`. - -The index aliases `.kibana` and `.kibana_task_manager` will always point to -the most up-to-date saved object indices. - -The first time a newer {kib} starts, it will first perform an upgrade migration before starting plugins or serving HTTP traffic. To prevent losing acknowledged writes old nodes should be shutdown before starting the upgrade. To reduce the likelihood of old nodes losing acknowledged writes, {kib} 7.12.0 and later will add a write block to the outdated index. Table 1 lists the saved objects indices used by previous versions of {kib}. - -.Saved object indices and aliases per {kib} version -[options="header"] -|======================= -|Upgrading from version | Outdated index (alias) -| 6.0.0 through 6.4.x | `.kibana` - -`.kibana_task_manager_7.12.0_001` (`.kibana_task_manager` alias) -| 6.5.0 through 7.3.x | `.kibana_N` (`.kibana` alias) -| 7.4.0 through 7.11.x -| `.kibana_N` (`.kibana` alias) - -`.kibana_task_manager_N` (`.kibana_task_manager` alias) -|======================= - -==== Upgrading multiple {kib} instances -When upgrading several {kib} instances connected to the same {es} cluster, ensure that all outdated instances are shutdown before starting the upgrade. - -Kibana does not support rolling upgrades. However, once outdated instances are shutdown, all upgraded instances can be started in parallel in which case all instances will participate in the upgrade migration in parallel. - -For large deployments with more than 10 {kib} instances and more than 10 000 saved objects, the upgrade downtime can be reduced by bringing up a single {kib} instance and waiting for it to complete the upgrade migration before bringing up the remaining instances. - -[float] -[[preventing-migration-failures]] -==== Preventing migration failures -This section highlights common causes of {kib} upgrade failures and how to prevent them. - -[float] -===== timeout_exception or receive_timeout_transport_exception -There is a known issue in v7.12.0 for users who tried the fleet beta. Upgrade migrations fail because of a large number of documents in the `.kibana` index. - -This can cause Kibana to log errors like: - -[source,sh] --------------------------------------------- -Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. Error: [receive_timeout_transport_exception]: [instance-0000000002][10.32.1.112:19541][cluster:monitor/task/get] request_id [2648] timed out after [59940ms] - -Error: Unable to complete saved object migrations for the [.kibana] index. Please check the health of your Elasticsearch cluster and try again. Error: [timeout_exception]: Timed out waiting for completion of [org.elasticsearch.index.reindex.BulkByScrollTask@6a74c54] --------------------------------------------- - -See https://github.com/elastic/kibana/issues/95321 for instructions to work around this issue. - -[float] -===== Corrupt saved objects -We highly recommend testing your {kib} upgrade in a development cluster to discover and remedy problems caused by corrupt documents, especially when there are custom integrations creating saved objects in your environment. - -Saved objects that were corrupted through manual editing or integrations will cause migration failures with a log message like `Failed to transform document. Transform: index-pattern:7.0.0\n Doc: {...}` or `Unable to migrate the corrupt Saved Object document ...`. Corrupt documents will have to be fixed or deleted before an upgrade migration can succeed. - -For example, given the following error message: - -[source,sh] --------------------------------------------- -Unable to migrate the corrupt saved object document with _id: 'marketing_space:dashboard:e3c5fc71-ac71-4805-bcab-2bcc9cc93275'. To allow migrations to proceed, please delete this document from the [.kibana_7.12.0_001] index. --------------------------------------------- - -The following steps must be followed to delete the document that is causing the migration to fail: - -. Remove the write block which the migration system has placed on the previous index: -+ -[source,sh] --------------------------------------------- -PUT .kibana_7.12.1_001/_settings -{ - "index": { - "blocks.write": false - } -} --------------------------------------------- - -. Delete the corrupt document: -+ -[source,sh] --------------------------------------------- -DELETE .kibana_7.12.0_001/_doc/marketing_space:dashboard:e3c5fc71-ac71-4805-bcab-2bcc9cc93275 --------------------------------------------- - -. Restart {kib}. - -In this example, the Dashboard with ID `e3c5fc71-ac71-4805-bcab-2bcc9cc93275` that belongs to the space `marketing_space` **will no longer be available**. - -Be sure you have a snapshot before you delete the corrupt document. If restoring from a snapshot is not an option, it is recommended to also delete the `temp` and `target` indices the migration created before restarting {kib} and retrying. - -[float] -===== User defined index templates that causes new `.kibana*` indices to have incompatible settings or mappings -Matching index templates which specify `settings.refresh_interval` or `mappings` are known to interfere with {kib} upgrades. - -Prevention: narrow down the index patterns of any user-defined index templates to ensure that these won't apply to new `.kibana*` indices. - -Note: {kib} < 6.5 creates it's own index template called `kibana_index_template:.kibana` and index pattern `.kibana`. This index template will not interfere and does not need to be changed or removed. - -[float] -===== An unhealthy {es} cluster -Problems with your {es} cluster can prevent {kib} upgrades from succeeding. Ensure that your cluster has: - - * enough free disk space, at least twice the amount of storage taken up by the `.kibana` and `.kibana_task_manager` indices - * sufficient heap size - * a "green" cluster status - -[float] -===== Different versions of {kib} connected to the same {es} index -When different versions of {kib} are attempting an upgrade migration in parallel this can lead to migration failures. Ensure that all {kib} instances are running the same version, configuration and plugins. - -[float] -===== Incompatible `xpack.tasks.index` configuration setting -For {kib} versions prior to 7.5.1, if the task manager index is set to `.tasks` with the configuration setting `xpack.tasks.index: ".tasks"`, upgrade migrations will fail. {kib} 7.5.1 and later prevents this by refusing to start with an incompatible configuration setting. - -[float] -[[resolve-migrations-failures]] -==== Resolving migration failures - -If {kib} terminates unexpectedly while migrating a saved object index it will automatically attempt to perform the migration again once the process has restarted. Do not delete any saved objects indices to attempt to fix a failed migration. Unlike previous versions, {kib} version 7.12.0 and later does not require deleting any indices to release a failed migration lock. - -If upgrade migrations fail repeatedly, follow the advice in (preventing migration failures)[preventing-migration-failures]. Once the root cause for the migration failure has been addressed, {kib} will automatically retry the migration without any further intervention. If you're unable to resolve a failed migration following these steps, please contact support. - -[float] -[[upgrade-migrations-rolling-back]] -==== Rolling back to a previous version of {kib} - -If you've followed the advice in (preventing migration failures)[preventing-migration-failures] and (resolving migration failures)[resolve-migrations-failures] and {kib} is still not able to upgrade successfully, you might choose to rollback {kib} until you're able to identify and fix the root cause. - -WARNING: Before rolling back {kib}, ensure that the version you wish to rollback to is compatible with your {es} cluster. If the version you're rolling back to is not compatible, you will have to also rollback {es}. + -Any changes made after an upgrade will be lost when rolling back to a previous version. - -In order to rollback after a failed upgrade migration, the saved object indices have to be rolled back to be compatible with the previous {kibana} version. - -[float] -===== Rollback by restoring a backup snapshot: - -1. Before proceeding, {ref}/snapshots-take-snapshot.html[take a snapshot] that contains the `kibana` feature state. - Snapshots include this feature state by default. -2. Shutdown all {kib} instances to be 100% sure that there are no instances currently performing a migration. -3. Delete all saved object indices with `DELETE /.kibana*` -4. {ref}/snapshots-restore-snapshot.html[Restore] the `kibana` feature state from the snapshot. -5. Start up all {kib} instances on the older version you wish to rollback to. - -[float] -===== (Not recommended) Rollback without a backup snapshot: - -1. Shutdown all {kib} instances to be 100% sure that there are no {kib} instances currently performing a migration. -2. {ref}/snapshots-take-snapshot.html[Take a snapshot] that includes the `kibana` feature state. Snapshots include this feature state by default. -3. Delete the version specific indices created by the failed upgrade migration. E.g. if you wish to rollback from a failed upgrade to v7.12.0 `DELETE /.kibana_7.12.0_*,.kibana_task_manager_7.12.0_*` -4. Inspect the output of `GET /_cat/aliases`. If either the `.kibana` and/or `.kibana_task_manager` alias is missing, these will have to be created manually. Find the latest index from the output of `GET /_cat/indices` and create the missing alias to point to the latest index. E.g. if the `.kibana` alias was missing and the latest index is `.kibana_3` create a new alias with `POST /.kibana_3/_aliases/.kibana`. -5. Remove the write block from the rollback indices. `PUT /.kibana,.kibana_task_manager/_settings {"index.blocks.write": false}` -6. Start up {kib} on the older version you wish to rollback to. - -[float] -[[upgrade-migrations-old-indices]] -==== Handling old `.kibana_N` indices - -After migrations have completed, there will be multiple {kib} indices in {es}: (`.kibana_1`, `.kibana_2`, `.kibana_7.12.0` etc). {kib} only uses the index that the `.kibana` and `.kibana_task_manager` alias points to. The other {kib} indices can be safely deleted, but are left around as a matter of historical record, and to facilitate rolling {kib} back to a previous version. diff --git a/docs/setup/upgrade/upgrade-standard.asciidoc b/docs/setup/upgrade/upgrade-standard.asciidoc index b43da6aef9765..6854ead7531a8 100644 --- a/docs/setup/upgrade/upgrade-standard.asciidoc +++ b/docs/setup/upgrade/upgrade-standard.asciidoc @@ -1,8 +1,8 @@ [[upgrade-standard]] === Standard upgrade -NOTE: 6.7 includes an https://www.elastic.co/guide/en/kibana/6.7/upgrade-assistant.html[Upgrade Assistant] -to help you prepare for your upgrade to 7.0. To access the assistant, go to *Management > 7.0 Upgrade Assistant*. +NOTE: 7.17 includes an https://www.elastic.co/guide/en/kibana/7.17/upgrade-assistant.html[Upgrade Assistant] +to help you prepare for your upgrade to 8.0. To access the assistant, go to *Stack Management > Upgrade Assistant*. [IMPORTANT] =========================================== @@ -29,15 +29,9 @@ Different versions of {kib} running against the same {es} index, such as during . Use `rpm` or `dpkg` to install the new package. All files should be placed in their proper locations and config files should not be overwritten. + -[NOTE] --- -{kib} 4.x used a different config location than 5.0+, so if you're upgrading -from 4.x, you will need to copy the configurations from your old config -(`/opt/kibana/config/kibana.yml`) to your new config -(`/etc/kibana/kibana.yml`). Make sure you remove or update any configurations -that are indicated in the <> documentation +that are indicated in the <> documentation otherwise {kib} will fail to start. -- . Upgrade any plugins by removing the existing plugin and reinstalling the @@ -58,7 +52,7 @@ and becomes a new instance in the monitoring data. -- . Copy the files from the `config` directory from your old installation to your new installation. Make sure you remove or update any configurations that are - indicated in the <> documentation + indicated in the <> documentation otherwise {kib} will fail to start. . Copy the files from the `data` directory from your old installation to your new installation. diff --git a/docs/user/alerting/rule-types/es-query.asciidoc b/docs/user/alerting/rule-types/es-query.asciidoc index e3ce35687260f..dba8a4878cb26 100644 --- a/docs/user/alerting/rule-types/es-query.asciidoc +++ b/docs/user/alerting/rule-types/es-query.asciidoc @@ -2,12 +2,17 @@ [[rule-type-es-query]] === {es} query -The {es} query rule type runs a user-configured {es} query, compares the number of matches to a configured threshold, and schedules actions to run when the threshold condition is met. +The {es} query rule type runs a user-configured query, compares the number of +matches to a configured threshold, and schedules actions to run when the +threshold condition is met. + [float] ==== Create the rule -Fill in the <>, then select *{es} query*. +Fill in the <>, then select +*{es} query*. + [float] ==== Define the conditions @@ -17,30 +22,55 @@ Define properties to detect the condition. [role="screenshot"] image::user/alerting/images/rule-types-es-query-conditions.png[Five clauses define the condition to detect] -Index:: This clause requires an *index or data view* and a *time field* that will be used for the *time window*. -Size:: This clause specifies the number of documents to pass to the configured actions when the the threshold condition is met. -{es} query:: This clause specifies the ES DSL query to execute. The number of documents that match this query will be evaluated against the threshold -condition. Aggregations are not supported at this time. -Threshold:: This clause defines a threshold value and a comparison operator (`is above`, `is above or equals`, `is below`, `is below or equals`, or `is between`). The number of documents that match the specified query is compared to this threshold. -Time window:: This clause determines how far back to search for documents, using the *time field* set in the *index* clause. Generally this value should be set to a value higher than the *check every* value in the <>, to avoid gaps in detection. +Index:: Specifies an *index or data view* and a *time field* that is used for +the *time window*. +Size:: Specifies the number of documents to pass to the configured actions when +the threshold condition is met. +{es} query:: Specifies the ES DSL query to execute. The number of documents that +match this query is evaluated against the threshold condition. Only the `query` +field is used, other DSL fields are not considered. +Threshold:: Defines a threshold value and a comparison operator (`is above`, +`is above or equals`, `is below`, `is below or equals`, or `is between`). The +number of documents that match the specified query is compared to this +threshold. +Time window:: Defines how far back to search for documents, using the +*time field* set in the *index* clause. Generally this value should be set to a +value higher than the *check every* value in the +<>, to avoid gaps in +detection. + [float] ==== Add action variables -<> to run when the rule condition is met. The following variables are specific to the {es} query rule. You can also specify <>. +<> to run when the rule condition +is met. The following variables are specific to the {es} query rule. You can +also specify +<>. + +`context.title`:: A preconstructed title for the rule. Example: +`rule term match alert query matched`. -`context.title`:: A preconstructed title for the rule. Example: `rule term match alert query matched`. `context.message`:: A preconstructed message for the rule. Example: + -`rule 'term match alert' is active:` + -`- Value: 42` + -`- Conditions Met: count greater than 4 over 5m` + -`- Timestamp: 2020-01-01T00:00:00.000Z` +`rule 'my es-query' is active:` + +`- Value: 2` + +`- Conditions Met: Number of matching documents is greater than 1 over 5m` + +`- Timestamp: 2022-02-03T20:29:27.732Z` + +`context.group`:: The name of the action group associated with the condition. +Example: `query matched`. + +`context.date`:: The date, in ISO format, that the rule met the condition. +Example: `2022-02-03T20:29:27.732Z`. -`context.group`:: The name of the action group associated with the condition. Example: `query matched`. -`context.date`:: The date, in ISO format, that the rule met the condition. Example: `2020-01-01T00:00:00.000Z`. `context.value`:: The value of the rule that met the condition. -`context.conditions`:: A description of the condition. Example: `count greater than 4`. -`context.hits`:: The most recent ES documents that matched the query. Using the https://mustache.github.io/[Mustache] template array syntax, you can iterate over these hits to get values from the ES documents into your actions. + +`context.conditions`:: A description of the condition. Example: +`count greater than 4`. + +`context.hits`:: The most recent documents that matched the query. Using the +https://mustache.github.io/[Mustache] template array syntax, you can iterate +over these hits to get values from the ES documents into your actions. + [role="screenshot"] image::images/rule-types-es-query-example-action-variable.png[Iterate over hits using Mustache template syntax] @@ -51,8 +81,8 @@ image::images/rule-types-es-query-example-action-variable.png[Iterate over hits Use the *Test query* feature to verify that your query DSL is valid. -* Valid queries are executed against the configured *index* using the configured *time window*. The number of documents that -match the query will be displayed. +* Valid queries are executed against the configured *index* using the configured +*time window*. The number of documents that match the query is displayed. + [role="screenshot"] image::user/alerting/images/rule-types-es-query-valid.png[Test {es} query returns number of matches when valid] @@ -63,29 +93,35 @@ image::user/alerting/images/rule-types-es-query-valid.png[Test {es} query return image::user/alerting/images/rule-types-es-query-invalid.png[Test {es} query shows error when invalid] [float] -==== Match de-duplication +==== Handling multiple matches of the same document + +This rule type checks for duplication of document matches across rule +executions. If you configure the rule with a schedule interval smaller than the +time window, and a document matches a query in multiple rule executions, it is +alerted on only once. -The {es} query rule type performs de-duplication of document matches across rule executions. If you configure the rule with a schedule interval smaller than the time window, and a document matches a query in multiple rule executions, it will be alerted on only once. +The rule uses the timestamp of the matches to avoid alerting on the same match +multiple times. The timestamp of the latest match is used for evaluating the +rule conditions when the rule is executed. Only matches between the latest +timestamp from the previous execution and the actual rule execution are +considered. -Suppose you have a rule configured to run every minute. The rule uses a time window of 1 hour and checks if there are more than 99 matches for the query. The {es} query rule type will do the following: +Suppose you have a rule configured to run every minute. The rule uses a time +window of 1 hour and checks if there are more than 99 matches for the query. The +{es} query rule type does the following: [cols="3*<"] |=== - | `Execution 1 (0:00)` | Rule finds 113 matches in the last hour: `113 > 99` -| Rule is active and user will be alerted. - +| Rule is active and user is alerted. | `Execution 2 (0:01)` -| Rule finds 127 matches in the last hour. 105 of the matches are duplicates that were alerted on in Execution 1, so you actually have 22 matches: `22 !> 99` +| Rule finds 127 matches in the last hour. 105 of the matches are duplicates that were already alerted on previously, so you actually have 22 matches: `22 !> 99` | No alert. - | `Execution 3 (0:02)` -| Rule finds 159 matches in the last hour. 88 of the matches are duplicates that were alerted on in Execution 1, so you actually have 71 matches: `71 !> 99` +| Rule finds 159 matches in the last hour. 88 of the matches are duplicates that were already alerted on previously, so you actually have 71 matches: `71 !> 99` | No alert. - | `Execution 4 (0:03)` -| Rule finds 190 matches in the last hour. 71 of them are duplicates that were alerted on in Exeuction 1, so you actually have 119 matches: `119 > 99` -| Rule is active and user will be alerted. - +| Rule finds 190 matches in the last hour. 71 of them are duplicates that were already alerted on previously, so you actually have 119 matches: `119 > 99` +| Rule is active and user is alerted. |=== \ No newline at end of file diff --git a/docs/user/dashboard/tsvb.asciidoc b/docs/user/dashboard/tsvb.asciidoc index a1bad870dde46..a097e34b20911 100644 --- a/docs/user/dashboard/tsvb.asciidoc +++ b/docs/user/dashboard/tsvb.asciidoc @@ -191,6 +191,30 @@ For example `dashboards#/view/f193ca90-c9f4-11eb-b038-dd3270053a27`. . In the toolbar, click *Save as*, then make sure *Store time with dashboard* is deselected. ==== +[discrete] +[[how-do-i-base-drilldowns-on-data]] +.*How do I base drilldown URLs on my data?* +[%collapsible] +==== + +You can build drilldown URLs dynamically with your visualization data. + +Do this by adding the `{{key}}` placeholder to your URL + +For example `https://example.org/{{key}}` + +This instructs TSVB to substitute the value from your visualization wherever it sees `{{key}}`. + +If your data contain reserved or invalid URL characters such as "#" or "&", you should apply a transform to URL-encode the key like this `{{encodeURIComponent key}}`. If you are dynamically constructing a drilldown to another location in Kibana (for example, clicking a table row takes to you a value-scoped saved search), you will likely want to Rison-encode your key as it may contain invalid Rison characters. (https://github.com/Nanonid/rison#rison---compact-data-in-uris[Rison] is the serialization format many parts of Kibana use to store information in their URL.) + +For example: `discover#/view/0ac50180-82d9-11ec-9f4a-55de56b00cc0?_a=(filters:!((query:(match_phrase:(foo.keyword:{{rison key}})))))` + +If both conditions apply, you can cover all cases by applying both transforms: `{{encodeURIComponent (rison key)}}`. + +Technical note: TSVB uses https://handlebarsjs.com/[Handlebars] to perform these interpolations. `rison` and `encodeURIComponent` are custom Handlebars helpers provided by Kibana. + +==== + [discrete] [[why-is-my-tsvb-visualiztion-missing-data]] .*Why is my TSVB visualization missing data?* diff --git a/docs/user/dashboard/vega-reference.asciidoc b/docs/user/dashboard/vega-reference.asciidoc index 860261129a364..b9fdf0c9a7ec5 100644 --- a/docs/user/dashboard/vega-reference.asciidoc +++ b/docs/user/dashboard/vega-reference.asciidoc @@ -429,8 +429,9 @@ To keep signal values set `restoreSignalValuesOnRefresh: true` in the Vega confi /** * @param {object} query Elastic Query DSL snippet, as used in the query DSL editor * @param {string} [index] as defined in Kibana, or default if missing + * @param {string} Custom label of the filter shown in the filter bar */ -kibanaAddFilter(query, index) +kibanaAddFilter(query, index, alias) /** * @param {object} query Elastic Query DSL snippet, as used in the query DSL editor diff --git a/docs/user/management.asciidoc b/docs/user/management.asciidoc index e682f7372f817..6c309d56f2294 100644 --- a/docs/user/management.asciidoc +++ b/docs/user/management.asciidoc @@ -167,10 +167,6 @@ set the timespan for notification messages, and much more. the full list of features that are included in your license, see the https://www.elastic.co/subscriptions[subscription page]. -| <> -| Identify the issues that you need to address before upgrading to the -next major version of {es}, and then reindex, if needed. - |=== @@ -197,6 +193,4 @@ include::{kib-repo-dir}/spaces/index.asciidoc[] include::{kib-repo-dir}/management/managing-tags.asciidoc[] -include::{kib-repo-dir}/management/upgrade-assistant/index.asciidoc[] - include::{kib-repo-dir}/management/watcher-ui/index.asciidoc[] 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/docs/user/whats-new.asciidoc b/docs/user/whats-new.asciidoc index 587f4588bb442..640a824180480 100644 --- a/docs/user/whats-new.asciidoc +++ b/docs/user/whats-new.asciidoc @@ -2,9 +2,7 @@ == What's new in 8.0 This section summarizes the most important changes in each release. For the -full list, see <> and <>. - -coming[8.0.0] +full list, see <> and <>. //NOTE: The notable-highlights tagged regions are re-used in the //Installation and Upgrade Guide diff --git a/examples/embeddable_explorer/public/plugin.tsx b/examples/embeddable_explorer/public/plugin.tsx index 55c2a215e436d..ea8c412e443ee 100644 --- a/examples/embeddable_explorer/public/plugin.tsx +++ b/examples/embeddable_explorer/public/plugin.tsx @@ -34,7 +34,12 @@ export class EmbeddableExplorerPlugin implements Plugin & { context: string[] }; diff --git a/packages/kbn-logging-mocks/tsconfig.json b/packages/kbn-logging-mocks/tsconfig.json new file mode 100644 index 0000000000000..ce53e016c2830 --- /dev/null +++ b/packages/kbn-logging-mocks/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig.bazel.json", + "compilerOptions": { + "declaration": true, + "declarationMap": true, + "emitDeclarationOnly": true, + "outDir": "target_types", + "rootDir": "src", + "sourceMap": true, + "sourceRoot": "../../../../packages/kbn-logging-mocks/src", + "stripInternal": false, + "types": [ + "jest", + "node" + ] + }, + "include": [ + "src/**/*.ts" + ] +} diff --git a/packages/kbn-logging/BUILD.bazel b/packages/kbn-logging/BUILD.bazel index 8e55456069ee4..09ff3f0d83b2d 100644 --- a/packages/kbn-logging/BUILD.bazel +++ b/packages/kbn-logging/BUILD.bazel @@ -1,9 +1,10 @@ -load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project") -load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm") -load("//src/dev/bazel:index.bzl", "jsts_transpiler") +load("@npm//@bazel/typescript:index.bzl", "ts_config") +load("@build_bazel_rules_nodejs//:index.bzl", "js_library") +load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project") PKG_BASE_NAME = "kbn-logging" PKG_REQUIRE_NAME = "@kbn/logging" +TYPES_PKG_REQUIRE_NAME = "@types/kbn__logging" SOURCE_FILES = glob( [ @@ -22,7 +23,6 @@ filegroup( ) NPM_MODULE_EXTRA_FILES = [ - "mocks/package.json", "package.json", "README.md" ] @@ -69,7 +69,7 @@ ts_project( js_library( name = PKG_BASE_NAME, srcs = NPM_MODULE_EXTRA_FILES, - deps = RUNTIME_DEPS + [":target_node", ":tsc_types"], + deps = RUNTIME_DEPS + [":target_node"], package_name = PKG_REQUIRE_NAME, visibility = ["//visibility:public"], ) @@ -88,3 +88,20 @@ filegroup( ], visibility = ["//visibility:public"], ) + +pkg_npm_types( + name = "npm_module_types", + srcs = SRCS, + deps = [":tsc_types"], + package_name = TYPES_PKG_REQUIRE_NAME, + tsconfig = ":tsconfig", + visibility = ["//visibility:public"], +) + +filegroup( + name = "build_types", + srcs = [ + ":npm_module_types", + ], + visibility = ["//visibility:public"], +) diff --git a/packages/kbn-logging/mocks/package.json b/packages/kbn-logging/mocks/package.json deleted file mode 100644 index 8410f557e9524..0000000000000 --- a/packages/kbn-logging/mocks/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "private": true, - "main": "../target_node/mocks/index.js", - "types": "../target_types/mocks/index.d.ts" -} \ No newline at end of file diff --git a/packages/kbn-logging/package.json b/packages/kbn-logging/package.json index c35c2f5d06095..0220da8709d30 100644 --- a/packages/kbn-logging/package.json +++ b/packages/kbn-logging/package.json @@ -3,6 +3,5 @@ "version": "1.0.0", "private": true, "license": "SSPL-1.0 OR Elastic License 2.0", - "main": "./target_node/index.js", - "types": "./target_types/index.d.ts" + "main": "./target_node/index.js" } \ No newline at end of file diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 3a7c50feb38b7..f786d01232227 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -116,7 +116,6 @@ pageLoadAssetSize: dataViewManagement: 5000 reporting: 57003 visTypeHeatmap: 25340 - screenshotting: 17017 expressionGauge: 25000 controls: 34788 expressionPartitionVis: 26338 diff --git a/packages/kbn-pm/dist/index.js b/packages/kbn-pm/dist/index.js index d0fe0f269f6fa..a4b6f4938ddcd 100644 --- a/packages/kbn-pm/dist/index.js +++ b/packages/kbn-pm/dist/index.js @@ -51510,7 +51510,7 @@ async function sortPackageJson(kbn) { await fs_promises__WEBPACK_IMPORTED_MODULE_0___default.a.writeFile(packageJsonPath, JSON.stringify(sort_package_json__WEBPACK_IMPORTED_MODULE_1___default()(JSON.parse(packageJson), { // top level keys in the order they were written when this was implemented sortOrder: ['name', 'description', 'keywords', 'private', 'version', 'branch', 'types', 'tsdocMetadata', 'build', 'homepage', 'bugs', 'kibana', 'author', 'scripts', 'repository', 'engines', 'resolutions'] - }), null, 2)); + }), null, 2) + '\n'); } /***/ }), diff --git a/packages/kbn-pm/src/utils/sort_package_json.ts b/packages/kbn-pm/src/utils/sort_package_json.ts index 0abab6f0f89b4..b4df5355744f1 100644 --- a/packages/kbn-pm/src/utils/sort_package_json.ts +++ b/packages/kbn-pm/src/utils/sort_package_json.ts @@ -42,6 +42,6 @@ export async function sortPackageJson(kbn: Kibana) { }), null, 2 - ) + ) + '\n' ); } 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/packages/kbn-typed-react-router-config/BUILD.bazel b/packages/kbn-typed-react-router-config/BUILD.bazel index 6f4e53e58fff7..62fd6adf5bb26 100644 --- a/packages/kbn-typed-react-router-config/BUILD.bazel +++ b/packages/kbn-typed-react-router-config/BUILD.bazel @@ -1,9 +1,10 @@ -load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project") -load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm") -load("//src/dev/bazel:index.bzl", "jsts_transpiler") +load("@npm//@bazel/typescript:index.bzl", "ts_config") +load("@build_bazel_rules_nodejs//:index.bzl", "js_library") +load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project") PKG_BASE_NAME = "kbn-typed-react-router-config" PKG_REQUIRE_NAME = "@kbn/typed-react-router-config" +TYPES_PKG_REQUIRE_NAME = "@types/kbn__typed-react-router-config" SOURCE_FILES = glob( [ @@ -28,23 +29,30 @@ NPM_MODULE_EXTRA_FILES = [ RUNTIME_DEPS = [ "//packages/kbn-io-ts-utils", - "@npm//tslib", - "@npm//utility-types", + "@npm//fp-ts", + "@npm//history", "@npm//io-ts", + "@npm//lodash", "@npm//query-string", + "@npm//react", "@npm//react-router-config", "@npm//react-router-dom", + "@npm//tslib", + "@npm//utility-types", ] TYPES_DEPS = [ "//packages/kbn-io-ts-utils:npm_module_types", + "@npm//fp-ts", "@npm//query-string", "@npm//utility-types", + "@npm//@types/history", "@npm//@types/jest", + "@npm//@types/lodash", "@npm//@types/node", + "@npm//@types/react", "@npm//@types/react-router-config", "@npm//@types/react-router-dom", - "@npm//@types/history", ] jsts_transpiler( @@ -86,7 +94,7 @@ ts_project( js_library( name = PKG_BASE_NAME, srcs = NPM_MODULE_EXTRA_FILES, - deps = RUNTIME_DEPS + [":target_node", ":target_web", ":tsc_types"], + deps = RUNTIME_DEPS + [":target_node", ":target_web"], package_name = PKG_REQUIRE_NAME, visibility = ["//visibility:public"], ) @@ -105,3 +113,20 @@ filegroup( ], visibility = ["//visibility:public"], ) + +pkg_npm_types( + name = "npm_module_types", + srcs = SRCS, + deps = [":tsc_types"], + package_name = TYPES_PKG_REQUIRE_NAME, + tsconfig = ":tsconfig", + visibility = ["//visibility:public"], +) + +filegroup( + name = "build_types", + srcs = [ + ":npm_module_types", + ], + visibility = ["//visibility:public"], +) diff --git a/packages/kbn-typed-react-router-config/package.json b/packages/kbn-typed-react-router-config/package.json index 50c2e4b5d7e89..0f45f63f4ab2d 100644 --- a/packages/kbn-typed-react-router-config/package.json +++ b/packages/kbn-typed-react-router-config/package.json @@ -1,7 +1,6 @@ { "name": "@kbn/typed-react-router-config", "main": "target_node/index.js", - "types": "target_types/index.d.ts", "browser": "target_web/index.js", "version": "1.0.0", "license": "SSPL-1.0 OR Elastic License 2.0", diff --git a/scripts/functional_tests.js b/scripts/functional_tests.js index b286cf05a6d71..6cfd1d57e9c96 100644 --- a/scripts/functional_tests.js +++ b/scripts/functional_tests.js @@ -6,8 +6,8 @@ * Side Public License, v 1. */ -// eslint-disable-next-line no-restricted-syntax -const alwaysImportedTests = [ +require('../src/setup_node_env'); +require('@kbn/test').runTestsCli([ require.resolve('../test/functional/config.js'), require.resolve('../test/plugin_functional/config.ts'), require.resolve('../test/ui_capabilities/newsfeed_err/config.ts'), @@ -25,18 +25,7 @@ const alwaysImportedTests = [ require.resolve( '../test/interactive_setup_functional/manual_configuration_without_tls.config.ts' ), -]; -// eslint-disable-next-line no-restricted-syntax -const onlyNotInCoverageTests = [ require.resolve('../test/api_integration/config.js'), require.resolve('../test/interpreter_functional/config.ts'), require.resolve('../test/examples/config.js'), -]; - -require('../src/setup_node_env'); -require('@kbn/test').runTestsCli([ - // eslint-disable-next-line no-restricted-syntax - ...alwaysImportedTests, - // eslint-disable-next-line no-restricted-syntax - ...(!!process.env.CODE_COVERAGE ? [] : onlyNotInCoverageTests), ]); diff --git a/src/core/public/application/application_service.tsx b/src/core/public/application/application_service.tsx index 9f5470a2d248e..3010a781b4e9e 100644 --- a/src/core/public/application/application_service.tsx +++ b/src/core/public/application/application_service.tsx @@ -67,8 +67,9 @@ const getAppUrl = (mounters: Map, appId: string, path: string = return appendAppPath(appBasePath, path); }; -const getAppDeepLinkPath = (mounters: Map, appId: string, deepLinkId: string) => { - return mounters.get(appId)?.deepLinkPaths[deepLinkId]; +const getAppDeepLinkPath = (app: App, appId: string, deepLinkId: string) => { + const flattenedLinks = flattenDeepLinks(app.deepLinks); + return flattenedLinks[deepLinkId]; }; const allApplicationsFilter = '__ALL__'; @@ -182,7 +183,6 @@ export class ApplicationService { this.mounters.set(app.id, { appRoute: app.appRoute!, appBasePath: basePath.prepend(app.appRoute!), - deepLinkPaths: toDeepLinkPaths(app.deepLinks), exactRoute: app.exactRoute ?? false, mount: wrapMount(plugin, app), unmountBeforeMounting: false, @@ -242,15 +242,17 @@ export class ApplicationService { ? true : await this.shouldNavigate(overlays, appId); + const targetApp = applications$.value.get(appId); + if (shouldNavigate) { - if (deepLinkId) { - const deepLinkPath = getAppDeepLinkPath(availableMounters, appId, deepLinkId); + if (deepLinkId && targetApp) { + const deepLinkPath = getAppDeepLinkPath(targetApp, appId, deepLinkId); if (deepLinkPath) { path = appendAppPath(deepLinkPath, path); } } if (path === undefined) { - path = applications$.value.get(appId)?.defaultPath; + path = targetApp?.defaultPath; } if (openInNewTab) { this.openInNewTab!(getAppUrl(availableMounters, appId, path)); @@ -290,8 +292,9 @@ export class ApplicationService { deepLinkId, }: { path?: string; absolute?: boolean; deepLinkId?: string } = {} ) => { - if (deepLinkId) { - const deepLinkPath = getAppDeepLinkPath(availableMounters, appId, deepLinkId); + const targetApp = applications$.value.get(appId); + if (deepLinkId && targetApp) { + const deepLinkPath = getAppDeepLinkPath(targetApp, appId, deepLinkId); if (deepLinkPath) { path = appendAppPath(deepLinkPath, path); } @@ -439,12 +442,12 @@ const populateDeepLinkDefaults = (deepLinks?: AppDeepLink[]): AppDeepLink[] => { })); }; -const toDeepLinkPaths = (deepLinks?: AppDeepLink[]): Mounter['deepLinkPaths'] => { +const flattenDeepLinks = (deepLinks?: AppDeepLink[]): Record => { if (!deepLinks) { return {}; } - return deepLinks.reduce((deepLinkPaths: Mounter['deepLinkPaths'], deepLink) => { + return deepLinks.reduce((deepLinkPaths: Record, deepLink) => { if (deepLink.path) deepLinkPaths[deepLink.id] = deepLink.path; - return { ...deepLinkPaths, ...toDeepLinkPaths(deepLink.deepLinks) }; + return { ...deepLinkPaths, ...flattenDeepLinks(deepLink.deepLinks) }; }, {}); }; diff --git a/src/core/public/application/integration_tests/application_service.test.tsx b/src/core/public/application/integration_tests/application_service.test.tsx index 59ef1346ef323..dda029c66f4c3 100644 --- a/src/core/public/application/integration_tests/application_service.test.tsx +++ b/src/core/public/application/integration_tests/application_service.test.tsx @@ -6,6 +6,7 @@ * Side Public License, v 1. */ +import { BehaviorSubject } from 'rxjs'; import { take } from 'rxjs/operators'; import { act } from 'react-dom/test-utils'; import { createMemoryHistory, MemoryHistory } from 'history'; @@ -16,7 +17,7 @@ import { httpServiceMock } from '../../http/http_service.mock'; import { MockLifecycle } from '../test_types'; import { overlayServiceMock } from '../../overlays/overlay_service.mock'; import { themeServiceMock } from '../../theme/theme_service.mock'; -import { AppMountParameters } from '../types'; +import { AppMountParameters, AppUpdater } from '../types'; import { Observable } from 'rxjs'; import { MountPoint } from 'kibana/public'; @@ -134,6 +135,42 @@ describe('ApplicationService', () => { expect(history.entries.map((entry) => entry.pathname)).toEqual(['/', '/app/app1/bar']); }); + + it('handles updated deepLinks', async () => { + const { register } = service.setup(setupDeps); + + const updater$ = new BehaviorSubject(() => ({})); + + register(Symbol(), { + id: 'app1', + title: 'App1', + deepLinks: [], + updater$, + mount: async ({}: AppMountParameters) => { + return () => undefined; + }, + }); + + const { navigateToApp } = await service.start(startDeps); + + updater$.next(() => ({ + deepLinks: [ + { + id: 'deepLink', + title: 'Some deep link', + path: '/deep-link', + }, + ], + })); + + await navigateToApp('app1', { deepLinkId: 'deepLink' }); + + expect(history.entries.map((entry) => entry.pathname)).toEqual([ + '/', + '/app/app1/deep-link', + ]); + }); + //// }); }); diff --git a/src/core/public/application/integration_tests/utils.tsx b/src/core/public/application/integration_tests/utils.tsx index 7ebc12deccd02..9c1969d9f39c7 100644 --- a/src/core/public/application/integration_tests/utils.tsx +++ b/src/core/public/application/integration_tests/utils.tsx @@ -40,14 +40,12 @@ export const createAppMounter = ({ appId, html = `
App ${appId}
`, appRoute = `/app/${appId}`, - deepLinkPaths = {}, exactRoute = false, extraMountHook, }: { appId: string; html?: string; appRoute?: string; - deepLinkPaths?: Record; exactRoute?: boolean; extraMountHook?: (params: AppMountParameters) => void; }): MockedMounterTuple => { @@ -58,7 +56,6 @@ export const createAppMounter = ({ mounter: { appRoute, appBasePath: appRoute, - deepLinkPaths, exactRoute, mount: jest.fn(async (params: AppMountParameters) => { const { appBasePath: basename, element } = params; diff --git a/src/core/public/application/types.ts b/src/core/public/application/types.ts index 9c3294086efcc..187cee8d0a29a 100644 --- a/src/core/public/application/types.ts +++ b/src/core/public/application/types.ts @@ -636,7 +636,6 @@ export interface AppLeaveActionFactory { export interface Mounter { appRoute: string; appBasePath: string; - deepLinkPaths: Record; mount: AppMount; exactRoute: boolean; unmountBeforeMounting?: boolean; diff --git a/src/core/public/application/ui/app_container.test.tsx b/src/core/public/application/ui/app_container.test.tsx index 4434f6c1751e0..5512b4a120714 100644 --- a/src/core/public/application/ui/app_container.test.tsx +++ b/src/core/public/application/ui/app_container.test.tsx @@ -51,7 +51,6 @@ describe('AppContainer', () => { appRoute: '/some-route', unmountBeforeMounting: false, exactRoute: false, - deepLinkPaths: {}, mount: async ({ element }: AppMountParameters) => { await promise; const container = document.createElement('div'); @@ -67,7 +66,6 @@ describe('AppContainer', () => { appRoute: '/some-route', unmountBeforeMounting: false, exactRoute: false, - deepLinkPaths: {}, mount: jest.fn().mockImplementation(({ element }) => { const container = document.createElement('div'); container.innerHTML = 'some-content'; @@ -190,7 +188,6 @@ describe('AppContainer', () => { const mounter = { appBasePath: '/base-path/some-route', appRoute: '/some-route', - deepLinkPaths: {}, unmountBeforeMounting: false, exactRoute: false, mount: async ({ element }: AppMountParameters) => { diff --git a/src/core/public/http/external_url_service.test.ts b/src/core/public/http/external_url_service.test.ts index ee757c5046760..4ce3709ff6366 100644 --- a/src/core/public/http/external_url_service.test.ts +++ b/src/core/public/http/external_url_service.test.ts @@ -73,6 +73,23 @@ const internalRequestScenarios = [ ]; describe('External Url Service', () => { + describe('#isInternalUrl', () => { + const { setup } = setupService({ + location: new URL('https://example.com/app/management?q=1&bar=false#some-hash'), + serverBasePath: '', + policy: [], + }); + + it('internal request', () => { + expect(setup.isInternalUrl('/')).toBeTruthy(); + expect(setup.isInternalUrl('https://example.com/')).toBeTruthy(); + }); + + it('external request', () => { + expect(setup.isInternalUrl('https://elastic.co/')).toBeFalsy(); + }); + }); + describe('#validateUrl', () => { describe('internal requests with a server base path', () => { const serverBasePath = '/base-path'; diff --git a/src/core/public/http/external_url_service.ts b/src/core/public/http/external_url_service.ts index 166e167b3b994..0fb1c85d48257 100644 --- a/src/core/public/http/external_url_service.ts +++ b/src/core/public/http/external_url_service.ts @@ -50,20 +50,33 @@ function normalizeProtocol(protocol: string) { return protocol.endsWith(':') ? protocol.slice(0, -1).toLowerCase() : protocol.toLowerCase(); } +const createIsInternalUrlValidation = ( + location: Pick, + serverBasePath: string +) => { + return function isInternallUrl(next: string) { + const base = new URL(location.href); + const url = new URL(next, base); + + return ( + url.origin === base.origin && + (!serverBasePath || url.pathname.startsWith(`${serverBasePath}/`)) + ); + }; +}; + const createExternalUrlValidation = ( rules: IExternalUrlPolicy[], location: Pick, serverBasePath: string ) => { + const isInternalUrl = createIsInternalUrlValidation(location, serverBasePath); + return function validateExternalUrl(next: string) { const base = new URL(location.href); const url = new URL(next, base); - const isInternalURL = - url.origin === base.origin && - (!serverBasePath || url.pathname.startsWith(`${serverBasePath}/`)); - - if (isInternalURL) { + if (isInternalUrl(next)) { return url; } @@ -90,6 +103,7 @@ export class ExternalUrlService implements CoreService { const { policy } = injectedMetadata.getExternalUrlConfig(); return { + isInternalUrl: createIsInternalUrlValidation(location, serverBasePath), validateUrl: createExternalUrlValidation(policy, location, serverBasePath), }; } diff --git a/src/core/public/http/http_service.mock.ts b/src/core/public/http/http_service.mock.ts index fff99d84a76a6..bfd81a1003736 100644 --- a/src/core/public/http/http_service.mock.ts +++ b/src/core/public/http/http_service.mock.ts @@ -36,6 +36,7 @@ const createServiceMock = ({ isAnonymous: jest.fn(), }, externalUrl: { + isInternalUrl: jest.fn(), validateUrl: jest.fn(), }, addLoadingCountSource: jest.fn(), diff --git a/src/core/public/http/types.ts b/src/core/public/http/types.ts index 876799765ea1c..afe1d653c599c 100644 --- a/src/core/public/http/types.ts +++ b/src/core/public/http/types.ts @@ -110,6 +110,13 @@ export interface IBasePath { * @public */ export interface IExternalUrl { + /** + * Determines if the provided URL is an internal url. + * + * @param relativeOrAbsoluteUrl + */ + isInternalUrl(relativeOrAbsoluteUrl: string): boolean; + /** * Determines if the provided URL is a valid location to send users. * Validation is based on the configured allow list in kibana.yml. diff --git a/src/core/public/public.api.md b/src/core/public/public.api.md index db132e267807e..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'; @@ -686,6 +683,7 @@ export interface IBasePath { // @public export interface IExternalUrl { + isInternalUrl(relativeOrAbsoluteUrl: string): boolean; validateUrl(relativeOrAbsoluteUrl: string): URL | null; } 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/http/integration_tests/router.test.ts b/src/core/server/http/integration_tests/router.test.ts index 1bc42a556dbc4..57403aff5d7eb 100644 --- a/src/core/server/http/integration_tests/router.test.ts +++ b/src/core/server/http/integration_tests/router.test.ts @@ -17,7 +17,7 @@ import { loggingSystemMock } from '../../logging/logging_system.mock'; import { createHttpServer } from '../test_utils'; import { HttpService } from '../http_service'; import { Router } from '../router'; -import { loggerMock } from '@kbn/logging/mocks'; +import { loggerMock } from '@kbn/logging-mocks'; let server: HttpService; let logger: ReturnType; diff --git a/src/core/server/logging/logger.mock.ts b/src/core/server/logging/logger.mock.ts index cfabaeb72adf7..55ce55bc035e4 100644 --- a/src/core/server/logging/logger.mock.ts +++ b/src/core/server/logging/logger.mock.ts @@ -6,5 +6,5 @@ * Side Public License, v 1. */ -export { loggerMock } from '@kbn/logging/mocks'; -export type { MockedLogger } from '@kbn/logging/mocks'; +export { loggerMock } from '@kbn/logging-mocks'; +export type { MockedLogger } from '@kbn/logging-mocks'; diff --git a/src/core/server/metrics/collectors/cgroup.test.ts b/src/core/server/metrics/collectors/cgroup.test.ts index 269437f026f2f..3f12107c80ea1 100644 --- a/src/core/server/metrics/collectors/cgroup.test.ts +++ b/src/core/server/metrics/collectors/cgroup.test.ts @@ -7,7 +7,7 @@ */ import mockFs from 'mock-fs'; -import { loggerMock } from '@kbn/logging/mocks'; +import { loggerMock } from '@kbn/logging-mocks'; import { OsCgroupMetricsCollector } from './cgroup'; describe('OsCgroupMetricsCollector', () => { diff --git a/src/core/server/metrics/collectors/os.test.ts b/src/core/server/metrics/collectors/os.test.ts index 5592038f1416a..4715fab16cb74 100644 --- a/src/core/server/metrics/collectors/os.test.ts +++ b/src/core/server/metrics/collectors/os.test.ts @@ -8,7 +8,7 @@ jest.mock('getos', () => (cb: Function) => cb(null, { dist: 'distrib', release: 'release' })); -import { loggerMock } from '@kbn/logging/mocks'; +import { loggerMock } from '@kbn/logging-mocks'; import os from 'os'; import { cgroupCollectorMock } from './os.test.mocks'; import { OsMetricsCollector } from './os'; diff --git a/src/core/server/metrics/ops_metrics_collector.test.ts b/src/core/server/metrics/ops_metrics_collector.test.ts index 7d263d8b7d6af..78160729f7bdc 100644 --- a/src/core/server/metrics/ops_metrics_collector.test.ts +++ b/src/core/server/metrics/ops_metrics_collector.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { loggerMock } from '@kbn/logging/mocks'; +import { loggerMock } from '@kbn/logging-mocks'; import { mockOsCollector, mockProcessCollector, 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/dev/build/tasks/download_cloud_dependencies.ts b/src/dev/build/tasks/download_cloud_dependencies.ts index 1207594304e64..6ecc09c21ddce 100644 --- a/src/dev/build/tasks/download_cloud_dependencies.ts +++ b/src/dev/build/tasks/download_cloud_dependencies.ts @@ -36,12 +36,19 @@ export const DownloadCloudDependencies: Task = { let buildId = ''; if (!config.isRelease) { - const manifest = await Axios.get( - `https://artifacts-api.elastic.co/v1/versions/${config.getBuildVersion()}/builds/latest` - ); - buildId = manifest.data.build.build_id; + const manifestUrl = `https://artifacts-api.elastic.co/v1/versions/${config.getBuildVersion()}/builds/latest`; + try { + const manifest = await Axios.get(manifestUrl); + buildId = manifest.data.build.build_id; + } catch (e) { + log.error( + `Unable to find Elastic artifacts for ${config.getBuildVersion()} at ${manifestUrl}.` + ); + throw e; + } } await del([config.resolveFromRepo('.beats')]); + await downloadBeat('metricbeat', buildId); await downloadBeat('filebeat', buildId); }, diff --git a/src/dev/code_coverage/nyc_config/nyc.functional.config.js b/src/dev/code_coverage/nyc_config/nyc.functional.config.js index 479c40ec9e109..1b68c23db5f4b 100644 --- a/src/dev/code_coverage/nyc_config/nyc.functional.config.js +++ b/src/dev/code_coverage/nyc_config/nyc.functional.config.js @@ -7,7 +7,18 @@ */ const defaultExclude = require('@istanbuljs/schema/default-exclude'); -const extraExclude = ['data/optimize/**', 'src/core/server/**', '**/{test, types}/**/*']; +const extraExclude = [ + 'data/optimize/**', + '**/{__jest__,__test__,__examples__,__fixtures__,__snapshots__,__stories__,*mock*,*storybook,target,types}/**/*', + '**/{integration_tests,test,tests,test_helpers,test_data,test_samples,test_utils,test_utilities,*scripts}/**/*', + '**/{*e2e*,fixtures,manual_tests,stub*}/**', + '**/*mock*.{ts,tsx}', + '**/*.test.{ts,tsx}', + '**/*.spec.{ts,tsx}', + '**/types.ts', + '**/*.d.ts', + '**/index.{js,ts,tsx}', +]; const path = require('path'); module.exports = { @@ -16,5 +27,9 @@ module.exports = { : 'target/kibana-coverage/functional', 'report-dir': 'target/kibana-coverage/functional-combined', reporter: ['html', 'json-summary'], + include: [ + 'src/{core,plugins}/**/*.{js,mjs,jsx,ts,tsx}', + 'x-pack/plugins/**/*.{js,mjs,jsx,ts,tsx}', + ], exclude: extraExclude.concat(defaultExclude), }; diff --git a/src/dev/code_coverage/nyc_config/nyc.server.config.js b/src/dev/code_coverage/nyc_config/nyc.server.config.js new file mode 100644 index 0000000000000..d8cebf468d0db --- /dev/null +++ b/src/dev/code_coverage/nyc_config/nyc.server.config.js @@ -0,0 +1,33 @@ +/* + * 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. + */ + +const path = require('path'); + +module.exports = { + extends: '@istanbuljs/nyc-config-typescript', + 'report-dir': process.env.KIBANA_DIR + ? path.resolve(process.env.KIBANA_DIR, 'target/kibana-coverage/server') + : 'target/kibana-coverage/server', + reporter: ['json'], + all: true, + include: [ + 'src/{core,plugins}/**/*.{js,mjs,jsx,ts,tsx}', + 'x-pack/plugins/**/*.{js,mjs,jsx,ts,tsx}', + ], + exclude: [ + '**/{__jest__,__test__,__examples__,__fixtures__,__snapshots__,__stories__,*mock*,*storybook,target,types}/**/*', + '**/{integration_tests,test,tests,test_helpers,test_data,test_samples,test_utils,test_utilities,*scripts}/**/*', + '**/{*e2e*,fixtures,manual_tests,stub*}/**', + '**/*mock*.{ts,tsx}', + '**/*.test.{ts,tsx}', + '**/*.spec.{ts,tsx}', + '**/types.ts', + '**/*.d.ts', + '**/index.{js,ts,tsx}', + ], +}; diff --git a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap b/src/plugins/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap index 1a7ca53228a60..a0b8cddaf4f9c 100644 --- a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_gauge/common/expression_functions/__snapshots__/gauge_function.test.ts.snap @@ -6,6 +6,7 @@ Object { "type": "render", "value": Object { "args": Object { + "ariaLabel": undefined, "colorMode": "none", "goalAccessor": undefined, "labelMajor": "title", diff --git a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts b/src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts index 2c24aa292319c..61de491595f05 100644 --- a/src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts +++ b/src/plugins/chart_expressions/expression_gauge/common/expression_functions/gauge_function.ts @@ -93,14 +93,27 @@ export const gaugeFunction = (): GaugeExpressionFunctionDefinition => ({ }), required: false, }, + ariaLabel: { + types: ['string'], + help: i18n.translate('expressionGauge.functions.gaugeChart.config.ariaLabel.help', { + defaultMessage: 'Specifies the aria label of the gauge chart', + }), + required: false, + }, }, - fn(data, args) { + fn(data, args, handlers) { return { type: 'render', as: EXPRESSION_GAUGE_NAME, value: { data, - args, + args: { + ...args, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, + }, }, }; }, diff --git a/src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts b/src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts index 16f246bf24713..e1cebae438758 100644 --- a/src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts +++ b/src/plugins/chart_expressions/expression_gauge/common/types/expression_functions.ts @@ -46,6 +46,7 @@ export type GaugeArguments = GaugeState & { shape: GaugeShape; colorMode: GaugeColorMode; palette?: PaletteOutput; + ariaLabel?: string; }; export type GaugeInput = Datatable; diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap b/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap index bd39344807643..9af3bb2be8a57 100644 --- a/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap +++ b/src/plugins/chart_expressions/expression_gauge/public/components/__snapshots__/gauge_component.test.tsx.snap @@ -5,6 +5,7 @@ exports[`GaugeComponent renders the chart 1`] = ` renderer="canvas" > diff --git a/src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx b/src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx index dfd7755c47681..593c18e5e9b05 100644 --- a/src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx +++ b/src/plugins/chart_expressions/expression_gauge/public/components/gauge_component.tsx @@ -231,7 +231,12 @@ export const GaugeComponent: FC = memo( return ( - + ({ defaultMessage: 'The id of the split column or the corresponding dimension', }), }, + ariaLabel: { + types: ['string'], + help: i18n.translate('expressionHeatmap.functions.args.ariaLabelHelpText', { + defaultMessage: 'Specifies the aria label of the heat map', + }), + required: false, + }, }, fn(data, args, handlers) { if (handlers?.inspectorAdapters?.tables) { @@ -203,7 +210,13 @@ export const heatmapFunction = (): HeatmapExpressionFunctionDefinition => ({ as: EXPRESSION_HEATMAP_NAME, value: { data, - args, + args: { + ...args, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, + }, }, }; }, diff --git a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts b/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts index efd4e1a8b990c..10e43e426317d 100644 --- a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts +++ b/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts @@ -77,6 +77,7 @@ export interface HeatmapArguments { splitColumnAccessor?: string | ExpressionValueVisDimension; legend: HeatmapLegendConfigResult; gridConfig: HeatmapGridConfigResult; + ariaLabel?: string; } export type HeatmapInput = Datatable; diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx b/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx index 3c751956c0ea2..c1e026064fdfb 100644 --- a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx +++ b/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx @@ -521,6 +521,8 @@ export const HeatmapComponent: FC = memo( : NaN, }} onBrushEnd={interactive ? (onBrushEnd as BrushEndListener) : undefined} + ariaLabel={args.ariaLabel} + ariaUseDefaultSummary={!args.ariaLabel} /> = memo( yAxisLabelName={yAxisColumn?.name} xAxisTitle={args.gridConfig.isXAxisTitleVisible ? xAxisTitle : undefined} yAxisTitle={args.gridConfig.isYAxisTitleVisible ? yAxisTitle : undefined} - xAxisLabelFormatter={(v) => `${xValuesFormatter.convert(v) ?? ''}`} + xAxisLabelFormatter={(v) => + args.gridConfig.isXAxisLabelVisible ? `${xValuesFormatter.convert(v)}` : '' + } yAxisLabelFormatter={ yAxisColumn - ? (v) => `${formatFactory(yAxisColumn.meta.params).convert(v) ?? ''}` + ? (v) => + args.gridConfig.isYAxisLabelVisible + ? `${formatFactory(yAxisColumn.meta.params).convert(v) ?? ''}` + : '' : undefined } /> 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/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap index de064a44058cc..f1bd7834e52f1 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/mosaic_vis_function.test.ts.snap @@ -59,6 +59,7 @@ Object { "syncColors": false, "visConfig": Object { "addTooltip": true, + "ariaLabel": undefined, "buckets": Array [ Object { "accessor": 1, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap index 95b8df13882d9..d73f53277a2ba 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/pie_vis_function.test.ts.snap @@ -32,6 +32,7 @@ Object { "syncColors": false, "visConfig": Object { "addTooltip": true, + "ariaLabel": undefined, "buckets": Array [ Object { "accessor": 1, @@ -164,6 +165,7 @@ Object { "syncColors": false, "visConfig": Object { "addTooltip": true, + "ariaLabel": undefined, "buckets": Array [ Object { "accessor": 1, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap index d18dca573606a..b8d8032fa5839 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/treemap_vis_function.test.ts.snap @@ -59,6 +59,7 @@ Object { "syncColors": false, "visConfig": Object { "addTooltip": true, + "ariaLabel": undefined, "buckets": Array [ Object { "accessor": 1, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap index 54ead941c7548..7c6922cdff84a 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/__snapshots__/waffle_vis_function.test.ts.snap @@ -59,6 +59,7 @@ Object { "syncColors": false, "visConfig": Object { "addTooltip": true, + "ariaLabel": undefined, "bucket": Object { "accessor": 1, "format": Object { diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts index 0be470121ecb4..aa433b8eaee2d 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/i18n.ts @@ -93,6 +93,10 @@ export const strings = { i18n.translate('expressionPartitionVis.waffle.function.args.showValuesInLegendHelpText', { defaultMessage: 'Show values in legend', }), + getAriaLabelHelp: () => + i18n.translate('expressionPartitionVis.reusable.functions.args.ariaLabelHelpText', { + defaultMessage: 'Specifies the aria label of the chart', + }), getSliceSizeHelp: () => i18n.translate('expressionPartitionVis.reusable.function.dimension.metric', { diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts index 388b0741d23d3..142bc6290d476 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/mosaic_vis_function.ts @@ -82,6 +82,11 @@ export const mosaicVisFunction = (): MosaicVisExpressionFunctionDefinition => ({ help: strings.getLabelsArgHelp(), default: `{${PARTITION_LABELS_FUNCTION}}`, }, + ariaLabel: { + types: ['string'], + help: strings.getAriaLabelHelp(), + required: false, + }, }, fn(context, args, handlers) { const maxSupportedBuckets = 2; @@ -95,6 +100,10 @@ export const mosaicVisFunction = (): MosaicVisExpressionFunctionDefinition => ({ const visConfig: PartitionVisParams = { ...args, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, palette: args.palette, dimensions: { metric: args.metric, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts index c054d572538ce..80302f877698c 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/pie_vis_function.ts @@ -109,6 +109,11 @@ export const pieVisFunction = (): PieVisExpressionFunctionDefinition => ({ help: strings.getStartFromSecondLargestSliceArgHelp(), default: true, }, + ariaLabel: { + types: ['string'], + help: strings.getAriaLabelHelp(), + required: false, + }, }, fn(context, args, handlers) { if (args.splitColumn && args.splitRow) { @@ -117,6 +122,10 @@ export const pieVisFunction = (): PieVisExpressionFunctionDefinition => ({ const visConfig: PartitionVisParams = { ...args, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, palette: args.palette, dimensions: { metric: args.metric, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts index d0ae42b4b7942..65f016729eabe 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/treemap_vis_function.ts @@ -82,6 +82,11 @@ export const treemapVisFunction = (): TreemapVisExpressionFunctionDefinition => help: strings.getLabelsArgHelp(), default: `{${PARTITION_LABELS_FUNCTION}}`, }, + ariaLabel: { + types: ['string'], + help: strings.getAriaLabelHelp(), + required: false, + }, }, fn(context, args, handlers) { const maxSupportedBuckets = 2; @@ -95,6 +100,10 @@ export const treemapVisFunction = (): TreemapVisExpressionFunctionDefinition => const visConfig: PartitionVisParams = { ...args, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, palette: args.palette, dimensions: { metric: args.metric, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts index ade524aad59c8..b1b30539949c4 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts +++ b/src/plugins/chart_expressions/expression_partition_vis/common/expression_functions/waffle_vis_function.ts @@ -81,6 +81,11 @@ export const waffleVisFunction = (): WaffleVisExpressionFunctionDefinition => ({ help: strings.getShowValuesInLegendArgHelp(), default: false, }, + ariaLabel: { + types: ['string'], + help: strings.getAriaLabelHelp(), + required: false, + }, }, fn(context, args, handlers) { if (args.splitColumn && args.splitRow) { @@ -90,6 +95,10 @@ export const waffleVisFunction = (): WaffleVisExpressionFunctionDefinition => ({ const buckets = args.bucket ? [args.bucket] : []; const visConfig: PartitionVisParams = { ...args, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, palette: args.palette, dimensions: { metric: args.metric, diff --git a/src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts b/src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts index 87358d5dbe659..01ca39c9cbb36 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts +++ b/src/plugins/chart_expressions/expression_partition_vis/common/types/expression_renderers.ts @@ -52,6 +52,7 @@ interface VisCommonParams { legendPosition: Position; truncateLegend: boolean; maxLegendLines: number; + ariaLabel?: string; } interface VisCommonConfig extends VisCommonParams { diff --git a/src/plugins/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap b/src/plugins/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap index 4e56d2c5efa4c..b367db1af5437 100644 --- a/src/plugins/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap +++ b/src/plugins/chart_expressions/expression_partition_vis/public/components/__snapshots__/partition_vis_component.test.tsx.snap @@ -238,6 +238,7 @@ exports[`PartitionVisComponent should render correct structure for donut 1`] = ` > { ]} baseTheme={chartBaseTheme} onRenderChange={onRenderChange} + ariaLabel={props.visParams.ariaLabel} + ariaUseDefaultSummary={!props.visParams.ariaLabel} /> { types: ['vis_dimension'], help: argHelp.bucket, }, + ariaLabel: { + types: ['string'], + help: argHelp.ariaLabel, + required: false, + }, }, fn(input, args, handlers) { const visParams: TagCloudRendererParams = { @@ -136,6 +144,10 @@ export const tagcloudFunction: ExpressionTagcloudFunction = () => { bucket: args.bucket, }), palette: args.palette, + ariaLabel: + args.ariaLabel ?? + (handlers.variables?.embeddableTitle as string) ?? + handlers.getExecutionContext?.()?.description, }; if (handlers?.inspectorAdapters?.tables) { diff --git a/src/plugins/chart_expressions/expression_tagcloud/common/types/expression_functions.ts b/src/plugins/chart_expressions/expression_tagcloud/common/types/expression_functions.ts index 091b3e861332d..44fc6f3048790 100644 --- a/src/plugins/chart_expressions/expression_tagcloud/common/types/expression_functions.ts +++ b/src/plugins/chart_expressions/expression_tagcloud/common/types/expression_functions.ts @@ -20,6 +20,7 @@ interface TagCloudCommonParams { minFontSize: number; maxFontSize: number; showLabel: boolean; + ariaLabel?: string; } export interface TagCloudVisConfig extends TagCloudCommonParams { diff --git a/src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx b/src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx index 2bec25534f49b..560507f84831a 100644 --- a/src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx +++ b/src/plugins/chart_expressions/expression_tagcloud/public/components/tagcloud_component.tsx @@ -191,7 +191,12 @@ export const TagCloudChart = ({ {(resizeRef) => (
- + { diff --git a/src/plugins/dashboard/kibana.json b/src/plugins/dashboard/kibana.json index 683a1a551f81d..0130d4a5f8118 100644 --- a/src/plugins/dashboard/kibana.json +++ b/src/plugins/dashboard/kibana.json @@ -8,6 +8,7 @@ "version": "kibana", "requiredPlugins": [ "data", + "dataViews", "embeddable", "controls", "inspector", diff --git a/src/plugins/dashboard/public/application/dashboard_router.tsx b/src/plugins/dashboard/public/application/dashboard_router.tsx index ae16527b64440..05d663bdac265 100644 --- a/src/plugins/dashboard/public/application/dashboard_router.tsx +++ b/src/plugins/dashboard/public/application/dashboard_router.tsx @@ -110,7 +110,7 @@ export async function mountApp({ uiSettings: coreStart.uiSettings, scopedHistory: () => scopedHistory, screenshotModeService: screenshotMode, - indexPatterns: dataStart.indexPatterns, + dataViews: dataStart.dataViews, savedQueryService: dataStart.query.savedQueries, savedObjectsClient: coreStart.savedObjects.client, savedDashboards: dashboardStart.getSavedDashboardLoader(), @@ -212,7 +212,7 @@ export async function mountApp({ .getIncomingEmbeddablePackage(DashboardConstants.DASHBOARDS_ID, false) ); if (!hasEmbeddableIncoming) { - dataStart.indexPatterns.clearCache(); + dataStart.dataViews.clearCache(); } // dispatch synthetic hash change event to update hash history objects diff --git a/src/plugins/dashboard/public/application/embeddable/empty_screen/__snapshots__/dashboard_empty_screen.test.tsx.snap b/src/plugins/dashboard/public/application/embeddable/empty_screen/__snapshots__/dashboard_empty_screen.test.tsx.snap index 70a21438754bd..e416dced4f8a1 100644 --- a/src/plugins/dashboard/public/application/embeddable/empty_screen/__snapshots__/dashboard_empty_screen.test.tsx.snap +++ b/src/plugins/dashboard/public/application/embeddable/empty_screen/__snapshots__/dashboard_empty_screen.test.tsx.snap @@ -19,6 +19,7 @@ exports[`DashboardEmptyScreen renders correctly with edit mode 1`] = ` }, "delete": [MockFunction], "externalUrl": Object { + "isInternalUrl": [MockFunction], "validateUrl": [MockFunction], }, "fetch": [MockFunction], @@ -343,6 +344,7 @@ exports[`DashboardEmptyScreen renders correctly with readonly mode 1`] = ` }, "delete": [MockFunction], "externalUrl": Object { + "isInternalUrl": [MockFunction], "validateUrl": [MockFunction], }, "fetch": [MockFunction], @@ -706,6 +708,7 @@ exports[`DashboardEmptyScreen renders correctly with view mode 1`] = ` }, "delete": [MockFunction], "externalUrl": Object { + "isInternalUrl": [MockFunction], "validateUrl": [MockFunction], }, "fetch": [MockFunction], diff --git a/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.test.tsx b/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.test.tsx index 0ef21fca26f29..039a600d153b2 100644 --- a/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.test.tsx +++ b/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.test.tsx @@ -24,13 +24,15 @@ import { EmbeddableFactory, ViewMode } from '../../services/embeddable'; import { dashboardStateStore, setDescription, setViewMode } from '../state'; import { DashboardContainerServices } from '../embeddable/dashboard_container'; import { createKbnUrlStateStorage, defer } from '../../../../kibana_utils/public'; -import { Filter, IIndexPattern, IndexPatternsContract } from '../../services/data'; import { useDashboardAppState, UseDashboardStateProps } from './use_dashboard_app_state'; import { getSampleDashboardInput, getSavedDashboardMock, makeDefaultServices, } from '../test_helpers'; +import { DataViewsContract } from '../../services/data'; +import { DataView } from '../../services/data_views'; +import type { Filter } from '@kbn/es-query'; interface SetupEmbeddableFactoryReturn { finalizeEmbeddableCreation: () => void; @@ -56,12 +58,10 @@ const createDashboardAppStateProps = (): UseDashboardStateProps => ({ const createDashboardAppStateServices = () => { const defaults = makeDefaultServices(); - const indexPatterns = {} as IndexPatternsContract; - const defaultIndexPattern = { id: 'foo', fields: [{ name: 'bar' }] } as IIndexPattern; - indexPatterns.ensureDefaultDataView = jest.fn().mockImplementation(() => Promise.resolve(true)); - indexPatterns.getDefault = jest - .fn() - .mockImplementation(() => Promise.resolve(defaultIndexPattern)); + const dataViews = {} as DataViewsContract; + const defaultDataView = { id: 'foo', fields: [{ name: 'bar' }] } as DataView; + dataViews.ensureDefaultDataView = jest.fn().mockImplementation(() => Promise.resolve(true)); + dataViews.getDefault = jest.fn().mockImplementation(() => Promise.resolve(defaultDataView)); const data = dataPluginMock.createStartContract(); data.query.filterManager.getUpdates$ = jest.fn().mockImplementation(() => of(void 0)); @@ -71,7 +71,7 @@ const createDashboardAppStateServices = () => { .fn() .mockImplementation(() => of(void 0)); - return { ...defaults, indexPatterns, data }; + return { ...defaults, dataViews, data }; }; const setupEmbeddableFactory = ( diff --git a/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.ts b/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.ts index 8c58eab0ded83..98b3d761f350e 100644 --- a/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.ts +++ b/src/plugins/dashboard/public/application/hooks/use_dashboard_app_state.ts @@ -15,6 +15,7 @@ import { BehaviorSubject, combineLatest, Observable, Subject } from 'rxjs'; import { DashboardConstants } from '../..'; import { ViewMode } from '../../services/embeddable'; import { useKibana } from '../../services/kibana_react'; +import { DataView } from '../../services/data_views'; import { getNewDashboardTitle } from '../../dashboard_strings'; import { IKbnUrlStateStorage } from '../../services/kibana_utils'; import { setDashboardState, useDashboardDispatch, useDashboardSelector } from '../state'; @@ -30,7 +31,7 @@ import { tryDestroyDashboardContainer, syncDashboardContainerInput, savedObjectToDashboardState, - syncDashboardIndexPatterns, + syncDashboardDataViews, syncDashboardFilterState, loadSavedDashboardState, buildDashboardContainer, @@ -81,7 +82,7 @@ export const useDashboardAppState = ({ core, chrome, embeddable, - indexPatterns, + dataViews, usageCollection, savedDashboards, initializerContext, @@ -121,7 +122,7 @@ export const useDashboardAppState = ({ search, history, embeddable, - indexPatterns, + dataViews, notifications, kibanaVersion, savedDashboards, @@ -184,7 +185,7 @@ export const useDashboardAppState = ({ // Backwards compatible way of detecting that we are taking a screenshot const legacyPrintLayoutDetected = screenshotModeService?.isScreenshotMode() && - screenshotModeService.getScreenshotLayout() === 'print'; + screenshotModeService.getScreenshotContext('layout') === 'print'; const initialDashboardState = { ...savedDashboardState, @@ -234,11 +235,11 @@ export const useDashboardAppState = ({ /** * Start syncing index patterns between the Query Service and the Dashboard Container. */ - const indexPatternsSubscription = syncDashboardIndexPatterns({ + const dataViewsSubscription = syncDashboardDataViews({ dashboardContainer, - indexPatterns: dashboardBuildContext.indexPatterns, - onUpdateIndexPatterns: (newIndexPatterns) => - setDashboardAppState((s) => ({ ...s, indexPatterns: newIndexPatterns })), + dataViews: dashboardBuildContext.dataViews, + onUpdateDataViews: (newDataViews: DataView[]) => + setDashboardAppState((s) => ({ ...s, dataViews: newDataViews })), }); /** @@ -339,7 +340,7 @@ export const useDashboardAppState = ({ stopWatchingAppStateInUrl(); stopSyncingDashboardFilterState(); lastSavedSubscription.unsubscribe(); - indexPatternsSubscription.unsubscribe(); + dataViewsSubscription.unsubscribe(); tryDestroyDashboardContainer(dashboardContainer); setDashboardAppState((state) => ({ ...state, @@ -368,7 +369,7 @@ export const useDashboardAppState = ({ usageCollection, scopedHistory, notifications, - indexPatterns, + dataViews, kibanaVersion, embeddable, docTitle, diff --git a/src/plugins/dashboard/public/application/lib/build_dashboard_container.ts b/src/plugins/dashboard/public/application/lib/build_dashboard_container.ts index 1dd39cc3e5ba9..5752a6445d2a9 100644 --- a/src/plugins/dashboard/public/application/lib/build_dashboard_container.ts +++ b/src/plugins/dashboard/public/application/lib/build_dashboard_container.ts @@ -31,7 +31,7 @@ import { } from '../../services/embeddable'; type BuildDashboardContainerProps = DashboardBuildContext & { - data: DashboardAppServices['data']; // the whole data service is required here because it is required by getUrlGeneratorState + data: DashboardAppServices['data']; // the whole data service is required here because it is required by getLocatorParams savedDashboard: DashboardSavedObject; initialDashboardState: DashboardState; incomingEmbeddable?: EmbeddablePackageState; diff --git a/src/plugins/dashboard/public/application/lib/dashboard_control_group.ts b/src/plugins/dashboard/public/application/lib/dashboard_control_group.ts index 90d5a67c3da47..0d1eb3537377f 100644 --- a/src/plugins/dashboard/public/application/lib/dashboard_control_group.ts +++ b/src/plugins/dashboard/public/application/lib/dashboard_control_group.ts @@ -8,7 +8,7 @@ import { Subscription } from 'rxjs'; import deepEqual from 'fast-deep-equal'; -import { compareFilters, COMPARE_ALL_OPTIONS, Filter } from '@kbn/es-query'; +import { compareFilters, COMPARE_ALL_OPTIONS, type Filter } from '@kbn/es-query'; import { distinctUntilChanged, distinctUntilKeyChanged } from 'rxjs/operators'; import { DashboardContainer } from '..'; diff --git a/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts b/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts index 264c8fcb1de2e..729b0d06f4ab8 100644 --- a/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts +++ b/src/plugins/dashboard/public/application/lib/diff_dashboard_state.ts @@ -8,7 +8,7 @@ import { xor, omit, isEmpty } from 'lodash'; import fastIsEqual from 'fast-deep-equal'; -import { compareFilters, COMPARE_ALL_OPTIONS, Filter, isFilterPinned } from '@kbn/es-query'; +import { compareFilters, COMPARE_ALL_OPTIONS, type Filter, isFilterPinned } from '@kbn/es-query'; import { DashboardContainerInput } from '../..'; import { controlGroupInputIsEqual } from './dashboard_control_group'; diff --git a/src/plugins/dashboard/public/application/lib/index.ts b/src/plugins/dashboard/public/application/lib/index.ts index 58f962591b67c..eab3604ff841b 100644 --- a/src/plugins/dashboard/public/application/lib/index.ts +++ b/src/plugins/dashboard/public/application/lib/index.ts @@ -18,7 +18,7 @@ export { DashboardSessionStorage } from './dashboard_session_storage'; export { loadSavedDashboardState } from './load_saved_dashboard_state'; export { attemptLoadDashboardByTitle } from './load_dashboard_by_title'; export { syncDashboardFilterState } from './sync_dashboard_filter_state'; -export { syncDashboardIndexPatterns } from './sync_dashboard_index_patterns'; +export { syncDashboardDataViews } from './sync_dashboard_data_views'; export { syncDashboardContainerInput } from './sync_dashboard_container_input'; export { loadDashboardHistoryLocationState } from './load_dashboard_history_location_state'; export { buildDashboardContainer, tryDestroyDashboardContainer } from './build_dashboard_container'; diff --git a/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts b/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts index 03a03842c0e66..45eda98dcc498 100644 --- a/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts +++ b/src/plugins/dashboard/public/application/lib/load_saved_dashboard_state.ts @@ -28,7 +28,7 @@ export const loadSavedDashboardState = async ({ query, history, notifications, - indexPatterns, + dataViews, savedDashboards, usageCollection, savedDashboardId, @@ -51,7 +51,7 @@ export const loadSavedDashboardState = async ({ notifications.toasts.addWarning(getDashboard60Warning()); return; } - await indexPatterns.ensureDefaultDataView(); + await dataViews.ensureDefaultDataView(); try { const savedDashboard = (await savedDashboards.get({ id: savedDashboardId, diff --git a/src/plugins/dashboard/public/application/lib/save_dashboard.ts b/src/plugins/dashboard/public/application/lib/save_dashboard.ts index 5a699eb116401..0be2211d4c2fc 100644 --- a/src/plugins/dashboard/public/application/lib/save_dashboard.ts +++ b/src/plugins/dashboard/public/application/lib/save_dashboard.ts @@ -8,6 +8,7 @@ import _ from 'lodash'; +import { isFilterPinned } from '@kbn/es-query'; import { convertTimeToUTCString } from '.'; import { NotificationsStart } from '../../services/core'; import { DashboardSavedObject } from '../../saved_dashboards'; @@ -16,7 +17,7 @@ import { SavedObjectSaveOpts } from '../../services/saved_objects'; import { dashboardSaveToastStrings } from '../../dashboard_strings'; import { getHasTaggingCapabilitiesGuard } from './dashboard_tagging'; import { SavedObjectsTaggingApi } from '../../services/saved_objects_tagging_oss'; -import { RefreshInterval, TimefilterContract, esFilters } from '../../services/data'; +import { RefreshInterval, TimefilterContract } from '../../services/data'; import { convertPanelStateToSavedDashboardPanel } from '../../../common/embeddable/embeddable_saved_object_converters'; import { DashboardSessionStorage } from './dashboard_session_storage'; import { serializeControlGroupToDashboardSavedObject } from './dashboard_control_group'; @@ -81,9 +82,7 @@ export const saveDashboard = async ({ savedDashboard.refreshInterval = savedDashboard.timeRestore ? timeRestoreObj : undefined; // only save unpinned filters - const unpinnedFilters = savedDashboard - .getFilters() - .filter((filter) => !esFilters.isFilterPinned(filter)); + const unpinnedFilters = savedDashboard.getFilters().filter((filter) => !isFilterPinned(filter)); savedDashboard.searchSource.setField('filter', unpinnedFilters); try { diff --git a/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts b/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts index 0fa7487390cd8..d3930cb5c0621 100644 --- a/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts +++ b/src/plugins/dashboard/public/application/lib/sync_dashboard_container_input.ts @@ -10,8 +10,9 @@ import _ from 'lodash'; import { Subscription } from 'rxjs'; import { debounceTime, tap } from 'rxjs/operators'; +import { compareFilters, COMPARE_ALL_OPTIONS, type Filter } from '@kbn/es-query'; import { DashboardContainer } from '../embeddable'; -import { esFilters, Filter, Query } from '../../services/data'; +import { Query } from '../../services/data'; import { DashboardConstants, DashboardSavedObject } from '../..'; import { setControlGroupState, @@ -96,13 +97,7 @@ export const applyContainerChangesToState = ({ return; } const { filterManager } = query; - if ( - !esFilters.compareFilters( - input.filters, - filterManager.getFilters(), - esFilters.COMPARE_ALL_OPTIONS - ) - ) { + if (!compareFilters(input.filters, filterManager.getFilters(), COMPARE_ALL_OPTIONS)) { // Add filters modifies the object passed to it, hence the clone deep. filterManager.addFilters(_.cloneDeep(input.filters)); applyFilters(latestState.query, input.filters); diff --git a/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts b/src/plugins/dashboard/public/application/lib/sync_dashboard_data_views.ts similarity index 56% rename from src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts rename to src/plugins/dashboard/public/application/lib/sync_dashboard_data_views.ts index 5460ef7b00037..63cecaa76fb2f 100644 --- a/src/plugins/dashboard/public/application/lib/sync_dashboard_index_patterns.ts +++ b/src/plugins/dashboard/public/application/lib/sync_dashboard_data_views.ts @@ -13,48 +13,51 @@ import { distinctUntilChanged, switchMap, filter, mapTo, map } from 'rxjs/operat import { DashboardContainer } from '..'; import { isErrorEmbeddable } from '../../services/embeddable'; -import { IndexPattern, IndexPatternsContract } from '../../services/data'; +import { DataViewsContract } from '../../services/data'; +import { DataView } from '../../services/data_views'; -interface SyncDashboardIndexPatternsProps { +interface SyncDashboardDataViewsProps { dashboardContainer: DashboardContainer; - indexPatterns: IndexPatternsContract; - onUpdateIndexPatterns: (newIndexPatterns: IndexPattern[]) => void; + dataViews: DataViewsContract; + onUpdateDataViews: (newDataViews: DataView[]) => void; } -export const syncDashboardIndexPatterns = ({ +export const syncDashboardDataViews = ({ dashboardContainer, - indexPatterns, - onUpdateIndexPatterns, -}: SyncDashboardIndexPatternsProps) => { - const updateIndexPatternsOperator = pipe( + dataViews, + onUpdateDataViews, +}: SyncDashboardDataViewsProps) => { + const updateDataViewsOperator = pipe( filter((container: DashboardContainer) => !!container && !isErrorEmbeddable(container)), - map((container: DashboardContainer): IndexPattern[] | undefined => { - let panelIndexPatterns: IndexPattern[] = []; + map((container: DashboardContainer): DataView[] | undefined => { + let panelDataViews: DataView[] = []; Object.values(container.getChildIds()).forEach((id) => { const embeddableInstance = container.getChild(id); if (isErrorEmbeddable(embeddableInstance)) return; - const embeddableIndexPatterns = (embeddableInstance.getOutput() as any).indexPatterns; - if (!embeddableIndexPatterns) return; - panelIndexPatterns.push(...embeddableIndexPatterns); + const embeddableDataViews = ( + embeddableInstance.getOutput() as { indexPatterns: DataView[] } + ).indexPatterns; + if (!embeddableDataViews) return; + panelDataViews.push(...embeddableDataViews); }); if (container.controlGroup) { - panelIndexPatterns.push(...(container.controlGroup.getOutput().dataViews ?? [])); + panelDataViews.push(...(container.controlGroup.getOutput().dataViews ?? [])); } - panelIndexPatterns = uniqBy(panelIndexPatterns, 'id'); + panelDataViews = uniqBy(panelDataViews, 'id'); /** * If no index patterns have been returned yet, and there is at least one embeddable which * hasn't yet loaded, defer the loading of the default index pattern by returning undefined. */ if ( - panelIndexPatterns.length === 0 && + panelDataViews.length === 0 && Object.keys(container.getOutput().embeddableLoaded).length > 0 && Object.values(container.getOutput().embeddableLoaded).some((value) => value === false) ) { return; } - return panelIndexPatterns; + return panelDataViews; }), distinctUntilChanged((a, b) => deepEqual( @@ -63,17 +66,17 @@ export const syncDashboardIndexPatterns = ({ ) ), // using switchMap for previous task cancellation - switchMap((panelIndexPatterns?: IndexPattern[]) => { + switchMap((panelDataViews?: DataView[]) => { return new Observable((observer) => { - if (!panelIndexPatterns) return; - if (panelIndexPatterns.length > 0) { + if (!panelDataViews) return; + if (panelDataViews.length > 0) { if (observer.closed) return; - onUpdateIndexPatterns(panelIndexPatterns); + onUpdateDataViews(panelDataViews); observer.complete(); } else { - indexPatterns.getDefault().then((defaultIndexPattern) => { + dataViews.getDefault().then((defaultDataView) => { if (observer.closed) return; - onUpdateIndexPatterns([defaultIndexPattern as IndexPattern]); + onUpdateDataViews([defaultDataView as DataView]); observer.complete(); }); } @@ -81,11 +84,11 @@ export const syncDashboardIndexPatterns = ({ }) ); - const indexPatternSources = [dashboardContainer.getOutput$()]; + const dataViewSources = [dashboardContainer.getOutput$()]; if (dashboardContainer.controlGroup) - indexPatternSources.push(dashboardContainer.controlGroup.getOutput$()); + dataViewSources.push(dashboardContainer.controlGroup.getOutput$()); - return combineLatest(indexPatternSources) - .pipe(mapTo(dashboardContainer), updateIndexPatternsOperator) + return combineLatest(dataViewSources) + .pipe(mapTo(dashboardContainer), updateDataViewsOperator) .subscribe(); }; diff --git a/src/plugins/dashboard/public/application/lib/sync_dashboard_url_state.ts b/src/plugins/dashboard/public/application/lib/sync_dashboard_url_state.ts index e0a1526baa473..392b37bb4d8e0 100644 --- a/src/plugins/dashboard/public/application/lib/sync_dashboard_url_state.ts +++ b/src/plugins/dashboard/public/application/lib/sync_dashboard_url_state.ts @@ -94,13 +94,13 @@ const loadDashboardUrlState = ({ if (!awaitingRemoval) { awaitingRemoval = true; kbnUrlStateStorage.kbnUrlControls.updateAsync((nextUrl) => { + awaitingRemoval = false; if (nextUrl.includes(DASHBOARD_STATE_STORAGE_KEY)) { return replaceUrlHashQuery(nextUrl, (query) => { delete query[DASHBOARD_STATE_STORAGE_KEY]; return query; }); } - awaitingRemoval = false; return nextUrl; }, true); } diff --git a/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts b/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts index 36b8b57cfdbd8..ce9535e549446 100644 --- a/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts +++ b/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.test.ts @@ -8,10 +8,10 @@ import { getDashboardListItemLink } from './get_dashboard_list_item_link'; import { ApplicationStart } from 'kibana/public'; -import { esFilters } from '../../../../data/public'; import { createHashHistory } from 'history'; +import { FilterStateStore } from '@kbn/es-query'; import { createKbnUrlStateStorage } from '../../../../kibana_utils/public'; -import { GLOBAL_STATE_STORAGE_KEY } from '../../url_generator'; +import { GLOBAL_STATE_STORAGE_KEY } from '../../dashboard_constants'; const DASHBOARD_ID = '13823000-99b9-11ea-9eb6-d9e8adceb647'; @@ -118,7 +118,7 @@ describe('when global filters change', () => { }, query: { query: 'q1' }, $state: { - store: esFilters.FilterStateStore.GLOBAL_STATE, + store: FilterStateStore.GLOBAL_STATE, }, }, ]; diff --git a/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.ts b/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.ts index 2f19924d45982..8af3f2a10666f 100644 --- a/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.ts +++ b/src/plugins/dashboard/public/application/listing/get_dashboard_list_item_link.ts @@ -9,8 +9,11 @@ import { ApplicationStart } from 'kibana/public'; import { QueryState } from '../../../../data/public'; import { setStateToKbnUrl } from '../../../../kibana_utils/public'; -import { createDashboardEditUrl, DashboardConstants } from '../../dashboard_constants'; -import { GLOBAL_STATE_STORAGE_KEY } from '../../url_generator'; +import { + DashboardConstants, + createDashboardEditUrl, + GLOBAL_STATE_STORAGE_KEY, +} from '../../dashboard_constants'; import { IKbnUrlStateStorage } from '../../services/kibana_utils'; export const getDashboardListItemLink = ( diff --git a/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts b/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts index 616fe56102df9..656f5672e38c0 100644 --- a/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts +++ b/src/plugins/dashboard/public/application/test_helpers/make_default_services.ts @@ -13,7 +13,7 @@ import { UrlForwardingStart } from '../../../../url_forwarding/public'; import { NavigationPublicPluginStart } from '../../services/navigation'; import { DashboardAppServices, DashboardAppCapabilities } from '../../types'; import { embeddablePluginMock } from '../../../../embeddable/public/mocks'; -import { IndexPatternsContract, SavedQueryService } from '../../services/data'; +import { DataViewsContract, SavedQueryService } from '../../services/data'; import { savedObjectsPluginMock } from '../../../../saved_objects/public/mocks'; import { screenshotModePluginMock } from '../../../../screenshot_mode/public/mocks'; import { visualizationsPluginMock } from '../../../../visualizations/public/mocks'; @@ -83,7 +83,7 @@ export function makeDefaultServices(): DashboardAppServices { savedObjectsClient: core.savedObjects.client, dashboardCapabilities: defaultCapabilities, data: dataPluginMock.createStartContract(), - indexPatterns: {} as IndexPatternsContract, + dataViews: {} as DataViewsContract, savedQueryService: {} as SavedQueryService, scopedHistory: () => ({} as ScopedHistory), setHeaderActionMenu: (mountPoint) => {}, diff --git a/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx b/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx index 005d40a90f38f..eb251ad41f62b 100644 --- a/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx +++ b/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx @@ -525,7 +525,7 @@ export function DashboardTopNav({ showDatePicker, showFilterBar, setMenuMountPoint: embedSettings ? undefined : setHeaderActionMenu, - indexPatterns: dashboardAppState.indexPatterns, + indexPatterns: dashboardAppState.dataViews, showSaveQuery: dashboardCapabilities.saveQuery, useDefaultBehaviors: true, savedQuery: state.savedQuery, diff --git a/src/plugins/dashboard/public/dashboard_constants.ts b/src/plugins/dashboard/public/dashboard_constants.ts index 9063b279c25f2..88fbc3b30392f 100644 --- a/src/plugins/dashboard/public/dashboard_constants.ts +++ b/src/plugins/dashboard/public/dashboard_constants.ts @@ -9,6 +9,7 @@ import type { ControlStyle } from '../../controls/public'; export const DASHBOARD_STATE_STORAGE_KEY = '_a'; +export const GLOBAL_STATE_STORAGE_KEY = '_g'; export const DashboardConstants = { LANDING_PAGE_PATH: '/list', diff --git a/src/plugins/dashboard/public/index.ts b/src/plugins/dashboard/public/index.ts index f25a92275d723..8acbe5f4d511f 100644 --- a/src/plugins/dashboard/public/index.ts +++ b/src/plugins/dashboard/public/index.ts @@ -16,16 +16,12 @@ export { } from './application'; export { DashboardConstants, createDashboardEditUrl } from './dashboard_constants'; -export type { - DashboardSetup, - DashboardStart, - DashboardUrlGenerator, - DashboardFeatureFlagConfig, -} from './plugin'; - -export type { DashboardUrlGeneratorState } from './url_generator'; -export { DASHBOARD_APP_URL_GENERATOR, createDashboardUrlGenerator } from './url_generator'; -export type { DashboardAppLocator, DashboardAppLocatorParams } from './locator'; +export type { DashboardSetup, DashboardStart, DashboardFeatureFlagConfig } from './plugin'; +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.test.ts b/src/plugins/dashboard/public/locator.test.ts index f3f5aec9f478c..11ec16908b811 100644 --- a/src/plugins/dashboard/public/locator.test.ts +++ b/src/plugins/dashboard/public/locator.test.ts @@ -9,7 +9,7 @@ import { DashboardAppLocatorDefinition } from './locator'; import { hashedItemStore } from '../../kibana_utils/public'; import { mockStorage } from '../../kibana_utils/public/storage/hashed_item_store/mock'; -import { esFilters } from '../../data/public'; +import { FilterStateStore } from '@kbn/es-query'; describe('dashboard locator', () => { beforeEach(() => { @@ -79,7 +79,7 @@ describe('dashboard locator', () => { }, query: { query: 'hi' }, $state: { - store: esFilters.FilterStateStore.GLOBAL_STATE, + store: FilterStateStore.GLOBAL_STATE, }, }, ], diff --git a/src/plugins/dashboard/public/locator.ts b/src/plugins/dashboard/public/locator.ts index b6655e246de36..7fa24ebf0636a 100644 --- a/src/plugins/dashboard/public/locator.ts +++ b/src/plugins/dashboard/public/locator.ts @@ -8,11 +8,11 @@ import type { SerializableRecord } from '@kbn/utility-types'; import { flow } from 'lodash'; -import type { TimeRange, Filter, Query, QueryState, RefreshInterval } from '../../data/public'; +import { type Filter } from '@kbn/es-query'; +import type { TimeRange, Query, QueryState, RefreshInterval } from '../../data/public'; import type { LocatorDefinition, LocatorPublic } from '../../share/public'; import type { SavedDashboardPanel } from '../common/types'; import type { RawDashboardState } from './types'; -import { esFilters } from '../../data/public'; import { setStateToKbnUrl } from '../../kibana_utils/public'; import { ViewMode } from '../../embeddable/public'; import { DashboardConstants } from './dashboard_constants'; @@ -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]; @@ -152,12 +152,14 @@ export class DashboardAppLocatorDefinition implements LocatorDefinition( '_g', cleanEmptyKeys({ time: params.timeRange, - filters: filters?.filter((f) => esFilters.isFilterPinned(f)), + filters: filters?.filter((f) => isFilterPinned(f)), refreshInterval: params.refreshInterval, }), { useHash }, diff --git a/src/plugins/dashboard/public/plugin.tsx b/src/plugins/dashboard/public/plugin.tsx index 7f784d43c0cb7..2f63062ccf60c 100644 --- a/src/plugins/dashboard/public/plugin.tsx +++ b/src/plugins/dashboard/public/plugin.tsx @@ -33,8 +33,8 @@ import { UiActionsSetup, UiActionsStart } from './services/ui_actions'; import { PresentationUtilPluginStart } from './services/presentation_util'; import { FeatureCatalogueCategory, HomePublicPluginSetup } from './services/home'; import { NavigationPublicPluginStart as NavigationStart } from './services/navigation'; -import { DataPublicPluginSetup, DataPublicPluginStart, esFilters } from './services/data'; -import { SharePluginSetup, SharePluginStart, UrlGeneratorContract } from './services/share'; +import { DataPublicPluginSetup, DataPublicPluginStart } from './services/data'; +import { SharePluginSetup, SharePluginStart } from './services/share'; import type { SavedObjectTaggingOssPluginStart } from './services/saved_objects_tagging_oss'; import type { ScreenshotModePluginSetup, @@ -70,29 +70,15 @@ import { CopyToDashboardAction, DashboardCapabilities, } from './application'; -import { - createDashboardUrlGenerator, - DASHBOARD_APP_URL_GENERATOR, - DashboardUrlGeneratorState, -} from './url_generator'; import { DashboardAppLocatorDefinition, DashboardAppLocator } from './locator'; import { createSavedDashboardLoader } from './saved_dashboards'; import { DashboardConstants } from './dashboard_constants'; import { PlaceholderEmbeddableFactory } from './application/embeddable/placeholder'; -import { UrlGeneratorState } from '../../share/public'; import { ExportCSVAction } from './application/actions/export_csv_action'; import { dashboardFeatureCatalog } from './dashboard_strings'; import { replaceUrlHashQuery } from '../../kibana_utils/public'; import { SpacesPluginStart } from './services/spaces'; -declare module '../../share/public' { - export interface UrlGeneratorStateMapping { - [DASHBOARD_APP_URL_GENERATOR]: UrlGeneratorState; - } -} - -export type DashboardUrlGenerator = UrlGeneratorContract; - export interface DashboardFeatureFlagConfig { allowByValueEmbeddables: boolean; } @@ -134,15 +120,6 @@ export interface DashboardStart { getDashboardContainerByValueRenderer: () => ReturnType< typeof createDashboardContainerByValueRenderer >; - /** - * @deprecated Use dashboard locator instead. Dashboard locator is available - * under `.locator` key. This dashboard URL generator will be removed soon. - * - * ```ts - * plugins.dashboard.locator.getLocation({ ... }); - * ``` - */ - dashboardUrlGenerator?: DashboardUrlGenerator; locator?: DashboardAppLocator; dashboardFeatureFlagConfig: DashboardFeatureFlagConfig; } @@ -157,11 +134,6 @@ export class DashboardPlugin private stopUrlTracking: (() => void) | undefined = undefined; private currentHistory: ScopedHistory | undefined = undefined; private dashboardFeatureFlagConfig?: DashboardFeatureFlagConfig; - - /** - * @deprecated Use locator instead. - */ - private dashboardUrlGenerator?: DashboardUrlGenerator; private locator?: DashboardAppLocator; public setup( @@ -178,20 +150,6 @@ export class DashboardPlugin ): DashboardSetup { this.dashboardFeatureFlagConfig = this.initializerContext.config.get(); - const startServices = core.getStartServices(); - - if (share) { - this.dashboardUrlGenerator = share.urlGenerators.registerUrlGenerator( - createDashboardUrlGenerator(async () => { - const [coreStart, , selfStart] = await startServices; - return { - appBasePath: coreStart.application.getUrlForApp('dashboards'), - useHashedUrl: coreStart.uiSettings.get('state:storeInSessionStorage'), - savedDashboardLoader: selfStart.getSavedDashboardLoader(), - }; - }) - ); - } const getPlaceholderEmbeddableStartServices = async () => { const [coreStart] = await core.getStartServices(); @@ -253,10 +211,13 @@ export class DashboardPlugin filter( ({ changes }) => !!(changes.globalFilters || changes.time || changes.refreshInterval) ), - map(({ state }) => ({ - ...state, - filters: state.filters?.filter(esFilters.isFilterPinned), - })) + map(async ({ state }) => { + const { isFilterPinned } = await import('@kbn/es-query'); + return { + ...state, + filters: state.filters?.filter(isFilterPinned), + }; + }) ), }, ], @@ -455,7 +416,6 @@ export class DashboardPlugin factory: dashboardContainerFactory as DashboardContainerFactory, }); }, - dashboardUrlGenerator: this.dashboardUrlGenerator, locator: this.locator, dashboardFeatureFlagConfig: this.dashboardFeatureFlagConfig!, }; diff --git a/src/plugins/dashboard/public/services/data_views.ts b/src/plugins/dashboard/public/services/data_views.ts new file mode 100644 index 0000000000000..4fb2bbaf08503 --- /dev/null +++ b/src/plugins/dashboard/public/services/data_views.ts @@ -0,0 +1,9 @@ +/* + * 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. + */ + +export * from '../../../data_views/public'; diff --git a/src/plugins/saved_objects/public/saved_object/saved_object_loader.ts b/src/plugins/dashboard/public/services/saved_object_loader.ts similarity index 95% rename from src/plugins/saved_objects/public/saved_object/saved_object_loader.ts rename to src/plugins/dashboard/public/services/saved_object_loader.ts index 10872b5d9cd1a..521d6645e30f9 100644 --- a/src/plugins/saved_objects/public/saved_object/saved_object_loader.ts +++ b/src/plugins/dashboard/public/services/saved_object_loader.ts @@ -12,9 +12,13 @@ import { SavedObjectsFindOptionsReference, SavedObjectReference, } from 'kibana/public'; -import { SavedObject } from '../types'; -import { StringUtils } from './helpers/string_utils'; +import { SavedObject } from '../../../saved_objects/public'; +import { upperFirst } from './string_utils'; +/** + * @deprecated + * @removeBy 8.0 + */ export interface SavedObjectLoaderFindOptions { size?: number; fields?: string[]; @@ -23,6 +27,8 @@ export interface SavedObjectLoaderFindOptions { /** * @deprecated + * @removeBy 8.0 + * * The SavedObjectLoader class provides some convenience functions * to load and save one kind of saved objects (specified in the constructor). * @@ -46,7 +52,7 @@ export class SavedObjectLoader { this.loaderProperties = { name: `${this.lowercaseType}s`, - noun: StringUtils.upperFirst(this.type), + noun: upperFirst(this.type), nouns: `${this.lowercaseType}s`, }; } diff --git a/src/plugins/dashboard/public/services/saved_objects.ts b/src/plugins/dashboard/public/services/saved_objects.ts index 305ff3c2014f8..afd778d78b271 100644 --- a/src/plugins/dashboard/public/services/saved_objects.ts +++ b/src/plugins/dashboard/public/services/saved_objects.ts @@ -11,11 +11,11 @@ export type { SavedObject, SavedObjectsStart, SavedObjectSaveOpts, - SavedObjectLoaderFindOptions, } from '../../../saved_objects/public'; export { showSaveModal, - SavedObjectLoader, SavedObjectSaveModal, getSavedObjectFinder, } from '../../../saved_objects/public'; +export { SavedObjectLoader } from './saved_object_loader'; +export type { SavedObjectLoaderFindOptions } from './saved_object_loader'; diff --git a/src/plugins/dashboard/public/services/screenshot_mode.ts b/src/plugins/dashboard/public/services/screenshot_mode.ts index 12ec1bca2207f..577aa3eab36b5 100644 --- a/src/plugins/dashboard/public/services/screenshot_mode.ts +++ b/src/plugins/dashboard/public/services/screenshot_mode.ts @@ -10,5 +10,3 @@ export type { ScreenshotModePluginStart, ScreenshotModePluginSetup, } from '../../../screenshot_mode/public'; - -export type { Layout } from '../../../screenshot_mode/common'; diff --git a/src/plugins/dashboard/public/services/share.ts b/src/plugins/dashboard/public/services/share.ts index 7ed9b86571596..77a9f44a3cf00 100644 --- a/src/plugins/dashboard/public/services/share.ts +++ b/src/plugins/dashboard/public/services/share.ts @@ -6,9 +6,5 @@ * Side Public License, v 1. */ -export type { - SharePluginStart, - SharePluginSetup, - UrlGeneratorContract, -} from '../../../share/public'; +export type { SharePluginStart, SharePluginSetup } from '../../../share/public'; export { downloadMultipleAs } from '../../../share/public'; diff --git a/src/plugins/saved_objects/public/saved_object/helpers/string_utils.test.ts b/src/plugins/dashboard/public/services/string_utils.test.ts similarity index 53% rename from src/plugins/saved_objects/public/saved_object/helpers/string_utils.test.ts rename to src/plugins/dashboard/public/services/string_utils.test.ts index 4e7258f1575dc..ed96cb4f1a0a1 100644 --- a/src/plugins/saved_objects/public/saved_object/helpers/string_utils.test.ts +++ b/src/plugins/dashboard/public/services/string_utils.test.ts @@ -6,17 +6,17 @@ * Side Public License, v 1. */ -import { StringUtils } from './string_utils'; +import { upperFirst } from './string_utils'; -describe('StringUtils class', () => { - describe('static upperFirst', () => { +describe('StringUtils', () => { + describe('upperFirst', () => { test('should converts the first character of string to upper case', () => { - expect(StringUtils.upperFirst()).toBe(''); - expect(StringUtils.upperFirst('')).toBe(''); + expect(upperFirst()).toBe(''); + expect(upperFirst('')).toBe(''); - expect(StringUtils.upperFirst('Fred')).toBe('Fred'); - expect(StringUtils.upperFirst('fred')).toBe('Fred'); - expect(StringUtils.upperFirst('FRED')).toBe('FRED'); + expect(upperFirst('Fred')).toBe('Fred'); + expect(upperFirst('fred')).toBe('Fred'); + expect(upperFirst('FRED')).toBe('FRED'); }); }); }); diff --git a/src/plugins/saved_objects/public/saved_object/helpers/string_utils.ts b/src/plugins/dashboard/public/services/string_utils.ts similarity index 55% rename from src/plugins/saved_objects/public/saved_object/helpers/string_utils.ts rename to src/plugins/dashboard/public/services/string_utils.ts index 5d4551f0c200c..31a36b38155d7 100644 --- a/src/plugins/saved_objects/public/saved_object/helpers/string_utils.ts +++ b/src/plugins/dashboard/public/services/string_utils.ts @@ -6,13 +6,11 @@ * Side Public License, v 1. */ -export class StringUtils { - /** - * Returns a version of the string with the first letter capitalized. - * @param str {string} - * @returns {string} - */ - public static upperFirst(str: string = ''): string { - return str ? str.charAt(0).toUpperCase() + str.slice(1) : ''; - } +/** + * Returns a version of the string with the first letter capitalized. + * @param str {string} + * @returns {string} + */ +export function upperFirst(str: string = ''): string { + return str ? str.charAt(0).toUpperCase() + str.slice(1) : ''; } diff --git a/src/plugins/dashboard/public/types.ts b/src/plugins/dashboard/public/types.ts index b7b146aeba348..4de07974203a7 100644 --- a/src/plugins/dashboard/public/types.ts +++ b/src/plugins/dashboard/public/types.ts @@ -17,22 +17,25 @@ import type { KibanaExecutionContext, } from 'kibana/public'; import { History } from 'history'; +import type { Filter } from '@kbn/es-query'; import { AnyAction, Dispatch } from 'redux'; import { BehaviorSubject, Subject } from 'rxjs'; -import { Query, Filter, IndexPattern, RefreshInterval, TimeRange } from './services/data'; -import { ContainerInput, EmbeddableInput, ViewMode } from './services/embeddable'; + +import { DataView } from './services/data_views'; import { SharePluginStart } from './services/share'; import { EmbeddableStart } from './services/embeddable'; import { DashboardSessionStorage } from './application/lib'; import { UrlForwardingStart } from '../../url_forwarding/public'; import { UsageCollectionSetup } from './services/usage_collection'; import { NavigationPublicPluginStart } from './services/navigation'; +import { Query, RefreshInterval, TimeRange } from './services/data'; import { DashboardPanelState, SavedDashboardPanel } from '../common/types'; import { SavedObjectsTaggingApi } from './services/saved_objects_tagging_oss'; -import { DataPublicPluginStart, IndexPatternsContract } from './services/data'; +import { DataPublicPluginStart, DataViewsContract } from './services/data'; +import { ContainerInput, EmbeddableInput, ViewMode } from './services/embeddable'; import { SavedObjectLoader, SavedObjectsStart } from './services/saved_objects'; -import { IKbnUrlStateStorage } from './services/kibana_utils'; import type { ScreenshotModePluginStart } from './services/screenshot_mode'; +import { IKbnUrlStateStorage } from './services/kibana_utils'; import type { DashboardContainer, DashboardSavedObject } from '.'; import { VisualizationsStart } from '../../visualizations/public'; import { DashboardAppLocatorParams } from './locator'; @@ -102,7 +105,7 @@ export interface DashboardContainerInput extends ContainerInput { */ export interface DashboardAppState { hasUnsavedChanges?: boolean; - indexPatterns?: IndexPattern[]; + dataViews?: DataView[]; updateLastSavedState?: () => void; resetToLastSavedState?: () => void; savedDashboard?: DashboardSavedObject; @@ -119,7 +122,7 @@ export interface DashboardAppState { export type DashboardBuildContext = Pick< DashboardAppServices, | 'embeddable' - | 'indexPatterns' + | 'dataViews' | 'savedDashboards' | 'usageCollection' | 'initializerContext' @@ -198,7 +201,7 @@ export interface DashboardAppServices { savedDashboards: SavedObjectLoader; scopedHistory: () => ScopedHistory; visualizations: VisualizationsStart; - indexPatterns: IndexPatternsContract; + dataViews: DataViewsContract; usageCollection?: UsageCollectionSetup; navigation: NavigationPublicPluginStart; dashboardCapabilities: DashboardAppCapabilities; diff --git a/src/plugins/dashboard/public/url_generator.test.ts b/src/plugins/dashboard/public/url_generator.test.ts deleted file mode 100644 index 9a1204f116c7f..0000000000000 --- a/src/plugins/dashboard/public/url_generator.test.ts +++ /dev/null @@ -1,356 +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 { createDashboardUrlGenerator } from './url_generator'; -import { hashedItemStore } from '../../kibana_utils/public'; -import { mockStorage } from '../../kibana_utils/public/storage/hashed_item_store/mock'; -import { esFilters, Filter } from '../../data/public'; -import { SavedObjectLoader } from '../../saved_objects/public'; - -const APP_BASE_PATH: string = 'xyz/app/dashboards'; - -const createMockDashboardLoader = ( - dashboardToFilters: { - [dashboardId: string]: () => Filter[]; - } = {} -) => { - return { - get: async (dashboardId: string) => { - return { - searchSource: { - getField: (field: string) => { - if (field === 'filter') - return dashboardToFilters[dashboardId] ? dashboardToFilters[dashboardId]() : []; - throw new Error( - `createMockDashboardLoader > searchSource > getField > ${field} is not mocked` - ); - }, - }, - }; - }, - } as SavedObjectLoader; -}; - -describe('dashboard url generator', () => { - beforeEach(() => { - // @ts-ignore - hashedItemStore.storage = mockStorage; - }); - - test('creates a link to a saved dashboard', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({}); - expect(url).toMatchInlineSnapshot(`"xyz/app/dashboards#/create?_a=()&_g=()"`); - }); - - test('creates a link with global time range set up', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - timeRange: { to: 'now', from: 'now-15m', mode: 'relative' }, - }); - expect(url).toMatchInlineSnapshot( - `"xyz/app/dashboards#/create?_a=()&_g=(time:(from:now-15m,mode:relative,to:now))"` - ); - }); - - test('creates a link with filters, time range, refresh interval and query to a saved object', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - timeRange: { to: 'now', from: 'now-15m', mode: 'relative' }, - refreshInterval: { pause: false, value: 300 }, - dashboardId: '123', - filters: [ - { - meta: { - alias: null, - disabled: false, - negate: false, - }, - query: { query: 'hi' }, - }, - { - meta: { - alias: null, - disabled: false, - negate: false, - }, - query: { query: 'hi' }, - $state: { - store: esFilters.FilterStateStore.GLOBAL_STATE, - }, - }, - ], - query: { query: 'bye', language: 'kuery' }, - }); - expect(url).toMatchInlineSnapshot( - `"xyz/app/dashboards#/view/123?_a=(filters:!((meta:(alias:!n,disabled:!f,negate:!f),query:(query:hi))),query:(language:kuery,query:bye))&_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,negate:!f),query:(query:hi))),refreshInterval:(pause:!f,value:300),time:(from:now-15m,mode:relative,to:now))"` - ); - }); - - test('searchSessionId', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - timeRange: { to: 'now', from: 'now-15m', mode: 'relative' }, - refreshInterval: { pause: false, value: 300 }, - dashboardId: '123', - filters: [], - query: { query: 'bye', language: 'kuery' }, - searchSessionId: '__sessionSearchId__', - }); - expect(url).toMatchInlineSnapshot( - `"xyz/app/dashboards#/view/123?_a=(filters:!(),query:(language:kuery,query:bye))&_g=(filters:!(),refreshInterval:(pause:!f,value:300),time:(from:now-15m,mode:relative,to:now))&searchSessionId=__sessionSearchId__"` - ); - }); - - test('savedQuery', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - savedQuery: '__savedQueryId__', - }); - expect(url).toMatchInlineSnapshot( - `"xyz/app/dashboards#/create?_a=(savedQuery:__savedQueryId__)&_g=()"` - ); - expect(url).toContain('__savedQueryId__'); - }); - - test('panels', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - panels: [{ fakePanelContent: 'fakePanelContent' } as any], - }); - expect(url).toMatchInlineSnapshot( - `"xyz/app/dashboards#/create?_a=(panels:!((fakePanelContent:fakePanelContent)))&_g=()"` - ); - }); - - test('if no useHash setting is given, uses the one was start services', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: true, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - timeRange: { to: 'now', from: 'now-15m', mode: 'relative' }, - }); - expect(url.indexOf('relative')).toBe(-1); - }); - - test('can override a false useHash ui setting', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - timeRange: { to: 'now', from: 'now-15m', mode: 'relative' }, - useHash: true, - }); - expect(url.indexOf('relative')).toBe(-1); - }); - - test('can override a true useHash ui setting', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: true, - savedDashboardLoader: createMockDashboardLoader(), - }) - ); - const url = await generator.createUrl!({ - timeRange: { to: 'now', from: 'now-15m', mode: 'relative' }, - useHash: false, - }); - expect(url.indexOf('relative')).toBeGreaterThan(1); - }); - - describe('preserving saved filters', () => { - const savedFilter1 = { - meta: { - alias: null, - disabled: false, - negate: false, - }, - query: { query: 'savedfilter1' }, - }; - - const savedFilter2 = { - meta: { - alias: null, - disabled: false, - negate: false, - }, - query: { query: 'savedfilter2' }, - }; - - const appliedFilter = { - meta: { - alias: null, - disabled: false, - negate: false, - }, - query: { query: 'appliedfilter' }, - }; - - test('attaches filters from destination dashboard', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader({ - ['dashboard1']: () => [savedFilter1], - ['dashboard2']: () => [savedFilter2], - }), - }) - ); - - const urlToDashboard1 = await generator.createUrl!({ - dashboardId: 'dashboard1', - filters: [appliedFilter], - }); - - expect(urlToDashboard1).toEqual(expect.stringContaining('query:savedfilter1')); - expect(urlToDashboard1).toEqual(expect.stringContaining('query:appliedfilter')); - - const urlToDashboard2 = await generator.createUrl!({ - dashboardId: 'dashboard2', - filters: [appliedFilter], - }); - - expect(urlToDashboard2).toEqual(expect.stringContaining('query:savedfilter2')); - expect(urlToDashboard2).toEqual(expect.stringContaining('query:appliedfilter')); - }); - - test("doesn't fail if can't retrieve filters from destination dashboard", async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader({ - ['dashboard1']: () => { - throw new Error('Not found'); - }, - }), - }) - ); - - const url = await generator.createUrl!({ - dashboardId: 'dashboard1', - filters: [appliedFilter], - }); - - expect(url).not.toEqual(expect.stringContaining('query:savedfilter1')); - expect(url).toEqual(expect.stringContaining('query:appliedfilter')); - }); - - test('can enforce empty filters', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader({ - ['dashboard1']: () => [savedFilter1], - }), - }) - ); - - const url = await generator.createUrl!({ - dashboardId: 'dashboard1', - filters: [], - preserveSavedFilters: false, - }); - - expect(url).not.toEqual(expect.stringContaining('query:savedfilter1')); - expect(url).not.toEqual(expect.stringContaining('query:appliedfilter')); - expect(url).toMatchInlineSnapshot( - `"xyz/app/dashboards#/view/dashboard1?_a=(filters:!())&_g=(filters:!())"` - ); - }); - - test('no filters in result url if no filters applied', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader({ - ['dashboard1']: () => [savedFilter1], - }), - }) - ); - - const url = await generator.createUrl!({ - dashboardId: 'dashboard1', - }); - expect(url).not.toEqual(expect.stringContaining('filters')); - expect(url).toMatchInlineSnapshot(`"xyz/app/dashboards#/view/dashboard1?_a=()&_g=()"`); - }); - - test('can turn off preserving filters', async () => { - const generator = createDashboardUrlGenerator(() => - Promise.resolve({ - appBasePath: APP_BASE_PATH, - useHashedUrl: false, - savedDashboardLoader: createMockDashboardLoader({ - ['dashboard1']: () => [savedFilter1], - }), - }) - ); - const urlWithPreservedFiltersTurnedOff = await generator.createUrl!({ - dashboardId: 'dashboard1', - filters: [appliedFilter], - preserveSavedFilters: false, - }); - - expect(urlWithPreservedFiltersTurnedOff).not.toEqual( - expect.stringContaining('query:savedfilter1') - ); - expect(urlWithPreservedFiltersTurnedOff).toEqual( - expect.stringContaining('query:appliedfilter') - ); - }); - }); -}); diff --git a/src/plugins/dashboard/public/url_generator.ts b/src/plugins/dashboard/public/url_generator.ts deleted file mode 100644 index 5c0cd32ee5a16..0000000000000 --- a/src/plugins/dashboard/public/url_generator.ts +++ /dev/null @@ -1,170 +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 { - TimeRange, - Filter, - Query, - esFilters, - QueryState, - RefreshInterval, -} from '../../data/public'; -import { setStateToKbnUrl } from '../../kibana_utils/public'; -import { UrlGeneratorsDefinition } from '../../share/public'; -import { SavedObjectLoader } from '../../saved_objects/public'; -import { ViewMode } from '../../embeddable/public'; -import { DashboardConstants } from './dashboard_constants'; -import { SavedDashboardPanel } from '../common/types'; - -export const STATE_STORAGE_KEY = '_a'; -export const GLOBAL_STATE_STORAGE_KEY = '_g'; - -export const DASHBOARD_APP_URL_GENERATOR = 'DASHBOARD_APP_URL_GENERATOR'; - -/** - * @deprecated Use dashboard locator instead. - */ -export interface DashboardUrlGeneratorState { - /** - * If given, the dashboard saved object with this id will be loaded. If not given, - * a new, unsaved dashboard will be loaded up. - */ - dashboardId?: string; - /** - * Optionally set the time range in the time picker. - */ - timeRange?: TimeRange; - - /** - * Optionally set the refresh interval. - */ - refreshInterval?: RefreshInterval; - - /** - * Optionally apply filers. NOTE: if given and used in conjunction with `dashboardId`, and the - * saved dashboard has filters saved with it, this will _replace_ those filters. - */ - filters?: Filter[]; - /** - * Optionally set a query. NOTE: if given and used in conjunction with `dashboardId`, and the - * saved dashboard has a query saved with it, this will _replace_ that query. - */ - query?: Query; - /** - * If not given, will use the uiSettings configuration for `storeInSessionStorage`. useHash determines - * whether to hash the data in the url to avoid url length issues. - */ - useHash?: boolean; - - /** - * When `true` filters from saved filters from destination dashboard as merged with applied filters - * When `false` applied filters take precedence and override saved filters - * - * true is default - */ - preserveSavedFilters?: boolean; - - /** - * View mode of the dashboard. - */ - viewMode?: ViewMode; - - /** - * Search search session ID to restore. - * (Background search) - */ - searchSessionId?: string; - - /** - * List of dashboard panels - */ - panels?: SavedDashboardPanel[]; - - /** - * Saved query ID - */ - savedQuery?: string; -} - -/** - * @deprecated Use dashboard locator instead. - */ -export const createDashboardUrlGenerator = ( - getStartServices: () => Promise<{ - appBasePath: string; - useHashedUrl: boolean; - savedDashboardLoader: SavedObjectLoader; - }> -): UrlGeneratorsDefinition => ({ - id: DASHBOARD_APP_URL_GENERATOR, - createUrl: async (state) => { - const startServices = await getStartServices(); - const useHash = state.useHash ?? startServices.useHashedUrl; - const appBasePath = startServices.appBasePath; - const hash = state.dashboardId ? `view/${state.dashboardId}` : `create`; - - const getSavedFiltersFromDestinationDashboardIfNeeded = async (): Promise => { - if (state.preserveSavedFilters === false) return []; - if (!state.dashboardId) return []; - try { - const dashboard = await startServices.savedDashboardLoader.get(state.dashboardId); - return dashboard?.searchSource?.getField('filter') ?? []; - } catch (e) { - // in case dashboard is missing, built the url without those filters - // dashboard app will handle redirect to landing page with toast message - return []; - } - }; - - const cleanEmptyKeys = (stateObj: Record) => { - Object.keys(stateObj).forEach((key) => { - if (stateObj[key] === undefined) { - delete stateObj[key]; - } - }); - return stateObj; - }; - - // leave filters `undefined` if no filters was applied - // in this case dashboard will restore saved filters on its own - const filters = state.filters && [ - ...(await getSavedFiltersFromDestinationDashboardIfNeeded()), - ...state.filters, - ]; - - let url = setStateToKbnUrl( - STATE_STORAGE_KEY, - cleanEmptyKeys({ - query: state.query, - filters: filters?.filter((f) => !esFilters.isFilterPinned(f)), - viewMode: state.viewMode, - panels: state.panels, - savedQuery: state.savedQuery, - }), - { useHash }, - `${appBasePath}#/${hash}` - ); - - url = setStateToKbnUrl( - GLOBAL_STATE_STORAGE_KEY, - cleanEmptyKeys({ - time: state.timeRange, - filters: filters?.filter((f) => esFilters.isFilterPinned(f)), - refreshInterval: state.refreshInterval, - }), - { useHash }, - url - ); - - if (state.searchSessionId) { - url = `${url}&${DashboardConstants.SEARCH_SESSION_ID}=${state.searchSessionId}`; - } - - return url; - }, -}); diff --git a/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts b/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts index e0cd410ce5e8f..ed8f87ad9b51b 100644 --- a/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts +++ b/src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts @@ -25,7 +25,7 @@ import { convertSavedDashboardPanelToPanelState, } from '../../common/embeddable/embeddable_saved_object_converters'; import { SavedObjectEmbeddableInput } from '../../../embeddable/common'; -import { INDEX_PATTERN_SAVED_OBJECT_TYPE } from '../../../data/common'; +import { DATA_VIEW_SAVED_OBJECT_TYPE } from '../../../data/common'; import { mergeMigrationFunctionMaps, MigrateFunction, @@ -49,7 +49,7 @@ function migrateIndexPattern(doc: DashboardDoc700To720) { searchSource.indexRefName = 'kibanaSavedObjectMeta.searchSourceJSON.index'; doc.references.push({ name: searchSource.indexRefName, - type: INDEX_PATTERN_SAVED_OBJECT_TYPE, + type: DATA_VIEW_SAVED_OBJECT_TYPE, id: searchSource.index, }); delete searchSource.index; @@ -62,7 +62,7 @@ function migrateIndexPattern(doc: DashboardDoc700To720) { filterRow.meta.indexRefName = `kibanaSavedObjectMeta.searchSourceJSON.filter[${i}].meta.index`; doc.references.push({ name: filterRow.meta.indexRefName, - type: INDEX_PATTERN_SAVED_OBJECT_TYPE, + type: DATA_VIEW_SAVED_OBJECT_TYPE, id: filterRow.meta.index, }); delete filterRow.meta.index; diff --git a/src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts b/src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts index 8980bd1903323..4000bed0c28ac 100644 --- a/src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts +++ b/src/plugins/dashboard/server/saved_objects/move_filters_to_query.test.ts @@ -6,13 +6,13 @@ * Side Public License, v 1. */ -import { esFilters, Filter } from 'src/plugins/data/public'; +import { FilterStateStore, Filter } from '@kbn/es-query'; import { moveFiltersToQuery, Pre600FilterQuery } from './move_filters_to_query'; const filter: Filter = { meta: { disabled: false, negate: false, alias: '' }, query: {}, - $state: { store: esFilters.FilterStateStore.APP_STATE }, + $state: { store: FilterStateStore.APP_STATE }, }; const queryFilter: Pre600FilterQuery = { @@ -27,7 +27,7 @@ test('Migrates an old filter query into the query field', () => { expect(newSearchSource).toEqual({ filter: [ { - $state: { store: esFilters.FilterStateStore.APP_STATE }, + $state: { store: FilterStateStore.APP_STATE }, meta: { alias: '', disabled: false, diff --git a/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts b/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts index ddd1c45841b9c..e2ea076de7743 100644 --- a/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts +++ b/src/plugins/dashboard/server/saved_objects/replace_index_pattern_reference.ts @@ -7,14 +7,14 @@ */ import type { SavedObjectMigrationFn } from 'kibana/server'; -import { INDEX_PATTERN_SAVED_OBJECT_TYPE } from '../../../data/common'; +import { DATA_VIEW_SAVED_OBJECT_TYPE } from '../../../data/common'; export const replaceIndexPatternReference: SavedObjectMigrationFn = (doc) => ({ ...doc, references: Array.isArray(doc.references) ? doc.references.map((reference) => { if (reference.type === 'index_pattern') { - reference.type = INDEX_PATTERN_SAVED_OBJECT_TYPE; + reference.type = DATA_VIEW_SAVED_OBJECT_TYPE; } return reference; }) diff --git a/src/plugins/dashboard/tsconfig.json b/src/plugins/dashboard/tsconfig.json index 680d06780543a..55049447aee57 100644 --- a/src/plugins/dashboard/tsconfig.json +++ b/src/plugins/dashboard/tsconfig.json @@ -11,6 +11,7 @@ { "path": "../../core/tsconfig.json" }, { "path": "../inspector/tsconfig.json" }, { "path": "../kibana_react/tsconfig.json" }, + { "path": "../data_views/tsconfig.json" }, { "path": "../kibana_utils/tsconfig.json" }, { "path": "../share/tsconfig.json" }, { "path": "../controls/tsconfig.json" }, diff --git a/src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts b/src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts index da110c1abb7e9..f8c903b8cfe42 100644 --- a/src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts +++ b/src/plugins/data/common/search/aggs/metrics/lib/sibling_pipeline_agg_helper.ts @@ -30,7 +30,7 @@ const metricAggFilter: string[] = [ '!filtered_metric', '!single_percentile', ]; -const bucketAggFilter: string[] = []; +const bucketAggFilter: string[] = ['!filter', '!sampler', '!diversified_sampler', '!multi_terms']; export const siblingPipelineType = i18n.translate( 'data.search.aggs.metrics.siblingPipelineAggregationsSubtypeTitle', diff --git a/src/plugins/data/common/search/tabify/tabify.test.ts b/src/plugins/data/common/search/tabify/tabify.test.ts index 6cdf9a3547d48..3e1b856de4100 100644 --- a/src/plugins/data/common/search/tabify/tabify.test.ts +++ b/src/plugins/data/common/search/tabify/tabify.test.ts @@ -8,7 +8,7 @@ import { tabifyAggResponse } from './tabify'; import { IndexPattern } from '../..'; -import { AggConfigs, IAggConfig, IAggConfigs } from '../aggs'; +import { AggConfigs, BucketAggParam, IAggConfig, IAggConfigs } from '../aggs'; import { mockAggTypesRegistry } from '../aggs/test_helpers'; import { metricOnly, threeTermBuckets } from './fixtures/fake_hierarchical_data'; @@ -54,6 +54,42 @@ describe('tabifyAggResponse Integration', () => { expect(resp.columns[0]).toHaveProperty('name', aggConfigs.aggs[0].makeLabel()); }); + describe('scaleMetricValues performance check', () => { + beforeAll(() => { + typesRegistry.get('count').params.push({ + name: 'scaleMetricValues', + default: false, + write: () => {}, + advanced: true, + } as any as BucketAggParam); + }); + test('does not call write if scaleMetricValues is not set', () => { + const aggConfigs = createAggConfigs([{ type: 'count' } as any]); + + const writeMock = jest.fn(); + aggConfigs.getRequestAggs()[0].write = writeMock; + + tabifyAggResponse(aggConfigs, metricOnly, { + metricsAtAllLevels: true, + }); + expect(writeMock).not.toHaveBeenCalled(); + }); + + test('does call write if scaleMetricValues is set', () => { + const aggConfigs = createAggConfigs([ + { type: 'count', params: { scaleMetricValues: true } } as any, + ]); + + const writeMock = jest.fn(() => ({})); + aggConfigs.getRequestAggs()[0].write = writeMock; + + tabifyAggResponse(aggConfigs, metricOnly, { + metricsAtAllLevels: true, + }); + expect(writeMock).toHaveBeenCalled(); + }); + }); + describe('transforms a complex response', () => { let esResp: typeof threeTermBuckets; let aggConfigs: IAggConfigs; diff --git a/src/plugins/data/common/search/tabify/tabify.ts b/src/plugins/data/common/search/tabify/tabify.ts index 5b1247a8f1719..1bdca61d654f7 100644 --- a/src/plugins/data/common/search/tabify/tabify.ts +++ b/src/plugins/data/common/search/tabify/tabify.ts @@ -37,8 +37,10 @@ export function tabifyAggResponse( if (column) { const agg = column.aggConfig; - const aggInfo = agg.write(aggs); - aggScale *= aggInfo.metricScale || 1; + if (agg.getParam('scaleMetricValues')) { + const aggInfo = agg.write(aggs); + aggScale *= aggInfo.metricScale || 1; + } switch (agg.type.type) { case AggGroupNames.Buckets: 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_editor/public/components/form_schema.test.ts b/src/plugins/data_view_editor/public/components/form_schema.test.ts new file mode 100644 index 0000000000000..b2e1f697843c6 --- /dev/null +++ b/src/plugins/data_view_editor/public/components/form_schema.test.ts @@ -0,0 +1,22 @@ +/* + * 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 { singleAstriskValidator } from './form_schema'; +import { ValidationFuncArg } from '../shared_imports'; + +describe('validators', () => { + test('singleAstriskValidator should pass', async () => { + const result = singleAstriskValidator({ value: 'kibana*' } as ValidationFuncArg); + expect(result).toBeUndefined(); + }); + test('singleAstriskValidator should fail', async () => { + const result = singleAstriskValidator({ value: '*' } as ValidationFuncArg); + // returns error + expect(result).toBeDefined(); + }); +}); diff --git a/src/plugins/data_view_editor/public/components/form_schema.ts b/src/plugins/data_view_editor/public/components/form_schema.ts index a6df0c4206d2a..178fedda2de34 100644 --- a/src/plugins/data_view_editor/public/components/form_schema.ts +++ b/src/plugins/data_view_editor/public/components/form_schema.ts @@ -7,9 +7,21 @@ */ import { i18n } from '@kbn/i18n'; -import { fieldValidators } from '../shared_imports'; +import { fieldValidators, ValidationFunc } from '../shared_imports'; import { INDEX_PATTERN_TYPE } from '../types'; +export const singleAstriskValidator = ( + ...args: Parameters +): ReturnType => { + const [{ value, path }] = args; + + const message = i18n.translate('indexPatternEditor.validations.noSingleAstriskPattern', { + defaultMessage: "A single '*' is not an allowed index pattern", + }); + + return value === '*' ? { code: 'ERR_FIELD_MISSING', path, message } : undefined; +}; + export const schema = { title: { label: i18n.translate('indexPatternEditor.editor.form.titleLabel', { @@ -28,6 +40,9 @@ export const schema = { }) ), }, + { + validator: singleAstriskValidator, + }, ], }, timestampField: { diff --git a/src/plugins/data_view_editor/public/shared_imports.ts b/src/plugins/data_view_editor/public/shared_imports.ts index cca695bc9a95e..dd9b8ea2a0e41 100644 --- a/src/plugins/data_view_editor/public/shared_imports.ts +++ b/src/plugins/data_view_editor/public/shared_imports.ts @@ -28,6 +28,7 @@ export type { ValidationFunc, FieldConfig, ValidationConfig, + ValidationFuncArg, } from '../../es_ui_shared/static/forms/hook_form_lib'; export { useForm, 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/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx index 0f41c08fbc6fe..2d8469975430b 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx @@ -70,7 +70,11 @@ export const CreateEditField = withRouter( if (spec) { return ( <> - + { - const { application, uiSettings, overlays, chrome, dataViews } = + const { uiSettings, overlays, chrome, dataViews } = useKibana().services; const [fields, setFields] = useState(indexPattern.getNonScriptedFields()); const [conflictedFields, setConflictedFields] = useState( @@ -143,15 +143,16 @@ export const EditIndexPattern = withRouter( const showTagsSection = Boolean(indexPattern.timeFieldName || (tags && tags.length > 0)); const kibana = useKibana(); const docsUrl = kibana.services.docLinks!.links.elasticsearch.mapping; - const userEditPermission = !!application?.capabilities?.indexPatterns?.save; + const userEditPermission = dataViews.getCanSaveSync(); return (
{showTagsSection && ( diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx index b64aed5c0811c..e40ef6a7ddf2f 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/index_header/index_header.tsx @@ -16,6 +16,7 @@ interface IndexHeaderProps { defaultIndex?: string; setDefault?: () => void; deleteIndexPatternClick?: () => void; + canSave: boolean; } const setDefaultAriaLabel = i18n.translate('indexPatternManagement.editDataView.setDefaultAria', { @@ -40,12 +41,13 @@ export const IndexHeader: React.FC = ({ setDefault, deleteIndexPatternClick, children, + canSave, }) => { return ( {indexPattern.title}} rightSideItems={[ - defaultIndex !== indexPattern.id && setDefault && ( + defaultIndex !== indexPattern.id && setDefault && canSave && ( = ({ /> ), - deleteIndexPatternClick && ( + canSave && (
`; @@ -178,6 +198,47 @@ exports[`IndexedFieldsTable should filter based on the query bar 1`] = ` }, ] } + openModal={[Function]} + theme={Object {}} + /> +
+`; + +exports[`IndexedFieldsTable should filter based on the schema filter 1`] = ` +
+ `; @@ -212,6 +273,8 @@ exports[`IndexedFieldsTable should filter based on the type filter 1`] = ` }, ] } + openModal={[Function]} + theme={Object {}} /> `; @@ -291,8 +354,28 @@ exports[`IndexedFieldsTable should render normally 1`] = ` "name": "amount", "type": "long", }, + Object { + "displayName": "runtime", + "excluded": false, + "format": "", + "hasRuntime": true, + "info": Array [], + "isMapped": false, + "isUserEditable": false, + "kbnType": "number", + "name": "runtime", + "runtimeField": Object { + "script": Object { + "source": "emit('Hello');", + }, + "type": "long", + }, + "type": "long", + }, ] } + openModal={[Function]} + theme={Object {}} /> `; diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx index 4773dbff38a28..c7b92c227a5d9 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.test.tsx @@ -11,6 +11,7 @@ import { shallow, ShallowWrapper } from 'enzyme'; import { DataViewField, DataView, DataViewType } from 'src/plugins/data_views/public'; import { IndexedFieldsTable } from './indexed_fields_table'; import { getFieldInfo } from '../../utils'; +import { RuntimeField } from 'src/plugins/data_views/common'; jest.mock('@elastic/eui', () => ({ EuiFlexGroup: 'eui-flex-group', @@ -67,11 +68,12 @@ const rollupIndexPattern = { } as unknown as DataView; const mockFieldToIndexPatternField = ( - spec: Record + spec: Record ) => { return new DataViewField(spec as unknown as DataViewField['spec']); }; +const runtimeField: RuntimeField = { type: 'long', script: { source: "emit('Hello');" } }; const fields = [ { name: 'Elastic', @@ -88,8 +90,19 @@ const fields = [ isUserEditable: true, }, { name: 'amount', displayName: 'amount', esTypes: ['long'], isUserEditable: true }, + { + name: 'runtime', + displayName: 'runtime', + runtimeField, + }, ].map(mockFieldToIndexPatternField); +const mockedServices = { + userEditPermission: false, + openModal: () => ({ onClose: new Promise(() => {}), close: async () => {} }), + theme: {} as any, +}; + describe('IndexedFieldsTable', () => { test('should render normally', async () => { const component: ShallowWrapper, React.Component<{}, {}, any>> = shallow( @@ -100,10 +113,12 @@ describe('IndexedFieldsTable', () => { fieldWildcardMatcher={() => { return () => false; }} - indexedFieldTypeFilter="" + indexedFieldTypeFilter={[]} + schemaFieldTypeFilter={[]} fieldFilter="" + {...mockedServices} /> - ).dive(); + ); await new Promise((resolve) => process.nextTick(resolve)); component.update(); @@ -120,10 +135,12 @@ describe('IndexedFieldsTable', () => { fieldWildcardMatcher={() => { return () => false; }} - indexedFieldTypeFilter="" + indexedFieldTypeFilter={[]} + schemaFieldTypeFilter={[]} fieldFilter="" + {...mockedServices} /> - ).dive(); + ); await new Promise((resolve) => process.nextTick(resolve)); component.setProps({ fieldFilter: 'Elast' }); @@ -141,13 +158,38 @@ describe('IndexedFieldsTable', () => { fieldWildcardMatcher={() => { return () => false; }} - indexedFieldTypeFilter="" + indexedFieldTypeFilter={[]} + schemaFieldTypeFilter={[]} + fieldFilter="" + {...mockedServices} + /> + ); + + await new Promise((resolve) => process.nextTick(resolve)); + component.setProps({ indexedFieldTypeFilter: ['date'] }); + component.update(); + + expect(component).toMatchSnapshot(); + }); + + test('should filter based on the schema filter', async () => { + const component: ShallowWrapper, React.Component<{}, {}, any>> = shallow( + { + return () => false; + }} + indexedFieldTypeFilter={[]} + schemaFieldTypeFilter={[]} fieldFilter="" + {...mockedServices} /> - ).dive(); + ); await new Promise((resolve) => process.nextTick(resolve)); - component.setProps({ indexedFieldTypeFilter: 'date' }); + component.setProps({ schemaFieldTypeFilter: ['runtime'] }); component.update(); expect(component).toMatchSnapshot(); @@ -163,10 +205,12 @@ describe('IndexedFieldsTable', () => { fieldWildcardMatcher={() => { return () => false; }} - indexedFieldTypeFilter="" + indexedFieldTypeFilter={[]} + schemaFieldTypeFilter={[]} fieldFilter="" + {...mockedServices} /> - ).dive(); + ); await new Promise((resolve) => process.nextTick(resolve)); component.update(); diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx index 667a4e029e02b..ad85499009db0 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/indexed_fields_table/indexed_fields_table.tsx @@ -10,16 +10,15 @@ import React, { Component } from 'react'; import { createSelector } from 'reselect'; import { OverlayStart, ThemeServiceStart } from 'src/core/public'; import { DataViewField, DataView } from '../../../../../../plugins/data_views/public'; -import { useKibana } from '../../../../../../plugins/kibana_react/public'; import { Table } from './components/table'; import { IndexedFieldItem } from './types'; -import { IndexPatternManagmentContext } from '../../../types'; interface IndexedFieldsTableProps { fields: DataViewField[]; indexPattern: DataView; fieldFilter?: string; - indexedFieldTypeFilter?: string; + indexedFieldTypeFilter: string[]; + schemaFieldTypeFilter: string[]; helpers: { editField: (fieldName: string) => void; deleteField: (fieldName: string) => void; @@ -35,16 +34,10 @@ interface IndexedFieldsTableState { fields: IndexedFieldItem[]; } -const withHooks = (Comp: typeof Component) => { - return (props: any) => { - const { application } = useKibana().services; - const userEditPermission = !!application?.capabilities?.indexPatterns?.save; - - return ; - }; -}; - -class IndexedFields extends Component { +export class IndexedFieldsTable extends Component< + IndexedFieldsTableProps, + IndexedFieldsTableState +> { constructor(props: IndexedFieldsTableProps) { super(props); @@ -93,7 +86,8 @@ class IndexedFields extends Component props.fieldFilter, (state: IndexedFieldsTableState, props: IndexedFieldsTableProps) => props.indexedFieldTypeFilter, - (fields, fieldFilter, indexedFieldTypeFilter) => { + (state: IndexedFieldsTableState, props: IndexedFieldsTableProps) => props.schemaFieldTypeFilter, + (fields, fieldFilter, indexedFieldTypeFilter, schemaFieldTypeFilter) => { if (fieldFilter) { const normalizedFieldFilter = fieldFilter.toLowerCase(); fields = fields.filter( @@ -103,14 +97,34 @@ class IndexedFields extends Component { - if (indexedFieldTypeFilter === 'conflict' && field.kbnType === 'conflict') { + if (indexedFieldTypeFilter.includes('conflict') && field.kbnType === 'conflict') { + return true; + } + if ( + 'runtimeField' in field && + field.runtimeField?.type && + indexedFieldTypeFilter.includes(field.runtimeField?.type) + ) { return true; } // match one of multiple types on a field - return field.esTypes?.length && field.esTypes?.indexOf(indexedFieldTypeFilter) !== -1; + return ( + field.esTypes?.length && + field.esTypes.filter((val) => indexedFieldTypeFilter.includes(val)).length + ); + }); + } + + if (schemaFieldTypeFilter.length) { + // match fields of schema type + fields = fields.filter((field) => { + return ( + (schemaFieldTypeFilter.includes('runtime') && 'runtimeField' in field) || + (schemaFieldTypeFilter.includes('indexed') && !('runtimeField' in field)) + ); }); } @@ -136,5 +150,3 @@ class IndexedFields extends Component { - const { application, docLinks } = useKibana().services; + const { dataViews, docLinks } = useKibana().services; const links = docLinks?.links; - const userEditPermission = !!application?.capabilities?.indexPatterns?.save; + const userEditPermission = dataViews.getCanSaveSync(); return ( diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx index aa74ae8c78fae..4febfdf0e1219 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_field_table.test.tsx @@ -68,8 +68,10 @@ describe('ScriptedFieldsTable', () => { helpers={helpers} painlessDocLink={'painlessDoc'} saveIndexPattern={async () => {}} + userEditPermission={false} + scriptedFieldLanguageFilter={[]} /> - ).dive(); + ); // Allow the componentWillMount code to execute // https://github.com/airbnb/enzyme/issues/450 @@ -86,8 +88,10 @@ describe('ScriptedFieldsTable', () => { helpers={helpers} painlessDocLink={'painlessDoc'} saveIndexPattern={async () => {}} + userEditPermission={false} + scriptedFieldLanguageFilter={[]} /> - ).dive(); + ); // Allow the componentWillMount code to execute // https://github.com/airbnb/enzyme/issues/450 @@ -117,15 +121,17 @@ describe('ScriptedFieldsTable', () => { painlessDocLink={'painlessDoc'} helpers={helpers} saveIndexPattern={async () => {}} + userEditPermission={false} + scriptedFieldLanguageFilter={[]} /> - ).dive(); + ); // Allow the componentWillMount code to execute // https://github.com/airbnb/enzyme/issues/450 await component.update(); // Fire `componentWillMount()` await component.update(); // Force update the component post async actions - component.setProps({ scriptedFieldLanguageFilter: 'painless' }); + component.setProps({ scriptedFieldLanguageFilter: ['painless'] }); component.update(); expect(component).toMatchSnapshot(); @@ -142,8 +148,10 @@ describe('ScriptedFieldsTable', () => { painlessDocLink={'painlessDoc'} helpers={helpers} saveIndexPattern={async () => {}} + userEditPermission={false} + scriptedFieldLanguageFilter={[]} /> - ).dive(); + ); // Allow the componentWillMount code to execute // https://github.com/airbnb/enzyme/issues/450 @@ -162,8 +170,10 @@ describe('ScriptedFieldsTable', () => { helpers={helpers} painlessDocLink={'painlessDoc'} saveIndexPattern={async () => {}} + userEditPermission={false} + scriptedFieldLanguageFilter={[]} /> - ).dive(); + ); await component.update(); // Fire `componentWillMount()` // @ts-expect-error lang is not valid @@ -189,8 +199,10 @@ describe('ScriptedFieldsTable', () => { helpers={helpers} painlessDocLink={'painlessDoc'} saveIndexPattern={async () => {}} + userEditPermission={false} + scriptedFieldLanguageFilter={[]} /> - ).dive(); + ); await component.update(); // Fire `componentWillMount()` // @ts-expect-error diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx b/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx index 2e3657b23c331..540131c50b236 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/scripted_fields_table/scripted_fields_table.tsx @@ -15,15 +15,13 @@ import { import { Table, Header, CallOuts, DeleteScritpedFieldConfirmationModal } from './components'; import { ScriptedFieldItem } from './types'; -import { IndexPatternManagmentContext } from '../../../types'; import { DataView, DataViewsPublicPluginStart } from '../../../../../../plugins/data_views/public'; -import { useKibana } from '../../../../../../plugins/kibana_react/public'; interface ScriptedFieldsTableProps { indexPattern: DataView; fieldFilter?: string; - scriptedFieldLanguageFilter?: string; + scriptedFieldLanguageFilter: string[]; helpers: { redirectToRoute: Function; getRouteHref?: Function; @@ -41,16 +39,10 @@ interface ScriptedFieldsTableState { fields: ScriptedFieldItem[]; } -const withHooks = (Comp: typeof Component) => { - return (props: any) => { - const { application } = useKibana().services; - const userEditPermission = !!application?.capabilities?.indexPatterns?.save; - - return ; - }; -}; - -class ScriptedFields extends Component { +export class ScriptedFieldsTable extends Component< + ScriptedFieldsTableProps, + ScriptedFieldsTableState +> { constructor(props: ScriptedFieldsTableProps) { super(props); @@ -92,9 +84,9 @@ class ScriptedFields extends Component field.lang === this.props.scriptedFieldLanguageFilter + if (scriptedFieldLanguageFilter.length) { + languageFilteredFields = fields.filter((field) => + scriptedFieldLanguageFilter.includes(field.lang) ); } @@ -168,5 +160,3 @@ class ScriptedFields extends Component { @@ -44,6 +47,12 @@ interface TabsProps extends Pick { refreshFields: () => void; } +interface FilterItems { + value: string; + name: string; + checked?: FilterChecked; +} + const searchAriaLabel = i18n.translate( 'indexPatternManagement.editIndexPattern.fields.searchAria', { @@ -51,6 +60,10 @@ const searchAriaLabel = i18n.translate( } ); +const filterLabel = i18n.translate('indexPatternManagement.editIndexPattern.fields.filter', { + defaultMessage: 'Field type', +}); + const filterAriaLabel = i18n.translate( 'indexPatternManagement.editIndexPattern.fields.filterAria', { @@ -58,6 +71,45 @@ const filterAriaLabel = i18n.translate( } ); +const schemaFilterLabel = i18n.translate('indexPatternManagement.editIndexPattern.fields.schema', { + defaultMessage: 'Schema type', +}); + +const schemaAriaLabel = i18n.translate( + 'indexPatternManagement.editIndexPattern.fields.schemaAria', + { + defaultMessage: 'Filter schema types', + } +); + +const scriptedFieldFilterLabel = i18n.translate( + 'indexPatternManagement.editIndexPattern.fields.scriptedFieldFilter', + { + defaultMessage: 'All languages', + } +); + +const scriptedFieldAriaLabel = i18n.translate( + 'indexPatternManagement.editIndexPattern.fields.scriptedFieldFilterAria', + { + defaultMessage: 'Filter scripted field languages', + } +); + +const schemaOptionRuntime = i18n.translate( + 'indexPatternManagement.editIndexPattern.fields.runtime', + { + defaultMessage: 'Runtime', + } +); + +const schemaOptionIndexed = i18n.translate( + 'indexPatternManagement.editIndexPattern.fields.indexed', + { + defaultMessage: 'Indexed', + } +); + const filterPlaceholder = i18n.translate( 'indexPatternManagement.editIndexPattern.fields.filterPlaceholder', { @@ -80,19 +132,56 @@ export function Tabs({ location, refreshFields, }: TabsProps) { - const { application, uiSettings, docLinks, dataViewFieldEditor, overlays, theme } = + const { uiSettings, docLinks, dataViewFieldEditor, overlays, theme, dataViews } = useKibana().services; const [fieldFilter, setFieldFilter] = useState(''); - const [indexedFieldTypeFilter, setIndexedFieldTypeFilter] = useState(''); - const [scriptedFieldLanguageFilter, setScriptedFieldLanguageFilter] = useState(''); - const [indexedFieldTypes, setIndexedFieldType] = useState([]); - const [scriptedFieldLanguages, setScriptedFieldLanguages] = useState([]); const [syncingStateFunc, setSyncingStateFunc] = useState({ getCurrentTab: () => TAB_INDEXED_FIELDS, }); + const [scriptedFieldLanguageFilter, setScriptedFieldLanguageFilter] = useState([]); + const [isScriptedFieldFilterOpen, setIsScriptedFieldFilterOpen] = useState(false); + const [scriptedFieldLanguages, setScriptedFieldLanguages] = useState([]); + const [indexedFieldTypeFilter, setIndexedFieldTypeFilter] = useState([]); + const [isIndexedFilterOpen, setIsIndexedFilterOpen] = useState(false); + const [indexedFieldTypes, setIndexedFieldTypes] = useState([]); + const [schemaFieldTypeFilter, setSchemaFieldTypeFilter] = useState([]); + const [isSchemaFilterOpen, setIsSchemaFilterOpen] = useState(false); + const [schemaItems, setSchemaItems] = useState([ + { + value: 'runtime', + name: schemaOptionRuntime, + }, + { + value: 'indexed', + name: schemaOptionIndexed, + }, + ]); const closeEditorHandler = useRef<() => void | undefined>(); const { DeleteRuntimeFieldProvider } = dataViewFieldEditor; + const updateFilterItem = ( + items: FilterItems[], + index: number, + updater: (a: FilterItems[]) => void + ) => { + if (!items[index]) { + return; + } + + const newItems = [...items]; + + switch (newItems[index].checked) { + case 'on': + newItems[index].checked = undefined; + break; + + default: + newItems[index].checked = 'on'; + } + + updater(newItems); + }; + const refreshFilters = useCallback(() => { const tempIndexedFieldTypes: string[] = []; const tempScriptedFieldLanguages: string[] = []; @@ -113,10 +202,8 @@ export function Tabs({ } }); - setIndexedFieldType(convertToEuiSelectOption(tempIndexedFieldTypes, 'indexedFiledTypes')); - setScriptedFieldLanguages( - convertToEuiSelectOption(tempScriptedFieldLanguages, 'scriptedFieldLanguages') - ); + setIndexedFieldTypes(convertToEuiFilterOptions(tempIndexedFieldTypes)); + setScriptedFieldLanguages(convertToEuiFilterOptions(tempScriptedFieldLanguages)); }, [indexPattern]); const closeFieldEditor = useCallback(() => { @@ -154,7 +241,7 @@ export function Tabs({ [uiSettings] ); - const userEditPermission = !!application?.capabilities?.indexPatterns?.save; + const userEditPermission = dataViews.getCanSaveSync(); const getFilterSection = useCallback( (type: string) => { return ( @@ -172,13 +259,92 @@ export function Tabs({ {type === TAB_INDEXED_FIELDS && indexedFieldTypes.length > 0 && ( <> - setIndexedFieldTypeFilter(e.target.value)} - data-test-subj="indexedFieldTypeFilterDropdown" - aria-label={filterAriaLabel} - /> + + setIsIndexedFilterOpen(!isIndexedFilterOpen)} + isSelected={isIndexedFilterOpen} + numFilters={indexedFieldTypes.length} + hasActiveFilters={!!indexedFieldTypes.find((item) => item.checked === 'on')} + numActiveFilters={ + indexedFieldTypes.filter((item) => item.checked === 'on').length + } + > + {filterLabel} + + } + isOpen={isIndexedFilterOpen} + closePopover={() => setIsIndexedFilterOpen(false)} + > + {indexedFieldTypes.map((item, index) => ( + { + setIndexedFieldTypeFilter( + item.checked + ? indexedFieldTypeFilter.filter((f) => f !== item.value) + : [...indexedFieldTypeFilter, item.value] + ); + updateFilterItem(indexedFieldTypes, index, setIndexedFieldTypes); + }} + data-test-subj={`indexedFieldTypeFilterDropdown-option-${item.value}${ + item.checked ? '-checked' : '' + }`} + > + {item.name} + + ))} + + setIsSchemaFilterOpen(!isSchemaFilterOpen)} + isSelected={isSchemaFilterOpen} + numFilters={schemaItems.length} + hasActiveFilters={!!schemaItems.find((item) => item.checked === 'on')} + numActiveFilters={ + schemaItems.filter((item) => item.checked === 'on').length + } + > + {schemaFilterLabel} + + } + isOpen={isSchemaFilterOpen} + closePopover={() => setIsSchemaFilterOpen(false)} + > + {schemaItems.map((item, index) => ( + { + setSchemaFieldTypeFilter( + item.checked + ? schemaFieldTypeFilter.filter((f) => f !== item.value) + : [...schemaFieldTypeFilter, item.value] + ); + updateFilterItem(schemaItems, index, setSchemaItems); + }} + data-test-subj={`schemaFieldTypeFilterDropdown-option-${item.value}${ + item.checked ? '-checked' : '' + }`} + > + {item.name} + + ))} + + {userEditPermission && ( @@ -191,12 +357,52 @@ export function Tabs({ )} {type === TAB_SCRIPTED_FIELDS && scriptedFieldLanguages.length > 0 && ( - setScriptedFieldLanguageFilter(e.target.value)} - data-test-subj="scriptedFieldLanguageFilterDropdown" - /> + + setIsScriptedFieldFilterOpen(!isScriptedFieldFilterOpen)} + isSelected={isScriptedFieldFilterOpen} + numFilters={scriptedFieldLanguages.length} + hasActiveFilters={ + !!scriptedFieldLanguages.find((item) => item.checked === 'on') + } + numActiveFilters={ + scriptedFieldLanguages.filter((item) => item.checked === 'on').length + } + > + {scriptedFieldFilterLabel} + + } + isOpen={isScriptedFieldFilterOpen} + closePopover={() => setIsScriptedFieldFilterOpen(false)} + > + {scriptedFieldLanguages.map((item, index) => ( + { + setScriptedFieldLanguageFilter( + item.checked + ? scriptedFieldLanguageFilter.filter((f) => f !== item.value) + : [...scriptedFieldLanguageFilter, item.value] + ); + updateFilterItem(scriptedFieldLanguages, index, setScriptedFieldLanguages); + }} + data-test-subj={`scriptedFieldLanguageFilterDropdown-option-${item.value}${ + item.checked ? '-checked' : '' + }`} + > + {item.name} + + ))} + + )} @@ -206,8 +412,13 @@ export function Tabs({ fieldFilter, indexedFieldTypeFilter, indexedFieldTypes, + isIndexedFilterOpen, scriptedFieldLanguageFilter, scriptedFieldLanguages, + isScriptedFieldFilterOpen, + schemaItems, + schemaFieldTypeFilter, + isSchemaFilterOpen, openFieldEditor, userEditPermission, ] @@ -230,13 +441,15 @@ export function Tabs({ fieldFilter={fieldFilter} fieldWildcardMatcher={fieldWildcardMatcherDecorated} indexedFieldTypeFilter={indexedFieldTypeFilter} + schemaFieldTypeFilter={schemaFieldTypeFilter} helpers={{ editField: openFieldEditor, deleteField, getFieldInfo, }} openModal={overlays.openModal} - theme={theme} + theme={theme!} + userEditPermission={dataViews.getCanSaveSync()} /> )} @@ -260,6 +473,7 @@ export function Tabs({ }} onRemoveField={refreshFilters} painlessDocLink={docLinks.links.scriptedFields.painless} + userEditPermission={dataViews.getCanSaveSync()} /> ); @@ -289,6 +503,7 @@ export function Tabs({ history, indexPattern, indexedFieldTypeFilter, + schemaFieldTypeFilter, refreshFilters, scriptedFieldLanguageFilter, saveIndexPattern, @@ -297,6 +512,7 @@ export function Tabs({ refreshFields, overlays, theme, + dataViews, ] ); diff --git a/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts b/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts index 0ea8d9d9e28f3..e82722b1a5127 100644 --- a/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts +++ b/src/plugins/data_view_management/public/components/edit_index_pattern/tabs/utils.ts @@ -105,36 +105,11 @@ export function getPath(field: DataViewField, indexPattern: DataView) { return `/dataView/${indexPattern?.id}/field/${encodeURIComponent(field.name)}`; } -const allTypesDropDown = i18n.translate( - 'indexPatternManagement.editIndexPattern.fields.allTypesDropDown', - { - defaultMessage: 'All field types', - } -); - -const allLangsDropDown = i18n.translate( - 'indexPatternManagement.editIndexPattern.fields.allLangsDropDown', - { - defaultMessage: 'All languages', - } -); - -export function convertToEuiSelectOption(options: string[], type: string) { - const euiOptions = - options.length > 0 - ? [ - { - value: '', - text: type === 'scriptedFieldLanguages' ? allLangsDropDown : allTypesDropDown, - }, - ] - : []; - return euiOptions.concat( - uniq(options).map((option) => { - return { - value: option, - text: option, - }; - }) - ); +export function convertToEuiFilterOptions(options: string[]) { + return uniq(options).map((option) => { + return { + value: option, + name: option, + }; + }); } diff --git a/src/plugins/data_view_management/public/management_app/mount_management_section.tsx b/src/plugins/data_view_management/public/management_app/mount_management_section.tsx index 1b876e34a42fb..e4978acbc9d17 100644 --- a/src/plugins/data_view_management/public/management_app/mount_management_section.tsx +++ b/src/plugins/data_view_management/public/management_app/mount_management_section.tsx @@ -39,7 +39,7 @@ export async function mountManagementSection( params: ManagementAppMountParams ) { const [ - { chrome, application, uiSettings, notifications, overlays, http, docLinks, theme }, + { chrome, uiSettings, notifications, overlays, http, docLinks, theme }, { data, dataViewFieldEditor, dataViewEditor, dataViews, fieldFormats }, indexPatternManagementStart, ] = await getStartServices(); @@ -51,7 +51,6 @@ export async function mountManagementSection( const deps: IndexPatternManagmentContext = { chrome, - application, uiSettings, notifications, overlays, diff --git a/src/plugins/data_view_management/public/mocks.ts b/src/plugins/data_view_management/public/mocks.ts index 3404ca4912c88..54c1900d37f4c 100644 --- a/src/plugins/data_view_management/public/mocks.ts +++ b/src/plugins/data_view_management/public/mocks.ts @@ -13,6 +13,7 @@ import { urlForwardingPluginMock } from '../../url_forwarding/public/mocks'; import { dataPluginMock } from '../../data/public/mocks'; import { indexPatternFieldEditorPluginMock } from '../../data_view_field_editor/public/mocks'; import { indexPatternEditorPluginMock } from '../../data_view_editor/public/mocks'; +import { dataViewPluginMocks } from '../../data_views/public/mocks'; import { IndexPatternManagementSetup, IndexPatternManagementStart, @@ -54,15 +55,14 @@ const docLinks = { const createIndexPatternManagmentContext = (): { [key in keyof IndexPatternManagmentContext]: any; } => { - const { chrome, application, uiSettings, notifications, overlays } = coreMock.createStart(); + const { chrome, uiSettings, notifications, overlays } = coreMock.createStart(); const { http } = coreMock.createSetup(); const data = dataPluginMock.createStartContract(); const dataViewFieldEditor = indexPatternFieldEditorPluginMock.createStartContract(); - const dataViews = data.indexPatterns; + const dataViews = dataViewPluginMocks.createStartContract(); return { chrome, - application, uiSettings, notifications, overlays, diff --git a/src/plugins/data_view_management/public/types.ts b/src/plugins/data_view_management/public/types.ts index dc5e0198a64f1..f0a79416892ef 100644 --- a/src/plugins/data_view_management/public/types.ts +++ b/src/plugins/data_view_management/public/types.ts @@ -8,7 +8,6 @@ import { ChromeStart, - ApplicationStart, IUiSettingsClient, OverlayStart, NotificationsStart, @@ -26,7 +25,6 @@ import { FieldFormatsStart } from '../../field_formats/public'; export interface IndexPatternManagmentContext { chrome: ChromeStart; - application: ApplicationStart; uiSettings: IUiSettingsClient; notifications: NotificationsStart; overlays: OverlayStart; 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/public/mocks.ts b/src/plugins/data_views/public/mocks.ts index c9aece61c4e02..61713c9406c23 100644 --- a/src/plugins/data_views/public/mocks.ts +++ b/src/plugins/data_views/public/mocks.ts @@ -27,6 +27,7 @@ const createStartContract = (): Start => { }), get: jest.fn().mockReturnValue(Promise.resolve({})), clearCache: jest.fn(), + getCanSaveSync: jest.fn(), } as unknown as jest.Mocked; }; 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/discover/public/utils/get_sharing_data.test.ts b/src/plugins/discover/public/utils/get_sharing_data.test.ts index aef9bcff15403..cc37599ef12c0 100644 --- a/src/plugins/discover/public/utils/get_sharing_data.test.ts +++ b/src/plugins/discover/public/utils/get_sharing_data.test.ts @@ -11,7 +11,11 @@ import type { DataView } from 'src/plugins/data/common'; import type { DiscoverServices } from '../build_services'; import { dataPluginMock } from '../../../data/public/mocks'; import { createSearchSourceMock } from '../../../data/common/search/search_source/mocks'; -import { DOC_HIDE_TIME_COLUMN_SETTING, SORT_DEFAULT_ORDER_SETTING } from '../../common'; +import { + DOC_HIDE_TIME_COLUMN_SETTING, + SORT_DEFAULT_ORDER_SETTING, + SEARCH_FIELDS_FROM_SOURCE, +} from '../../common'; import { indexPatternMock } from '../__mocks__/index_pattern'; import { getSharingData, showPublicUrlSwitch } from './get_sharing_data'; @@ -23,6 +27,9 @@ describe('getSharingData', () => { data: dataPluginMock.createStartContract(), uiSettings: { get: (key: string) => { + if (key === SEARCH_FIELDS_FROM_SOURCE) { + return false; + } if (key === SORT_DEFAULT_ORDER_SETTING) { return 'desc'; } @@ -64,6 +71,91 @@ describe('getSharingData', () => { `); }); + test('getSearchSource does not add fields to the searchSource', async () => { + const index = { ...indexPatternMock } as DataView; + index.timeFieldName = 'cool-timefield'; + const searchSourceMock = createSearchSourceMock({ index }); + const { getSearchSource } = await getSharingData(searchSourceMock, {}, services); + expect(getSearchSource()).toMatchInlineSnapshot(` + Object { + "index": "the-index-pattern-id", + "sort": Array [ + Object { + "_doc": "desc", + }, + ], + } + `); + }); + + test(`getSearchSource does not add fields to the searchSource with 'discover:searchFieldsFromSource=true'`, async () => { + const originalGet = services.uiSettings.get; + services.uiSettings = { + get: (key: string, ...args: unknown[]) => { + if (key === SEARCH_FIELDS_FROM_SOURCE) { + return true; + } + return originalGet(key, ...args); + }, + } as unknown as IUiSettingsClient; + const index = { ...indexPatternMock } as DataView; + index.timeFieldName = 'cool-timefield'; + const searchSourceMock = createSearchSourceMock({ index }); + const { getSearchSource } = await getSharingData( + searchSourceMock, + { + columns: [ + 'cool-field-1', + 'cool-field-2', + 'cool-field-3', + 'cool-field-4', + 'cool-field-5', + 'cool-field-6', + ], + }, + services + ); + expect(getSearchSource()).toMatchInlineSnapshot(` + Object { + "index": "the-index-pattern-id", + "sort": Array [ + Object { + "_doc": "desc", + }, + ], + } + `); + }); + + test('getSearchSource does add fields to the searchSource when columns are selected', async () => { + const index = { ...indexPatternMock } as DataView; + index.timeFieldName = 'cool-timefield'; + const searchSourceMock = createSearchSourceMock({ index }); + const { getSearchSource } = await getSharingData( + searchSourceMock, + { + columns: [ + 'cool-field-1', + 'cool-field-2', + 'cool-field-3', + 'cool-field-4', + 'cool-field-5', + 'cool-field-6', + ], + }, + services + ); + expect(getSearchSource().fields).toStrictEqual([ + 'cool-timefield', + 'cool-field-1', + 'cool-field-2', + 'cool-field-3', + 'cool-field-4', + 'cool-field-5', + 'cool-field-6', + ]); + }); + test('fields have prepended timeField', async () => { const index = { ...indexPatternMock } as DataView; index.timeFieldName = 'cool-timefield'; diff --git a/src/plugins/discover/public/utils/get_sharing_data.ts b/src/plugins/discover/public/utils/get_sharing_data.ts index e14ae252da95e..cd00fc5e3c70e 100644 --- a/src/plugins/discover/public/utils/get_sharing_data.ts +++ b/src/plugins/discover/public/utils/get_sharing_data.ts @@ -10,7 +10,11 @@ import type { Capabilities } from 'kibana/public'; import type { IUiSettingsClient } from 'kibana/public'; import type { DataPublicPluginStart } from 'src/plugins/data/public'; import type { Filter, ISearchSource, SerializedSearchSourceFields } from 'src/plugins/data/common'; -import { DOC_HIDE_TIME_COLUMN_SETTING, SORT_DEFAULT_ORDER_SETTING } from '../../common'; +import { + DOC_HIDE_TIME_COLUMN_SETTING, + SEARCH_FIELDS_FROM_SOURCE, + SORT_DEFAULT_ORDER_SETTING, +} from '../../common'; import type { SavedSearch, SortOrder } from '../services/saved_searches'; import { getSortForSearchSource } from '../components/doc_table'; import { AppState } from '../application/main/services/discover_state'; @@ -72,6 +76,15 @@ export async function getSharingData( searchSource.setField('filter', filter); } + /* + * For downstream querying performance, the searchSource object must have fields set. + * Otherwise, the requests will ask for all fields, even if only a few are really needed. + * Discover does not set fields, since having all fields is needed for the UI. + */ + const useFieldsApi = !config.get(SEARCH_FIELDS_FROM_SOURCE); + if (useFieldsApi && columns.length) { + searchSource.setField('fields', columns); + } return searchSource.getSerializedFields(true); }, columns, diff --git a/src/plugins/home/public/application/components/__snapshots__/home.test.tsx.snap b/src/plugins/home/public/application/components/__snapshots__/home.test.tsx.snap index 373fc8ea59b6f..ab6ad1b6cc0c5 100644 --- a/src/plugins/home/public/application/components/__snapshots__/home.test.tsx.snap +++ b/src/plugins/home/public/application/components/__snapshots__/home.test.tsx.snap @@ -396,6 +396,7 @@ exports[`home isNewKibanaInstance should set isNewKibanaInstance to true when th }, "delete": [MockFunction], "externalUrl": Object { + "isInternalUrl": [MockFunction], "validateUrl": [MockFunction], }, "fetch": [MockFunction], @@ -464,6 +465,7 @@ exports[`home isNewKibanaInstance should set isNewKibanaInstance to true when th }, "delete": [MockFunction], "externalUrl": Object { + "isInternalUrl": [MockFunction], "validateUrl": [MockFunction], }, "fetch": [MockFunction], @@ -533,6 +535,7 @@ exports[`home isNewKibanaInstance should set isNewKibanaInstance to true when th }, "delete": [MockFunction], "externalUrl": Object { + "isInternalUrl": [MockFunction], "validateUrl": [MockFunction], }, "fetch": [MockFunction], 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_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap b/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap index b05abbcece0b9..9a4511f8b03f5 100644 --- a/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap +++ b/src/plugins/kibana_react/public/code_editor/__snapshots__/code_editor.test.tsx.snap @@ -126,6 +126,7 @@ exports[` is rendered 1`] = ` >
is rendered 1`] = ` /> - + -
-
-