Skip to content

Commit

Permalink
Bug Fixes in Snapshot Policy: Schedule Editing and Index Expression D…
Browse files Browse the repository at this point in the history
…isplay (#1207)

Signed-off-by: Sandeep Kumawat <[email protected]>
Co-authored-by: Sandeep Kumawat <[email protected]>
(cherry picked from commit 657a699)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and Sandeep Kumawat committed Nov 6, 2024
1 parent bbf8c25 commit d7a7c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,20 @@ const CronSchedule = ({

function onDayOfWeekChange(dayOfWeek: string) {
setWeek(dayOfWeek);
// changeCron({ dayOfWeek });
changeCron({ dayOfWeek });
}

function onDayOfMonthChange(dayOfMonth: number) {
setMonth(dayOfMonth);
// changeCron({ dayOfMonth });
changeCron({ dayOfMonth });
}

function onStartTimeChange(date: moment.Moment) {
const minute = date.minute();
const hour = date.hour();
setMinute(minute);
setHour(hour);
// changeCron({ minute, hour });
changeCron({ minute, hour });
}

function onTypeChange(e: ChangeEvent<HTMLSelectElement>) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class CreateSnapshotPolicy extends MDSEnabledComponent<CreateSMPolicyProp
const selectedIndexOptions = [...this.state.selectedIndexOptions, newOption];
this.setState({
selectedIndexOptions: selectedIndexOptions,
policy: this.setPolicyHelper("snapshot_config.indices", selectedIndexOptions.toString()),
policy: this.setPolicyHelper("snapshot_config.indices", selectedIndexOptions.map((option) => option.label).join(", ")),
});
};

Expand Down

0 comments on commit d7a7c03

Please sign in to comment.