-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Core] create deprecations service #94845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Bamieh
merged 37 commits into
elastic:master
from
Bamieh:core/expose_config_deprecations
Mar 30, 2021
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
9b1e734
core.deprecations service
Bamieh 3d82928
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh d1ea48b
update docs and names
Bamieh 4c94eb1
fix core tests
Bamieh 5f08e85
merge master
Bamieh b044c6a
update docs
Bamieh e5983fd
type_check
Bamieh 376ff36
more type check fixes
Bamieh 177ec43
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 87b0261
update snapshots
Bamieh 39903d6
update kbn-config tests
Bamieh 670c085
add public client
Bamieh 722cd6f
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 330948e
type check
Bamieh 9cc430a
update link
Bamieh 0ea9e81
update logging deprecations documentationUrls
Bamieh a1bfdbc
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 6bed551
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 87c32da
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh bacb636
code review changes
Bamieh 94d5129
add functional tests
Bamieh 6b0e96e
merge master
Bamieh 50f6285
udpate core public api
Bamieh 7a70415
update public docs
Bamieh 446c504
fix type check
Bamieh ca7f6ca
update docs
Bamieh f16a7b8
update docs
Bamieh 0800f22
fix test case
Bamieh a749ad7
code review changes
Bamieh 065f0a5
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 8a6cdcc
Merge branch 'master' into core/expose_config_deprecations
kibanamachine 4cdb5e8
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 0611d4a
Merge branch 'master' of github.com:elastic/kibana into core/expose_c…
Bamieh 61d49af
update tests
Bamieh 98a7350
Merge branch 'core/expose_config_deprecations' of github.com:Bamieh/k…
Bamieh 8a2cb0a
Merge branch 'master' into core/expose_config_deprecations
Bamieh 55c9889
fix eslint
Bamieh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
docs/development/core/public/kibana-plugin-core-public.corestart.deprecations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [CoreStart](./kibana-plugin-core-public.corestart.md) > [deprecations](./kibana-plugin-core-public.corestart.deprecations.md) | ||
|
|
||
| ## CoreStart.deprecations property | ||
|
|
||
| [DeprecationsServiceStart](./kibana-plugin-core-public.deprecationsservicestart.md) | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| deprecations: DeprecationsServiceStart; | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...public/kibana-plugin-core-public.deprecationsservicestart.getalldeprecations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [DeprecationsServiceStart](./kibana-plugin-core-public.deprecationsservicestart.md) > [getAllDeprecations](./kibana-plugin-core-public.deprecationsservicestart.getalldeprecations.md) | ||
|
|
||
| ## DeprecationsServiceStart.getAllDeprecations property | ||
|
|
||
| Grabs deprecations details for all domains. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| getAllDeprecations: () => Promise<DomainDeprecationDetails[]>; | ||
| ``` |
13 changes: 13 additions & 0 deletions
13
...re/public/kibana-plugin-core-public.deprecationsservicestart.getdeprecations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [DeprecationsServiceStart](./kibana-plugin-core-public.deprecationsservicestart.md) > [getDeprecations](./kibana-plugin-core-public.deprecationsservicestart.getdeprecations.md) | ||
|
|
||
| ## DeprecationsServiceStart.getDeprecations property | ||
|
|
||
| Grabs deprecations for a specific domain. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| getDeprecations: (domainId: string) => Promise<DomainDeprecationDetails[]>; | ||
| ``` |
13 changes: 13 additions & 0 deletions
13
...c/kibana-plugin-core-public.deprecationsservicestart.isdeprecationresolvable.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [DeprecationsServiceStart](./kibana-plugin-core-public.deprecationsservicestart.md) > [isDeprecationResolvable](./kibana-plugin-core-public.deprecationsservicestart.isdeprecationresolvable.md) | ||
|
|
||
| ## DeprecationsServiceStart.isDeprecationResolvable property | ||
|
|
||
| Returns a boolean if the provided deprecation can be automatically resolvable. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| isDeprecationResolvable: (details: DomainDeprecationDetails) => boolean; | ||
| ``` |
23 changes: 23 additions & 0 deletions
23
docs/development/core/public/kibana-plugin-core-public.deprecationsservicestart.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [DeprecationsServiceStart](./kibana-plugin-core-public.deprecationsservicestart.md) | ||
|
|
||
| ## DeprecationsServiceStart interface | ||
|
|
||
| DeprecationsService provides methods to fetch domain deprecation details from the Kibana server. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export interface DeprecationsServiceStart | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| | Property | Type | Description | | ||
| | --- | --- | --- | | ||
| | [getAllDeprecations](./kibana-plugin-core-public.deprecationsservicestart.getalldeprecations.md) | <code>() => Promise<DomainDeprecationDetails[]></code> | Grabs deprecations details for all domains. | | ||
| | [getDeprecations](./kibana-plugin-core-public.deprecationsservicestart.getdeprecations.md) | <code>(domainId: string) => Promise<DomainDeprecationDetails[]></code> | Grabs deprecations for a specific domain. | | ||
| | [isDeprecationResolvable](./kibana-plugin-core-public.deprecationsservicestart.isdeprecationresolvable.md) | <code>(details: DomainDeprecationDetails) => boolean</code> | Returns a boolean if the provided deprecation can be automatically resolvable. | | ||
| | [resolveDeprecation](./kibana-plugin-core-public.deprecationsservicestart.resolvedeprecation.md) | <code>(details: DomainDeprecationDetails) => Promise<ResolveDeprecationResponse></code> | Calls the correctiveActions.api to automatically resolve the depprecation. | | ||
|
|
13 changes: 13 additions & 0 deletions
13
...public/kibana-plugin-core-public.deprecationsservicestart.resolvedeprecation.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [DeprecationsServiceStart](./kibana-plugin-core-public.deprecationsservicestart.md) > [resolveDeprecation](./kibana-plugin-core-public.deprecationsservicestart.resolvedeprecation.md) | ||
|
|
||
| ## DeprecationsServiceStart.resolveDeprecation property | ||
|
|
||
| Calls the correctiveActions.api to automatically resolve the depprecation. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| resolveDeprecation: (details: DomainDeprecationDetails) => Promise<ResolveDeprecationResponse>; | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...development/core/public/kibana-plugin-core-public.resolvedeprecationresponse.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ResolveDeprecationResponse](./kibana-plugin-core-public.resolvedeprecationresponse.md) | ||
|
|
||
| ## ResolveDeprecationResponse type | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export declare type ResolveDeprecationResponse = { | ||
| status: 'ok'; | ||
| } | { | ||
| status: 'fail'; | ||
| reason: string; | ||
| }; | ||
| ``` |
13 changes: 13 additions & 0 deletions
13
docs/development/core/server/kibana-plugin-core-server.coresetup.deprecations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [CoreSetup](./kibana-plugin-core-server.coresetup.md) > [deprecations](./kibana-plugin-core-server.coresetup.deprecations.md) | ||
|
|
||
| ## CoreSetup.deprecations property | ||
|
|
||
| [DeprecationsServiceSetup](./kibana-plugin-core-server.deprecationsservicesetup.md) | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| deprecations: DeprecationsServiceSetup; | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
.../core/server/kibana-plugin-core-server.deprecationsdetails.correctiveactions.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsDetails](./kibana-plugin-core-server.deprecationsdetails.md) > [correctiveActions](./kibana-plugin-core-server.deprecationsdetails.correctiveactions.md) | ||
|
|
||
| ## DeprecationsDetails.correctiveActions property | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| correctiveActions: { | ||
| api?: { | ||
| path: string; | ||
| method: 'POST' | 'PUT'; | ||
| body?: { | ||
| [key: string]: any; | ||
| }; | ||
| }; | ||
| manualSteps?: string[]; | ||
| }; | ||
| ``` |
11 changes: 11 additions & 0 deletions
11
...t/core/server/kibana-plugin-core-server.deprecationsdetails.documentationurl.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsDetails](./kibana-plugin-core-server.deprecationsdetails.md) > [documentationUrl](./kibana-plugin-core-server.deprecationsdetails.documentationurl.md) | ||
|
|
||
| ## DeprecationsDetails.documentationUrl property | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| documentationUrl?: string; | ||
| ``` |
13 changes: 13 additions & 0 deletions
13
.../development/core/server/kibana-plugin-core-server.deprecationsdetails.level.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsDetails](./kibana-plugin-core-server.deprecationsdetails.md) > [level](./kibana-plugin-core-server.deprecationsdetails.level.md) | ||
|
|
||
| ## DeprecationsDetails.level property | ||
|
|
||
| levels: - warning: will not break deployment upon upgrade - critical: needs to be addressed before upgrade. - fetch\_error: Deprecations service failed to grab the deprecation details for the domain. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| level: 'warning' | 'critical' | 'fetch_error'; | ||
| ``` |
21 changes: 21 additions & 0 deletions
21
docs/development/core/server/kibana-plugin-core-server.deprecationsdetails.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsDetails](./kibana-plugin-core-server.deprecationsdetails.md) | ||
|
|
||
| ## DeprecationsDetails interface | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export interface DeprecationsDetails | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| | Property | Type | Description | | ||
| | --- | --- | --- | | ||
| | [correctiveActions](./kibana-plugin-core-server.deprecationsdetails.correctiveactions.md) | <code>{</code><br/><code> api?: {</code><br/><code> path: string;</code><br/><code> method: 'POST' | 'PUT';</code><br/><code> body?: {</code><br/><code> [key: string]: any;</code><br/><code> };</code><br/><code> };</code><br/><code> manualSteps?: string[];</code><br/><code> }</code> | | | ||
| | [documentationUrl](./kibana-plugin-core-server.deprecationsdetails.documentationurl.md) | <code>string</code> | | | ||
| | [level](./kibana-plugin-core-server.deprecationsdetails.level.md) | <code>'warning' | 'critical' | 'fetch_error'</code> | levels: - warning: will not break deployment upon upgrade - critical: needs to be addressed before upgrade. - fetch\_error: Deprecations service failed to grab the deprecation details for the domain. | | ||
| | [message](./kibana-plugin-core-server.deprecationsdetails.message.md) | <code>string</code> | | | ||
|
|
11 changes: 11 additions & 0 deletions
11
...evelopment/core/server/kibana-plugin-core-server.deprecationsdetails.message.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsDetails](./kibana-plugin-core-server.deprecationsdetails.md) > [message](./kibana-plugin-core-server.deprecationsdetails.message.md) | ||
|
|
||
| ## DeprecationsDetails.message property | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| message: string; | ||
| ``` |
95 changes: 95 additions & 0 deletions
95
docs/development/core/server/kibana-plugin-core-server.deprecationsservicesetup.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsServiceSetup](./kibana-plugin-core-server.deprecationsservicesetup.md) | ||
|
|
||
| ## DeprecationsServiceSetup interface | ||
|
|
||
| The deprecations service provides a way for the Kibana platform to communicate deprecated features and configs with its users. These deprecations are only communicated if the deployment is using these features. Allowing for a user tailored experience for upgrading the stack version. | ||
|
|
||
| The Deprecation service is consumed by the upgrade assistant to assist with the upgrade experience. | ||
|
|
||
| If a deprecated feature can be resolved without manual user intervention. Using correctiveActions.api allows the Upgrade Assistant to use this api to correct the deprecation upon a user trigger. | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export interface DeprecationsServiceSetup | ||
| ``` | ||
|
|
||
| ## Example | ||
|
|
||
|
|
||
| ```ts | ||
| import { DeprecationsDetails, GetDeprecationsContext, CoreSetup } from 'src/core/server'; | ||
|
|
||
| async function getDeprecations({ esClient, savedObjectsClient }: GetDeprecationsContext): Promise<DeprecationsDetails[]> { | ||
| const deprecations: DeprecationsDetails[] = []; | ||
| const count = await getTimelionSheetsCount(savedObjectsClient); | ||
|
|
||
| if (count > 0) { | ||
| // Example of a manual correctiveAction | ||
| deprecations.push({ | ||
| message: `You have ${count} Timelion worksheets. The Timelion app will be removed in 8.0. To continue using your Timelion worksheets, migrate them to a dashboard.`, | ||
| documentationUrl: | ||
| 'https://www.elastic.co/guide/en/kibana/current/create-panels-with-timelion.html', | ||
| level: 'warning', | ||
| correctiveActions: { | ||
Bamieh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| manualSteps: [ | ||
| 'Navigate to the Kibana Dashboard and click "Create dashboard".', | ||
| 'Select Timelion from the "New Visualization" window.', | ||
| 'Open a new tab, open the Timelion app, select the chart you want to copy, then copy the chart expression.', | ||
| 'Go to Timelion, paste the chart expression in the Timelion expression field, then click Update.', | ||
| 'In the toolbar, click Save.', | ||
| 'On the Save visualization window, enter the visualization Title, then click Save and return.', | ||
| ], | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
| // Example of an api correctiveAction | ||
| deprecations.push({ | ||
| "message": "User 'test_dashboard_user' is using a deprecated role: 'kibana_user'", | ||
| "documentationUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html", | ||
| "level": "critical", | ||
| "correctiveActions": { | ||
| "api": { | ||
| "path": "/internal/security/users/test_dashboard_user", | ||
| "method": "POST", | ||
| "body": { | ||
| "username": "test_dashboard_user", | ||
| "roles": [ | ||
| "machine_learning_user", | ||
| "enrich_user", | ||
| "kibana_admin" | ||
| ], | ||
| "full_name": "Alison Goryachev", | ||
| "email": "alisongoryachev@gmail.com", | ||
| "metadata": {}, | ||
| "enabled": true | ||
| } | ||
| }, | ||
| "manualSteps": [ | ||
| "Using Kibana user management, change all users using the kibana_user role to the kibana_admin role.", | ||
| "Using Kibana role-mapping management, change all role-mappings which assing the kibana_user role to the kibana_admin role." | ||
| ] | ||
| }, | ||
| }); | ||
|
|
||
| return deprecations; | ||
| } | ||
|
|
||
|
|
||
| export class Plugin() { | ||
| setup: (core: CoreSetup) => { | ||
| core.deprecations.registerDeprecations({ getDeprecations }); | ||
| } | ||
| } | ||
|
|
||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| | Property | Type | Description | | ||
| | --- | --- | --- | | ||
| | [registerDeprecations](./kibana-plugin-core-server.deprecationsservicesetup.registerdeprecations.md) | <code>(deprecationContext: RegisterDeprecationsConfig) => void</code> | | | ||
|
|
||
11 changes: 11 additions & 0 deletions
11
...rver/kibana-plugin-core-server.deprecationsservicesetup.registerdeprecations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [DeprecationsServiceSetup](./kibana-plugin-core-server.deprecationsservicesetup.md) > [registerDeprecations](./kibana-plugin-core-server.deprecationsservicesetup.registerdeprecations.md) | ||
|
|
||
| ## DeprecationsServiceSetup.registerDeprecations property | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| registerDeprecations: (deprecationContext: RegisterDeprecationsConfig) => void; | ||
| ``` |
11 changes: 11 additions & 0 deletions
11
...opment/core/server/kibana-plugin-core-server.getdeprecationscontext.esclient.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [GetDeprecationsContext](./kibana-plugin-core-server.getdeprecationscontext.md) > [esClient](./kibana-plugin-core-server.getdeprecationscontext.esclient.md) | ||
|
|
||
| ## GetDeprecationsContext.esClient property | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| esClient: IScopedClusterClient; | ||
| ``` |
19 changes: 19 additions & 0 deletions
19
docs/development/core/server/kibana-plugin-core-server.getdeprecationscontext.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [GetDeprecationsContext](./kibana-plugin-core-server.getdeprecationscontext.md) | ||
|
|
||
| ## GetDeprecationsContext interface | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| export interface GetDeprecationsContext | ||
| ``` | ||
|
|
||
| ## Properties | ||
|
|
||
| | Property | Type | Description | | ||
| | --- | --- | --- | | ||
| | [esClient](./kibana-plugin-core-server.getdeprecationscontext.esclient.md) | <code>IScopedClusterClient</code> | | | ||
| | [savedObjectsClient](./kibana-plugin-core-server.getdeprecationscontext.savedobjectsclient.md) | <code>SavedObjectsClientContract</code> | | | ||
|
|
11 changes: 11 additions & 0 deletions
11
...e/server/kibana-plugin-core-server.getdeprecationscontext.savedobjectsclient.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
|
||
| [Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [GetDeprecationsContext](./kibana-plugin-core-server.getdeprecationscontext.md) > [savedObjectsClient](./kibana-plugin-core-server.getdeprecationscontext.savedobjectsclient.md) | ||
|
|
||
| ## GetDeprecationsContext.savedObjectsClient property | ||
|
|
||
| <b>Signature:</b> | ||
|
|
||
| ```typescript | ||
| savedObjectsClient: SavedObjectsClientContract; | ||
| ``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.