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/client/src/stores/collectionElementsStore.test.ts b/client/src/stores/collectionElementsStore.test.ts index af3096c49a4d..6af9a98f5d57 100644 --- a/client/src/stores/collectionElementsStore.test.ts +++ b/client/src/stores/collectionElementsStore.test.ts @@ -151,6 +151,7 @@ function mockElement(collectionId: string, i: number): DCESummary { history_id: "1", tags: [], accessible: true, + purged: false, }, }; } 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")