optuna / optuna-dashboard

Real-time Web Dashboard for Optuna.
https://optuna-dashboard.readthedocs.io/en/latest/
Other
477 stars 83 forks source link

Add a checkbox to ask whether to delete artifacts associated to study/trial #885

Closed porink0424 closed 1 month ago

porink0424 commented 1 month ago

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code. This pull request may therefore be ported to Goptuna. Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

Reference Issues/PRs

NA

What does this implement/fix? Explain your changes.

When deleting a study, all artifacts associated with that study were previously deleted as well. However, the problem occurred when a study was copied, resulting in multiple IDs pointing to the same artifact. In such cases, after deleting the artifact and one ID, the other IDs were pointing to a non-existent reference. This PR addresses the problem by introducing a feature that allows users to choose whether or not to delete the associated artifacts.

Dialog Design

1 2

To align with the design changes mentioned above, I have also modified DeleteArtifactDialog:

3