feat: mock plugins with real configs

so you no longer need to comment out xpack config in the kibana.dev.yml
This commit is contained in:
2018-05-21 09:31:36 -07:00
committed by joe fleming
parent f1f2e9e8bb
commit ba769682d6
9 changed files with 367 additions and 13 deletions

16
plugins/graph/index.js Normal file
View File

@@ -0,0 +1,16 @@
export function graph(kibana) {
return new kibana.Plugin({
name: 'graph',
id: 'graph',
configPrefix: 'xpack.graph',
config(Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
canEditDrillDownUrls: Joi.boolean().default(true),
savePolicy: Joi.string()
.valid(['config', 'configAndDataWithConsent', 'configAndData', 'none'])
.default('configAndData'),
}).default();
},
});
}