Skip to content

Commit e54bc97

Browse files
committed
Refactor HDASerializer to use serialize_id for copied_from_ldda_id
1 parent f20ba93 commit e54bc97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/galaxy/managers/hdas.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,9 @@ def add_serializers(self):
587587
"history_content_type": lambda item, key, **context: "dataset",
588588
"hda_ldda": lambda item, key, **context: "hda",
589589
"type_id": self.serialize_type_id,
590-
"copied_from_ldda_id": lambda item, key, **context: item.copied_from_library_dataset_dataset_association_id,
590+
"copied_from_ldda_id": lambda item, key, **context: self.serialize_id(
591+
item, "copied_from_library_dataset_dataset_association_id", **context
592+
),
591593
"history_id": self.serialize_id,
592594
# remapped
593595
"misc_info": self._remap_from("info"),

0 commit comments

Comments
 (0)