Skip to content

Commit f859d94

Browse files
committed
Restore .get_metadata function
1 parent 16acd7f commit f859d94

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/galaxy/model/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5198,6 +5198,11 @@ def metadata(self, bunch) -> None:
51985198
# Needs to accept a MetadataCollection, a bunch, or a dict
51995199
self._metadata = self.metadata.make_dict_copy(bunch)
52005200

5201+
def get_metadata(self) -> "galaxy.model.metadata.MetadataCollection":
5202+
# Alias for backwards compatibility with .get_metadata() calls in jbrowse/jbrowse2
5203+
# https://github.com/galaxyproject/tools-iuc/blob/4095773348da6faeb6096f58785b66898b09befa/tools/jbrowse2/jbrowse2.xml#L88
5204+
return self.metadata
5205+
52015206
@property
52025207
def set_metadata_requires_flush(self):
52035208
return self.metadata.requires_dataset_id

0 commit comments

Comments
 (0)