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

[TypeScript] Upgrade to 4.5.3 #120812

Merged
merged 15 commits into from
Dec 13, 2021
Merged

[TypeScript] Upgrade to 4.5.3 #120812

merged 15 commits into from
Dec 13, 2021

Conversation

brianseeders
Copy link
Contributor

@brianseeders brianseeders commented Dec 8, 2021

Upgrades TypeScript to the latest version.

See #121003 for the isEditable issue

@brianseeders brianseeders added Feature:CI Continuous integration release_note:skip Skip the PR/issue when compiling release notes v8.1.0 Team:Operations Team label for Operations Team labels Dec 8, 2021
@brianseeders brianseeders added the backport:skip This commit does not require backporting label Dec 9, 2021
@brianseeders brianseeders marked this pull request as ready for review December 9, 2021 20:22
Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Presentation team changes LGTM! Thank you for ignoring the TS errors. I have created an issue to track our TODO to update those files.

@tylersmalley
Copy link
Contributor

tylersmalley commented Dec 9, 2021

35% faster?! Yes, please!

Running: yarn kbn clean; BUILD_TS_REFS_DISABLE=true yarn kbn bootstrap; time node scripts/build_ts_refs.js --no-cache

ts-4-5-2:

info [tsc] exited with 0 after 535.9 seconds

main:

info [tsc] exited with 0 after 765.4 seconds

Copy link
Contributor

@jportner jportner left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mshustov mshustov left a comment

Choose a reason for hiding this comment

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

OK for the Core changes.
Please note the current PR updates TS to v4.5 but developers can't use some new TypeScript features until other code analysis tools are updated to versions with TypeScript v4.5 support:
https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.6.0
https://github.com/babel/babel/releases/tag/v7.16.0
https://prettier.io/blog/2021/11/25/2.5.0.html

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

Fleet change LGTM

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Transform change LGTM

Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

I don't see any of Stack Management plugins changed so approving to unblock the merging

@@ -23,7 +23,9 @@ export const AutoDownload: React.FC<AutoDownloadProps> = ({ blob, name, onDownlo

useEffect(() => {
if (blob && anchorRef?.current) {
// @ts-expect-error
if (typeof window.navigator.msSaveOrOpenBlob === 'function') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated to the PR: we should probably not ship this code anymore since it's an API that was just supported by Internet Explorer. (takes a mental note to create a follow-up PR)

Copy link
Contributor

@janmonschke janmonschke left a comment

Choose a reason for hiding this comment

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

👍

@brianseeders brianseeders changed the title [TypeScript] Upgrade to 4.5.2 [TypeScript] Upgrade to 4.5.3 Dec 13, 2021
Copy link
Contributor

@justinkambic justinkambic left a comment

Choose a reason for hiding this comment

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

Uptime changes LGTM!

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
canvas 1013.2KB 1013.2KB -1.0B

History

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

@brianseeders brianseeders merged commit 16af3e6 into elastic:main Dec 13, 2021
@brianseeders brianseeders deleted the ts-4-5-2 branch December 13, 2021 21:54
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
gbamparop pushed a commit to gbamparop/kibana that referenced this pull request Jan 12, 2022
mistic pushed a commit to mistic/kibana that referenced this pull request Jun 1, 2023
(cherry picked from commit 16af3e6)

# Conflicts:
#	package.json
#	src/plugins/embeddable/public/lib/attribute_service/attribute_service.tsx
#	x-pack/plugins/canvas/public/components/workpad_header/editor_menu/editor_menu.tsx
#	x-pack/plugins/security_solution/public/management/pages/policy/store/policy_details/middleware/policy_trusted_apps_middleware.ts
mistic added a commit that referenced this pull request Jun 1, 2023
# Backport

This will backport the following commits from `main` to `7.17`:
- [[TypeScript] Upgrade to 4.5.3
(#120812)](#120812)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Brian
Seeders","email":"brian.seeders@elastic.co"},"sourceCommit":{"committedDate":"2021-12-13T17:54:17Z","message":"[TypeScript]
Upgrade to 4.5.3
(#120812)","sha":"16af3e612d27bd3608787a3daab121d648787f67","branchLabelMapping":{"^v8.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","Feature:Embedding","Team:APM","release_note:skip","Feature:CI","backport:skip","Team:Fleet","v8.1.0"],"number":120812,"url":"https://github.com/elastic/kibana/pull/120812","mergeCommit":{"message":"[TypeScript]
Upgrade to 4.5.3
(#120812)","sha":"16af3e612d27bd3608787a3daab121d648787f67"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.1.0","labelRegex":"^v8.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/120812","number":120812,"mergeCommit":{"message":"[TypeScript]
Upgrade to 4.5.3
(#120812)","sha":"16af3e612d27bd3608787a3daab121d648787f67"}}]}]
BACKPORT-->

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:CI Continuous integration Feature:Embedding Embedding content via iFrame release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team Team:Operations Team label for Operations Team v7.17.11 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.