Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

[fix issue#4015] webui prompts error message if user set maxExperimentDuration < execDuration #4164

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

Lijiaoa
Copy link
Contributor

@Lijiaoa Lijiaoa commented Sep 8, 2021

fix issue: #4015

maxExperimentDuration is more than execDuration by design.
webui will prompt error message now if user set maxExperimentDuration < execDuration.

if (toSeconds(`${editInputVal}${unit}`) < EXPERIMENT.profile.execDuration) {
// maxDuration should > current run time(execDuration)
promptErrorMessage(
'Current duration is more than the number you input, please input effective value',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please input a valid value. (Current duration is ...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had changed it to Please input a valid value. (Current duration is more than the number you input.). Please help review again~

@acured acured merged commit 0ad73ef into microsoft:master Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants