Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Conversation

mslabek
Copy link
Member

@mslabek mslabek commented Apr 3, 2023

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:
properties-flink-defaults

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.

@github-actions github-actions bot added client client main fe ui labels Apr 3, 2023
@mslabek mslabek changed the title Fix form types in properties (parallelism and async interpretation) Fix scenario properties form types (parallelism and async interpretation) Apr 3, 2023
@github-actions github-actions bot added the docs label Apr 3, 2023
@mslabek mslabek changed the title Fix scenario properties form types (parallelism and async interpretation) Fix scenario properties form types Apr 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

created: #4214

@github-actions
Copy link
Contributor

github-actions bot commented Apr 5, 2023

updated: #4214

@lciolecki
Copy link
Contributor

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"}
Copy link
Member

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

Copy link
Member

@arkadius arkadius left a 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

@mslabek
Copy link
Member Author

mslabek commented Apr 12, 2023

Thanks for feedback. I'm taking a new approach to this problem in line with your suggestions. The WIP PR: #4225

@mslabek mslabek closed this Apr 12, 2023
@coutoPL coutoPL deleted the fix/properties-form-types branch August 17, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client main fe docs ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants