-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
Codecov Report
@@ Coverage Diff @@
## master #54 +/- ##
==========================================
+ Coverage 48.74% 50.69% +1.95%
==========================================
Files 35 40 +5
Lines 1073 1150 +77
==========================================
+ Hits 523 583 +60
- Misses 485 500 +15
- Partials 65 67 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
have you considered raising an error for no-op commands (like activating a task, etc). I wonder if silently doing nothing is preferable as opposed to being more explicit
Hi @katrogan i did consider raising an error for noop cases , but wont it be preferable to have this coming from admin at this line
Since we already do it for archive state hence i thought why not have it for other state update checks aswell in admin to make it similar . |
ccebdc2
to
74f6ec8
Compare
@pmahindrakar-oss i dont know if I really prefer |
besides the one thing, I am +1 to merge it |
I will reword in documentation to make it clear.
Will keep those separate |
@kumare3 not sure what a better name would be. in the proto def we also call it activate but agreed that word is potentially overloaded |
@pmahindrakar-oss I see, so even though it's technically a no-op we'll raise the error that admin returns? |
Yes thats right @katrogan . Instead of adding a new validation it would be ok to jus re-throw the error from admin and i have currently worded it to be noop in the doc since there is no feedback given but once we have the error thrown from admin then we can change this to say that this is an error case and the user should be able to see similar error like archiving launchplan. |
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar <[email protected]>
05958fa
to
a8b2875
Compare
@katrogan / @pmahindrakar-oss - So eventually we probably want archive for all entities right? - LaunchPlan and Tasks. So there are 3 ways of solving this
IMO, 3 is the most long term clean solution. But we need to determine if there is a case in which entity archival does not make sense. Can you guys resolve this? |
#3 sounds fine |
Thanks for the review. Merging it now and we will take of no.3 using the following issue flyteorg/flyte#943 |
Signed-off-by: Prafulla Mahindrakar [email protected]
TL;DR
Following command updates the description on the workflow.
Archiving workflow named entity would cause this to disapper from flyteconsole UI.
Activating workflow named entity would unarchive it.
Following command updates the description on the task.
Archiving task named entity would is not supported and would throw an error.
Activating workflow named entity would be a noop as archiving is not possible.
Following command updates the description on the launchplan.
Archiving launchplan named entity is not supported and would throw an error.
Activating launchplan named entity would be a noop.
Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
flyteorg/flyte#919
Follow-up issue