You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a run is able to be executed without parameters. For instance, if you wanted to use [Sample] ML - TFX - Taxi Tip Prediction Model Trainer, you have to specify the output location and project name while all other parameters are provided. For a new comer to KFP or someone who is rushing through the run process, these fields could be overlooked and ignored. This becomes problematic as these fields can be left empty and the start button is still clickable. This results in a failed run as the project and output location are missing. Looking at the NewRun.tsx file, there is a portion of code that maps parameters to TextFields. Something similar can be used here to disable the button should a parameter be missing its value. An approach for solving this issue is below (which I would be happy to implement given the time 😀).
...
privateareParametersMissing(): boolean{if(pipeline&&Array.isArray(pipeline.parameters)&&!!pipeline.parameters.length){letmissingParameters=pipeline.parameters.filter(parameter=>!!parameter.value);return!!missingParameters.length;}// Returns true by default since a pipeline is required to start a runreturntrue;};
...
render(){
...
<BusyButtonid='startNewRunBtn'disabled={!!errorMessage||this._areParametersMissing()}busy={this.state.isBeingStarted}className={commonCss.buttonAction}title='Start'onClick={this._start.bind(this)}/>...}
Alternatively, should there be a need for flexibility where blank parameters are needed, a warning can be displayed via a dialog to the user before confirming a run.
The text was updated successfully, but these errors were encountered:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Currently, a run is able to be executed without parameters. For instance, if you wanted to use [Sample] ML - TFX - Taxi Tip Prediction Model Trainer, you have to specify the output location and project name while all other parameters are provided. For a new comer to KFP or someone who is rushing through the run process, these fields could be overlooked and ignored. This becomes problematic as these fields can be left empty and the start button is still clickable. This results in a failed run as the project and output location are missing. Looking at the NewRun.tsx file, there is a portion of code that maps parameters to TextFields. Something similar can be used here to disable the button should a parameter be missing its value. An approach for solving this issue is below (which I would be happy to implement given the time 😀).
Alternatively, should there be a need for flexibility where blank parameters are needed, a warning can be displayed via a dialog to the user before confirming a run.
The text was updated successfully, but these errors were encountered: