kibana/x-pack/plugins/timelines/server
Devin W. Hurley 9c4f99d8c1
[Security Solution] [Sourcerer] Replaces references to sourcerer search strategy with api provided by kibana data views plugin (#149360)
## Summary

Original outline: https://github.com/elastic/kibana/issues/138181

Issues outlining the objective of this pr:
https://github.com/elastic/kibana/issues/142903 and
https://github.com/elastic/kibana/issues/142907


#### Overview

Since the data views plugin was introduced, maintaining our own apis for
fetching sourcerer saved objects (data views) and additional types has
become cumbersome and inefficient. The data views plugin provides both
an efficient caching of data view saved objects and a unified interface
for creating ad-hoc data views (see the changes to the `useFetchIndex`
hook in this PR) so that our code can now rely on a single type of saved
object to interface with when fetching data.

This PR is another step towards replacing sourcerer with the data view
picker provided by kibana platform (which benefits users by maintaining
consistency around data source selection UX) and additionally provides
benefits to developers in the security solution by allowing us to reduce
state-management complexity in components that rely on old
`indexPattern` types or data view types.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-25 18:00:25 -04:00
..
search_strategy [Security Solution] [Sourcerer] Replaces references to sourcerer search strategy with api provided by kibana data views plugin (#149360) 2023-04-25 18:00:25 -04:00
utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
index.ts fix all violations 2022-04-16 01:37:30 -05:00
plugin.ts [Security Solution] [Trigger Actions] Alert Table Refactoring (#149128) 2023-02-22 10:04:21 -07:00
types.ts fix all violations 2022-04-16 01:37:30 -05:00