-
Notifications
You must be signed in to change notification settings - Fork 671
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
[Feature] Support "Enum/Options" type as Flyte Input #590
Comments
This is going to be the great feature and needed for us as well. |
@mahanh / @thechopkins this is in progress - flyteorg/flyteidl#183 |
Pushing to next milestone. I think the remaining work is in flyte console? @kumare3 |
@EngHabu yes, but I want to create a separate UI task for this, as we can then group together all of this into the Flyteconsole project |
@thechopkins / @mahanh / @EngHabu this is available now and can be used through flytectl (no console support yet) |
Signed-off-by: Flyte-Bot <[email protected]> Signed-off-by: Flyte-Bot <[email protected]> Co-authored-by: flyte-bot <[email protected]>
Motivation: Why do you think this is important?
One pain point today for kicking off workflows manually is with users specifying invalid inputs. An example, if you have a workflow that takes color as an input and only works for three values (blue, green, orange), we should be able to limit the options that the user enters into the workflow. Instead today, we generally have to write a single initial task that validates that the input is in a specific set and fast-fail if it is outside of a recommended value
Goal: What should the final outcome look like, ideally?
Ideally, when a workflow is kicked off from the UI, instead of being a free text field, a combo box could show up, populated with items that are specified in the workflow's definition. An example
Input
definition could then look like:Input(Types.String, default='green', options=['green', 'blue', 'orange'])
Describe alternatives you've considered
Another potential option here is enabling a validation hook specifically on an input field before a workflow runs that could run either in ui, or on a delta change for an input text box.
ex.
Input(Types.String, default='green', validation_fn=lambda x: x in {'blue', 'green', 'orange'}, validation_failure_string="Input must be in {'blue', 'green', 'orange'})
Flyte component
[Optional] Propose: Link/Inline
If you have ideas about the implementation please propose the change. If inline keep it short, if larger then you link to an external document.
Additional context
Add any other context or screenshots about the feature request here.
Is this a blocker for you to adopt Flyte
Please let us know if this makes it impossible to adopt Flyte
The text was updated successfully, but these errors were encountered: