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

[Security Solution] Default Risk score slide bar values are overlaid on Rule Creation page (#161456) #172677

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

e40pud
Copy link
Contributor

@e40pud e40pud commented Dec 6, 2023

Summary

Addresses #161456

These changes do workaround to display EuiRange component which is broken due to memoization (see more details in #160561 and elastic/eui#6846)

The fix is to forcibly remove/add EuiRange component on About step activation.

Before the fix:

Screenshot 2023-07-12 at 19 06 01

After the fix:

Screenshot 2023-07-12 at 19 05 46

@e40pud e40pud added release_note:fix Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Engine Security Solution Detection Engine Area labels Dec 6, 2023
@e40pud e40pud self-assigned this Dec 6, 2023
@e40pud e40pud requested a review from a team as a code owner December 6, 2023 13:31
@e40pud e40pud requested a review from nikitaindik December 6, 2023 13:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@e40pud e40pud added the backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) label Dec 7, 2023
Copy link
Contributor

@nikitaindik nikitaindik 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 the fix Zhenia! Tested locally - the bug does not reproduce. Approved.

I wonder what would be the best way to track the status of the EUI issue, so that we can remove the workaround once it's fixed on their end?

@e40pud
Copy link
Contributor Author

e40pud commented Dec 12, 2023

Thanks for the fix Zhenia! Tested locally - the bug does not reproduce. Approved.

I wonder what would be the best way to track the status of the EUI issue, so that we can remove the workaround once it's fixed on their end?

We will have to monitor the status of that ticket to do that. I am part of the notification list there, so as soon as I see some progress and fix for ti I will remove this workaround in our codebase.

@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
securitySolution 13.1MB 13.1MB +25.0B

History

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

cc @e40pud

@e40pud e40pud merged commit 28d18e8 into elastic:main Dec 12, 2023
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 12, 2023
…on Rule Creation page (elastic#161456) (elastic#172677)

## Summary

Addresses elastic#161456

These changes do workaround to display EuiRange component which is
broken due to memoization (see more details in
elastic#160561 and
elastic/eui#6846)

The fix is to forcibly remove/add EuiRange component on About step
activation.

Before the fix:

<img width="435" alt="Screenshot 2023-07-12 at 19 06 01"
src="https://github.com/elastic/kibana/assets/2700761/8deeb59a-712e-4990-9bda-cba31da8f23f">

After the fix:

<img width="426" alt="Screenshot 2023-07-12 at 19 05 46"
src="https://github.com/elastic/kibana/assets/2700761/7556cca0-d78b-453a-ac47-8a2cd3ef73d7">

(cherry picked from commit 28d18e8)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.12

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 12, 2023
…erlaid on Rule Creation page (#161456) (#172677) (#173140)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[Security Solution] Default Risk score slide bar values are overlaid
on Rule Creation page (#161456)
(#172677)](#172677)

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

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

<!--BACKPORT [{"author":{"name":"Ievgen
Sorokopud","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-12T10:29:50Z","message":"[Security
Solution] Default Risk score slide bar values are overlaid on Rule
Creation page (#161456) (#172677)\n\n## Summary\r\n\r\nAddresses
https://github.com/elastic/kibana/issues/161456\r\n\r\nThese changes do
workaround to display EuiRange component which is\r\nbroken due to
memoization (see more details
in\r\nhttps://github.com//issues/160561
and\r\nhttps://github.com/elastic/eui/issues/6846)\r\n\r\nThe fix is to
forcibly remove/add EuiRange component on About
step\r\nactivation.\r\n\r\nBefore the fix:\r\n\r\n<img width=\"435\"
alt=\"Screenshot 2023-07-12 at 19 06
01\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2700761/8deeb59a-712e-4990-9bda-cba31da8f23f\">\r\n\r\nAfter
the fix:\r\n\r\n<img width=\"426\" alt=\"Screenshot 2023-07-12 at 19 05
46\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2700761/7556cca0-d78b-453a-ac47-8a2cd3ef73d7\">","sha":"28d18e89fba53cc1ca5d46bd0b5d0964d0a7c75a","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:
SecuritySolution","backport:prev-minor","Team:Detection
Engine","v8.13.0"],"number":172677,"url":"https://github.com/elastic/kibana/pull/172677","mergeCommit":{"message":"[Security
Solution] Default Risk score slide bar values are overlaid on Rule
Creation page (#161456) (#172677)\n\n## Summary\r\n\r\nAddresses
https://github.com/elastic/kibana/issues/161456\r\n\r\nThese changes do
workaround to display EuiRange component which is\r\nbroken due to
memoization (see more details
in\r\nhttps://github.com//issues/160561
and\r\nhttps://github.com/elastic/eui/issues/6846)\r\n\r\nThe fix is to
forcibly remove/add EuiRange component on About
step\r\nactivation.\r\n\r\nBefore the fix:\r\n\r\n<img width=\"435\"
alt=\"Screenshot 2023-07-12 at 19 06
01\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2700761/8deeb59a-712e-4990-9bda-cba31da8f23f\">\r\n\r\nAfter
the fix:\r\n\r\n<img width=\"426\" alt=\"Screenshot 2023-07-12 at 19 05
46\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2700761/7556cca0-d78b-453a-ac47-8a2cd3ef73d7\">","sha":"28d18e89fba53cc1ca5d46bd0b5d0964d0a7c75a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172677","number":172677,"mergeCommit":{"message":"[Security
Solution] Default Risk score slide bar values are overlaid on Rule
Creation page (#161456) (#172677)\n\n## Summary\r\n\r\nAddresses
https://github.com/elastic/kibana/issues/161456\r\n\r\nThese changes do
workaround to display EuiRange component which is\r\nbroken due to
memoization (see more details
in\r\nhttps://github.com//issues/160561
and\r\nhttps://github.com/elastic/eui/issues/6846)\r\n\r\nThe fix is to
forcibly remove/add EuiRange component on About
step\r\nactivation.\r\n\r\nBefore the fix:\r\n\r\n<img width=\"435\"
alt=\"Screenshot 2023-07-12 at 19 06
01\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2700761/8deeb59a-712e-4990-9bda-cba31da8f23f\">\r\n\r\nAfter
the fix:\r\n\r\n<img width=\"426\" alt=\"Screenshot 2023-07-12 at 19 05
46\"\r\nsrc=\"https://github.com/elastic/kibana/assets/2700761/7556cca0-d78b-453a-ac47-8a2cd3ef73d7\">","sha":"28d18e89fba53cc1ca5d46bd0b5d0964d0a7c75a"}}]}]
BACKPORT-->

Co-authored-by: Ievgen Sorokopud <[email protected]>
@e40pud e40pud deleted the security/bugfix/161456-broken-risk-range branch December 12, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) release_note:fix Team:Detection Engine Security Solution Detection Engine Area Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.12.0 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants