Skip to content

Commit

Permalink
bug fix: Snapshot restore always restores index alias (#1213)
Browse files Browse the repository at this point in the history
Signed-off-by: Sandeep Kumawat <[email protected]>
Co-authored-by: Sandeep Kumawat <[email protected]>
  • Loading branch information
skumawat2025 and Sandeep Kumawat authored Nov 13, 2024
1 parent 657a699 commit bb075f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr
include_global_state: snapshot?.include_global_state,
rename_pattern: pattern,
rename_replacement: renameIndices === add_prefix ? `${prefix}$1` : renameReplacement,
include_aliases: snapshot?.restore_aliases ? snapshot.restore_aliases : true,
include_aliases: snapshot?.restore_aliases !== undefined ? snapshot.restore_aliases : true,
partial: snapshot?.partial || false,
};
let repoError = "";
Expand Down Expand Up @@ -493,7 +493,7 @@ export class RestoreSnapshotFlyout extends MDSEnabledComponent<RestoreSnapshotPr

<SnapshotRestoreAdvancedOptions
getIndexSettings={this.getIndexSettings}
restoreAliases={String(_.get(snapshot, restore_aliases, false)) == "true"}
restoreAliases={String(_.get(snapshot, restore_aliases, true)) == "true"}
onRestoreAliasesToggle={this.onToggle}
restoreClusterState={String(_.get(snapshot, include_global_state, false)) == "true"}
onRestoreClusterStateToggle={this.onToggle}
Expand Down

0 comments on commit bb075f6

Please sign in to comment.