kibana/x-pack/test/security_solution_endpoint
Jatin Kathuria fbccec8fdd
[Security Solution] Discover-Timeline Integration saved search (#165596)
This PR is next step completing discover timeline integration. All
previous/nest steps have been defined here:
https://github.com/elastic/security-team/issues/6677

## Summary
This PR implements the integration between timeline State v/s Discover
State. The purpose of this PR is to add functionality related to the
persistence of saved search which will always be linked to the timeline
user is working in.

Below diagram shows briefly how saved search is working with timeline.


```mermaid
graph TD;
    DS(Discover State) -. user updates .-> SS(Saved Search);
    SS(Saved Search) -. updates savedSearchId .-> TS(Timeline State) ;
    TS(Timeline State) -. restores Saved Search to App state .->DS(Discover State);

```


Primarily, this PR implements below technical components:

1. `DiscoverInTimleineContext` : provides the ability across security
solution to manipulate discover state.
2. `useDiscoverInTimelineActions`: acts as a helper to provide
short-hand actions to manipulate discover state. For eg.
`resetDiscoverAppState` or `restoreAppStateFromSavedSearch`.



Here is the small demo video:





006465ba-19ce-4209-ac46-21dbb746508d

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2023-09-28 11:20:47 -07:00
..
apps [Security Solution] Discover-Timeline Integration saved search (#165596) 2023-09-28 11:20:47 -07:00
page_objects [Security Solution][Endpoint] Fix flaky FTR test for endpoint respond console (#162711) 2023-07-28 14:59:56 -04:00
services [Defend Workflows] Unskip endpoint FTR tests (#161646) 2023-07-24 11:42:50 -07:00
endpoint.config.ts [Security solution] [Endpoint] Split endpoint FTR config (#159014) 2023-06-08 14:54:08 +02:00
ftr_provider_context.d.ts [kbn/test] move types/ftr into src (#99555) 2021-05-17 09:51:53 -07:00
integrations.config.ts [Security solution] [Endpoint] Split endpoint FTR config (#159014) 2023-06-08 14:54:08 +02:00