Skip to content

Commit

Permalink
Merge branch 'release_24.1' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jul 17, 2024
2 parents f742784 + d184979 commit 6548044
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
18 changes: 5 additions & 13 deletions client/src/composables/datatypesMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,11 @@ export function useDatatypesMapper() {
const datatypes: Ref<string[]> = ref([]);

async function getDatatypesMapper() {
try {
await datatypesMapperStore.createMapper();
datatypesMapper.value = datatypesMapperStore.datatypesMapper;
if (datatypesMapperStore.datatypesMapper) {
datatypes.value = datatypesMapperStore.datatypesMapper.datatypes;
}
} catch (e) {
console.error("unable to create datatypes mapper\n", e);
} finally {
datatypesMapperLoading.value = false;
}
if (!datatypesMapperStore.datatypesMapper) {
throw Error("Error creating datatypesMapper");
await datatypesMapperStore.createMapper();
datatypesMapperLoading.value = datatypesMapperStore.loading;
datatypesMapper.value = datatypesMapperStore.datatypesMapper;
if (datatypesMapperStore.datatypesMapper) {
datatypes.value = datatypesMapperStore.datatypesMapper.datatypes;
}
}

Expand Down
3 changes: 2 additions & 1 deletion lib/galaxy/datatypes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions lib/galaxy/datatypes/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class HasCreatingJob(Protocol):
def creating_job(self): ...


class HasDeleted(Protocol):
deleted: bool


class HasExt(Protocol):
@property
def ext(self): ...
Expand Down Expand Up @@ -55,6 +59,7 @@ class HasExtraFilesAndMetadata(HasExtraFilesPath, HasMetadata, Protocol): ...

class DatasetProtocol(
HasCreatingJob,
HasDeleted,
HasExt,
HasExtraFilesPath,
HasFileName,
Expand Down
3 changes: 2 additions & 1 deletion lib/galaxy/datatypes/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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
Expand Down

0 comments on commit 6548044

Please sign in to comment.