-
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
Manually building KueryNode
for Fleet's routes
#75693
Merged
Merged
Changes from 6 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8a490fd
Simple benchmark tests for kuery
kobelb 0c23f97
Building manually is "better" still not free
kobelb 3341219
Building the KueryNode manually
kobelb 062aaf2
Removing benchmark tests
kobelb 8bd226f
Another query is building the KueryNode manually
kobelb 070552c
Empty strings are inherently falsy
kobelb 225bb15
No longer reaching into the data plugin, import from the "root" indexes
kobelb 0ee4f45
Using AGENT_ACTION_SAVED_OBJECT_TYPE everywhere
kobelb 4cc972b
Merge remote-tracking branch 'upstream/master' into kuery-time
kobelb 6da0f32
Adding SavedObjectsRepository#find unit test for KueryNode
kobelb 7afb589
Adding KQL KueryNode test for validateConvertFilterToKueryNode
kobelb 130d5cf
/s/KQL string/KQL expression
kobelb 55051f8
Merge remote-tracking branch 'upstream/master' into kuery-time
kobelb 4ebbe98
Updating API docs
kobelb 97e19c0
Adding micro benchmark
kobelb aa14f7f
Revert "Adding micro benchmark"
kobelb 205dd30
Merge remote-tracking branch 'upstream/master' into kuery-time
kobelb 195a5a1
Adding an empty string filters test
kobelb f135722
Merge branch 'master' into kuery-time
elasticmachine 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
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.
NIT: we are no longer ignoring empty string filters, but I guess this has no impact?
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.
Empty strings are still ignored, I added 195a5a1#diff-c5ab35755205b8adbf6cfc858d69ea3bR86-R88 to double-check this. JavaScript treats an empty-string as being falsy, so checking
filter
andfilter.length > 0
is redundant, we only need to checkfilter
.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.
Wait what? Kibana is not Java 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.
Unfortunately, no... Maybe in the future though! New-new platform??
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.
We would need to find a more suitable codename if we switch to java. NewPlatformBijectiveAdapterFactory maybe.