-
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
[Discover] Use fields API to retrieve fields #83891
Merged
majagrubic
merged 101 commits into
elastic:master
from
majagrubic:discover-ssource-fields
Jan 15, 2021
Merged
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
a232550
Add search source to example plugin.
lukeelmers ba796e0
Add uiSetting for fields API.
lukeelmers 9fbcc82
Update SearchSource to support fields API.
lukeelmers 5afd264
[PoC] reading from the fields API in Discover
ac1e273
Add N fields as a default column
e6f2a22
Make fields column non-removeable
c420e96
Merge master
8ad5f99
Do not add 'fields' to state
64f0868
Remove fields from app state and read from source when needed
b843d33
Remove fields column if a new column is added
1a3196d
Add search source to example plugin.
lukeelmers 0cf84e4
Add uiSetting for fields API.
lukeelmers ad23b7f
Update SearchSource to support fields API.
lukeelmers 3681311
Improve error handling in search examples plugin.
lukeelmers 5ac33bb
Add unit tests for legacy behavior.
lukeelmers 9e6c89f
Remove uiSettings feature flag; add fieldsFromSource config.
lukeelmers d34ab66
Rewrite flatten() based on final API design.
lukeelmers 4773949
Update example app based on final API design.
lukeelmers d272609
Update maps app to use legacy fieldsFromSource.
lukeelmers 30c7c5f
Update Discover to use legacy fieldsFromSource.
lukeelmers 24a5f9d
Rename source filters to field filters.
lukeelmers 9c7a967
Address feedback.
lukeelmers 5c124f8
Update generated docs.
lukeelmers 79e59a8
Update maps functional test.
lukeelmers f7d304b
Formatting fields column similar to _source
4053bf1
Merge upstream
ee33143
Moving logic for using search API to updating search source
e3ace69
Fix small merge error
84136f6
Merge branch 'master' into feat/ssource-fields
kibanamachine 804c5f8
Merge branch 'feat/ssource-fields' of https://github.com/lukeelmers/k…
29fe624
Move useSource switch to Discover section of advanced settings
900637b
Do not use fields and source at the same time
9fc9517
Remove unmapped fields switch
92253eb
Add basic support for grouping multifields
00d6c68
Merge master
5e6162c
Remove output.txt
e16cdcb
Fix some merge leftovers
5e0f998
Fix some merge leftovers
9791498
Merge branch 'master' into discover-ssource-fields
63e49d4
Fix merge errors
a80d44d
Fix typescript errors and update nested fields logic
60119b9
Add a unit test
8583723
Fixing field formats
e21e478
Merge master
5108654
Fix multifield selection logic
448bc7a
Request all fields from source
dc5f148
Fix eslint
f260376
Fix default columns when switching between _source and fields
a2273f7
Merge branch 'master' into discover-ssource-fields
c8c4f47
More unit tests
57319da
Update API changes
d07b676
Add unit test for discover field details footer
50f57ef
Remove unused file
6990015
Remove fields formatting from index pattern
0965f30
Remove unnecessary check
ab4edb4
Addressing design comments
be9b9f4
Merge branch 'master' into discover-ssource-fields
1a6c620
Fixing fields column display and renaming it to Document
95ea135
Adding more unit tests
fc12250
Adding a missing check for useNewFieldsAPI; minor fixes
eb309ee
Fixing typescript error
b7a79d6
Remove unnecessary console statement
2b63157
Add missing prop
0f65832
Merge branch 'master' into discover-ssource-fields
kibanamachine fad95e7
Fixing import order
d3d38ef
Merge branch 'master' into discover-ssource-fields
kibanamachine e374d6f
Adding functional test to test fields API
5efe636
[Functional test] Clean up in after
24ab2ae
Fixing context app
88e81f0
Addressing PR comments
711c757
Merge branch 'master' into discover-ssource-fields
f03e800
Updating failed snapshot
0d150e6
Addressing PR comments
06112da
Fixing i18n translations, updating type
5eb9917
Addressing PR comments
b5bfbc0
Merge branch 'master' into discover-ssource-fields
3ac1ec3
Resolving merge conflicts
72fd6d5
Updating a functional test
1e85041
Add a separate functional test for fields API
1e1d313
Merge branch 'master' into discover-ssource-fields
kibanamachine 88e07b4
Merge branch 'master' into discover-ssource-fields
kibanamachine e893b93
Read fields from source in a functional test
b917a39
Skip buggy test
67606c2
Use default behavior in functional tests
6ea034e
Fixing remaining failing tests
5083d44
Fixing date-nanos test
b1a7158
Updating FLS test
a16bebd
Merge master
756d240
Fixing yet another functional test
64a57df
Skipping non-relevant tests
f677240
Fixing more tests
ca8e798
Merge master
36251a8
Merge branch 'master' into discover-ssource-fields
kibanamachine 8424d71
Merge branch 'master' into discover-ssource-fields
kibanamachine 1caa777
Merge branch 'master' into discover-ssource-fields
290dfdf
Update stub import in test
27d77d6
Merge branch 'discover-ssource-fields' of https://github.com/majagrub…
02c37cf
Fix import
0eec11a
Fix invalid import
f1bd9e7
Merge branch 'master' into discover-ssource-fields
kibanamachine a37612a
Merge branch 'master' into discover-ssource-fields
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
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.
Could you shortly explain me, in what case we would come here with
useNewFieldsApi == true
andfieldsFromSource
has been set? Looking at the rest of the code, it looks like when we're using this flag, we will always already set the fields instead of the fieldsFromSource?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.
If you enable
useNewFieldsApi
, then disable it, then enable it again -fieldsFromSource
will still be set on search source and the request will include_source
fields.