-
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] Timeline uses existing filter manager #111732
Conversation
@@ -155,6 +155,7 @@ export const addTimelineToStore = ({ | |||
return { | |||
...timelineById, | |||
[id]: { | |||
...(timelineById[id] ? timelineById[id] : {}), |
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.
action ADD_TIMELINE wiped out the filterManager we set when initialising t-grid
@@ -156,6 +156,7 @@ export const addTimelineToStore = ({ | |||
...timelineById, | |||
[id]: { | |||
...timeline, | |||
filterManager: timelineById[id].filterManager, |
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.
action ADD_TIMELINE wiped out the filterManager we set when initialising t-grid
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.
Awesome, thank you!
Pinging @elastic/security-solution (Team: SecuritySolution) |
[timelineId, activeFilterMananager, filterManagerBackup] | ||
() => | ||
timelineId === TimelineId.active | ||
? activeFilterManager ?? new FilterManager(uiSettings) |
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.
activeFilterManager could be undefined sometimes
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.
Tested locally and the issue no longer occurs in the timelines created from the alerts, timelines, rule details, or host pages.
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…1732) * use existing filterManager * remove unused default value * unit test * fix type Co-authored-by: Kibana Machine <[email protected]>
…1732) * use existing filterManager * remove unused default value * unit test * fix type Co-authored-by: Kibana Machine <[email protected]>
…111968) * use existing filterManager * remove unused default value * unit test * fix type Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Angela Chuang <[email protected]>
…111969) * use existing filterManager * remove unused default value * unit test * fix type Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Angela Chuang <[email protected]>
…1732) * use existing filterManager * remove unused default value * unit test * fix type Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # x-pack/plugins/security_solution/public/common/components/hover_actions/use_hover_action_items.tsx
…1732) (#112148) * [Security Solution] Timeline uses existing filter manager (#111732) * use existing filterManager * remove unused default value * unit test * fix type Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # x-pack/plugins/security_solution/public/common/components/hover_actions/use_hover_action_items.tsx * lint error
Summary
#106980
Steps to Reproduce
Checklist
Delete any items that are not applicable to this PR.