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] Custom Query rule with custom labels applied does not show custom labels in Rule UI overview #162543

Closed
alstolten opened this issue Jul 26, 2023 · 13 comments · Fixed by #176590
Assignees
Labels
8.13 candidate bug Fixes for quality problems that affect the customer experience Feature:Rule Details Security Solution Detection Rule Details page impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. sdh-linked 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.12.2 v8.13.0

Comments

@alstolten
Copy link
Member

alstolten commented Jul 26, 2023

Kibana/Elasticsearch Stack version: 8.8.1

Server OS version: unknown

Browser and Browser OS versions: Chrome

Hi team! After an upgrade from 8.6. to 8.8 the rule definition (in Security -> Alerts -> Manage Rules) panel on the rule details page does not show the custom labels defined in the custom query rule, but instead the actual KQL or ES query. Is this expected behavior? I searched in the release notes but could not find a note explaining this behavior. Below you find indications what is meant:

8.6.2 behavior

Rule definition overview:

Screenshot from 2023-07-20 15-24-22

Rule definition configuration

Screenshot from 2023-07-20 15-25-14

8.8.1

Rule definition overview

Screenshot from 2023-07-20 15-27-58

Rule definition configuration

Screenshot from 2023-07-20 15-28-33

I believe the visual representation of the filter should remain consistent.

Steps to reproduce:

  1. Create a custom query rule.
  2. Add a filter to that rule (using the plus icon)
  3. Click on the filter and edit the custom label
  4. The filter will still display as the actual query instead of the applied custom label from the rule overview panel, in the definition section
@alstolten alstolten added bug Fixes for quality problems that affect the customer experience triage_needed Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Jul 26, 2023
@elasticmachine
Copy link
Contributor

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

@MadameSheema MadameSheema added Team:Detections and Resp Security Detection Response Team Team:Detection Engine Security Solution Detection Engine Area labels Aug 4, 2023
@elasticmachine
Copy link
Contributor

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

@yctercero
Copy link
Contributor

Hey @banderror - would this fall under rule details?

@shayfeld
Copy link

I still experienced the bug on version 8.11.1.
Are you planning on fixing it soon?
@yctercero, @peluja1012

@banderror
Copy link
Contributor

Hey @banderror - would this fall under rule details?

@yctercero Sorry for the delay. Yes, since it looks like the bug is about showing rule filters on the Rule Details page, it falls under @elastic/security-detection-rule-management. I'll add it to our backlog.

@banderror
Copy link
Contributor

Are you planning on fixing it soon?

@shayfeld We will be tracking it in our backlog, but we don't have the immediate capacity to fix it. What kind of severity is this for you?

@yctercero yctercero assigned banderror and unassigned yctercero Nov 22, 2023
@banderror banderror added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Feature:Rule Details Security Solution Detection Rule Details page 8.13 candidate and removed consider-next labels Nov 22, 2023
@banderror banderror removed their assignment Nov 22, 2023
@shayfeld
Copy link

Hi @banderror ,
This bug prevents us from implementing the SIEM system.
SOC operations needs a custom label to understand the filter when we write complex DSL queries.

@banderror
Copy link
Contributor

Got it, thanks for the feedback @shayfeld. We'll prioritize this for the next release cycle.

@jpdjere jpdjere self-assigned this Feb 9, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Feb 14, 2024
…s extremely long and when alias is present (elastic#176590)

Fixes: elastic#145076
Fixes: elastic#162543

## Summary

This PR solves two separate issues in the Filters component, used in the
Rule Details page.

1. **when rule filter is extremely long, the component would break the
layout of the whole page**: fixed by adding a styled wrapper component
to our About, Definition and Schedule section, [that allows wrapping of
extremely long text
`anywhere`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap).
This was precisely the issue that was breaking our layout when the
filters were extremely long, with the aggravating factor that the
filters were async loaded, and populated the component after the css was
loaded.
2. **when a rule filter had a name (alias) that should have been
displayed as a label instead of the actual filter**. This was like this
before 8.8, but was apparently lost during some refactoring. This PR
reintroduces that logic.

## Screenshots

### Broken page with long filters

#### Before

![image](https://github.com/elastic/kibana/assets/5354282/928f642d-fce2-4bd7-b0ee-2f318109777a)

#### After

![image](https://github.com/elastic/kibana/assets/5354282/dcac5f7b-c716-44c9-9f9c-124cd616bcf8)
**Mobile:**

![image](https://github.com/elastic/kibana/assets/5354282/a2ef0f17-2cab-49d9-99bd-0a9d3a712a2d)

#### Alias not showing as name

### Before

![image](https://github.com/elastic/kibana/assets/5354282/d68c7569-2f86-4f58-8b45-d67ee53e6821)
### After

![image](https://github.com/elastic/kibana/assets/5354282/f4f24427-8e82-4abe-9fa2-dbc8690dbb51)

## Browser compatibility

- Above screenshots are **Chrome**
- **Firefox**

![image](https://github.com/elastic/kibana/assets/5354282/e2ab0221-bfde-4544-afb2-6f5e1a4db0ff)

- **Safari**

![image](https://github.com/elastic/kibana/assets/5354282/962dd314-1ba9-4aa2-81c1-955c1c1f9036)

### 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)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co>
(cherry picked from commit 532ac06)
kibanamachine referenced this issue Feb 14, 2024
…ntent is extremely long and when alias is present (#176590) (#176928)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[Security Solution] Fix broken Rule Filters components when content
is extremely long and when alias is present
(#176590)](#176590)

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

### 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":"2024-02-14T15:13:07Z","message":"[Security
Solution] Fix broken Rule Filters components when content is extremely
long and when alias is present (#176590)\n\nFixes:
https://github.com/elastic/kibana/issues/145076\r\nFixes:
https://github.com/elastic/kibana/issues/162543\r\n\r\n##
Summary\r\n\r\nThis PR solves two separate issues in the Filters
component, used in the\r\nRule Details page.\r\n\r\n1. **when rule
filter is extremely long, the component would break the\r\nlayout of the
whole page**: fixed by adding a styled wrapper component\r\nto our
About, Definition and Schedule section, [that allows wrapping
of\r\nextremely long
text\r\n`anywhere`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap).\r\nThis
was precisely the issue that was breaking our layout when the\r\nfilters
were extremely long, with the aggravating factor that the\r\nfilters
were async loaded, and populated the component after the css
was\r\nloaded.\r\n2. **when a rule filter had a name (alias) that should
have been\r\ndisplayed as a label instead of the actual filter**. This
was like this\r\nbefore 8.8, but was apparently lost during some
refactoring. This PR\r\nreintroduces that logic.\r\n\r\n##
Screenshots\r\n\r\n### Broken page with long filters\r\n\r\n####
Before\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/928f642d-fce2-4bd7-b0ee-2f318109777a)\r\n\r\n####
After\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/dcac5f7b-c716-44c9-9f9c-124cd616bcf8)\r\n**Mobile:**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/a2ef0f17-2cab-49d9-99bd-0a9d3a712a2d)\r\n\r\n\r\n####
Alias not showing as name\r\n\r\n###
Before\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/d68c7569-2f86-4f58-8b45-d67ee53e6821)\r\n###
After\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/f4f24427-8e82-4abe-9fa2-dbc8690dbb51)\r\n\r\n\r\n##
Browser compatibility\r\n\r\n- Above screenshots are **Chrome**\r\n-
**Firefox**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/e2ab0221-bfde-4544-afb2-6f5e1a4db0ff)\r\n\r\n-
**Safari**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/962dd314-1ba9-4aa2-81c1-955c1c1f9036)\r\n\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)\r\n\r\n###
For maintainers\r\n\r\n- [ ] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Georgii Gorbachev
<georgii.gorbachev@elastic.co>","sha":"532ac0604651dc7be83361653ddfb8d4682780c2","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Rule Details","8.13
candidate","v8.13.0","v8.12.2"],"title":"[Security Solution] Fix broken
Rule Filters components when content is extremely long and when alias is
present","number":176590,"url":"https://github.com/elastic/kibana/pull/176590","mergeCommit":{"message":"[Security
Solution] Fix broken Rule Filters components when content is extremely
long and when alias is present (#176590)\n\nFixes:
https://github.com/elastic/kibana/issues/145076\r\nFixes:
https://github.com/elastic/kibana/issues/162543\r\n\r\n##
Summary\r\n\r\nThis PR solves two separate issues in the Filters
component, used in the\r\nRule Details page.\r\n\r\n1. **when rule
filter is extremely long, the component would break the\r\nlayout of the
whole page**: fixed by adding a styled wrapper component\r\nto our
About, Definition and Schedule section, [that allows wrapping
of\r\nextremely long
text\r\n`anywhere`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap).\r\nThis
was precisely the issue that was breaking our layout when the\r\nfilters
were extremely long, with the aggravating factor that the\r\nfilters
were async loaded, and populated the component after the css
was\r\nloaded.\r\n2. **when a rule filter had a name (alias) that should
have been\r\ndisplayed as a label instead of the actual filter**. This
was like this\r\nbefore 8.8, but was apparently lost during some
refactoring. This PR\r\nreintroduces that logic.\r\n\r\n##
Screenshots\r\n\r\n### Broken page with long filters\r\n\r\n####
Before\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/928f642d-fce2-4bd7-b0ee-2f318109777a)\r\n\r\n####
After\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/dcac5f7b-c716-44c9-9f9c-124cd616bcf8)\r\n**Mobile:**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/a2ef0f17-2cab-49d9-99bd-0a9d3a712a2d)\r\n\r\n\r\n####
Alias not showing as name\r\n\r\n###
Before\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/d68c7569-2f86-4f58-8b45-d67ee53e6821)\r\n###
After\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/f4f24427-8e82-4abe-9fa2-dbc8690dbb51)\r\n\r\n\r\n##
Browser compatibility\r\n\r\n- Above screenshots are **Chrome**\r\n-
**Firefox**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/e2ab0221-bfde-4544-afb2-6f5e1a4db0ff)\r\n\r\n-
**Safari**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/962dd314-1ba9-4aa2-81c1-955c1c1f9036)\r\n\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)\r\n\r\n###
For maintainers\r\n\r\n- [ ] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Georgii Gorbachev
<georgii.gorbachev@elastic.co>","sha":"532ac0604651dc7be83361653ddfb8d4682780c2"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/176590","number":176590,"mergeCommit":{"message":"[Security
Solution] Fix broken Rule Filters components when content is extremely
long and when alias is present (#176590)\n\nFixes:
https://github.com/elastic/kibana/issues/145076\r\nFixes:
https://github.com/elastic/kibana/issues/162543\r\n\r\n##
Summary\r\n\r\nThis PR solves two separate issues in the Filters
component, used in the\r\nRule Details page.\r\n\r\n1. **when rule
filter is extremely long, the component would break the\r\nlayout of the
whole page**: fixed by adding a styled wrapper component\r\nto our
About, Definition and Schedule section, [that allows wrapping
of\r\nextremely long
text\r\n`anywhere`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap).\r\nThis
was precisely the issue that was breaking our layout when the\r\nfilters
were extremely long, with the aggravating factor that the\r\nfilters
were async loaded, and populated the component after the css
was\r\nloaded.\r\n2. **when a rule filter had a name (alias) that should
have been\r\ndisplayed as a label instead of the actual filter**. This
was like this\r\nbefore 8.8, but was apparently lost during some
refactoring. This PR\r\nreintroduces that logic.\r\n\r\n##
Screenshots\r\n\r\n### Broken page with long filters\r\n\r\n####
Before\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/928f642d-fce2-4bd7-b0ee-2f318109777a)\r\n\r\n####
After\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/dcac5f7b-c716-44c9-9f9c-124cd616bcf8)\r\n**Mobile:**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/a2ef0f17-2cab-49d9-99bd-0a9d3a712a2d)\r\n\r\n\r\n####
Alias not showing as name\r\n\r\n###
Before\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/d68c7569-2f86-4f58-8b45-d67ee53e6821)\r\n###
After\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/f4f24427-8e82-4abe-9fa2-dbc8690dbb51)\r\n\r\n\r\n##
Browser compatibility\r\n\r\n- Above screenshots are **Chrome**\r\n-
**Firefox**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/e2ab0221-bfde-4544-afb2-6f5e1a4db0ff)\r\n\r\n-
**Safari**\r\n\r\n![image](https://github.com/elastic/kibana/assets/5354282/962dd314-1ba9-4aa2-81c1-955c1c1f9036)\r\n\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)\r\n\r\n###
For maintainers\r\n\r\n- [ ] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by:
Georgii Gorbachev
<georgii.gorbachev@elastic.co>","sha":"532ac0604651dc7be83361653ddfb8d4682780c2"}},{"branch":"8.12","label":"v8.12.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Juan Pablo Djeredjian <jpdjeredjian@gmail.com>
@banderror
Copy link
Contributor

@shayfeld The bug has been fixed and the fix will be released in 8.12.2. Thank you for your patience and waiting for this fix since November last year.

@shayfeld
Copy link

Hey @banderror @jpdjere ,

I noticed the issue #176866. Could you confirm that it will be fixed in version 8.12.2?

CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this issue Feb 15, 2024
…s extremely long and when alias is present (elastic#176590)

Fixes: elastic#145076
Fixes: elastic#162543

## Summary

This PR solves two separate issues in the Filters component, used in the
Rule Details page.

1. **when rule filter is extremely long, the component would break the
layout of the whole page**: fixed by adding a styled wrapper component
to our About, Definition and Schedule section, [that allows wrapping of
extremely long text
`anywhere`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap).
This was precisely the issue that was breaking our layout when the
filters were extremely long, with the aggravating factor that the
filters were async loaded, and populated the component after the css was
loaded.
2. **when a rule filter had a name (alias) that should have been
displayed as a label instead of the actual filter**. This was like this
before 8.8, but was apparently lost during some refactoring. This PR
reintroduces that logic.

## Screenshots

### Broken page with long filters

#### Before

![image](https://github.com/elastic/kibana/assets/5354282/928f642d-fce2-4bd7-b0ee-2f318109777a)

#### After


![image](https://github.com/elastic/kibana/assets/5354282/dcac5f7b-c716-44c9-9f9c-124cd616bcf8)
**Mobile:**

![image](https://github.com/elastic/kibana/assets/5354282/a2ef0f17-2cab-49d9-99bd-0a9d3a712a2d)


#### Alias not showing as name

### Before

![image](https://github.com/elastic/kibana/assets/5354282/d68c7569-2f86-4f58-8b45-d67ee53e6821)
### After


![image](https://github.com/elastic/kibana/assets/5354282/f4f24427-8e82-4abe-9fa2-dbc8690dbb51)


## Browser compatibility

- Above screenshots are **Chrome**
- **Firefox**

![image](https://github.com/elastic/kibana/assets/5354282/e2ab0221-bfde-4544-afb2-6f5e1a4db0ff)

- **Safari**

![image](https://github.com/elastic/kibana/assets/5354282/962dd314-1ba9-4aa2-81c1-955c1c1f9036)



### 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)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co>
@jpdjere
Copy link
Contributor

jpdjere commented Feb 15, 2024

Hi @shayfeld

No, #176866 has not been worked on yet and won't be fixed on 8.12.2.

@banderror
Copy link
Contributor

@jpdjere @shayfeld I think there's a chance: #177081 🙂

@banderror
Copy link
Contributor

@shayfeld So we fixed #176866 but unfortunately #177081 didn't make it to 8.12.2 because this patch release has been pulled forward. The fix will be available in 8.13.0.

fkanout pushed a commit to fkanout/kibana that referenced this issue Mar 4, 2024
…s extremely long and when alias is present (elastic#176590)

Fixes: elastic#145076
Fixes: elastic#162543

## Summary

This PR solves two separate issues in the Filters component, used in the
Rule Details page.

1. **when rule filter is extremely long, the component would break the
layout of the whole page**: fixed by adding a styled wrapper component
to our About, Definition and Schedule section, [that allows wrapping of
extremely long text
`anywhere`](https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap).
This was precisely the issue that was breaking our layout when the
filters were extremely long, with the aggravating factor that the
filters were async loaded, and populated the component after the css was
loaded.
2. **when a rule filter had a name (alias) that should have been
displayed as a label instead of the actual filter**. This was like this
before 8.8, but was apparently lost during some refactoring. This PR
reintroduces that logic.

## Screenshots

### Broken page with long filters

#### Before

![image](https://github.com/elastic/kibana/assets/5354282/928f642d-fce2-4bd7-b0ee-2f318109777a)

#### After


![image](https://github.com/elastic/kibana/assets/5354282/dcac5f7b-c716-44c9-9f9c-124cd616bcf8)
**Mobile:**

![image](https://github.com/elastic/kibana/assets/5354282/a2ef0f17-2cab-49d9-99bd-0a9d3a712a2d)


#### Alias not showing as name

### Before

![image](https://github.com/elastic/kibana/assets/5354282/d68c7569-2f86-4f58-8b45-d67ee53e6821)
### After


![image](https://github.com/elastic/kibana/assets/5354282/f4f24427-8e82-4abe-9fa2-dbc8690dbb51)


## Browser compatibility

- Above screenshots are **Chrome**
- **Firefox**

![image](https://github.com/elastic/kibana/assets/5354282/e2ab0221-bfde-4544-afb2-6f5e1a4db0ff)

- **Safari**

![image](https://github.com/elastic/kibana/assets/5354282/962dd314-1ba9-4aa2-81c1-955c1c1f9036)



### 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)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.13 candidate bug Fixes for quality problems that affect the customer experience Feature:Rule Details Security Solution Detection Rule Details page impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. sdh-linked 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.12.2 v8.13.0
Projects
None yet
9 participants