[Security Solution][Attacks/Alerts] Add a possibility to see both filtered out along the filtered in alerts (#17468)#271975
Open
e40pud wants to merge 3 commits into
Conversation
…tered out along the filtered in alerts (elastic#17468)
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
Contributor
Author
|
/ci |
Contributor
💛 Build succeeded, but was flaky
Failed CI Steps
Metrics [docs]Module Count
Async chunks
History
cc @e40pud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes https://github.com/elastic/security-team/issues/17468.
This PR implements the "always show all alerts" behavior on the Unified Attacks page, in accordance with the design team's recommendations.
By default, the Alerts Tab within an attack's details will now display all alerts associated with the attack, regardless of active grouping filters. Alerts that do not match the current filters are visually de-emphasized using a grey background (the
Base/Disabledcolor).Key changes:
use_filtered_related_alert_idshook to determine which alert IDs match the active filters.AlertsTabto override the nativeAlertsTablequery with all attack alert IDs, and selectively highlight rows that have been filtered out.EuiCallOutabove the table to explain the filtering behavior ("This filter applies to attacks, not individual alerts. Grey rows may not include the filtered field.") when grouping filters are applied and at least one alert is filtered out.EuiSwitchinside the callout to allow users to toggle back to the "Show matching alerts only" mode.useLocalStorage.AttacksEventTypes.ViewOptionChanged) for when the "Show matching alerts only" toggle is interacted with, capturing the option name asshowMatchingAlertsOnly.Verification Steps
Screenshots
PR developed with Cursor + Gemini 3.1 Pro