kibana/examples
Lukas Olson 8174b5ce29
[Search] Refactor service to register search strategies, not providers (#60342)
* Add async search strategy

* Add async search

* Fix async strategy and add tests

* Move types to separate file

* Revert changes to demo search

* Update demo search strategy to use async

* Add async es search strategy

* Return response as rawResponse

* Poll after initial request

* Add cancellation to search strategies

* Add tests

* Simplify async search strategy

* Move loadingCount to search strategy

* Update abort controller library

* Bootstrap

* Abort when the request is aborted

* Add utility and update value suggestions route

* Fix bad merge conflict

* Update tests

* Move to data_enhanced plugin

* Remove bad merge

* Revert switching abort controller libraries

* Revert package.json in lib

* Move to previous abort controller

* Add support for frozen indices

* Fix test to use fake timers to run debounced handlers

* Revert changes to example plugin

* Fix loading bar not going away when cancelling

* Call getSearchStrategy instead of passing  directly

* Add async demo search strategy

* Fix error with setting state

* Update how aborting works

* Fix type checks

* Add test for loading count

* Attempt to fix broken example test

* Revert changes to test

* Fix test

* Update name to camelCase

* Fix failing test

* Don't require data_enhanced in example plugin

* Actually send DELETE request

* Use waitForCompletion parameter

* Use default search params

* Add support for rollups

* Only make changes needed for frozen indices/rollups

* Only make changes needed for frozen indices/rollups

* Add back in async functionality

* Fix tests/types

* Fix issue with sending empty body in GET

* Don't include skipped in loaded/total

* Don't wait before polling the next time

* Add search interceptor for bulk managing searches

* Simplify search logic

* Fix merge error

* Review feedback

* UI to stop async searches

* Add service for running beyond timeout

* Refactor abort utils

* Remove unneeded changes

* Add tests

* Refactor search service to register strategies directly

* Remove accidental change

* re-generate docs

* Fix merge

* types

* doc

* eslint

* Fix async strategy jest test

* type fix

* Use getStartServices in search strategies

* Code review + snapshot

* eslint

* Type script

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
2020-06-08 21:22:09 +03:00
..
alerting_example Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
bfetch_explorer Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
demo_search [Search] Refactor service to register search strategies, not providers (#60342) 2020-06-08 21:22:09 +03:00
developer_examples Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
embeddable_examples apply prettier styles 2020-05-22 09:08:58 +02:00
embeddable_explorer Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
search_explorer Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
state_containers_examples Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
ui_action_examples more propagated bad examples (#66920) 2020-05-19 10:12:15 -04:00
ui_actions_explorer Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
url_generators_examples Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
url_generators_explorer Kibana developer examples landing page (#67049) 2020-06-08 09:47:51 -04:00
README.md bfetch (2) (#53711) 2020-01-16 05:33:52 -08:00

Example plugins

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

yarn start --run-examples