mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[Deprecations service] Add requireRestart field (#106701)
This commit is contained in:
parent
9ced2fb4ee
commit
2b7d1396e3
9 changed files with 23 additions and 2 deletions
|
@ -19,4 +19,5 @@ export interface DeprecationsDetails
|
||||||
| [documentationUrl](./kibana-plugin-core-server.deprecationsdetails.documentationurl.md) | <code>string</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. |
|
| [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> | |
|
| [message](./kibana-plugin-core-server.deprecationsdetails.message.md) | <code>string</code> | |
|
||||||
|
| [requireRestart](./kibana-plugin-core-server.deprecationsdetails.requirerestart.md) | <code>boolean</code> | |
|
||||||
|
|
||||||
|
|
|
@ -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) > [requireRestart](./kibana-plugin-core-server.deprecationsdetails.requirerestart.md)
|
||||||
|
|
||||||
|
## DeprecationsDetails.requireRestart property
|
||||||
|
|
||||||
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
requireRestart?: boolean;
|
||||||
|
```
|
|
@ -18,6 +18,6 @@ export interface KibanaExecutionContext
|
||||||
| [description](./kibana-plugin-core-server.kibanaexecutioncontext.description.md) | <code>string</code> | human readable description. For example, a vis title, action name |
|
| [description](./kibana-plugin-core-server.kibanaexecutioncontext.description.md) | <code>string</code> | human readable description. For example, a vis title, action name |
|
||||||
| [id](./kibana-plugin-core-server.kibanaexecutioncontext.id.md) | <code>string</code> | unique value to identify the source |
|
| [id](./kibana-plugin-core-server.kibanaexecutioncontext.id.md) | <code>string</code> | unique value to identify the source |
|
||||||
| [name](./kibana-plugin-core-server.kibanaexecutioncontext.name.md) | <code>string</code> | public name of a user-facing feature |
|
| [name](./kibana-plugin-core-server.kibanaexecutioncontext.name.md) | <code>string</code> | public name of a user-facing feature |
|
||||||
| [type](./kibana-plugin-core-server.kibanaexecutioncontext.type.md) | <code>string</code> | Kibana application initated an operation. Can be narrowed to an enum later. |
|
| [type](./kibana-plugin-core-server.kibanaexecutioncontext.type.md) | <code>string</code> | Kibana application initated an operation. |
|
||||||
| [url](./kibana-plugin-core-server.kibanaexecutioncontext.url.md) | <code>string</code> | in browser - url to navigate to a current page, on server - endpoint path, for task: task SO url |
|
| [url](./kibana-plugin-core-server.kibanaexecutioncontext.url.md) | <code>string</code> | in browser - url to navigate to a current page, on server - endpoint path, for task: task SO url |
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
## KibanaExecutionContext.type property
|
## KibanaExecutionContext.type property
|
||||||
|
|
||||||
Kibana application initated an operation. Can be narrowed to an enum later.
|
Kibana application initated an operation.
|
||||||
|
|
||||||
<b>Signature:</b>
|
<b>Signature:</b>
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,7 @@ describe('DeprecationsService', () => {
|
||||||
"documentationUrl": "testDocUrl",
|
"documentationUrl": "testDocUrl",
|
||||||
"level": "critical",
|
"level": "critical",
|
||||||
"message": "testMessage",
|
"message": "testMessage",
|
||||||
|
"requireRestart": true,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
`);
|
`);
|
||||||
|
|
|
@ -156,6 +156,7 @@ export class DeprecationsService implements CoreService<InternalDeprecationsServ
|
||||||
message,
|
message,
|
||||||
correctiveActions,
|
correctiveActions,
|
||||||
documentationUrl,
|
documentationUrl,
|
||||||
|
requireRestart: true,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -37,6 +37,8 @@ export interface DeprecationsDetails {
|
||||||
deprecationType?: 'config' | 'feature';
|
deprecationType?: 'config' | 'feature';
|
||||||
/* (optional) link to the documentation for more details on the deprecation. */
|
/* (optional) link to the documentation for more details on the deprecation. */
|
||||||
documentationUrl?: string;
|
documentationUrl?: string;
|
||||||
|
/* (optional) specify the fix for this deprecation requires a full kibana restart. */
|
||||||
|
requireRestart?: boolean;
|
||||||
/* corrective action needed to fix this deprecation. */
|
/* corrective action needed to fix this deprecation. */
|
||||||
correctiveActions: {
|
correctiveActions: {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -915,6 +915,8 @@ export interface DeprecationsDetails {
|
||||||
level: 'warning' | 'critical' | 'fetch_error';
|
level: 'warning' | 'critical' | 'fetch_error';
|
||||||
// (undocumented)
|
// (undocumented)
|
||||||
message: string;
|
message: string;
|
||||||
|
// (undocumented)
|
||||||
|
requireRestart?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @public
|
// @public
|
||||||
|
|
|
@ -29,6 +29,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
|
||||||
},
|
},
|
||||||
deprecationType: 'config',
|
deprecationType: 'config',
|
||||||
domainId: 'corePluginDeprecations',
|
domainId: 'corePluginDeprecations',
|
||||||
|
requireRestart: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
level: 'critical',
|
level: 'critical',
|
||||||
|
@ -40,6 +41,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
|
||||||
},
|
},
|
||||||
deprecationType: 'config',
|
deprecationType: 'config',
|
||||||
domainId: 'corePluginDeprecations',
|
domainId: 'corePluginDeprecations',
|
||||||
|
requireRestart: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
level: 'critical',
|
level: 'critical',
|
||||||
|
@ -53,6 +55,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide
|
||||||
documentationUrl: 'config-secret-doc-url',
|
documentationUrl: 'config-secret-doc-url',
|
||||||
deprecationType: 'config',
|
deprecationType: 'config',
|
||||||
domainId: 'corePluginDeprecations',
|
domainId: 'corePluginDeprecations',
|
||||||
|
requireRestart: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
message: 'CorePluginDeprecationsPlugin is a deprecated feature for testing.',
|
message: 'CorePluginDeprecationsPlugin is a deprecated feature for testing.',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue