Skip to content

Commit

Permalink
Reinstates legacy infra plugin to make saved object mappings availabi…
Browse files Browse the repository at this point in the history
…le until elastic#50309 merges
  • Loading branch information
jasonrhodes committed Jan 23, 2020
1 parent fbed5ec commit 3f316ca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions x-pack/legacy/plugins/infra/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { savedObjectMappings } from '../../../plugins/infra/server';

export const APP_ID = 'infra';

export function infra(kibana: any) {
return new kibana.Plugin({
id: APP_ID,
configPrefix: 'xpack.infra',
require: ['kibana', 'elasticsearch'],
uiExports: {
mappings: savedObjectMappings,
},
});
}
3 changes: 2 additions & 1 deletion x-pack/plugins/infra/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

import { PluginInitializerContext } from 'src/core/server';
import { config, InfraConfig, InfraServerPlugin } from './plugin';
import { savedObjectMappings } from './saved_objects';

export { config, InfraConfig };
export { config, InfraConfig, savedObjectMappings };
export const APP_ID = 'infra';

export function plugin(context: PluginInitializerContext) {
Expand Down

0 comments on commit 3f316ca

Please sign in to comment.