-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix scenario properties form types #4210
Conversation
…spill state fields
created: #4214 |
updated: #4214 |
But what about validating it on the backend side? I think we should also validate it on the backend and return a nice message. |
fieldProperty={"typeSpecificProperties.spillStateToDisk"} | ||
validators={[errorValidator(fieldErrors || [], "spillStateToDisk")]} | ||
fieldType={FieldType.select} | ||
fieldLabel={"I/O mode"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't be done on FE, we should move this to BE, we already has options to do that. Let's talk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change explores the direction of static scenario definitions on FE side, that we are trying to get rid of
Thanks for feedback. I'm taking a new approach to this problem in line with your suggestions. The WIP PR: #4225 |
Typing a non-integer value in the parallelism or checkpoint interval properties resulted in an ugly looking backend unmarshalling error since backend expects an integer/long in these fields. There doesn't seem to be a way to get types and default values of type specific scenario properties without modifying the backend api. The simplest solution is to prevent the user from typing non-integers.
The form with new placeholders looks like this:
There is no feedback to the user when he tries to type a non-integer, but that is still preferable than throwing an ugly error.