mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* provide ui settins client via context * update mocks * update types and expose setDefaults to plugins * move ui settings routes to NP * add typings fro test kbn server * move integration test & improve typings * hide client private methods, update tests * add unit tests for get_upgradable_config * inline writeErrors into createOrUpgradeConfig to simplify testing * regen docs * add functional tests for ui_settings service * unify test suites * add types for sipertest in core_plugin tests * tsify core_plugins tests * add test for empty saved config * update renovate * rename get/setDefaults to reguster * regen docs * regen docs * Update src/core/MIGRATION.md Co-Authored-By: Josh Dover <me@joshdover.com>
1.5 KiB
1.5 KiB
Home > kibana-plugin-server > RequestHandlerContext
RequestHandlerContext interface
Plugin specific context passed to a route handler.
Provides the following clients: - savedObjects.client - Saved Objects client which uses the credentials of the incoming request - elasticsearch.dataClient - Elasticsearch data client which uses the credentials of the incoming request - elasticsearch.adminClient - Elasticsearch admin client which uses the credentials of the incoming request
Signature:
export interface RequestHandlerContext
Properties
Property | Type | Description |
---|---|---|
core | { savedObjects: { client: SavedObjectsClientContract; }; elasticsearch: { dataClient: IScopedClusterClient; adminClient: IScopedClusterClient; }; uiSettings: { client: IUiSettingsClient; }; } |