kibana/test
Maja Grubic 53036698cb
[7.x] [Discover] Use fields API to retrieve fields (#83891) (#88493)
* [Discover] Use fields API to retrieve fields (#83891)

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* [PoC] reading from the fields API in Discover

* Add N fields as a default column

* Make fields column non-removeable

* Do not add 'fields' to state

* Remove fields from app state and read from source when needed

* Remove fields column if a new column is added

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* Improve error handling in search examples plugin.

* Add unit tests for legacy behavior.

* Remove uiSettings feature flag; add fieldsFromSource config.

* Rewrite flatten() based on final API design.

* Update example app based on final API design.

* Update maps app to use legacy fieldsFromSource.

* Update Discover to use legacy fieldsFromSource.

* Rename source filters to field filters.

* Address feedback.

* Update generated docs.

* Update maps functional test.

* Formatting fields column similar to _source

* Moving logic for using search API to updating search source

* Fix small merge error

* Move useSource switch to Discover section of advanced settings

* Do not use fields and source at the same time

* Remove unmapped fields switch

* Add basic support for grouping multifields

* Remove output.txt

* Fix some merge leftovers

* Fix some merge leftovers

* Fix merge errors

* Fix typescript errors and update nested fields logic

* Add a unit test

* Fixing field formats

* Fix multifield selection logic

* Request all fields from source

* Fix eslint

* Fix default columns when switching between _source and fields

* More unit tests

* Update API changes

* Add unit test for discover field details footer

* Remove unused file

* Remove fields formatting from index pattern

* Remove unnecessary check

* Addressing design comments

* Fixing fields column display and renaming it to Document

* Adding more unit tests

* Adding a missing check for useNewFieldsAPI; minor fixes

* Fixing typescript error

* Remove unnecessary console statement

* Add missing prop

* Fixing import order

* Adding functional test to test fields API

* [Functional test] Clean up in after

* Fixing context app

* Addressing PR comments

* Updating failed snapshot

* Addressing PR comments

* Fixing i18n translations, updating type

* Addressing PR comments

* Updating a functional test

* Add a separate functional test for fields API

* Read fields from source in a functional test

* Skip buggy test

* Use default behavior in functional tests

* Fixing remaining failing tests

* Fixing date-nanos test

* Updating FLS test

* Fixing yet another functional test

* Skipping non-relevant tests

* Fixing more tests

* Update stub import in test

* Fix import

* Fix invalid import

Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/functional/apps/security/doc_level_security_roles.js
#	x-pack/test/functional/apps/security/field_level_security.js

* Fixing failing functional tests

* Fixing failing functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-19 16:12:26 +00:00
..
accessibility A11y tests for roles page (#79900) (#88619) 2021-01-18 17:47:31 -05:00
api_integration [TSVB] Validation telemetry removal (#87848) (#88304) 2021-01-14 12:33:58 +03:00
common [7.x] Do not embedd credentials into ES URL and enable anonymous tests. (#88005) 2021-01-12 16:09:29 +01:00
examples Fix advanced settings API integration tests on cloud (#84110) (#84208) 2020-11-24 16:03:31 +01:00
functional [7.x] [Discover] Use fields API to retrieve fields (#83891) (#88493) 2021-01-19 16:12:26 +00:00
harden [7.x] chore(NA): upgrade to lodash@4 (#69868) (#70683) 2020-07-03 04:40:17 +01:00
interpreter_functional [Core] Remove public context (#88448) (#88629) 2021-01-19 09:19:54 +01:00
new_visualize_flow [7.x] [Index patterns] Remove field cache (#82223) (#84109) 2020-11-23 15:57:11 -06:00
plugin_functional [Core] Remove public context (#88448) (#88629) 2021-01-19 09:19:54 +01:00
scripts chore(NA): remove mocha junit ci integrations (#88129) (#88534) 2021-01-16 00:01:29 +00:00
security_functional Warn users when security is not configured (#78545) (#79596) 2020-10-05 21:35:23 -04:00
server_integration Cleanup tsconfig files (#84396) (#84568) 2020-11-30 23:30:31 +01:00
typings bump query-string version to remove manual type definitions (#78143) (#78441) 2020-09-24 19:12:33 +02:00
ui_capabilities/newsfeed_err update code style 2020-05-22 10:35:02 +02:00
visual_regression [7.x] chore(NA): upgrade to lodash@4 (#69868) (#70683) 2020-07-03 04:40:17 +01:00
tsconfig.json chore(NA): remove mocha junit ci integrations (#88129) (#88534) 2021-01-16 00:01:29 +00:00