-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add interruptible override to launch forms #chore #417
Add interruptible override to launch forms #chore #417
Conversation
Workflows and tasks can now have their interruptible flag set for a single execution Added indication about interruptible override to execution metadata Signed-off-by: Nick Müller <[email protected]>
Signed-off-by: Nick Müller <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Looks like checks failed due to unreleased flyteidl changes. Is there anything that should be done before the IDL changes are merged (like with |
@MorpheusXAUT Any fix I can think of will fix it only locally for you, and will still present the problem in PR circle CI and during/after merge if your curernt PR depends on flyteidl changes. We are using flyteidl changes in flyteconsole only to resolve typings, so if new
and run I should be able to smoke test changes and look deeper into in in few hours. |
Right, that's what I did for development locally as well... @anrusina I'll update this issue once the changes have been approved/released and I can update the packages accordingly, sorry for the early PR in that case 😄 |
Defaults to indeterminate state, allowing for executions to have their interruptible setting overriden to and Added text indicator for override status to checkbox label Signed-off-by: Nick Müller <[email protected]>
…teconsole into execution-interruptible Signed-off-by: Nick Müller <[email protected]>
@anrusina Unfortunately still WIP due to pending flyteidl merges, but a slight change has been made already. As the Clicking the checkbox cycles through As I'm neither a great frontend developer nor an UX expert, I'm not sure if there's a better way to represent this while being more clear. I could of course add two separate checkboxes/toggles a la "Enable override" and "Override to", however I found that a bit... tedious to use. Is there a better/preferred way you can think of to visualize this new setting? |
@MorpheusXAUT I don't think that two toggles will make it more clear, and solution you come up with is pretty clever. I asked our designer to look into it - to see if he can suggest something better in this case |
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.
Beautiful code 😍, left two nits which could be ignored.
I definitely haven't smoked it yet, as flyteidl changes I believe still need some time to cook..
Package.k=json will need to point to new flyteidl version when it would be ready.
I will check tomorrow with our designer if he had any suggestions on UI change for you :)
Signed-off-by: Nick Müller <[email protected]>
@MorpheusXAUT (cc @anrusina ) Overall, it is awesome! One thing that could possibly be improved is to set the color of the text [interruptible(no override)] as grey when the checkbox turns to "not set", which can visually differentiate "not set" and "disabled". |
Sounds like a good plan! How do you like the following (just setting |
It looks great! |
Signed-off-by: Nick Müller <[email protected]>
Feedback from the review has been included, I'll push another commit and update this issue once the IDL changes are merged 🙂 |
Signed-off-by: Nick Müller <[email protected]>
@anrusina flyteidl/npm package has been published, PR should build locally/in CI now 🥳 |
Codecov Report
@@ Coverage Diff @@
## master #417 +/- ##
==========================================
+ Coverage 67.08% 67.18% +0.10%
==========================================
Files 407 413 +6
Lines 9147 9295 +148
Branches 1614 1630 +16
==========================================
+ Hits 6136 6245 +109
- Misses 3011 3050 +39
Continue to review full report at Codecov.
|
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.
LGTM, some tests are needed, than could be merged.
Signed-off-by: Nick Müller <[email protected]>
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.
Lgtm
🚢
Congrats on merging your first pull request! 🎉 |
TL;DR
Adds an option to override the
interruptible
flag for a single execution to launch forms.Type
Are all requirements met?
Complete description
A new
LaunchInterruptibleInput
component has been added, providing a small form input for marking a single execution of a task or workflow as interruptible via a checkbox. BothLaunchTaskForm
andLaunchWorkflowForm
now include this additional input - it has been added to the advanced options of a workflow launch form.Relaunching an execution applies the previously selected interruptible override setting to the new launch form.
Additionally, a simple
true
/false
indication has been added to the execution metadata overview, displaying whether an execution had its interruptible flag overwritten.Some very basic tests have been added to check correct application of the checkbox' value. Manual smoke testing for workflow and single task executions has been performed together with flightadmin and flightpropeller.
Tracking Issue
flyteorg/flyte#2284
Follow-up issue
NA