Skip to content

[APM] Fix optimize-tsconfig script#91487

Merged
dgieselaar merged 1 commit intoelastic:masterfrom
dgieselaar:optimize-ts-update
Feb 17, 2021
Merged

[APM] Fix optimize-tsconfig script#91487
dgieselaar merged 1 commit intoelastic:masterfrom
dgieselaar:optimize-ts-update

Conversation

@dgieselaar
Copy link
Copy Markdown
Contributor

  • Removes x-pack/plugins/apm/tsconfig.json file (so TypeScript will always use the optimized tsconfig.json)
  • Make optimisation opt-in for precommit script (so other people are not bothered by it)

I've noticed that A) the optimised version is still faster when giving autocompletion results (~2x as fast), B) having a per-plugin tsconfig file causes vscode to switch between projects which takes a lot of time. I might be holding it wrong, but I think it's worth it to make some changes in the script to make it work again.

- Removes x-pack/plugins/apm/tsconfig.json file
- Make optimisation opt-in for precommit script
@dgieselaar dgieselaar added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Feb 16, 2021
@dgieselaar dgieselaar requested a review from a team February 16, 2021 14:40
@botelastic botelastic bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Feb 16, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

Copy link
Copy Markdown
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

Looks good, though I'm not using this script.

I wonder if how workspaces are set up makes any difference for VSCode performance. I have a workspace with apm, observability, and kibana as roots so I wonder if that has any bearing on how TS projects get built.

@dgieselaar
Copy link
Copy Markdown
Contributor Author

@smith I have the same setup (stole it from you). Maybe we can chat about it later how it works for you.

@dgieselaar dgieselaar merged commit a168fe4 into elastic:master Feb 17, 2021
@dgieselaar dgieselaar deleted the optimize-ts-update branch February 17, 2021 08:06
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 17, 2021
- Removes x-pack/plugins/apm/tsconfig.json file
- Make optimisation opt-in for precommit script
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

7.x / #91607

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Feb 17, 2021
- Removes x-pack/plugins/apm/tsconfig.json file
- Make optimisation opt-in for precommit script

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 17, 2021
* master: (157 commits)
  [DOCS] Adds machine learning to the security section of alerting (elastic#91501)
  [Uptime] Ping list step screenshot caption formatting (elastic#91403)
  [Vislib] Use timestamp on brush event instead of iso dates (elastic#91483)
  [Application Usage] Remove deprecated & unused legacy.appChanged API (elastic#91464)
  Migrate logstash, monitoring, url_drilldowns, xpack_legacy to ts projects (elastic#91194)
  [APM] Wrap Elasticsearch client errors (elastic#91125)
  [APM] Fix optimize-tsconfig script (elastic#91487)
  [Discover][docs] Add searchFieldsFromSource description (elastic#90980)
  Adds support for 'ip' data type (elastic#85087)
  [Detection Rules] Add updates from 7.11.2 rules (elastic#91553)
  [SECURITY SOLUTION] Eql in timeline (elastic#90816)
  [APM] Correlations Beta (elastic#86477) (elastic#89952)
  [Security Solutions][Detection Engine] Adds a warning banner when the alerts data has not been migrated yet. (elastic#90258)
  [Security Solution] [Timeline] Endpoint row renderers (2nd batch) (elastic#91446)
  skip flaky suite (elastic#91450)
  skip flaky suite (elastic#91592)
  [Security Solution][Endpoint][Admin] Endpoint Details UX Enhancements (elastic#90870)
  [ML] Add better UI support for runtime fields Transforms  (elastic#90363)
  [Security Solution] [Detections] Replace 'partial failure' with 'warning' for rule statuses (elastic#91167)
  [Security Solution][Detections] Adds Indicator path config for indicator match rules (elastic#91260)
  ...
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 - DEPRECATED Use Team:obs-ux-infra_services. v7.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants