diff --git a/lib/galaxy/datatypes/interval.py b/lib/galaxy/datatypes/interval.py index 923be082b95d..c681dafb8c1c 100644 --- a/lib/galaxy/datatypes/interval.py +++ b/lib/galaxy/datatypes/interval.py @@ -193,7 +193,8 @@ def set_meta( def displayable(self, dataset: DatasetProtocol) -> bool: try: return ( - not dataset.dataset.purged + not dataset.deleted + and not dataset.dataset.purged and dataset.has_data() and dataset.state == dataset.states.OK and dataset.metadata.columns > 0 diff --git a/lib/galaxy/datatypes/protocols.py b/lib/galaxy/datatypes/protocols.py index 5bc07c20c9f2..ac4e3de166ca 100644 --- a/lib/galaxy/datatypes/protocols.py +++ b/lib/galaxy/datatypes/protocols.py @@ -16,6 +16,10 @@ class HasCreatingJob(Protocol): def creating_job(self): ... +class HasDeleted(Protocol): + deleted: bool + + class HasExt(Protocol): @property def ext(self): ... @@ -55,6 +59,7 @@ class HasExtraFilesAndMetadata(HasExtraFilesPath, HasMetadata, Protocol): ... class DatasetProtocol( HasCreatingJob, + HasDeleted, HasExt, HasExtraFilesPath, HasFileName, diff --git a/lib/galaxy/datatypes/tabular.py b/lib/galaxy/datatypes/tabular.py index 8bfde1202c31..d55b31fc1fc8 100644 --- a/lib/galaxy/datatypes/tabular.py +++ b/lib/galaxy/datatypes/tabular.py @@ -134,7 +134,8 @@ def set_peek(self, dataset: DatasetProtocol, **kwd) -> None: def displayable(self, dataset: DatasetProtocol) -> bool: try: return ( - not dataset.dataset.purged + not dataset.deleted + and not dataset.dataset.purged and dataset.has_data() and dataset.state == dataset.states.OK and dataset.metadata.columns > 0