Skip to content

Commit

Permalink
add xpack.upgrade_assistant.featureSet.migrateDataStreams
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Nov 28, 2024
1 parent 067f029 commit 233c0c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/upgrade_assistant/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@ export interface FeatureSet {
migrateSystemIndices: boolean;
mlSnapshots: boolean;
reindexCorrectiveActions: boolean;
reindexDataStreams: boolean;
migrateDataStreams: boolean;
}
2 changes: 1 addition & 1 deletion x-pack/plugins/upgrade_assistant/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const configSchema = schema.object({
* Migrating deprecated data streams should only be enabled for major version upgrades.
* Currently this is manually set to `true` on every `x.last` version.
*/
reindexDataStreams: schema.boolean({ defaultValue: false }),
migrateDataStreams: schema.boolean({ defaultValue: false }),
}),
/**
* This config allows to hide the UI without disabling the plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export async function getESUpgradeStatus(
}
/**
* This disables showing the Data streams deprecations in the UA if
* `featureSet.reindexDataStreams` is set to `false`.
* `featureSet.migrateDataStreams` is set to `false`.
*/
if (!featureSet.reindexDataStreams) {
if (!featureSet.migrateDataStreams) {
if (type === 'data_streams') {
return false;
}
Expand Down

0 comments on commit 233c0c4

Please sign in to comment.