From 710f4d14fdbcc22cc8cfc1a0302fbd4ffb2e14bd Mon Sep 17 00:00:00 2001 From: Kate Patticha Date: Tue, 16 Nov 2021 06:27:36 +0100 Subject: [PATCH] [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case (#118328) * [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case * Fix wrong path Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- src/dev/precommit_hook/casing_check_config.js | 1 - x-pack/plugins/apm/dev_docs/local_setup.md | 2 +- x-pack/plugins/apm/dev_docs/telemetry.md | 2 +- x-pack/plugins/apm/dev_docs/typescript.md | 4 ++-- .../apm/dev_docs/updating_functional_tests_archives.md | 2 +- x-pack/plugins/apm/ftr_e2e/cypress_start.ts | 2 +- ...latency-metrics.js => aggregate_latency_metrics.js} | 2 +- .../index.ts | 2 +- ...sers-and-roles.js => create_apm_users_and_roles.js} | 2 +- .../create_apm_users_and_roles.ts | 0 .../create_apm_users_and_roles_cli.ts | 0 .../helpers/call_kibana.ts | 0 .../helpers/create_or_update_user.ts | 0 .../helpers/create_role.ts | 0 .../helpers/get_version.ts | 0 .../roles/power_user_role.ts | 0 .../roles/read_only_user_role.ts | 0 ...s-archive.js => create_functional_tests_archive.js} | 2 +- .../index.ts | 0 .../{optimize-tsconfig.js => optimize_tsconfig.js} | 2 +- .../optimize.js | 2 +- .../{optimize-tsconfig => optimize_tsconfig}/paths.js | 2 +- .../test_tsconfig.json} | 0 .../tsconfig.json | 0 .../unoptimize.js | 0 x-pack/plugins/apm/scripts/precommit.js | 4 ++-- ...te-or-update-index.ts => create_or_update_index.ts} | 0 ...etry-template.ts => download_telemetry_template.ts} | 0 .../shared/{get-http-auth.ts => get_http_auth.ts} | 2 +- .../{read-kibana-config.ts => read_kibana_config.ts} | 0 .../{unoptimize-tsconfig.js => unoptimize_tsconfig.js} | 2 +- ...load-telemetry-data.js => upload_telemetry_data.js} | 2 +- .../generate_sample_documents.ts} | 0 .../index.ts | 10 +++++----- 34 files changed, 23 insertions(+), 24 deletions(-) rename x-pack/plugins/apm/scripts/{aggregate-latency-metrics.js => aggregate_latency_metrics.js} (92%) rename x-pack/plugins/apm/scripts/{aggregate-latency-metrics => aggregate_latency_metrics}/index.ts (99%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles.js => create_apm_users_and_roles.js} (92%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/create_apm_users_and_roles.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/create_apm_users_and_roles_cli.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/helpers/call_kibana.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/helpers/create_or_update_user.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/helpers/create_role.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/helpers/get_version.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/roles/power_user_role.ts (100%) rename x-pack/plugins/apm/scripts/{create-apm-users-and-roles => create_apm_users_and_roles}/roles/read_only_user_role.ts (100%) rename x-pack/plugins/apm/scripts/{create-functional-tests-archive.js => create_functional_tests_archive.js} (88%) rename x-pack/plugins/apm/scripts/{create-functional-tests-archive => create_functional_tests_archive}/index.ts (100%) rename x-pack/plugins/apm/scripts/{optimize-tsconfig.js => optimize_tsconfig.js} (84%) rename x-pack/plugins/apm/scripts/{optimize-tsconfig => optimize_tsconfig}/optimize.js (98%) rename x-pack/plugins/apm/scripts/{optimize-tsconfig => optimize_tsconfig}/paths.js (93%) rename x-pack/plugins/apm/scripts/{optimize-tsconfig/test-tsconfig.json => optimize_tsconfig/test_tsconfig.json} (100%) rename x-pack/plugins/apm/scripts/{optimize-tsconfig => optimize_tsconfig}/tsconfig.json (100%) rename x-pack/plugins/apm/scripts/{optimize-tsconfig => optimize_tsconfig}/unoptimize.js (100%) rename x-pack/plugins/apm/scripts/shared/{create-or-update-index.ts => create_or_update_index.ts} (100%) rename x-pack/plugins/apm/scripts/shared/{download-telemetry-template.ts => download_telemetry_template.ts} (100%) rename x-pack/plugins/apm/scripts/shared/{get-http-auth.ts => get_http_auth.ts} (91%) rename x-pack/plugins/apm/scripts/shared/{read-kibana-config.ts => read_kibana_config.ts} (100%) rename x-pack/plugins/apm/scripts/{unoptimize-tsconfig.js => unoptimize_tsconfig.js} (84%) rename x-pack/plugins/apm/scripts/{upload-telemetry-data.js => upload_telemetry_data.js} (90%) rename x-pack/plugins/apm/scripts/{upload-telemetry-data/generate-sample-documents.ts => upload_telemetry_data/generate_sample_documents.ts} (100%) rename x-pack/plugins/apm/scripts/{upload-telemetry-data => upload_telemetry_data}/index.ts (93%) diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 700c011d3e7e7..f5c1755b228e9 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -57,7 +57,6 @@ export const IGNORE_FILE_GLOBS = [ // TODO fix file names in APM to remove these 'x-pack/plugins/apm/public/**/*', - 'x-pack/plugins/apm/scripts/**/*', 'x-pack/plugins/maps/server/fonts/**/*', diff --git a/x-pack/plugins/apm/dev_docs/local_setup.md b/x-pack/plugins/apm/dev_docs/local_setup.md index 21d861fbb4e0b..4ed5d8c1b86dd 100644 --- a/x-pack/plugins/apm/dev_docs/local_setup.md +++ b/x-pack/plugins/apm/dev_docs/local_setup.md @@ -40,7 +40,7 @@ elasticsearch.password: changeme APM behaves differently depending on which the role and permissions a logged in user has. To create the users run: ```sh -node x-pack/plugins/apm/scripts/create-apm-users-and-roles.js --username admin --password changeme --kibana-url http://localhost:5601 --role-suffix +node x-pack/plugins/apm/scripts/create_apm_users_and_roles.js --username admin --password changeme --kibana-url http://localhost:5601 --role-suffix ``` This will create: diff --git a/x-pack/plugins/apm/dev_docs/telemetry.md b/x-pack/plugins/apm/dev_docs/telemetry.md index 5462fbcc3b36c..27b9e57447467 100644 --- a/x-pack/plugins/apm/dev_docs/telemetry.md +++ b/x-pack/plugins/apm/dev_docs/telemetry.md @@ -29,7 +29,7 @@ Once uploaded to the telemetry cluster, the data telemetry is stored in ### Generating sample data -The script in `scripts/upload-telemetry-data` can generate sample telemetry data and upload it to a cluster of your choosing. +The script in `scripts/upload_telemetry_data` can generate sample telemetry data and upload it to a cluster of your choosing. You'll need to set the `GITHUB_TOKEN` environment variable to a token that has `repo` scope so it can read from the [elastic/telemetry](https://github.com/elastic/telemetry) repository. (You probably have a token that works for this in diff --git a/x-pack/plugins/apm/dev_docs/typescript.md b/x-pack/plugins/apm/dev_docs/typescript.md index 6de61b665a1b1..110c4a2d1ec97 100644 --- a/x-pack/plugins/apm/dev_docs/typescript.md +++ b/x-pack/plugins/apm/dev_docs/typescript.md @@ -4,8 +4,8 @@ Kibana and X-Pack are very large TypeScript projects, and it comes at a cost. Ed To run the optimization: -`$ node x-pack/plugins/apm/scripts/optimize-tsconfig` +`$ node x-pack/plugins/apm/scripts/optimize_tsconfig` To undo the optimization: -`$ node x-pack/plugins/apm/scripts/unoptimize-tsconfig` +`$ node x-pack/plugins/apm/scripts/unoptimize_tsconfig` diff --git a/x-pack/plugins/apm/dev_docs/updating_functional_tests_archives.md b/x-pack/plugins/apm/dev_docs/updating_functional_tests_archives.md index 88e434d07d38f..3d1a5f0b00bb4 100644 --- a/x-pack/plugins/apm/dev_docs/updating_functional_tests_archives.md +++ b/x-pack/plugins/apm/dev_docs/updating_functional_tests_archives.md @@ -3,6 +3,6 @@ Some of our API tests use an archive generated by the [`esarchiver`](https://www.elastic.co/guide/en/kibana/current/development-tests.html#development-functional-tests) script. Updating the main archive (`apm_8.0.0`) is a scripted process, where a 30m snapshot is downloaded from a cluster running the [APM Integration Testing server](https://github.com/elastic/apm-integration-testing). The script will copy the generated archives into the `fixtures/es_archiver` folders of our test suites (currently `basic` and `trial`). It will also generate a file that contains metadata about the archive, that can be imported to get the time range of the snapshot. Usage: -`node x-pack/plugins/apm/scripts/create-functional-tests-archive --es-url=https://admin:changeme@localhost:9200 --kibana-url=https://localhost:5601` +`node x-pack/plugins/apm/scripts/create_functional_tests_archive --es-url=https://admin:changeme@localhost:9200 --kibana-url=https://localhost:5601` diff --git a/x-pack/plugins/apm/ftr_e2e/cypress_start.ts b/x-pack/plugins/apm/ftr_e2e/cypress_start.ts index c8ab216cbce5c..9e2b9daa5631f 100644 --- a/x-pack/plugins/apm/ftr_e2e/cypress_start.ts +++ b/x-pack/plugins/apm/ftr_e2e/cypress_start.ts @@ -11,7 +11,7 @@ import { argv } from 'yargs'; import Url from 'url'; import cypress from 'cypress'; import { FtrProviderContext } from './ftr_provider_context'; -import { createApmUsersAndRoles } from '../scripts/create-apm-users-and-roles/create_apm_users_and_roles'; +import { createApmUsersAndRoles } from '../scripts/create_apm_users_and_roles/create_apm_users_and_roles'; import { esArchiverLoad, esArchiverUnload } from './cypress/tasks/es_archiver'; export async function cypressStart( diff --git a/x-pack/plugins/apm/scripts/aggregate-latency-metrics.js b/x-pack/plugins/apm/scripts/aggregate_latency_metrics.js similarity index 92% rename from x-pack/plugins/apm/scripts/aggregate-latency-metrics.js rename to x-pack/plugins/apm/scripts/aggregate_latency_metrics.js index 350c3e4256b0b..9cbfe73eeb6dc 100644 --- a/x-pack/plugins/apm/scripts/aggregate-latency-metrics.js +++ b/x-pack/plugins/apm/scripts/aggregate_latency_metrics.js @@ -10,7 +10,7 @@ require('@kbn/optimizer').registerNodeAutoTranspilation(); const { aggregateLatencyMetrics, -} = require('./aggregate-latency-metrics/index.ts'); +} = require('./aggregate_latency_metrics/index.ts'); aggregateLatencyMetrics().catch((err) => { if (err.meta && err.meta.body) { diff --git a/x-pack/plugins/apm/scripts/aggregate-latency-metrics/index.ts b/x-pack/plugins/apm/scripts/aggregate_latency_metrics/index.ts similarity index 99% rename from x-pack/plugins/apm/scripts/aggregate-latency-metrics/index.ts rename to x-pack/plugins/apm/scripts/aggregate_latency_metrics/index.ts index d5cc9a63dbfcd..f9aa943b5eceb 100644 --- a/x-pack/plugins/apm/scripts/aggregate-latency-metrics/index.ts +++ b/x-pack/plugins/apm/scripts/aggregate_latency_metrics/index.ts @@ -24,7 +24,7 @@ import { TRANSACTION_RESULT, PROCESSOR_EVENT, } from '../../common/elasticsearch_fieldnames'; -import { createOrUpdateIndex } from '../shared/create-or-update-index'; +import { createOrUpdateIndex } from '../shared/create_or_update_index'; import { parseIndexUrl } from '../shared/parse_index_url'; import { ESClient, getEsClient } from '../shared/get_es_client'; diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles.js b/x-pack/plugins/apm/scripts/create_apm_users_and_roles.js similarity index 92% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles.js rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles.js index d64364cb38928..8d8b0c2d3d813 100644 --- a/x-pack/plugins/apm/scripts/create-apm-users-and-roles.js +++ b/x-pack/plugins/apm/scripts/create_apm_users_and_roles.js @@ -20,4 +20,4 @@ // eslint-disable-next-line import/no-extraneous-dependencies require('@kbn/optimizer').registerNodeAutoTranspilation(); -require('./create-apm-users-and-roles/create_apm_users_and_roles_cli.ts'); +require('./create_apm_users_and_roles/create_apm_users_and_roles_cli.ts'); diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/create_apm_users_and_roles.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/create_apm_users_and_roles.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/create_apm_users_and_roles.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/create_apm_users_and_roles.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/create_apm_users_and_roles_cli.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/create_apm_users_and_roles_cli.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/create_apm_users_and_roles_cli.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/create_apm_users_and_roles_cli.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/call_kibana.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/call_kibana.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/call_kibana.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/call_kibana.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/create_or_update_user.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/create_or_update_user.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/create_or_update_user.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/create_or_update_user.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/create_role.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/create_role.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/create_role.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/create_role.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/get_version.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/get_version.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/helpers/get_version.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/helpers/get_version.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/roles/power_user_role.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/roles/power_user_role.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/roles/power_user_role.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/roles/power_user_role.ts diff --git a/x-pack/plugins/apm/scripts/create-apm-users-and-roles/roles/read_only_user_role.ts b/x-pack/plugins/apm/scripts/create_apm_users_and_roles/roles/read_only_user_role.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-apm-users-and-roles/roles/read_only_user_role.ts rename to x-pack/plugins/apm/scripts/create_apm_users_and_roles/roles/read_only_user_role.ts diff --git a/x-pack/plugins/apm/scripts/create-functional-tests-archive.js b/x-pack/plugins/apm/scripts/create_functional_tests_archive.js similarity index 88% rename from x-pack/plugins/apm/scripts/create-functional-tests-archive.js rename to x-pack/plugins/apm/scripts/create_functional_tests_archive.js index 6e979a2802a85..55290f00a6d8c 100644 --- a/x-pack/plugins/apm/scripts/create-functional-tests-archive.js +++ b/x-pack/plugins/apm/scripts/create_functional_tests_archive.js @@ -9,4 +9,4 @@ // eslint-disable-next-line import/no-extraneous-dependencies require('@kbn/optimizer').registerNodeAutoTranspilation(); -require('./create-functional-tests-archive/index.ts'); +require('./create_functional_tests_archive/index.ts'); diff --git a/x-pack/plugins/apm/scripts/create-functional-tests-archive/index.ts b/x-pack/plugins/apm/scripts/create_functional_tests_archive/index.ts similarity index 100% rename from x-pack/plugins/apm/scripts/create-functional-tests-archive/index.ts rename to x-pack/plugins/apm/scripts/create_functional_tests_archive/index.ts diff --git a/x-pack/plugins/apm/scripts/optimize-tsconfig.js b/x-pack/plugins/apm/scripts/optimize_tsconfig.js similarity index 84% rename from x-pack/plugins/apm/scripts/optimize-tsconfig.js rename to x-pack/plugins/apm/scripts/optimize_tsconfig.js index 8e7268141a993..fa15f0f582e89 100644 --- a/x-pack/plugins/apm/scripts/optimize-tsconfig.js +++ b/x-pack/plugins/apm/scripts/optimize_tsconfig.js @@ -5,7 +5,7 @@ * 2.0. */ -const { optimizeTsConfig } = require('./optimize-tsconfig/optimize'); +const { optimizeTsConfig } = require('./optimize_tsconfig/optimize'); optimizeTsConfig().catch((err) => { console.error(err); diff --git a/x-pack/plugins/apm/scripts/optimize-tsconfig/optimize.js b/x-pack/plugins/apm/scripts/optimize_tsconfig/optimize.js similarity index 98% rename from x-pack/plugins/apm/scripts/optimize-tsconfig/optimize.js rename to x-pack/plugins/apm/scripts/optimize_tsconfig/optimize.js index 68cba9b397f2e..fa45bfa12f3b7 100644 --- a/x-pack/plugins/apm/scripts/optimize-tsconfig/optimize.js +++ b/x-pack/plugins/apm/scripts/optimize_tsconfig/optimize.js @@ -110,7 +110,7 @@ async function optimizeTsConfig() { await setIgnoreChanges(); // eslint-disable-next-line no-console console.log( - 'Created an optimized tsconfig.json for APM. To undo these changes, run `./scripts/unoptimize-tsconfig.js`' + 'Created an optimized tsconfig.json for APM. To undo these changes, run `./scripts/unoptimize_tsconfig.js`' ); } diff --git a/x-pack/plugins/apm/scripts/optimize-tsconfig/paths.js b/x-pack/plugins/apm/scripts/optimize_tsconfig/paths.js similarity index 93% rename from x-pack/plugins/apm/scripts/optimize-tsconfig/paths.js rename to x-pack/plugins/apm/scripts/optimize_tsconfig/paths.js index 3a21a89e30917..df430dabafc9c 100644 --- a/x-pack/plugins/apm/scripts/optimize-tsconfig/paths.js +++ b/x-pack/plugins/apm/scripts/optimize_tsconfig/paths.js @@ -9,7 +9,7 @@ const path = require('path'); const kibanaRoot = path.resolve(__dirname, '../../../../..'); const tsconfigTpl = path.resolve(__dirname, './tsconfig.json'); -const tsconfigTplTest = path.resolve(__dirname, './test-tsconfig.json'); +const tsconfigTplTest = path.resolve(__dirname, './test_tsconfig.json'); const filesToIgnore = [ path.resolve(kibanaRoot, 'tsconfig.json'), diff --git a/x-pack/plugins/apm/scripts/optimize-tsconfig/test-tsconfig.json b/x-pack/plugins/apm/scripts/optimize_tsconfig/test_tsconfig.json similarity index 100% rename from x-pack/plugins/apm/scripts/optimize-tsconfig/test-tsconfig.json rename to x-pack/plugins/apm/scripts/optimize_tsconfig/test_tsconfig.json diff --git a/x-pack/plugins/apm/scripts/optimize-tsconfig/tsconfig.json b/x-pack/plugins/apm/scripts/optimize_tsconfig/tsconfig.json similarity index 100% rename from x-pack/plugins/apm/scripts/optimize-tsconfig/tsconfig.json rename to x-pack/plugins/apm/scripts/optimize_tsconfig/tsconfig.json diff --git a/x-pack/plugins/apm/scripts/optimize-tsconfig/unoptimize.js b/x-pack/plugins/apm/scripts/optimize_tsconfig/unoptimize.js similarity index 100% rename from x-pack/plugins/apm/scripts/optimize-tsconfig/unoptimize.js rename to x-pack/plugins/apm/scripts/optimize_tsconfig/unoptimize.js diff --git a/x-pack/plugins/apm/scripts/precommit.js b/x-pack/plugins/apm/scripts/precommit.js index a259cf932c912..ab19094c4e610 100644 --- a/x-pack/plugins/apm/scripts/precommit.js +++ b/x-pack/plugins/apm/scripts/precommit.js @@ -40,8 +40,8 @@ const tasks = new Listr( resolve( __dirname, useOptimizedTsConfig - ? './optimize-tsconfig.js' - : './unoptimize-tsconfig.js' + ? './optimize_tsconfig.js' + : './unoptimize_tsconfig.js' ), ], execaOpts diff --git a/x-pack/plugins/apm/scripts/shared/create-or-update-index.ts b/x-pack/plugins/apm/scripts/shared/create_or_update_index.ts similarity index 100% rename from x-pack/plugins/apm/scripts/shared/create-or-update-index.ts rename to x-pack/plugins/apm/scripts/shared/create_or_update_index.ts diff --git a/x-pack/plugins/apm/scripts/shared/download-telemetry-template.ts b/x-pack/plugins/apm/scripts/shared/download_telemetry_template.ts similarity index 100% rename from x-pack/plugins/apm/scripts/shared/download-telemetry-template.ts rename to x-pack/plugins/apm/scripts/shared/download_telemetry_template.ts diff --git a/x-pack/plugins/apm/scripts/shared/get-http-auth.ts b/x-pack/plugins/apm/scripts/shared/get_http_auth.ts similarity index 91% rename from x-pack/plugins/apm/scripts/shared/get-http-auth.ts rename to x-pack/plugins/apm/scripts/shared/get_http_auth.ts index 1adc5de10bed0..9a51000228d08 100644 --- a/x-pack/plugins/apm/scripts/shared/get-http-auth.ts +++ b/x-pack/plugins/apm/scripts/shared/get_http_auth.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { KibanaConfig } from './read-kibana-config'; +import { KibanaConfig } from './read_kibana_config'; export const getHttpAuth = (config: KibanaConfig) => { const httpAuth = diff --git a/x-pack/plugins/apm/scripts/shared/read-kibana-config.ts b/x-pack/plugins/apm/scripts/shared/read_kibana_config.ts similarity index 100% rename from x-pack/plugins/apm/scripts/shared/read-kibana-config.ts rename to x-pack/plugins/apm/scripts/shared/read_kibana_config.ts diff --git a/x-pack/plugins/apm/scripts/unoptimize-tsconfig.js b/x-pack/plugins/apm/scripts/unoptimize_tsconfig.js similarity index 84% rename from x-pack/plugins/apm/scripts/unoptimize-tsconfig.js rename to x-pack/plugins/apm/scripts/unoptimize_tsconfig.js index 7ca4017ccc9ff..330abd963393e 100644 --- a/x-pack/plugins/apm/scripts/unoptimize-tsconfig.js +++ b/x-pack/plugins/apm/scripts/unoptimize_tsconfig.js @@ -5,7 +5,7 @@ * 2.0. */ -const { unoptimizeTsConfig } = require('./optimize-tsconfig/unoptimize'); +const { unoptimizeTsConfig } = require('./optimize_tsconfig/unoptimize'); unoptimizeTsConfig().catch((err) => { console.error(err); diff --git a/x-pack/plugins/apm/scripts/upload-telemetry-data.js b/x-pack/plugins/apm/scripts/upload_telemetry_data.js similarity index 90% rename from x-pack/plugins/apm/scripts/upload-telemetry-data.js rename to x-pack/plugins/apm/scripts/upload_telemetry_data.js index d393ddcf608fa..f101fb73aba95 100644 --- a/x-pack/plugins/apm/scripts/upload-telemetry-data.js +++ b/x-pack/plugins/apm/scripts/upload_telemetry_data.js @@ -9,4 +9,4 @@ // eslint-disable-next-line import/no-extraneous-dependencies require('@kbn/optimizer').registerNodeAutoTranspilation(); -require('./upload-telemetry-data/index.ts'); +require('./upload_telemetry_data/index.ts'); diff --git a/x-pack/plugins/apm/scripts/upload-telemetry-data/generate-sample-documents.ts b/x-pack/plugins/apm/scripts/upload_telemetry_data/generate_sample_documents.ts similarity index 100% rename from x-pack/plugins/apm/scripts/upload-telemetry-data/generate-sample-documents.ts rename to x-pack/plugins/apm/scripts/upload_telemetry_data/generate_sample_documents.ts diff --git a/x-pack/plugins/apm/scripts/upload-telemetry-data/index.ts b/x-pack/plugins/apm/scripts/upload_telemetry_data/index.ts similarity index 93% rename from x-pack/plugins/apm/scripts/upload-telemetry-data/index.ts rename to x-pack/plugins/apm/scripts/upload_telemetry_data/index.ts index 990376ca3e6ba..ece8e33e6aacb 100644 --- a/x-pack/plugins/apm/scripts/upload-telemetry-data/index.ts +++ b/x-pack/plugins/apm/scripts/upload_telemetry_data/index.ts @@ -17,12 +17,12 @@ import { argv } from 'yargs'; import { Logger } from 'kibana/server'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { CollectTelemetryParams } from '../../server/lib/apm_telemetry/collect_data_telemetry'; -import { downloadTelemetryTemplate } from '../shared/download-telemetry-template'; +import { downloadTelemetryTemplate } from '../shared/download_telemetry_template'; import { mergeApmTelemetryMapping } from '../../common/apm_telemetry'; -import { generateSampleDocuments } from './generate-sample-documents'; -import { readKibanaConfig } from '../shared/read-kibana-config'; -import { getHttpAuth } from '../shared/get-http-auth'; -import { createOrUpdateIndex } from '../shared/create-or-update-index'; +import { generateSampleDocuments } from './generate_sample_documents'; +import { readKibanaConfig } from '../shared/read_kibana_config'; +import { getHttpAuth } from '../shared/get_http_auth'; +import { createOrUpdateIndex } from '../shared/create_or_update_index'; import { getEsClient } from '../shared/get_es_client'; async function uploadData() {