Skip to content

Commit

Permalink
Delete purged outputs from object store when importing dataset for pu…
Browse files Browse the repository at this point in the history
…rged output
  • Loading branch information
mvdbeek committed Jun 10, 2024
1 parent 50b7f8f commit 3c7730c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/model/store/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ def handle_dataset_object_edit(dataset_instance, dataset_attrs):
)
for attribute, value in dataset_attributes.items():
setattr(dataset_instance.dataset, attribute, value)
if dataset_instance.dataset.purged:
dataset_instance.dataset.full_delete()
self._attach_dataset_hashes(dataset_attrs["dataset"], dataset_instance)
self._attach_dataset_sources(dataset_attrs["dataset"], dataset_instance)
if "id" in dataset_attrs["dataset"] and self.import_options.allow_edit:
Expand Down

0 comments on commit 3c7730c

Please sign in to comment.