kibana/examples
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
..
bfetch_explorer chore(NA): eslint rule for disallowing naked eslint-disable (#136408) 2022-07-19 17:11:04 +01:00
dashboard_embeddable_examples fix all violations 2022-04-16 01:37:30 -05:00
data_view_field_editor_example [Data views] Add pre-configuration options to runtime field editor fly-out (#136769) 2022-07-22 10:30:01 -07:00
developer_examples fix all violations 2022-04-16 01:37:30 -05:00
embeddable_examples [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
embeddable_explorer fix all violations 2022-04-16 01:37:30 -05:00
expressions_explorer fix all violations 2022-04-16 01:37:30 -05:00
field_formats_example [eslint] fix and skip violations for cross-boundary imports (#136911) 2022-07-29 13:57:55 -05:00
hello_world fix all violations 2022-04-16 01:37:30 -05:00
locator_examples fix all violations 2022-04-16 01:37:30 -05:00
locator_explorer fix all violations 2022-04-16 01:37:30 -05:00
partial_results_example [expressions] remove root-level redirect, import from common (#136997) 2022-07-25 08:07:43 -07:00
preboot_example Migrate types to packages: Client-side HTTP service (#135562) 2022-07-11 12:25:55 -07:00
response_stream [ML] Explain Log Rate Spikes: Fix error handling. (#137947) 2022-08-04 15:23:36 +02:00
routing_example Migrate types to packages: Client-side HTTP service (#135562) 2022-07-11 12:25:55 -07:00
screenshot_mode_example Change ContextContainer to lazily initialize providers (#129896) 2022-04-22 13:15:58 +02:00
search_examples [search/public] expose showWarnings(inspector) method on search service (#138342) 2022-08-31 11:22:24 -07:00
share_examples fix all violations 2022-04-16 01:37:30 -05:00
state_containers_examples Remove deprecated es-query re-imports from data plugin (#134600) 2022-06-21 04:09:44 -07:00
ui_action_examples fix all violations 2022-04-16 01:37:30 -05:00
ui_actions_explorer fix all violations 2022-04-16 01:37:30 -05:00
user_profile_examples Sync UserProfile interface in kbn/user-profile-components package with the one in Security plugin. (#138704) 2022-08-12 12:56:13 -07:00
README.asciidoc Add a few asciidoc readmes (#72082) 2020-07-17 11:08:57 -04:00

[[example-plugins]]
== Example plugins

This folder contains example plugins.  To run the plugins in this folder, use the `--run-examples` flag, via

[source,bash]
----
yarn start --run-examples
----