kibana/test
Tim Sullivan 160058a8c1
[search/public] expose showWarnings(inspector) method on search service (#138342)
* add showWarning to search service

* add comments

* add unit tests

* test foo

* cleanup

* add s to property name in test

* comments for api items

* use the warnings when calling showWarnings

* change showWarning to just show a single warning

* put handleWarnings on the request adapter

* comment

* simplify 1

* fix lens unit test

* remove underscoring for unused variables

* revert inspector changes, extract the response warnings in the search service

* fix bug

* remove console.log

* re-apply typescript fixes to app test code

* declutter

* add test, improve comments

* fix some unexported public api items

* include rawResponse in the warning structure

* fix lint

* tweak clean up example app

* SearchResponseWarnings and SearchResponseWarningNotification

* fix export bug

* not include shardStats if there are no warnings

* Update src/plugins/data/common/search/types.ts

* simplify SearchResponseWarnings interface

* remove array copying

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* comments for api_docs

* simplify per feedback

* Pass callback to handleResponse in showWarnings

* export more public types

* update example to make possible to show shard failure

* pr cleanup

* eslint fix

* allow example app to not show default warnings

* move extractWarning and related types to inspector plugin

* wip functional test of example app

* fix test references

* finish functional test

* relocate extractWarnings back to search/fetch

* fix test

* remove need for isTimeout, isShardFailure

* ts fix

* improve test

* Change showWarnings to accept the RequestAdapter

* use showWarnings in vis_types/timeseries

* more tests

* use handle_warning name

* fix ts

* add reason field to SearchResponseWarning

* fix component snapshot

* update comments

* test cleanup

* fix test

* ensure notification appears only once

* fix and cleanup

* fix ts

* fix response.json bug

* use top-level type, and lower-level reason.type

* cleanup

* fix shard failure warning in tsvb per feedback

cc @flash1293

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-08-31 11:22:24 -07:00
..
accessibility Dashboard panel a11y tests refactoring and addition of missing tests (#139597) 2022-08-30 14:24:54 -04:00
analytics add flexible EBT Performance Metric Schema (#136395) 2022-08-03 15:21:24 +03:00
api_integration chore(NA): remove src folder requirement from packages (part 2) (#138476) 2022-08-30 15:57:35 +01:00
common [search/public] expose showWarnings(inspector) method on search service (#138342) 2022-08-31 11:22:24 -07:00
examples [search/public] expose showWarnings(inspector) method on search service (#138342) 2022-08-31 11:22:24 -07:00
functional [search/public] expose showWarnings(inspector) method on search service (#138342) 2022-08-31 11:22:24 -07:00
harden Add 'fork' to child_process hardening tests (#139222) 2022-08-23 07:53:28 -04:00
interactive_setup_api_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
interactive_setup_functional [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
interpreter_functional [Lens] fetching annotations: small fixes (#139695) 2022-08-31 13:01:11 +02:00
node_roles_functional Adds node.roles configuration & exposes via PluginInitializerContext (#135272) 2022-06-28 15:22:43 -07:00
package set NODE_ENV=production for bin/* (#139649) 2022-08-30 09:01:51 -05:00
plugin_functional Move client-side application service to packages (#139502) 2022-08-30 10:08:44 -07:00
scripts [QA] Drop dead code (#136639) 2022-07-20 16:18:25 +01:00
server_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
ui_capabilities/newsfeed_err [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
visual_regression Revert "Remove percy based visual regression tests (#136359)" (#136437) 2022-07-14 14:53:12 -05:00
tsconfig.json [EBT] Better FTR helper APIs (#135298) 2022-06-29 14:11:13 +02:00