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:
16
plugins/graph/index.js
Normal file
16
plugins/graph/index.js
Normal 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();
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user