Skip to content

Commit

Permalink
Only encode ids in internal method _handle_inputs_output_to_api_respo…
Browse files Browse the repository at this point in the history
…nse of unkown datastructure outputs
  • Loading branch information
heisner-tillman committed Apr 4, 2024
1 parent 07aa728 commit e51dd92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/services/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ def _handle_inputs_output_to_api_response(self, trans, tool, target_history, var
output_dict["output_name"] = output_name
outputs.append(output_dict)

trans.security.encode_all_ids(rval, recursive=True)

for output_name, collection_instance in vars.get("output_collections", []):
history = target_history or trans.history
output_dict = dictify_dataset_collection_instance(
Expand All @@ -292,8 +294,6 @@ def _handle_inputs_output_to_api_response(self, trans, tool, target_history, var
output_dict["output_name"] = output_name
rval["implicit_collections"].append(output_dict)

trans.security.encode_all_ids(rval, recursive=True)

# Encoding the job ids is handled by the pydantic model
for job in vars.get("jobs", []):
rval["jobs"].append(job.to_dict(view="collection"))
Expand Down

0 comments on commit e51dd92

Please sign in to comment.