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] Fix broken Rule Details page when filters are extremely long #153338

Merged
merged 3 commits into from Mar 23, 2023

Conversation

jpdjere
Copy link
Contributor

@jpdjere jpdjere commented Mar 20, 2023

Fixes #145076

Summary

When creating a rule that has a filter which is extremely long, the Rules Detail UI breaks and information is lost, out of view of the user, due to a broken layout. See connected issue for examples, or below.

This PR fixes this bug via a a couple simple CSS fixes in the related components.

Screenshots

Desktop

Before
image

After
image

Mobile

Before
image

After
image

Checklist

Delete any items that are not applicable to this PR.

  • Any UI touched in this PR does not create any new axe failures (run axe in browser: FF, Chrome)
  • This renders correctly on smaller devices using a responsive layout. (You can test this in your browser)
  • This was checked for cross-browser compatibility

@jpdjere jpdjere requested a review from a team as a code owner March 20, 2023 21:34
@jpdjere jpdjere requested a review from xcrzx March 20, 2023 21:34
@jpdjere jpdjere added bug Fixes for quality problems that affect the customer experience release_note:fix Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team labels Mar 20, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

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

@banderror banderror added Feature:Rule Details Security Solution Detection Rule Details v8.8.0 v8.7.1 labels Mar 21, 2023
Copy link
Contributor

@xcrzx xcrzx left a comment

Choose a reason for hiding this comment

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

Hey @jpdjere, thank you for the fix! I've verified it in Chrome and Safari, and it works perfectly there. However, in Firefox, the problem still persists:

Screenshot 2023-03-22 at 10 46 33

Could you please take a look?

@jpdjere
Copy link
Contributor Author

jpdjere commented Mar 22, 2023

@xcrzx Thanks for catching that.

Corrected the property to use simply width: 100% and that does the trick for all three browsers.

@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 15.8MB 15.8MB +484.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 433 436 +3

Total ESLint disabled count

id before after diff
securitySolution 513 516 +3

History

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

cc @jpdjere

Copy link
Contributor

@xcrzx xcrzx left a comment

Choose a reason for hiding this comment

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

Tested locally, and it's all good now 👍

@jpdjere jpdjere merged commit 39efe02 into elastic:main Mar 23, 2023
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 23, 2023
…remely long (elastic#153338)

Fixes elastic#145076

## Summary

When creating a rule that has a **filter** which is extremely long, the
Rules Detail UI breaks and information is lost, out of view of the user,
due to a broken layout. See connected issue for examples, or below.

This PR fixes this bug via a a couple simple CSS fixes in the related
components.

# Screenshots

## Desktop

**Before**
<img width="1713" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png">

**After**
<img width="1723" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png">

## Mobile

**Before**
<img width="481" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png">

**After**
<img width="486" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png">

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

(cherry picked from commit 39efe02)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

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 Mar 23, 2023
…re extremely long (#153338) (#153537)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Security Solution] Fix broken Rule Details page when filters are
extremely long (#153338)](#153338)

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

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

<!--BACKPORT [{"author":{"name":"Juan Pablo
Djeredjian","email":"jpdjeredjian@gmail.com"},"sourceCommit":{"committedDate":"2023-03-23T12:23:00Z","message":"[Security
Solution] Fix broken Rule Details page when filters are extremely long
(#153338)\n\nFixes
#145076
Summary\r\n\r\nWhen creating a rule that has a **filter** which is
extremely long, the\r\nRules Detail UI breaks and information is lost,
out of view of the user,\r\ndue to a broken layout. See connected issue
for examples, or below.\r\n\r\nThis PR fixes this bug via a a couple
simple CSS fixes in the related\r\ncomponents.\r\n\r\n#
Screenshots\r\n\r\n## Desktop\r\n\r\n**Before**\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"1723\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\">\r\n\r\n##
Mobile\r\n\r\n**Before**\r\n<img width=\"481\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"486\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any UI touched in this PR does not create any new axe
failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"39efe026ee8926a412ee0e4206ba4831ea670923","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rules","Feature:Rule
Details","v8.8.0","v8.7.1"],"number":153338,"url":"#153338
Solution] Fix broken Rule Details page when filters are extremely long
(#153338)\n\nFixes
#145076
Summary\r\n\r\nWhen creating a rule that has a **filter** which is
extremely long, the\r\nRules Detail UI breaks and information is lost,
out of view of the user,\r\ndue to a broken layout. See connected issue
for examples, or below.\r\n\r\nThis PR fixes this bug via a a couple
simple CSS fixes in the related\r\ncomponents.\r\n\r\n#
Screenshots\r\n\r\n## Desktop\r\n\r\n**Before**\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"1723\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\">\r\n\r\n##
Mobile\r\n\r\n**Before**\r\n<img width=\"481\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"486\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any UI touched in this PR does not create any new axe
failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"39efe026ee8926a412ee0e4206ba4831ea670923"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/153338","number":153338,"mergeCommit":{"message":"[Security
Solution] Fix broken Rule Details page when filters are extremely long
(#153338)\n\nFixes
#145076
Summary\r\n\r\nWhen creating a rule that has a **filter** which is
extremely long, the\r\nRules Detail UI breaks and information is lost,
out of view of the user,\r\ndue to a broken layout. See connected issue
for examples, or below.\r\n\r\nThis PR fixes this bug via a a couple
simple CSS fixes in the related\r\ncomponents.\r\n\r\n#
Screenshots\r\n\r\n## Desktop\r\n\r\n**Before**\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"1723\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\">\r\n\r\n##
Mobile\r\n\r\n**Before**\r\n<img width=\"481\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"486\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any UI touched in this PR does not create any new axe
failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"39efe026ee8926a412ee0e4206ba4831ea670923"}},{"branch":"8.7","label":"v8.7.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Juan Pablo Djeredjian <jpdjeredjian@gmail.com>
banderror added a commit that referenced this pull request Mar 23, 2023
@banderror
Copy link
Contributor

@jpdjere I'm reverting the backport: #153563

@banderror banderror removed the v8.7.0 label Mar 23, 2023
banderror added a commit that referenced this pull request Mar 24, 2023
…ilters are extremely long (#153338)" (#153563)

Reverts #153537

Should have been backported after the 8.7.0 release.
@jpdjere
Copy link
Contributor Author

jpdjere commented Apr 3, 2023

💚 All backports created successfully

Status Branch Result
8.7

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

Questions ?

Please refer to the Backport tool documentation

jpdjere added a commit to jpdjere/kibana that referenced this pull request Apr 3, 2023
…remely long (elastic#153338)

Fixes elastic#145076

## Summary

When creating a rule that has a **filter** which is extremely long, the
Rules Detail UI breaks and information is lost, out of view of the user,
due to a broken layout. See connected issue for examples, or below.

This PR fixes this bug via a a couple simple CSS fixes in the related
components.

# Screenshots

## Desktop

**Before**
<img width="1713" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png">

**After**
<img width="1723" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png">

## Mobile

**Before**
<img width="481" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png">

**After**
<img width="486" alt="image"
src="https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png">

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

(cherry picked from commit 39efe02)
jpdjere added a commit that referenced this pull request Apr 3, 2023
…re extremely long (#153338) (#154217)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Security Solution] Fix broken Rule Details page when filters are
extremely long (#153338)](#153338)

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

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

<!--BACKPORT [{"author":{"name":"Juan Pablo
Djeredjian","email":"jpdjeredjian@gmail.com"},"sourceCommit":{"committedDate":"2023-03-23T12:23:00Z","message":"[Security
Solution] Fix broken Rule Details page when filters are extremely long
(#153338)\n\nFixes
#145076
Summary\r\n\r\nWhen creating a rule that has a **filter** which is
extremely long, the\r\nRules Detail UI breaks and information is lost,
out of view of the user,\r\ndue to a broken layout. See connected issue
for examples, or below.\r\n\r\nThis PR fixes this bug via a a couple
simple CSS fixes in the related\r\ncomponents.\r\n\r\n#
Screenshots\r\n\r\n## Desktop\r\n\r\n**Before**\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"1723\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\">\r\n\r\n##
Mobile\r\n\r\n**Before**\r\n<img width=\"481\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"486\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any UI touched in this PR does not create any new axe
failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"39efe026ee8926a412ee0e4206ba4831ea670923","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rules","Feature:Rule
Details","v8.8.0","v8.7.1"],"number":153338,"url":"#153338
Solution] Fix broken Rule Details page when filters are extremely long
(#153338)\n\nFixes
#145076
Summary\r\n\r\nWhen creating a rule that has a **filter** which is
extremely long, the\r\nRules Detail UI breaks and information is lost,
out of view of the user,\r\ndue to a broken layout. See connected issue
for examples, or below.\r\n\r\nThis PR fixes this bug via a a couple
simple CSS fixes in the related\r\ncomponents.\r\n\r\n#
Screenshots\r\n\r\n## Desktop\r\n\r\n**Before**\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"1723\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\">\r\n\r\n##
Mobile\r\n\r\n**Before**\r\n<img width=\"481\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"486\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any UI touched in this PR does not create any new axe
failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"39efe026ee8926a412ee0e4206ba4831ea670923"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/153338","number":153338,"mergeCommit":{"message":"[Security
Solution] Fix broken Rule Details page when filters are extremely long
(#153338)\n\nFixes
#145076
Summary\r\n\r\nWhen creating a rule that has a **filter** which is
extremely long, the\r\nRules Detail UI breaks and information is lost,
out of view of the user,\r\ndue to a broken layout. See connected issue
for examples, or below.\r\n\r\nThis PR fixes this bug via a a couple
simple CSS fixes in the related\r\ncomponents.\r\n\r\n#
Screenshots\r\n\r\n## Desktop\r\n\r\n**Before**\r\n<img width=\"1713\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"1723\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\">\r\n\r\n##
Mobile\r\n\r\n**Before**\r\n<img width=\"481\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\">\r\n\r\n\r\n**After**\r\n<img
width=\"486\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\">\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any UI touched in this PR does not create any new axe
failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[x] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[x] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)","sha":"39efe026ee8926a412ee0e4206ba4831ea670923"}},{"branch":"8.7","label":"v8.7.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/153537","number":153537,"state":"MERGED","mergeCommit":{"sha":"cfdc7d2a83298123bb284b4d77a80ed4a2d03c36","message":"[8.7]
[Security Solution] Fix broken Rule Details page when filters are
extremely long (#153338) (#153537)\n\n# Backport\n\nThis will backport
the following commits from `main` to `8.7`:\n- [[Security Solution] Fix
broken Rule Details page when filters are\nextremely long
(#153338)](https://github.com/elastic/kibana/pull/153338)\n\n<!---
Backport version: 8.9.7 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Juan
Pablo\nDjeredjian\",\"email\":\"jpdjeredjian@gmail.com\"},\"sourceCommit\":{\"committedDate\":\"2023-03-23T12:23:00Z\",\"message\":\"[Security\nSolution]
Fix broken Rule Details page when filters are extremely
long\n(#153338)\\n\\nFixes\nhttps://github.com//issues/145076\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nWhen
creating a rule that has a **filter** which is\nextremely long,
the\\r\\nRules Detail UI breaks and information is lost,\nout of view of
the user,\\r\\ndue to a broken layout. See connected issue\nfor
examples, or below.\\r\\n\\r\\nThis PR fixes this bug via a a
couple\nsimple CSS fixes in the
related\\r\\ncomponents.\\r\\n\\r\\n#\nScreenshots\\r\\n\\r\\n##
Desktop\\r\\n\\r\\n**Before**\\r\\n<img
width=\\\"1713\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\\\">\\r\\n\\r\\n\\r\\n**After**\\r\\n<img\nwidth=\\\"1723\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\\\">\\r\\n\\r\\n##\nMobile\\r\\n\\r\\n**Before**\\r\\n<img
width=\\\"481\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\\\">\\r\\n\\r\\n\\r\\n**After**\\r\\n<img\nwidth=\\\"486\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\\\">\\r\\n\\r\\n\\r\\n###\nChecklist\\r\\n\\r\\nDelete
any items that are not applicable to this\nPR.\\r\\n\\r\\n- [x] Any UI
touched in this PR does not create any new axe\nfailures\\r\\n(run axe
in\nbrowser:\\r\\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\\r\\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\\r\\n-\n[x]
This renders correctly on smaller devices using
a\nresponsive\\r\\nlayout. (You can test this
[in\nyour\\r\\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\\r\\n-\n[x]
This was checked
for\n[cross-browser\\r\\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\",\"sha\":\"39efe026ee8926a412ee0e4206ba4831ea670923\",\"branchLabelMapping\":{\"^v8.8.0$\":\"main\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"bug\",\"release_note:fix\",\"Team:Detections\nand
Resp\",\"Team: SecuritySolution\",\"Team:Detection
Rules\",\"Feature:Rule\nDetails\",\"v8.8.0\",\"v8.7.1\"],\"number\":153338,\"url\":\"#153338
Fix broken Rule Details page when filters are extremely
long\n(#153338)\\n\\nFixes\nhttps://github.com//issues/145076\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nWhen
creating a rule that has a **filter** which is\nextremely long,
the\\r\\nRules Detail UI breaks and information is lost,\nout of view of
the user,\\r\\ndue to a broken layout. See connected issue\nfor
examples, or below.\\r\\n\\r\\nThis PR fixes this bug via a a
couple\nsimple CSS fixes in the
related\\r\\ncomponents.\\r\\n\\r\\n#\nScreenshots\\r\\n\\r\\n##
Desktop\\r\\n\\r\\n**Before**\\r\\n<img
width=\\\"1713\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\\\">\\r\\n\\r\\n\\r\\n**After**\\r\\n<img\nwidth=\\\"1723\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\\\">\\r\\n\\r\\n##\nMobile\\r\\n\\r\\n**Before**\\r\\n<img
width=\\\"481\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\\\">\\r\\n\\r\\n\\r\\n**After**\\r\\n<img\nwidth=\\\"486\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\\\">\\r\\n\\r\\n\\r\\n###\nChecklist\\r\\n\\r\\nDelete
any items that are not applicable to this\nPR.\\r\\n\\r\\n- [x] Any UI
touched in this PR does not create any new axe\nfailures\\r\\n(run axe
in\nbrowser:\\r\\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\\r\\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\\r\\n-\n[x]
This renders correctly on smaller devices using
a\nresponsive\\r\\nlayout. (You can test this
[in\nyour\\r\\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\\r\\n-\n[x]
This was checked
for\n[cross-browser\\r\\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\",\"sha\":\"39efe026ee8926a412ee0e4206ba4831ea670923\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.7\"],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v8.8.0\",\"labelRegex\":\"^v8.8.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/153338\",\"number\":153338,\"mergeCommit\":{\"message\":\"[Security\nSolution]
Fix broken Rule Details page when filters are extremely
long\n(#153338)\\n\\nFixes\nhttps://github.com//issues/145076\\r\\n\\r\\n##\nSummary\\r\\n\\r\\nWhen
creating a rule that has a **filter** which is\nextremely long,
the\\r\\nRules Detail UI breaks and information is lost,\nout of view of
the user,\\r\\ndue to a broken layout. See connected issue\nfor
examples, or below.\\r\\n\\r\\nThis PR fixes this bug via a a
couple\nsimple CSS fixes in the
related\\r\\ncomponents.\\r\\n\\r\\n#\nScreenshots\\r\\n\\r\\n##
Desktop\\r\\n\\r\\n**Before**\\r\\n<img
width=\\\"1713\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470618-b4835d2f-1343-4e94-8b42-c0ebae064f1c.png\\\">\\r\\n\\r\\n\\r\\n**After**\\r\\n<img\nwidth=\\\"1723\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470507-07d3d482-0ece-4ecb-9e19-03b18e2803ea.png\\\">\\r\\n\\r\\n##\nMobile\\r\\n\\r\\n**Before**\\r\\n<img
width=\\\"481\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470744-f16aca4f-b547-4601-ac6c-c95a641752a8.png\\\">\\r\\n\\r\\n\\r\\n**After**\\r\\n<img\nwidth=\\\"486\\\"\nalt=\\\"image\\\"\\r\\nsrc=\\\"https://user-images.githubusercontent.com/5354282/226470790-e6d06b09-0c7f-49eb-bf8f-07f34b6303e4.png\\\">\\r\\n\\r\\n\\r\\n###\nChecklist\\r\\n\\r\\nDelete
any items that are not applicable to this\nPR.\\r\\n\\r\\n- [x] Any UI
touched in this PR does not create any new axe\nfailures\\r\\n(run axe
in\nbrowser:\\r\\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\\r\\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\\r\\n-\n[x]
This renders correctly on smaller devices using
a\nresponsive\\r\\nlayout. (You can test this
[in\nyour\\r\\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\\r\\n-\n[x]
This was checked
for\n[cross-browser\\r\\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\",\"sha\":\"39efe026ee8926a412ee0e4206ba4831ea670923\"}},{\"branch\":\"8.7\",\"label\":\"v8.7.1\",\"labelRegex\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by:
Juan Pablo Djeredjian <jpdjeredjian@gmail.com>"}}]}] BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Rule Details Security Solution Detection Rule Details release_note:fix Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.7.1 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution] Rule Details page broken when showing extremely long filters
6 participants