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

bump react@18 #208339

Closed
wants to merge 6 commits into from
Closed

bump react@18 #208339

wants to merge 6 commits into from

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Jan 27, 2025

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 27, 2025

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!

Dosant added a commit that referenced this pull request Jan 27, 2025
…t@18 (#208387)

## Summary

Part of #206952

Fixes when run with React@18
#208339 (comment):


[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-478b-93ef-9013f7210234)
Jest Integration Tests / request flyout renders _meta field

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4702-4357-a67e-d59c6bb5f12b)
Jest Integration Tests / request flyout renders a json with default
policy name when only policy name is missing

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4d18-8c34-1f4965486aa1)
Jest Integration Tests / request flyout renders an error callout if
policy form is invalid

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4533-9e12-e7056e8277aa)
Jest Integration Tests / request flyout renders the correct json and
name for a new policy



To run with React@18 use: 

```
REACT_18=true yarn test:jest_integration x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts
```

I tested that the component works in the browser, so the issue is in the
test. I think that because of some internal React@18 changes the order
in which the validation timeout inside our form lib is called conflcts
with fake timers (the timeout just stucks). So instead of trying to add
additional `jest.advanceTimersByTime(0);` in some places I decided to
simplify and just use the real timeouts that works well for both
react@17 an react@18
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 27, 2025
…t@18 (elastic#208387)

## Summary

Part of elastic#206952

Fixes when run with React@18
elastic#208339 (comment):

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-478b-93ef-9013f7210234)
Jest Integration Tests / request flyout renders _meta field

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4702-4357-a67e-d59c6bb5f12b)
Jest Integration Tests / request flyout renders a json with default
policy name when only policy name is missing

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4d18-8c34-1f4965486aa1)
Jest Integration Tests / request flyout renders an error callout if
policy form is invalid

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4533-9e12-e7056e8277aa)
Jest Integration Tests / request flyout renders the correct json and
name for a new policy

To run with React@18 use:

```
REACT_18=true yarn test:jest_integration x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts
```

I tested that the component works in the browser, so the issue is in the
test. I think that because of some internal React@18 changes the order
in which the validation timeout inside our form lib is called conflcts
with fake timers (the timeout just stucks). So instead of trying to add
additional `jest.advanceTimersByTime(0);` in some places I decided to
simplify and just use the real timeouts that works well for both
react@17 an react@18

(cherry picked from commit 9e8ab66)
kibanamachine added a commit that referenced this pull request Jan 27, 2025
…h React@18 (#208387) (#208416)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18] Fix index management unit tests that are failing with
React@18 (#208387)](#208387)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-27T17:21:44Z","message":"[React@18]
Fix index management unit tests that are failing with React@18
(#208387)\n\n## Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/206952\r\n\r\nFixes when run
with
React@18\r\nhttps://github.com//pull/208339#issuecomment-2615621371:\r\n\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-478b-93ef-9013f7210234)\r\nJest
Integration Tests / request flyout renders _meta
field\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4702-4357-a67e-d59c6bb5f12b)\r\nJest
Integration Tests / request flyout renders a json with default\r\npolicy
name when only policy name is
missing\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4d18-8c34-1f4965486aa1)\r\nJest
Integration Tests / request flyout renders an error callout if\r\npolicy
form is
invalid\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4533-9e12-e7056e8277aa)\r\nJest
Integration Tests / request flyout renders the correct json and\r\nname
for a new policy\r\n\r\n\r\n\r\nTo run with React@18 use:
\r\n\r\n```\r\nREACT_18=true yarn test:jest_integration
x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts\r\n```\r\n\r\nI
tested that the component works in the browser, so the issue is in
the\r\ntest. I think that because of some internal React@18 changes the
order\r\nin which the validation timeout inside our form lib is called
conflcts\r\nwith fake timers (the timeout just stucks). So instead of
trying to add\r\nadditional `jest.advanceTimersByTime(0);` in some
places I decided to\r\nsimplify and just use the real timeouts that
works well for both\r\nreact@17 an
react@18","sha":"9e8ab663b76aa99b9482fb2bbe17f8cf0e1d4238","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","React@18"],"title":"[React@18]
Fix index management unit tests that are failing with
React@18","number":208387,"url":"https://github.com/elastic/kibana/pull/208387","mergeCommit":{"message":"[React@18]
Fix index management unit tests that are failing with React@18
(#208387)\n\n## Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/206952\r\n\r\nFixes when run
with
React@18\r\nhttps://github.com//pull/208339#issuecomment-2615621371:\r\n\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-478b-93ef-9013f7210234)\r\nJest
Integration Tests / request flyout renders _meta
field\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4702-4357-a67e-d59c6bb5f12b)\r\nJest
Integration Tests / request flyout renders a json with default\r\npolicy
name when only policy name is
missing\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4d18-8c34-1f4965486aa1)\r\nJest
Integration Tests / request flyout renders an error callout if\r\npolicy
form is
invalid\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4533-9e12-e7056e8277aa)\r\nJest
Integration Tests / request flyout renders the correct json and\r\nname
for a new policy\r\n\r\n\r\n\r\nTo run with React@18 use:
\r\n\r\n```\r\nREACT_18=true yarn test:jest_integration
x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts\r\n```\r\n\r\nI
tested that the component works in the browser, so the issue is in
the\r\ntest. I think that because of some internal React@18 changes the
order\r\nin which the validation timeout inside our form lib is called
conflcts\r\nwith fake timers (the timeout just stucks). So instead of
trying to add\r\nadditional `jest.advanceTimersByTime(0);` in some
places I decided to\r\nsimplify and just use the real timeouts that
works well for both\r\nreact@17 an
react@18","sha":"9e8ab663b76aa99b9482fb2bbe17f8cf0e1d4238"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208387","number":208387,"mergeCommit":{"message":"[React@18]
Fix index management unit tests that are failing with React@18
(#208387)\n\n## Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/206952\r\n\r\nFixes when run
with
React@18\r\nhttps://github.com//pull/208339#issuecomment-2615621371:\r\n\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-478b-93ef-9013f7210234)\r\nJest
Integration Tests / request flyout renders _meta
field\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4702-4357-a67e-d59c6bb5f12b)\r\nJest
Integration Tests / request flyout renders a json with default\r\npolicy
name when only policy name is
missing\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4d18-8c34-1f4965486aa1)\r\nJest
Integration Tests / request flyout renders an error callout if\r\npolicy
form is
invalid\r\n\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-2649-4cd6-bac8-5f186c246055/artifacts/0194a7ae-4701-4533-9e12-e7056e8277aa)\r\nJest
Integration Tests / request flyout renders the correct json and\r\nname
for a new policy\r\n\r\n\r\n\r\nTo run with React@18 use:
\r\n\r\n```\r\nREACT_18=true yarn test:jest_integration
x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts\r\n```\r\n\r\nI
tested that the component works in the browser, so the issue is in
the\r\ntest. I think that because of some internal React@18 changes the
order\r\nin which the validation timeout inside our form lib is called
conflcts\r\nwith fake timers (the timeout just stucks). So instead of
trying to add\r\nadditional `jest.advanceTimersByTime(0);` in some
places I decided to\r\nsimplify and just use the real timeouts that
works well for both\r\nreact@17 an
react@18","sha":"9e8ab663b76aa99b9482fb2bbe17f8cf0e1d4238"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
kibanamachine added a commit that referenced this pull request Jan 28, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18] follow up fix tty test
(#208393)](#208393)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-28T11:08:17Z","message":"[React@18]
follow up fix tty test (#208393)\n\n## Summary\r\n\r\nThis piece was
left out from the\r\nhttps://github.com//pull/206919 (I
assume by mistake)\r\nthis waitFor is needed for testing passing with
React@18,
see\r\nhttps://github.com//pull/208339/files#diff-bf9743a8d3aa8ed102d36f9117fb14e455efa23df7da28a4ac44b7efa270899a\r\n\r\n\r\n```\r\nREACT_18=true
yarn test:jest
x-pack/solutions/security/plugins/session_view/public/components/tty_player/hooks.test.tsx\r\n```","sha":"fc179a8d47b7a7ab622dfce519154175b1821869","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","React@18"],"title":"[React@18]
follow up fix tty
test","number":208393,"url":"https://github.com/elastic/kibana/pull/208393","mergeCommit":{"message":"[React@18]
follow up fix tty test (#208393)\n\n## Summary\r\n\r\nThis piece was
left out from the\r\nhttps://github.com//pull/206919 (I
assume by mistake)\r\nthis waitFor is needed for testing passing with
React@18,
see\r\nhttps://github.com//pull/208339/files#diff-bf9743a8d3aa8ed102d36f9117fb14e455efa23df7da28a4ac44b7efa270899a\r\n\r\n\r\n```\r\nREACT_18=true
yarn test:jest
x-pack/solutions/security/plugins/session_view/public/components/tty_player/hooks.test.tsx\r\n```","sha":"fc179a8d47b7a7ab622dfce519154175b1821869"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208393","number":208393,"mergeCommit":{"message":"[React@18]
follow up fix tty test (#208393)\n\n## Summary\r\n\r\nThis piece was
left out from the\r\nhttps://github.com//pull/206919 (I
assume by mistake)\r\nthis waitFor is needed for testing passing with
React@18,
see\r\nhttps://github.com//pull/208339/files#diff-bf9743a8d3aa8ed102d36f9117fb14e455efa23df7da28a4ac44b7efa270899a\r\n\r\n\r\n```\r\nREACT_18=true
yarn test:jest
x-pack/solutions/security/plugins/session_view/public/components/tty_player/hooks.test.tsx\r\n```","sha":"fc179a8d47b7a7ab622dfce519154175b1821869"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
@Dosant Dosant closed this in 8f10ac2 Jan 28, 2025
@Dosant Dosant reopened this Jan 28, 2025
@Dosant
Copy link
Contributor Author

Dosant commented Jan 28, 2025

@elasticmachine merge upstream

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 28, 2025
…ch using expected exception item fields (elastic#208396)

## Summary

fix
elastic#208339 (comment)

- [ ]
[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-264a-4056-8026-2be65f9e16b9)
[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-264a-4056-8026-2be65f9e16b9/artifacts/0194a7ad-2ab6-40c2-a11c-685683bbb663)
Jest Integration Tests / When on the host isolation exceptions page
should search using expected exception item fields

Fix the test so it passes with React@18

```
REACT_18=true node scripts/jest --config=x-pack/solutions/security/plugins/security_solution/jest.integration.config.js /x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx
```

We already saw a very similar timeout failure here:
https://github.com/elastic/kibana/pull/207195/files#r1922454027

(cherry picked from commit 8f10ac2)
kibanamachine added a commit that referenced this pull request Jan 28, 2025
…d search using expected exception item fields (#208396) (#208574)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18] fix When on the host isolation exceptions page should
search using expected exception item fields
(#208396)](#208396)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-28T16:32:02Z","message":"[React@18]
fix When on the host isolation exceptions page should search using
expected exception item fields (#208396)\n\n##
Summary\r\n\r\nfix\r\nhttps://github.com//pull/208339#issuecomment-2615621371\r\n\r\n-
[
]\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-264a-4056-8026-2be65f9e16b9)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-264a-4056-8026-2be65f9e16b9/artifacts/0194a7ad-2ab6-40c2-a11c-685683bbb663)\r\nJest
Integration Tests / When on the host isolation exceptions page\r\nshould
search using expected exception item fields\r\n\r\n\r\nFix the test so
it passes with React@18\r\n\r\n\r\n```\r\nREACT_18=true node
scripts/jest
--config=x-pack/solutions/security/plugins/security_solution/jest.integration.config.js
/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx\r\n```\r\n\r\n\r\nWe
already saw a very similar timeout failure
here:\r\nhttps://github.com//pull/207195/files#r1922454027","sha":"8f10ac2163de398e8d22a0d14a5cbe99ccc951fa","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","React@18"],"title":"[React@18]
fix When on the host isolation exceptions page should search using
expected exception item
fields","number":208396,"url":"https://github.com/elastic/kibana/pull/208396","mergeCommit":{"message":"[React@18]
fix When on the host isolation exceptions page should search using
expected exception item fields (#208396)\n\n##
Summary\r\n\r\nfix\r\nhttps://github.com//pull/208339#issuecomment-2615621371\r\n\r\n-
[
]\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-264a-4056-8026-2be65f9e16b9)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-264a-4056-8026-2be65f9e16b9/artifacts/0194a7ad-2ab6-40c2-a11c-685683bbb663)\r\nJest
Integration Tests / When on the host isolation exceptions page\r\nshould
search using expected exception item fields\r\n\r\n\r\nFix the test so
it passes with React@18\r\n\r\n\r\n```\r\nREACT_18=true node
scripts/jest
--config=x-pack/solutions/security/plugins/security_solution/jest.integration.config.js
/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx\r\n```\r\n\r\n\r\nWe
already saw a very similar timeout failure
here:\r\nhttps://github.com//pull/207195/files#r1922454027","sha":"8f10ac2163de398e8d22a0d14a5cbe99ccc951fa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208396","number":208396,"mergeCommit":{"message":"[React@18]
fix When on the host isolation exceptions page should search using
expected exception item fields (#208396)\n\n##
Summary\r\n\r\nfix\r\nhttps://github.com//pull/208339#issuecomment-2615621371\r\n\r\n-
[
]\r\n[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-264a-4056-8026-2be65f9e16b9)\r\n[[logs]](https://buildkite.com/organizations/elastic/pipelines/kibana-pull-request/builds/270417/jobs/0194a78a-264a-4056-8026-2be65f9e16b9/artifacts/0194a7ad-2ab6-40c2-a11c-685683bbb663)\r\nJest
Integration Tests / When on the host isolation exceptions page\r\nshould
search using expected exception item fields\r\n\r\n\r\nFix the test so
it passes with React@18\r\n\r\n\r\n```\r\nREACT_18=true node
scripts/jest
--config=x-pack/solutions/security/plugins/security_solution/jest.integration.config.js
/x-pack/solutions/security/plugins/security_solution/public/management/pages/host_isolation_exceptions/view/integration_tests/host_isolation_exceptions_list.test.tsx\r\n```\r\n\r\n\r\nWe
already saw a very similar timeout failure
here:\r\nhttps://github.com//pull/207195/files#r1922454027","sha":"8f10ac2163de398e8d22a0d14a5cbe99ccc951fa"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
@Dosant
Copy link
Contributor Author

Dosant commented Jan 29, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@Dosant
Copy link
Contributor Author

Dosant commented Jan 29, 2025

@elasticmachine merge upstream

@Dosant
Copy link
Contributor Author

Dosant commented Jan 29, 2025

@elasticmachine merge upstream

@Dosant
Copy link
Contributor Author

Dosant commented Jan 30, 2025

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
files 12 13 +1
maps 1335 1336 +1
ml 2215 2216 +1
total +3

Async chunks

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

id before after diff
apm 4.0MB 4.0MB -2.0B
automaticImport 1.1MB 1.1MB -1.0B
cloudSecurityPosture 536.6KB 536.6KB -1.0B
enterpriseSearch 1.5MB 1.5MB -1.0B
infra 1.2MB 1.2MB -1.0B
maps 3.0MB 3.0MB +949.0B
ml 4.7MB 4.7MB +948.0B
securitySolution 21.4MB 21.4MB -245.0B
total +1.6KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
files 10.2KB 11.1KB +950.0B
kbnUiSharedDeps-npmDll 5.9MB 6.0MB +60.2KB
total +61.2KB

History

@Dosant Dosant closed this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants