Unverified Commit eaf525a0 authored by Nicola Soranzo's avatar Nicola Soranzo Committed by GitHub
Browse files

Merge pull request #21045 from mvdbeek/restore_get_metadata_function

[25.1] Restore .get_metadata function
parents 16acd7fe f859d941
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5198,6 +5198,11 @@ class DatasetInstance(RepresentById, UsesCreateAndUpdateTime, _HasTable):
        # Needs to accept a MetadataCollection, a bunch, or a dict
        self._metadata = self.metadata.make_dict_copy(bunch)
    def get_metadata(self) -> "galaxy.model.metadata.MetadataCollection":
        # Alias for backwards compatibility with .get_metadata() calls in jbrowse/jbrowse2
        # https://github.com/galaxyproject/tools-iuc/blob/4095773348da6faeb6096f58785b66898b09befa/tools/jbrowse2/jbrowse2.xml#L88
        return self.metadata
    @property
    def set_metadata_requires_flush(self):
        return self.metadata.requires_dataset_id