Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case #118328

Merged
merged 3 commits into from
Nov 16, 2021

Conversation

kpatticha
Copy link
Contributor

Summary

Rename all files and folders inside apm/scripts in order to follow snake_case naming convention.
Addresses part of #107347

@kpatticha kpatticha added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Nov 11, 2021
@kpatticha kpatticha requested review from a team as code owners November 11, 2021 12:35
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Nov 11, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this. I think it was intention to make cli commands (scripts) kebab-case rather than snake_case.
@elastic/apm-ui any opinions here?

@kpatticha
Copy link
Contributor Author

Thanks for doing this. I think it was intention to make cli commands (scripts) kebab-case rather than snake_case. @elastic/apm-ui any opinions here?

thanks good to know :D

After running ls -Rl in main branch, I've noticed that the files located in the root of /scripts (the ones that run as cli) are kebab-case, which make sense to me. However, there are some inconsistencies in some folders, ex shared

/scripts/

total 72
drwxr-xr-x  3 kpatticha  staff    96 Nov 11 16:54 aggregate-latency-metrics
-rw-r--r--  1 kpatticha  staff   678 Nov 11 16:54 aggregate-latency-metrics.js
drwxr-xr-x  6 kpatticha  staff   192 Nov 11 16:54 create-apm-users-and-roles
-rw-r--r--  1 kpatticha  staff   911 Nov 11 16:54 create-apm-users-and-roles.js
drwxr-xr-x  3 kpatticha  staff    96 Nov 11 16:54 create-functional-tests-archive
-rw-r--r--  1 kpatticha  staff   464 Nov 11 16:54 create-functional-tests-archive.js
-rw-r--r--  1 kpatticha  staff   992 Nov  8 23:39 eslint.js
drwxr-xr-x  7 kpatticha  staff   224 Nov 11 16:54 optimize-tsconfig
-rw-r--r--  1 kpatticha  staff   406 Nov 11 16:54 optimize-tsconfig.js
-rw-r--r--  1 kpatticha  staff    92 Nov  2 17:44 package.json
-rw-r--r--  1 kpatticha  staff  2473 Nov 11 16:54 precommit.js
drwxr-xr-x  8 kpatticha  staff   256 Nov 11 16:54 shared
drwxr-xr-x  6 kpatticha  staff   192 Nov  5 15:45 test
-rw-r--r--  1 kpatticha  staff   412 Nov 11 16:54 unoptimize-tsconfig.js
drwxr-xr-x  4 kpatticha  staff   128 Nov 11 16:54 upload-telemetry-data
-rw-r--r--  1 kpatticha  staff   454 Nov 11 16:54 upload-telemetry-data.js

/scripts/shared

./shared:
total 48
drwxr-xr-x   8 kpatticha  staff   256 Nov 11 16:54 .
drwxr-xr-x  19 kpatticha  staff   608 Nov 11 16:54 ..
-rw-r--r--   1 kpatticha  staff  1598 Nov 11 16:54 create-or-update-index.ts
-rw-r--r--   1 kpatticha  staff   996 Nov 11 16:54 download-telemetry-template.ts
-rw-r--r--   1 kpatticha  staff   620 Nov 11 16:54 get-http-auth.ts
-rw-r--r--   1 kpatticha  staff  1439 Nov  5 10:36 get_es_client.ts
-rw-r--r--   1 kpatticha  staff   521 Nov  2 17:44 parse_index_url.ts
-rw-r--r--   1 kpatticha  staff  1679 Nov 11 16:54 read-kibana-config.ts

I don't have a strong opinion on that, i'm always in favour of consistency and conventions that work for the team.
For example, it can be kebab-case for files that we run in the command line and the rest could be snake_case or we can convert all to snake_case and follow kibana's convention. I'd like to hear other ideas. @elastic/apm-ui

@sorenlouv
Copy link
Member

sorenlouv commented Nov 11, 2021

For example, it can be kebab-case for files that we run in the command line and the rest could be snake_case or we can convert all to snake_case and follow kibana's convention. I'd like to hear other ideas

Sounds good to me. I don't have any strong opinions as long as we can find consensus on the team

@kpatticha
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@elastic elastic deleted a comment from kibanamachine Nov 15, 2021
Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kpatticha kpatticha merged commit e56627a into elastic:main Nov 16, 2021
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 16, 2021
…igrate-away-from-injected-css-js

* 'main' of github.com:elastic/kibana: (221 commits)
  [Reporting] Add log level to config (elastic#118319)
  [Metrics UI] Skip failing waffle chart color palette test (elastic#118527)
  [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case (elastic#118328)
  skip flaky suites (elastic#99581, elastic#118356, elastic#118474)
  [Alerting] Initial implementation of alerting task `cancel()` (elastic#114289)
  chore(NA): creates pkg_npm_types bazel rule (elastic#116465)
  skip flaky suite (elastic#116892)
  Bump chromedriver to 95.0.0 (elastic#116724)
  [Data visualizer] Improve design of expanded rows (elastic#118125)
  [APM] prefer ECS field names for HTTP and URL (elastic#118485)
  Update query_debugging_in_development_and_production.md (elastic#118491)
  [Uptime] adjust Elastic Synthetics integration functional tests (elastic#118163)
  [kbn/rule-data-utils] add submodules and require public use them (elastic#117963)
  [DOCS] Refresh APM correlation screenshots (elastic#116723) (elastic#118577)
  Handles ns to ms conversion for event loop delay metrics (elastic#118447)
  [Cases] Rename functional tests folder (elastic#118490)
  dummy commit
  skip flaky suite (elastic#118593)
  Improve workpad schema validation (elastic#97838)
  skip flaky suite (elastic#118584)
  ...

# Conflicts:
#	src/plugins/dashboard/public/application/embeddable/viewport/dashboard_viewport.tsx
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 18, 2021
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 118328 or prevent reminders by adding the backport:skip label.

@sorenlouv sorenlouv added the auto-backport Deprecated - use backport:version if exact versions are needed label Nov 18, 2021
@kibanamachine
Copy link
Contributor

The following labels were identified as gaps in your version labels and will be added automatically:

  • v8.1.0

If any of these should not be on your pull request, please manually remove them.

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Nov 18, 2021
…tic#118328)

* [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case

* Fix wrong path

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0

This backport PR will be merged automatically after passing CI.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 18, 2021
kibanamachine added a commit that referenced this pull request Nov 18, 2021
) (#119040)

* [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case

* Fix wrong path

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kate Patticha <[email protected]>
mbondyra pushed a commit to mbondyra/kibana that referenced this pull request Nov 19, 2021
…tic#118328)

* [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case

* Fix wrong path

Co-authored-by: Kibana Machine <[email protected]>
dmlemeshko pushed a commit that referenced this pull request Nov 29, 2021
)

* [APM] chore: Unify naming of 'apm/scripts/**/*' with snake_case

* Fix wrong path

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants