From a1ccd5bb8fdc64d2e8e008bd732f9966a6d5d45e Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 19 Mar 2021 15:54:01 +0100 Subject: [PATCH] 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 --- lib/galaxy/managers/jobs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/managers/jobs.py b/lib/galaxy/managers/jobs.py index 40cab0a1481..c8df5509fa3 100644 --- a/lib/galaxy/managers/jobs.py +++ b/lib/galaxy/managers/jobs.py @@ -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,