Skip to content

Commit

Permalink
Log an unused deprecation warning for indexUpgrade config option
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Oct 13, 2021
1 parent 5d7c79a commit 2160b59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/rule_registry/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import { schema, TypeOf } from '@kbn/config-schema';
import { PluginConfigDescriptor } from 'src/core/server';

export const config: PluginConfigDescriptor = {
deprecations: ({ deprecate }) => [deprecate('enabled', '8.0.0')],
deprecations: ({ deprecate, unused }) => [
deprecate('enabled', '8.0.0'),
unused('unsafe.indexUpgrade.enabled'),
],
schema: schema.object({
enabled: schema.boolean({ defaultValue: true }),
write: schema.object({
Expand Down

0 comments on commit 2160b59

Please sign in to comment.