Skip to content

Conversation

@mistic
Copy link
Contributor

@mistic mistic commented Jul 12, 2025

Closes https://github.com/elastic/kibana-operations/issues/299

This PR bumps the Typescript version used on Kibana into v5.4.5. The full set of changes can be found here.

In order to make assumptions over the codebase and all the type of errors I choose to mark the failures with @ts-expect-error and let each team decide how to handle it.

There is a list below with the files (and teams those belong to) where the annotations were added. If each team could provide help of fixing the ones under their domain it would be fantastic. It can be done in this PR or in subsequent ones.

Here it goes the list for follow up:

@elastic/obs-ai-assistant

@elastic/stack-monitoring

@elastic/kibana-cases

@elastic/ml-ui

@elastic/obs-ux-logs-team

@elastic/obs-ux-infra_services-team

@elastic/obs-ux-management-team

@elastic/security-solution

Other changes are just a result from the need of upgrading the typescript eslint plugin version.

@mistic mistic added chore Team:Operations Kibana-Operations Team release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 v9.0.4 labels Jul 12, 2025
@mistic mistic force-pushed the upgrade-typescript-5.4.5 branch 2 times, most recently from b4dd168 to 8f1ac41 Compare July 14, 2025 03:09
@mistic mistic force-pushed the upgrade-typescript-5.4.5 branch from fb15c8e to 88dc0fd Compare July 14, 2025 04:52
szaffarano pushed a commit to szaffarano/kibana that referenced this pull request Aug 5, 2025
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
Closes elastic/kibana-operations#299

This PR bumps the Typescript version used on Kibana into v5.4.5. The
full set of changes can be found
[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).

In order to make assumptions over the codebase and all the type of
errors I choose to mark the failures with `@ts-expect-error` and let
each team decide how to handle it.

There is a list below with the files (and teams those belong to) where
the annotations were added. If each team could provide help of fixing
the ones under their domain it would be fantastic. It can be done in
this PR or in subsequent ones.

Here it goes the list for follow up:

@elastic/obs-ai-assistant
- [ ]
[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)
- [ ]
[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)

@elastic/stack-monitoring
- [ ]
[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)
- [ ]
[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)

@elastic/kibana-cases 
- [x]
[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)

@elastic/ml-ui 
- [ ]
[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)

@elastic/obs-ux-logs-team 
- [ ]
[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)

@elastic/obs-ux-infra_services-team 
- [ ]
[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)

@elastic/obs-ux-management-team 
- [x]
[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)

@elastic/security-solution 
- [ ]
[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)
- [ ]
[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)
- [ ]
[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)


Other changes are just a result from the need of upgrading the
typescript eslint plugin version.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Co-authored-by: Justin Kambic <jk@elastic.co>
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @mistic

mistic added a commit that referenced this pull request Aug 6, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [chore(NA): upgrade typescript into v5.4.5
(#227746)](#227746)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"tiago.costa@elastic.co"},"sourceCommit":{"committedDate":"2025-08-01T02:15:08Z","message":"chore(NA):
upgrade typescript into v5.4.5 (#227746)\n\nCloses
https://github.com/elastic/kibana-operations/issues/299\n\nThis PR bumps
the Typescript version used on Kibana into v5.4.5. The\nfull set of
changes can be
found\n[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).\n\nIn
order to make assumptions over the codebase and all the type of\nerrors
I choose to mark the failures with `@ts-expect-error` and let\neach team
decide how to handle it.\n\nThere is a list below with the files (and
teams those belong to) where\nthe annotations were added. If each team
could provide help of fixing\nthe ones under their domain it would be
fantastic. It can be done in\nthis PR or in subsequent ones.\n\nHere it
goes the list for follow up:\n\n@elastic/obs-ai-assistant\n- [
]\n[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)\n-
[
]\n[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)\n\n@elastic/stack-monitoring\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)\n\n@elastic/kibana-cases
\n-
[x]\n[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)\n\n@elastic/ml-ui
\n- [
]\n[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)\n\n@elastic/obs-ux-logs-team
\n- [
]\n[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)\n\n@elastic/obs-ux-infra_services-team
\n- [
]\n[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)\n\n@elastic/obs-ux-management-team
\n-
[x]\n[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)\n\n@elastic/security-solution
\n- [
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)\n\n\nOther
changes are just a result from the need of upgrading the\ntypescript
eslint plugin version.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Michael Olorunnisola <michael.olorunnisola@elastic.co>\nCo-authored-by:
Justin Kambic
<jk@elastic.co>","sha":"2c326e4b40b7e6599a6d96e49b51e8aa9280705e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","Feature:ExpressionLanguage","release_note:skip","Team:Fleet","backport:version","v9.1.0","v8.19.0","v9.2.0","v9.0.5"],"title":"chore(NA):
upgrade typescript into
v5.4.5","number":227746,"url":"https://github.com/elastic/kibana/pull/227746","mergeCommit":{"message":"chore(NA):
upgrade typescript into v5.4.5 (#227746)\n\nCloses
https://github.com/elastic/kibana-operations/issues/299\n\nThis PR bumps
the Typescript version used on Kibana into v5.4.5. The\nfull set of
changes can be
found\n[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).\n\nIn
order to make assumptions over the codebase and all the type of\nerrors
I choose to mark the failures with `@ts-expect-error` and let\neach team
decide how to handle it.\n\nThere is a list below with the files (and
teams those belong to) where\nthe annotations were added. If each team
could provide help of fixing\nthe ones under their domain it would be
fantastic. It can be done in\nthis PR or in subsequent ones.\n\nHere it
goes the list for follow up:\n\n@elastic/obs-ai-assistant\n- [
]\n[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)\n-
[
]\n[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)\n\n@elastic/stack-monitoring\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)\n\n@elastic/kibana-cases
\n-
[x]\n[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)\n\n@elastic/ml-ui
\n- [
]\n[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)\n\n@elastic/obs-ux-logs-team
\n- [
]\n[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)\n\n@elastic/obs-ux-infra_services-team
\n- [
]\n[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)\n\n@elastic/obs-ux-management-team
\n-
[x]\n[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)\n\n@elastic/security-solution
\n- [
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)\n\n\nOther
changes are just a result from the need of upgrading the\ntypescript
eslint plugin version.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Michael Olorunnisola <michael.olorunnisola@elastic.co>\nCo-authored-by:
Justin Kambic
<jk@elastic.co>","sha":"2c326e4b40b7e6599a6d96e49b51e8aa9280705e"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19","9.0"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227746","number":227746,"mergeCommit":{"message":"chore(NA):
upgrade typescript into v5.4.5 (#227746)\n\nCloses
https://github.com/elastic/kibana-operations/issues/299\n\nThis PR bumps
the Typescript version used on Kibana into v5.4.5. The\nfull set of
changes can be
found\n[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).\n\nIn
order to make assumptions over the codebase and all the type of\nerrors
I choose to mark the failures with `@ts-expect-error` and let\neach team
decide how to handle it.\n\nThere is a list below with the files (and
teams those belong to) where\nthe annotations were added. If each team
could provide help of fixing\nthe ones under their domain it would be
fantastic. It can be done in\nthis PR or in subsequent ones.\n\nHere it
goes the list for follow up:\n\n@elastic/obs-ai-assistant\n- [
]\n[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)\n-
[
]\n[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)\n\n@elastic/stack-monitoring\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)\n\n@elastic/kibana-cases
\n-
[x]\n[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)\n\n@elastic/ml-ui
\n- [
]\n[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)\n\n@elastic/obs-ux-logs-team
\n- [
]\n[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)\n\n@elastic/obs-ux-infra_services-team
\n- [
]\n[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)\n\n@elastic/obs-ux-management-team
\n-
[x]\n[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)\n\n@elastic/security-solution
\n- [
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)\n\n\nOther
changes are just a result from the need of upgrading the\ntypescript
eslint plugin version.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Michael Olorunnisola <michael.olorunnisola@elastic.co>\nCo-authored-by:
Justin Kambic
<jk@elastic.co>","sha":"2c326e4b40b7e6599a6d96e49b51e8aa9280705e"}},{"branch":"9.0","label":"v9.0.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
mistic added a commit that referenced this pull request Aug 6, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [chore(NA): upgrade typescript into v5.4.5
(#227746)](#227746)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"tiago.costa@elastic.co"},"sourceCommit":{"committedDate":"2025-08-01T02:15:08Z","message":"chore(NA):
upgrade typescript into v5.4.5 (#227746)\n\nCloses
https://github.com/elastic/kibana-operations/issues/299\n\nThis PR bumps
the Typescript version used on Kibana into v5.4.5. The\nfull set of
changes can be
found\n[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).\n\nIn
order to make assumptions over the codebase and all the type of\nerrors
I choose to mark the failures with `@ts-expect-error` and let\neach team
decide how to handle it.\n\nThere is a list below with the files (and
teams those belong to) where\nthe annotations were added. If each team
could provide help of fixing\nthe ones under their domain it would be
fantastic. It can be done in\nthis PR or in subsequent ones.\n\nHere it
goes the list for follow up:\n\n@elastic/obs-ai-assistant\n- [
]\n[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)\n-
[
]\n[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)\n\n@elastic/stack-monitoring\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)\n\n@elastic/kibana-cases
\n-
[x]\n[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)\n\n@elastic/ml-ui
\n- [
]\n[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)\n\n@elastic/obs-ux-logs-team
\n- [
]\n[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)\n\n@elastic/obs-ux-infra_services-team
\n- [
]\n[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)\n\n@elastic/obs-ux-management-team
\n-
[x]\n[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)\n\n@elastic/security-solution
\n- [
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)\n\n\nOther
changes are just a result from the need of upgrading the\ntypescript
eslint plugin version.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Michael Olorunnisola <michael.olorunnisola@elastic.co>\nCo-authored-by:
Justin Kambic
<jk@elastic.co>","sha":"2c326e4b40b7e6599a6d96e49b51e8aa9280705e","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","Feature:ExpressionLanguage","release_note:skip","Team:Fleet","backport:version","v9.1.0","v8.19.0","v9.2.0","v9.0.5"],"title":"chore(NA):
upgrade typescript into
v5.4.5","number":227746,"url":"https://github.com/elastic/kibana/pull/227746","mergeCommit":{"message":"chore(NA):
upgrade typescript into v5.4.5 (#227746)\n\nCloses
https://github.com/elastic/kibana-operations/issues/299\n\nThis PR bumps
the Typescript version used on Kibana into v5.4.5. The\nfull set of
changes can be
found\n[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).\n\nIn
order to make assumptions over the codebase and all the type of\nerrors
I choose to mark the failures with `@ts-expect-error` and let\neach team
decide how to handle it.\n\nThere is a list below with the files (and
teams those belong to) where\nthe annotations were added. If each team
could provide help of fixing\nthe ones under their domain it would be
fantastic. It can be done in\nthis PR or in subsequent ones.\n\nHere it
goes the list for follow up:\n\n@elastic/obs-ai-assistant\n- [
]\n[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)\n-
[
]\n[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)\n\n@elastic/stack-monitoring\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)\n\n@elastic/kibana-cases
\n-
[x]\n[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)\n\n@elastic/ml-ui
\n- [
]\n[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)\n\n@elastic/obs-ux-logs-team
\n- [
]\n[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)\n\n@elastic/obs-ux-infra_services-team
\n- [
]\n[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)\n\n@elastic/obs-ux-management-team
\n-
[x]\n[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)\n\n@elastic/security-solution
\n- [
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)\n\n\nOther
changes are just a result from the need of upgrading the\ntypescript
eslint plugin version.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Michael Olorunnisola <michael.olorunnisola@elastic.co>\nCo-authored-by:
Justin Kambic
<jk@elastic.co>","sha":"2c326e4b40b7e6599a6d96e49b51e8aa9280705e"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/230155","number":230155,"state":"OPEN"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227746","number":227746,"mergeCommit":{"message":"chore(NA):
upgrade typescript into v5.4.5 (#227746)\n\nCloses
https://github.com/elastic/kibana-operations/issues/299\n\nThis PR bumps
the Typescript version used on Kibana into v5.4.5. The\nfull set of
changes can be
found\n[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).\n\nIn
order to make assumptions over the codebase and all the type of\nerrors
I choose to mark the failures with `@ts-expect-error` and let\neach team
decide how to handle it.\n\nThere is a list below with the files (and
teams those belong to) where\nthe annotations were added. If each team
could provide help of fixing\nthe ones under their domain it would be
fantastic. It can be done in\nthis PR or in subsequent ones.\n\nHere it
goes the list for follow up:\n\n@elastic/obs-ai-assistant\n- [
]\n[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)\n-
[
]\n[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)\n\n@elastic/stack-monitoring\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)\n-
[
]\n[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)\n\n@elastic/kibana-cases
\n-
[x]\n[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)\n\n@elastic/ml-ui
\n- [
]\n[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)\n\n@elastic/obs-ux-logs-team
\n- [
]\n[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)\n\n@elastic/obs-ux-infra_services-team
\n- [
]\n[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)\n\n@elastic/obs-ux-management-team
\n-
[x]\n[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)\n\n@elastic/security-solution
\n- [
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)\n-
[
]\n[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)\n\n\nOther
changes are just a result from the need of upgrading the\ntypescript
eslint plugin version.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Michael Olorunnisola <michael.olorunnisola@elastic.co>\nCo-authored-by:
Justin Kambic
<jk@elastic.co>","sha":"2c326e4b40b7e6599a6d96e49b51e8aa9280705e"}},{"branch":"9.0","label":"v9.0.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/230156","number":230156,"state":"OPEN"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added v8.19.1 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Aug 6, 2025
@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 8, 2025
)

Removes TS annotations after
elastic#227746

(cherry picked from commit 8973166)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 8, 2025
)

Removes TS annotations after
elastic#227746

(cherry picked from commit 8973166)
kibanamachine added a commit that referenced this pull request Aug 8, 2025
…) (#231148)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[ML] Remove annotations after Typescript upgrade `5.4.5`
(#230181)](#230181)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Robert
Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-08-01T13:05:39Z","message":"[ML]
Remove annotations after Typescript upgrade `5.4.5` (#230181)\n\nRemoves
TS annotations
after\nhttps://github.com//pull/227746","sha":"8973166625c2207fb7b90deda5669d23f9afdbee","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","backport
missing","Team:ML","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[ML]
Remove annotations after Typescript upgrade `5.4.5`
","number":230181,"url":"https://github.com/elastic/kibana/pull/230181","mergeCommit":{"message":"[ML]
Remove annotations after Typescript upgrade `5.4.5` (#230181)\n\nRemoves
TS annotations
after\nhttps://github.com//pull/227746","sha":"8973166625c2207fb7b90deda5669d23f9afdbee"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230181","number":230181,"mergeCommit":{"message":"[ML]
Remove annotations after Typescript upgrade `5.4.5` (#230181)\n\nRemoves
TS annotations
after\nhttps://github.com//pull/227746","sha":"8973166625c2207fb7b90deda5669d23f9afdbee"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Aug 11, 2025
) (#231147)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[ML] Remove annotations after Typescript upgrade `5.4.5`
(#230181)](#230181)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Robert
Jaszczurek","email":"92210485+rbrtj@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-08-01T13:05:39Z","message":"[ML]
Remove annotations after Typescript upgrade `5.4.5` (#230181)\n\nRemoves
TS annotations
after\nhttps://github.com//pull/227746","sha":"8973166625c2207fb7b90deda5669d23f9afdbee","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","backport
missing","Team:ML","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[ML]
Remove annotations after Typescript upgrade `5.4.5`
","number":230181,"url":"https://github.com/elastic/kibana/pull/230181","mergeCommit":{"message":"[ML]
Remove annotations after Typescript upgrade `5.4.5` (#230181)\n\nRemoves
TS annotations
after\nhttps://github.com//pull/227746","sha":"8973166625c2207fb7b90deda5669d23f9afdbee"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230181","number":230181,"mergeCommit":{"message":"[ML]
Remove annotations after Typescript upgrade `5.4.5` (#230181)\n\nRemoves
TS annotations
after\nhttps://github.com//pull/227746","sha":"8973166625c2207fb7b90deda5669d23f9afdbee"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Robert Jaszczurek <92210485+rbrtj@users.noreply.github.com>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
Closes elastic/kibana-operations#299

This PR bumps the Typescript version used on Kibana into v5.4.5. The
full set of changes can be found
[here](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).

In order to make assumptions over the codebase and all the type of
errors I choose to mark the failures with `@ts-expect-error` and let
each team decide how to handle it.

There is a list below with the files (and teams those belong to) where
the annotations were added. If each team could provide help of fixing
the ones under their domain it would be fantastic. It can be done in
this PR or in subsequent ones.

Here it goes the list for follow up:

@elastic/obs-ai-assistant
- [ ]
[x-pack/platform/packages/shared/kbn-inference-cli/src/client/create_prompt.ts](https://github.com/elastic/kibana/pull/227746/files#diff-0e73b93a3431c20c5eac598d1ac3018f950b2624ce24a1cef7652b76a1bbce0a)
- [ ]
[x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-ba1ca9c4343a121ead7081b676c9cf9b50f8b599b75a2829eda96df37fe09171)

@elastic/stack-monitoring
- [ ]
[x-pack/platform/plugins/private/monitoring/server/lib/pagination/filter.ts](https://github.com/elastic/kibana/pull/227746/files#diff-1d980385eeda006988fb15c678b827dc651ce7928479fcaf4598be1cdeeb315e)
- [ ]
[x-pack/platform/plugins/private/monitoring/server/rules/rules_factory.ts](https://github.com/elastic/kibana/pull/227746/files#diff-dcc922680b399f4523cb7becc0b6d0661d74e9e58743f7d85c25630539c80f2d)

@elastic/kibana-cases 
- [x]
[x-pack/platform/plugins/shared/cases/server/routes/api/register_routes.test.ts](https://github.com/elastic/kibana/pull/227746/files#diff-372c03c4bab5459aa6c8c13a35fbdae3da468e31b22308c38714f630fd492738)

@elastic/ml-ui 
- [ ]
[x-pack/platform/plugins/shared/ml/public/application/explorer/explorer_charts/utils/draw_anomaly_explorer_charts_cursor.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8c2399c668ba7a013b9eaaf45d069deda75227ade4b0dc778ebcc90163847e50)

@elastic/obs-ux-logs-team 
- [ ]
[x-pack/platform/plugins/shared/streams_app/public/components/app_root/index.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-e0fe2886d0a9fb003265aff7a440745f4afaf61208ec03a9a6e96118c0693f03)

@elastic/obs-ux-infra_services-team 
- [ ]
[x-pack/solutions/observability/plugins/infra/public/alerting/log_threshold/components/expression_editor/criterion.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-d120bfec69b79705a5e15af8fca4a112e04cf5df3cb381e28b82030c353e5494)

@elastic/obs-ux-management-team 
- [x]
[x-pack/solutions/observability/plugins/synthetics/public/apps/synthetics/hooks/use_redux_es_search.ts](https://github.com/elastic/kibana/pull/227746/files#diff-8ce991db7a52bbc267d7ae47279ad67f7b3d2dec2d045b4be8a359798521b2ba)

@elastic/security-solution 
- [ ]
[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/get_processes_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-cddb5e11265a0293c73a42f8171ec93764658b168d0c42b85ea621debf52e66e)
- [ ]
[x-pack/solutions/security/plugins/security_solution/public/management/components/endpoint_responder/command_render_components/suspend_process_action.tsx](https://github.com/elastic/kibana/pull/227746/files#diff-f5e1e33f45a3b55bf3b224a5433dc8c89ba9bba0660bf6256e2f847b938798a0)
- [ ]
[x-pack/solutions/security/plugins/security_solution/public/management/pages/endpoint_hosts/store/mock_endpoint_result_list.ts](https://github.com/elastic/kibana/pull/227746/files#diff-e763688bb69c97bcf45fbf45b18c2f3347613dcff5671f083a581ba2a0ef63d6)


Other changes are just a result from the need of upgrading the
typescript eslint plugin version.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Co-authored-by: Justin Kambic <jk@elastic.co>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
cesco-f added a commit that referenced this pull request Sep 2, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
#227746
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 2, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
elastic#227746

(cherry picked from commit 50d2e43)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 2, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
elastic#227746

(cherry picked from commit 50d2e43)
cesco-f added a commit to cesco-f/kibana that referenced this pull request Sep 2, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
elastic#227746

(cherry picked from commit 50d2e43)

# Conflicts:
#	x-pack/solutions/observability/plugins/synthetics/e2e/synthetics/journeys/index.ts
kibanamachine added a commit that referenced this pull request Sep 2, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[Synthetics] Import Synthetics e2e tests
(#233698)](#233698)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Francesco
Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-09-02T10:58:27Z","message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","author:obs-ux-management","v9.2.0","v9.1.4","v9.0.7","v8.19.4"],"title":"[Synthetics]
Import Synthetics e2e
tests","number":233698,"url":"https://github.com/elastic/kibana/pull/233698","mergeCommit":{"message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","9.0","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/233698","number":233698,"mergeCommit":{"message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c"}},{"branch":"9.1","label":"v9.1.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Francesco Fagnani <fagnani.francesco@gmail.com>
kibanamachine added a commit that referenced this pull request Sep 2, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[Synthetics] Import Synthetics e2e tests
(#233698)](#233698)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Francesco
Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-09-02T10:58:27Z","message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","author:obs-ux-management","v9.2.0","v9.1.4","v9.0.7","v8.19.4"],"title":"[Synthetics]
Import Synthetics e2e
tests","number":233698,"url":"https://github.com/elastic/kibana/pull/233698","mergeCommit":{"message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","9.0","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/233698","number":233698,"mergeCommit":{"message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c"}},{"branch":"9.1","label":"v9.1.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Francesco Fagnani <fagnani.francesco@gmail.com>
ymao1 pushed a commit to ymao1/kibana that referenced this pull request Sep 2, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
elastic#227746
MichelLosier pushed a commit to MichelLosier/kibana that referenced this pull request Sep 2, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
elastic#227746
kowalczyk-krzysztof pushed a commit to kowalczyk-krzysztof/kibana that referenced this pull request Sep 3, 2025
Synthetics e2e tests were mistakenly disabled in this PR:
elastic#227746
cesco-f added a commit that referenced this pull request Sep 3, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[Synthetics] Import Synthetics e2e tests
(#233698)](#233698)

<!--- Backport version: 10.0.1 -->

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

<!--BACKPORT [{"author":{"name":"Francesco
Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-09-02T10:58:27Z","message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-management","backport:version","author:obs-ux-management","v9.2.0","v9.1.4","v9.0.7","v8.19.4"],"title":"[Synthetics]
Import Synthetics e2e
tests","number":233698,"url":"https://github.com/elastic/kibana/pull/233698","mergeCommit":{"message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/233698","number":233698,"mergeCommit":{"message":"[Synthetics]
Import Synthetics e2e tests (#233698)\n\nSynthetics e2e tests were
mistakenly disabled in this
PR:\nhttps://github.com//pull/227746","sha":"50d2e43e4f6338bd2f6479e61fba945bdc01ed5c"}},{"branch":"9.1","label":"v9.1.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/233719","number":233719,"state":"OPEN"},{"branch":"9.0","label":"v9.0.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/233718","number":233718,"state":"OPEN"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels chore Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team Team:Operations Kibana-Operations Team v8.19.2 v9.0.5 v9.1.0 v9.1.1 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.