[Graph] disable application in serverless (#163582)

## Summary

Closes https://github.com/elastic/kibana/issues/163340

This PR disables graph in serverless. Specifically:

- creates a serverless yml setting for disabling graph
- adds the setting in serverless.yml
This commit is contained in:
Stratoula Kalafateli 2023-08-14 13:21:21 +03:00 committed by GitHub
parent f494bddae1
commit 8511078c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -90,6 +90,7 @@ vis_type_timeseries.readOnly: true
vis_type_vislib.readOnly: true
vis_type_xy.readOnly: true
input_control_vis.readOnly: true
xpack.graph.enabled: false
# Disable cases in stack management
xpack.cases.stack.enabled: false

View file

@ -18,6 +18,12 @@ export const configSchema = schema.object({
{ defaultValue: 'configAndData' }
),
canEditDrillDownUrls: schema.boolean({ defaultValue: true }),
enabled: schema.conditional(
schema.contextRef('serverless'),
true,
schema.maybe(schema.boolean({ defaultValue: true })),
schema.never()
),
});
export type ConfigSchema = TypeOf<typeof configSchema>;