-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Active/Archive management on Runs for Archived Experiment #5114
Comments
I think the question is: "Should we allow Active Runs in Archived Experiments"? If the answer was no, I can think of the following implications:
It is natural to me thinking about Experiments as direct parents (containers) of Runs, thus if I see an archived Experiment I would expect all of its runs to be Archived as well. It's clear that KFP follows a more loosely coupled approach. @Bobgy Was this a specific decision, taken at some point in time, grounded on some specific rationale? Maybe there is some old issue where this had been discussed. |
There were no formal discussion when it was implemented, and we sort of took the shortest path. Feel free to argue about whatever option makes the most sense to you. |
One weird case would be:
Just to mean this is sth we can discuss, we may not need to support this corner case so well. |
I agree with @StefanoFioravanzo 's proposal and when experiment is archived, runs should fail to unarchiv |
@Bobgy This is a fair point!
I think the following approach addresses it:
|
In this way we enforce this first implication Archived Experiment -> Archived Runs But not the opposite, and it's completely the users' choice whether to restore Runs, all of them or just in part. And if they want to restore an Experiment and keep it empty of Active Runs, to start creating new ones, they can do so. |
SGTM |
In fact, the argument seems to apply reversely too, if all runs are restored by default, users can bulk archive them again. I think we should think about which operation is more common as user intent? I feel like restoring all runs when restoring the experiment would be more Intuitive for me. WDYT? |
I think we should just make this configurable. When you restore an experiment we can ask: "Do you want to restore all archived Runs as well?" -> "yes"/"no". So we definitely cover all potential use cases. WDYT? |
Agreed, that's a good point! |
I agree with the statement that Archived Experiment should not contain Active Runs. In terms of state management of archiving/restoring an Experiment, I think the original intent of Archived Runs is to avoid accidental deletion of active runs, because active runs cannot be deleted, it has be archived first. And the concept of Archived Experiment is to group a list of runs which are ready to be deleted. See #3283 (comment). Therefore, I agree with the interactive approach to ask users whether to restore Runs while restoring Experiment. To summarize the list of changes required as a result of this decision:
Feel free to comment if I am missing anything or need adjustment. Thank you! |
Personal opinion, UI should be stable, when a button doesn't apply in a context, we can disable it and add a hover tooltip to tell why. Removing it might leave people confused -- where is the tab?
Note, we need to implent this feature in backend too.
Thanks! Per priority, sounds like 3 should be done first, 1 and 2 are good to haves. Users wouldn't be very distracted with current implementation too. |
Yes! I completely agree on this! |
I think
can be a good first issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, @Bobgy and @StefanoFioravanzo can I work on number: 3?
I will create a separate issue about this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/lifecycle frozen |
Hey can I take this up? |
This issue is quite old. @zijianjoy @chensun @HumairAK, do you think it's still valid? The resolution of the discussion is in this comment.
@Blackcipher101 why do you want to work on it? Would you happen to have a use case for it? |
What happened:
During the PR #5040, which allows user to see Active/Archive run lists of an experiment, regardless of whether that experiment is active or archived. There is discussion on whether a user can restore a
Run
from anArchived Experiment
. See #5040 (comment) for the initial question. And #5040 (comment) for the argument. Currently this behavior is allowed on the latest code.Decision Making
The question: Can a user restore a Run from an Archived Experiment? If so, what is the use case? If not, why it is discouraged?
Follow-up items
/kind discussion
/area frontend
The text was updated successfully, but these errors were encountered: