Skip to content

Commit

Permalink
[Security Solution] [Cases] Add deprecation in cases plugin for rename (
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Mar 22, 2021
1 parent 041566d commit 416eea7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions x-pack/plugins/cases/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
* 2.0.
*/

import { PluginInitializerContext } from 'kibana/server';
import { ConfigSchema } from './config';
import { PluginConfigDescriptor, PluginInitializerContext } from 'kibana/server';
import { ConfigType, ConfigSchema } from './config';
import { CasePlugin } from './plugin';

export { CaseRequestContext } from './types';
export const config = { schema: ConfigSchema };
export const config: PluginConfigDescriptor<ConfigType> = {
schema: ConfigSchema,
deprecations: ({ renameFromRoot }) => [
renameFromRoot('xpack.case.enabled', 'xpack.cases.enabled'),
],
};
export const plugin = (initializerContext: PluginInitializerContext) =>
new CasePlugin(initializerContext);

0 comments on commit 416eea7

Please sign in to comment.