mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Small optimization for implicit collection creation from tool execution.
Don't write out encode identifier, add to dict, and then reload object in dataset collection service - just pass through the object in the dictionary as is.
This commit is contained in:
@@ -54,8 +54,12 @@ class DatasetCollectionsService(
|
||||
):
|
||||
"""
|
||||
"""
|
||||
if element_identifiers:
|
||||
# Trust embedded, newly created objects created by tool subsystem.
|
||||
trusted_identifiers = implicit_collection_info is not None
|
||||
|
||||
if element_identifiers and not trusted_identifiers:
|
||||
validate_input_element_identifiers( element_identifiers )
|
||||
|
||||
dataset_collection = self.__create_dataset_collection(
|
||||
trans=trans,
|
||||
collection_type=collection_type,
|
||||
|
||||
@@ -78,7 +78,7 @@ class Tree( object ):
|
||||
child_identifiers[ "name" ] = identifier
|
||||
element_identifiers.append( child_identifiers )
|
||||
else:
|
||||
element_identifiers.append( dict( name=identifier, src="hda", id=trans.security.encode_id( datasets[ 0 ].id ) ) )
|
||||
element_identifiers.append( dict( name=identifier, __object__=datasets[ 0 ] ) )
|
||||
|
||||
datasets = datasets[ len( child ): ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user