Expose commandline if expose_dataset_path is set

This restores what templates/show_params.mako used to do prior to https://github.com/galaxyproject/galaxy/pull/10980/
Fixes https://github.com/galaxyproject/galaxy/issues/11651
This commit is contained in:
mvdbeek
2021-04-26 12:24:37 +02:00
parent b2d63cd71b
commit a1ccd5bb8f
+2
View File
@@ -387,6 +387,8 @@ class JobSearch:
def view_show_job(trans, job, full: bool) -> typing.Dict:
is_admin = trans.user_is_admin
job_dict = trans.app.security.encode_all_ids(job.to_dict('element', system_details=is_admin), True)
if trans.app.config.expose_dataset_path and 'command_line' not in job_dict:
job_dict['command_line'] = job.command_line
if full:
job_dict.update(dict(
tool_stdout=job.tool_stdout,