-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Security solution][Alerts] Fix custom field grouping #229956
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][Alerts] Fix custom field grouping #229956
Conversation
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
|
PhilippeOberti
left a comment
There was a problem hiding this 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!
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16649133924 |
## 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)
## 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)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#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>
…#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>
## 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
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