Skip to content

Commit

Permalink
Serialize purged flag for DCEObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jun 18, 2024
1 parent 4b17f1b commit f090fbf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6119,6 +6119,8 @@ export interface components {
* @constant
*/
model_class: "HistoryDatasetAssociation";
/** Purged */
purged: boolean;
/**
* State
* @description The current state of this dataset.
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/managers/collections_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit f090fbf

Please sign in to comment.