-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Disable filter cellActions for unmapped fields on Alerts table #154714
Comments
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
auto-closed by mistake |
The team discussed this bug, and we think that it isn't a The bug happens when a field is not mapped on the alert's index but it is mapped on another index in the security data view. It happens because the alerts table uses a security data view but only searches on the alert's index. So the root problem is how Dataview is configured for the Alerts table. This bug isn't something exclusive to Jul-03-2023.11-51-45.mov |
related: #171059 |
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
After looking at this for a few days, I an conviced that the data view selected in the sourcerer does not impact the pattern list used to retrieve the browser fields for the alerts table. After forcing the data view to be the new one in security solution codebase, I am still getting over 2k fields: Regardless of the new the title (aka. the index pattern string) here: remains the same, which results in all the security solution fields rendered as compatible with the alerts table view. After the pattern is explitly set to Draft pr where I set the pattern explicitly when the |
on hold until the we refactor data view selection |
Summary
bug: https://github.com/elastic/sdh-security-team/issues/549
epic: #144943
Filter actions are not working properly on the Alerts page for fields that are not mapped in the alert's index.
This problem was not been introduced by the cell-actions package, it was carried with the migration from SecuritySolution hoverActions. A fix for the cell-actions package would be the following.
Fix description
This fix will need to be done after we adoptFieldSpec
(#150347 (comment)) for the field type of the actions, we'll be able to check theisMapped
flag in the action'sisCompatible
function to decide if the FilterIn/Out actions should be displayed or hide.To define the value of theisMapped
prop we'll have to do a lookup of theindexes
array of the field in thebrowserFields
data, and check if the alert's index is present.Update
The bug happens when a field is not mapped on the alert's index but it is mapped on another index in the security data view.
The sorcerer API returns that the field is mapped but fails when we search on the Alerts index.
The text was updated successfully, but these errors were encountered: