mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #11332 from simonbray/fix-run-tool
[21.01] Submit input_format to tools API in payload, not as a parameter
This commit is contained in:
@@ -486,8 +486,12 @@ class ToolsController(BaseAPIController, UsesVisualizationMixin):
|
||||
POST /api/tools
|
||||
Execute tool with a given parameter payload
|
||||
|
||||
:param input_format: input format for the payload. Possible values are the default 'legacy' (where inputs nested inside conditionals or repeats are identified with e.g. '<conditional_name>|<input_name>') or '21.01' (where inputs inside conditionals or repeats are nested elements).
|
||||
:type input_format: string
|
||||
:param input_format: input format for the payload. Possible values are
|
||||
the default 'legacy' (where inputs nested inside conditionals or
|
||||
repeats are identified with e.g. '<conditional_name>|<input_name>') or
|
||||
'21.01' (where inputs inside conditionals or repeats are nested
|
||||
elements).
|
||||
:type input_format: str
|
||||
"""
|
||||
tool_id = payload.get("tool_id")
|
||||
tool_uuid = payload.get("tool_uuid")
|
||||
@@ -559,7 +563,7 @@ class ToolsController(BaseAPIController, UsesVisualizationMixin):
|
||||
# as a regular tool parameter we accept both.
|
||||
use_cached_job = payload.get('use_cached_job', False) or util.string_as_bool(inputs.get('use_cached_job', 'false'))
|
||||
|
||||
input_format = kwd.get('input_format', 'legacy')
|
||||
input_format = str(payload.get('input_format', 'legacy'))
|
||||
|
||||
vars = tool.handle_input(trans, incoming, history=target_history, use_cached_job=use_cached_job, input_format=input_format)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user