mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
Bugfix: Don't show deleted HDCAs when displaying tool selection options.
This commit is contained in:
@@ -170,7 +170,7 @@ class DatasetCollectionsService(
|
||||
return validated_payload
|
||||
|
||||
def history_dataset_collections(self, history, query):
|
||||
collections = history.dataset_collections
|
||||
collections = history.active_dataset_collections
|
||||
collections = filter( query.direct_match, collections )
|
||||
return collections
|
||||
|
||||
|
||||
@@ -1738,7 +1738,7 @@ class DataToolParameter( BaseDataToolParameter ):
|
||||
|
||||
dataset_collection_matcher = DatasetCollectionMatcher( dataset_matcher )
|
||||
|
||||
for history_dataset_collection in history.dataset_collections:
|
||||
for history_dataset_collection in history.active_dataset_collections:
|
||||
if dataset_collection_matcher.hdca_match( history_dataset_collection, reduction=reduction ):
|
||||
name = history_dataset_collection.name
|
||||
hid = str( history_dataset_collection.hid )
|
||||
@@ -2042,7 +2042,7 @@ class DataCollectionToolParameter( BaseDataToolParameter ):
|
||||
dataset_matcher = DatasetMatcher( trans, self, value, other_values )
|
||||
dataset_collection_matcher = DatasetCollectionMatcher( dataset_matcher )
|
||||
|
||||
for history_dataset_collection in history.dataset_collections:
|
||||
for history_dataset_collection in history.active_dataset_collections:
|
||||
if not self._history_query( trans ).can_map_over( history_dataset_collection ):
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user