Skip to content

Conversation

@NicholasPeretti
Copy link
Contributor

@NicholasPeretti NicholasPeretti commented Jul 30, 2025

Summary

Fixes #229844

🛑 The problem

As shown in #229844, the "custom field" grouping option was not properly working for users. Here's a video of the bug:

Screen.Recording.2025-07-29.at.16.44.42.mov

💡 The solution

As @christineweng suggested in the mentioned issue, the problem occurred because the code was not checking if the new data view was actually enabled via feature flag before using it.

All we had to do was to add the feature flag check and everything is back to normal now. Here's a video of the UI after the fix:

Screen.Recording.2025-07-30.at.13.39.50.mov

@NicholasPeretti NicholasPeretti self-assigned this Jul 30, 2025
@NicholasPeretti NicholasPeretti requested a review from a team as a code owner July 30, 2025 12:41
@NicholasPeretti NicholasPeretti added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team labels Jul 30, 2025
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #75 / discover - group 3 discover field visualize button should visualize correctly using breakdown field

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 9.8MB 9.8MB +50.0B

cc @NicholasPeretti

Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

I love those types of fixes, thanks!

@PhilippeOberti PhilippeOberti added backport:version Backport to applied version labels v9.2.0 v9.1.1 v8.19.1 labels Jul 31, 2025
@NicholasPeretti NicholasPeretti merged commit 22890e6 into elastic:main Jul 31, 2025
30 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16649133924

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 31, 2025
## Summary

Fixes elastic#229844

### 🛑 The problem

As shown in elastic#229844, the "custom field" grouping option was not properly
working for users. Here's a video of the bug:

https://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc

### 💡 The solution

As @christineweng suggested in the mentioned issue, the problem occurred
because the code was not checking if the new data view was actually
enabled via feature flag before using it.

All we had to do was to add the feature flag check and everything is
back to normal now. Here's a video of the UI after the fix:

https://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c
(cherry picked from commit 22890e6)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 31, 2025
## Summary

Fixes elastic#229844

### 🛑 The problem

As shown in elastic#229844, the "custom field" grouping option was not properly
working for users. Here's a video of the bug:

https://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc

### 💡 The solution

As @christineweng suggested in the mentioned issue, the problem occurred
because the code was not checking if the new data view was actually
enabled via feature flag before using it.

All we had to do was to add the feature flag check and everything is
back to normal now. Here's a video of the UI after the fix:

https://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c
(cherry picked from commit 22890e6)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

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 Jul 31, 2025
#230070)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Security solution][Alerts] Fix custom field grouping
(#229956)](#229956)

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

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

<!--BACKPORT [{"author":{"name":"Nicholas
Peretti","email":"nicholas.peretti@elastic.co"},"sourceCommit":{"committedDate":"2025-07-31T12:35:23Z","message":"[Security
solution][Alerts] Fix custom field grouping (#229956)\n\n##
Summary\n\nFixes #229844\n\n### 🛑 The problem\n\nAs shown in #229844,
the \"custom field\" grouping option was not properly\nworking for
users. Here's a video of the
bug:\n\n\nhttps://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc\n\n###
💡 The solution\n\nAs @christineweng suggested in the mentioned issue,
the problem occurred\nbecause the code was not checking if the new data
view was actually\nenabled via feature flag before using it.\n\nAll we
had to do was to add the feature flag check and everything is\nback to
normal now. Here's a video of the UI after the
fix:\n\n\n\nhttps://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c","sha":"22890e612f295301bd3808121b58031db36c21e6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:
SecuritySolution","Team:Threat
Hunting:Investigations","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[Security
solution][Alerts] Fix custom field
grouping","number":229956,"url":"https://github.com/elastic/kibana/pull/229956","mergeCommit":{"message":"[Security
solution][Alerts] Fix custom field grouping (#229956)\n\n##
Summary\n\nFixes #229844\n\n### 🛑 The problem\n\nAs shown in #229844,
the \"custom field\" grouping option was not properly\nworking for
users. Here's a video of the
bug:\n\n\nhttps://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc\n\n###
💡 The solution\n\nAs @christineweng suggested in the mentioned issue,
the problem occurred\nbecause the code was not checking if the new data
view was actually\nenabled via feature flag before using it.\n\nAll we
had to do was to add the feature flag check and everything is\nback to
normal now. Here's a video of the UI after the
fix:\n\n\n\nhttps://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c","sha":"22890e612f295301bd3808121b58031db36c21e6"}},"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/229956","number":229956,"mergeCommit":{"message":"[Security
solution][Alerts] Fix custom field grouping (#229956)\n\n##
Summary\n\nFixes #229844\n\n### 🛑 The problem\n\nAs shown in #229844,
the \"custom field\" grouping option was not properly\nworking for
users. Here's a video of the
bug:\n\n\nhttps://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc\n\n###
💡 The solution\n\nAs @christineweng suggested in the mentioned issue,
the problem occurred\nbecause the code was not checking if the new data
view was actually\nenabled via feature flag before using it.\n\nAll we
had to do was to add the feature flag check and everything is\nback to
normal now. Here's a video of the UI after the
fix:\n\n\n\nhttps://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c","sha":"22890e612f295301bd3808121b58031db36c21e6"}},{"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: Nicholas Peretti <nicholas.peretti@elastic.co>
kibanamachine added a commit that referenced this pull request Jul 31, 2025
…#230072)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Security solution][Alerts] Fix custom field grouping
(#229956)](#229956)

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

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

<!--BACKPORT [{"author":{"name":"Nicholas
Peretti","email":"nicholas.peretti@elastic.co"},"sourceCommit":{"committedDate":"2025-07-31T12:35:23Z","message":"[Security
solution][Alerts] Fix custom field grouping (#229956)\n\n##
Summary\n\nFixes #229844\n\n### 🛑 The problem\n\nAs shown in #229844,
the \"custom field\" grouping option was not properly\nworking for
users. Here's a video of the
bug:\n\n\nhttps://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc\n\n###
💡 The solution\n\nAs @christineweng suggested in the mentioned issue,
the problem occurred\nbecause the code was not checking if the new data
view was actually\nenabled via feature flag before using it.\n\nAll we
had to do was to add the feature flag check and everything is\nback to
normal now. Here's a video of the UI after the
fix:\n\n\n\nhttps://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c","sha":"22890e612f295301bd3808121b58031db36c21e6","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:
SecuritySolution","Team:Threat
Hunting:Investigations","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[Security
solution][Alerts] Fix custom field
grouping","number":229956,"url":"https://github.com/elastic/kibana/pull/229956","mergeCommit":{"message":"[Security
solution][Alerts] Fix custom field grouping (#229956)\n\n##
Summary\n\nFixes #229844\n\n### 🛑 The problem\n\nAs shown in #229844,
the \"custom field\" grouping option was not properly\nworking for
users. Here's a video of the
bug:\n\n\nhttps://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc\n\n###
💡 The solution\n\nAs @christineweng suggested in the mentioned issue,
the problem occurred\nbecause the code was not checking if the new data
view was actually\nenabled via feature flag before using it.\n\nAll we
had to do was to add the feature flag check and everything is\nback to
normal now. Here's a video of the UI after the
fix:\n\n\n\nhttps://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c","sha":"22890e612f295301bd3808121b58031db36c21e6"}},"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/229956","number":229956,"mergeCommit":{"message":"[Security
solution][Alerts] Fix custom field grouping (#229956)\n\n##
Summary\n\nFixes #229844\n\n### 🛑 The problem\n\nAs shown in #229844,
the \"custom field\" grouping option was not properly\nworking for
users. Here's a video of the
bug:\n\n\nhttps://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc\n\n###
💡 The solution\n\nAs @christineweng suggested in the mentioned issue,
the problem occurred\nbecause the code was not checking if the new data
view was actually\nenabled via feature flag before using it.\n\nAll we
had to do was to add the feature flag check and everything is\nback to
normal now. Here's a video of the UI after the
fix:\n\n\n\nhttps://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c","sha":"22890e612f295301bd3808121b58031db36c21e6"}},{"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: Nicholas Peretti <nicholas.peretti@elastic.co>
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
## Summary

Fixes elastic#229844

### 🛑 The problem

As shown in elastic#229844, the "custom field" grouping option was not properly
working for users. Here's a video of the bug:


https://github.com/user-attachments/assets/93da6835-8fba-4c1e-adcf-06c05080b5dc

### 💡 The solution

As @christineweng suggested in the mentioned issue, the problem occurred
because the code was not checking if the new data view was actually
enabled via feature flag before using it.

All we had to do was to add the feature flag check and everything is
back to normal now. Here's a video of the UI after the fix:



https://github.com/user-attachments/assets/14453957-0c00-430e-b572-cb2666ab774c
@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
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 bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Investigations Security Solution Threat Hunting Investigations Team v8.19.0 v8.19.1 v9.1.1 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security solution][Bug] Custom field grouping in Alerts table is not available unless already grouped

4 participants