From f090fbf9b5ad441857a2f388f44b9887f3077c1b Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:27:53 +0200 Subject: [PATCH] Serialize purged flag for DCEObjects --- client/src/api/schema/schema.ts | 2 ++ lib/galaxy/managers/collections_util.py | 1 + lib/galaxy/schema/schema.py | 1 + 3 files changed, 4 insertions(+) diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index f592e3f59745..e1c907c09a97 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -6119,6 +6119,8 @@ export interface components { * @constant */ model_class: "HistoryDatasetAssociation"; + /** Purged */ + purged: boolean; /** * State * @description The current state of this dataset. diff --git a/lib/galaxy/managers/collections_util.py b/lib/galaxy/managers/collections_util.py index 0896c2f82dfc..d0ca89f61626 100644 --- a/lib/galaxy/managers/collections_util.py +++ b/lib/galaxy/managers/collections_util.py @@ -186,6 +186,7 @@ def dictify_element_reference( else: object_details["state"] = element_object.state object_details["hda_ldda"] = "hda" + object_details["purged"] = element_object.purged if isinstance(element_object, model.HistoryDatasetAssociation): object_details["history_id"] = element_object.history_id object_details["tags"] = element_object.make_tag_string_list() diff --git a/lib/galaxy/schema/schema.py b/lib/galaxy/schema/schema.py index c624bab55df5..632ae5af53e6 100644 --- a/lib/galaxy/schema/schema.py +++ b/lib/galaxy/schema/schema.py @@ -950,6 +950,7 @@ class HDAObject(Model, WithModelClass): tags: List[str] copied_from_ldda_id: Optional[EncodedDatabaseIdField] = None accessible: Optional[bool] = None + purged: bool model_config = ConfigDict(extra="allow")