-
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][Sourcerer] Replace Sourcerer with Discover Data View Picker #210585
Open
lgestc
wants to merge
96
commits into
elastic:main
Choose a base branch
from
lgestc:discover_dp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,929
−126
Open
Changes from all commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
6a1d3e3
--wip-- [skip ci]
lgestc f26acdf
--wip-- [skip ci]
lgestc cc44f6c
--wip-- [skip ci]
lgestc d0c1970
--wip-- [skip ci]
lgestc 99f434a
--wip-- [skip ci]
lgestc 85d7233
--wip-- [skip ci]
lgestc 73db16d
--wip-- [skip ci]
lgestc eadb7e6
--wip-- [skip ci]
lgestc a0b30c7
--wip-- [skip ci]
lgestc 73ee667
--wip-- [skip ci]
lgestc df8d885
--wip-- [skip ci]
lgestc 6cf58d6
fix stephbeat
lgestc c39eb3b
--wip-- [skip ci]
lgestc 7020ef4
--wip-- [skip ci]
lgestc 3d47008
--wip-- [skip ci]
lgestc 83667ba
--wip-- [skip ci]
lgestc 28aa4f0
--wip-- [skip ci]
lgestc f92eab5
--wip-- [skip ci]
lgestc 0805163
--wip-- [skip ci]
lgestc aeeaf71
--wip-- [skip ci]
lgestc f49c643
fix types
lgestc 1f4aebf
Merge branch 'main' into discover_dp
lgestc 63054f5
remove todo
lgestc c7e0665
fixing tests
lgestc f261ab8
remove unused import
lgestc 8c3e9a0
--wip-- [skip ci]
lgestc 23439aa
--wip-- [skip ci]
lgestc 770993c
--wip-- [skip ci]
lgestc fa80256
fix data view test
lgestc 2baf50b
fix create timeline tests
lgestc 40b395c
fix unit tests
lgestc c26acc7
fix timeline pages tests
lgestc 1de086e
fix header tests
lgestc b088e6b
fix tests
lgestc c85dec4
Merge branch 'main' into discover_dp
lgestc 09daf62
fix new timeline button tests
lgestc 829f255
update unified tests
lgestc 639fee5
Merge branch 'main' into discover_dp
lgestc 8e1dee0
support prefilling multiple scopes
lgestc 10c8e8e
--wip-- [skip ci]
lgestc 1b8774f
fix broken test
lgestc d58905c
Merge branch 'main' into discover_dp
lgestc 0fc0db5
--wip-- [skip ci]
lgestc 77be180
--wip-- [skip ci]
lgestc 19a8011
skip osquery test
lgestc 83b194a
fix flyout e2e
lgestc 3b25db5
remove useEffect
lgestc 815ba6e
fixing more tests
lgestc ac38c51
Merge branch 'main' into discover_dp
lgestc 0e1e7a0
skip use_show_timeline tests based on the useDataView
lgestc d3814a0
skip test that should no longer apply to current sourcerer logic
lgestc 0506aac
revert unused change
lgestc ed274ee
Merge branch 'main' into discover_dp
lgestc 1ec5817
revert changes made to the timeline
lgestc d503cb6
Merge branch 'main' into discover_dp
lgestc 3e0c647
add feature flag
lgestc 90c5561
put the new dataview picker behind a flag
lgestc 0f95d1e
Merge branch 'main' into discover_dp
lgestc 4540f96
fix tests
lgestc abf09aa
fix tests
lgestc b3ecd5b
more test fixing
lgestc 61e0787
fix more tests
lgestc 787a836
fix esql test
lgestc 871e2a3
add redux tests
lgestc eaabb1a
preload default data view for all scopes
lgestc ce3e2b6
fix tests
lgestc 90fd3ae
more tests
lgestc 128bfb9
add use_browser_fields test
lgestc 517b20b
more tests
lgestc 79868ca
add init listener test
lgestc 742c340
add missing tests
lgestc 1e82688
add useDataView test
lgestc dd84f99
more tests
lgestc bec10ae
more tests
lgestc ddf2573
Merge branch 'main' into discover_dp
lgestc 5f68a90
add error test
lgestc baecafd
linter errors
lgestc 38df1eb
Merge branch 'main' into discover_dp
lgestc 119d6a2
remove middleware from data view picker
lgestc 6ff0437
usecallback instead of usememo
lgestc d31acdc
fix shared loading state
lgestc 5ac74b7
naming
lgestc bac953a
naming
lgestc 7b9b2df
naming
lgestc c96766b
naming
lgestc f5beeca
update readme
lgestc a6381fd
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine b804725
naming
lgestc 23f23d6
remove eslint overrides
lgestc b904a03
use isEmpty from lodash
lgestc 8eb497e
docs
lgestc 33406cf
Merge branch 'main' into discover_dp
lgestc 082fc42
remove indicesExist from the data view manager api
lgestc 069393d
use isEmpty
lgestc ded2d6e
cache full data view
lgestc 1cf669e
simplify useFullDataView api
lgestc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Nothing wrong with this pattern, but do you think using something like context would be better? Just a quick note, but still working through the code
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.
HOCs in general are much harder to reason about imo compared to hooks, and introduce unique to this pattern issues. ComponentWithDataView can and should be memoized, we should also make it a pattern to preserve the displayName of the passed in component, the amount of unknowns popping up in the tree is beginning to be a little confusing. Full suggestion: