mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Do not allow the dataset to be purged ( set purgable to False ) for datasets uploaded to a library where the file is not copied into Galaxy's default file location.
This commit is contained in:
@@ -932,7 +932,10 @@ class LibraryCommon( BaseController ):
|
||||
if params.get( 'link_data_only', False ):
|
||||
uploaded_dataset.link_data_only = True
|
||||
uploaded_dataset.data.file_name = os.path.abspath( path )
|
||||
trans.sa_session.add( uploaded_dataset.data )
|
||||
# Since we are not copying the file into Galaxy's managed
|
||||
# default file location, the dataset should never be purgable.
|
||||
uploaded_dataset.data.dataset.purgable = False
|
||||
trans.sa_session.add_all( ( uploaded_dataset.data, uploaded_dataset.data.dataset ) )
|
||||
trans.sa_session.flush()
|
||||
return uploaded_dataset
|
||||
def get_server_dir_uploaded_datasets( self, trans, cntrller, params, full_dir, import_dir_desc, library_bunch, err_redirect, message ):
|
||||
|
||||
Reference in New Issue
Block a user