Skip to content

Commit 9e08047

Browse files
committed
Merge branch 'release_25.1' into dev
2 parents 22ed9fe + fee2ed0 commit 9e08047

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/galaxy/model/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
from sqlalchemy.orm.session import Session
132132
from sqlalchemy.sql.expression import FromClause
133133
from typing_extensions import (
134+
deprecated,
134135
Literal,
135136
NotRequired,
136137
Protocol,
@@ -2030,6 +2031,21 @@ def set_state(self, state: JobState) -> bool:
20302031
self.state_history.append(JobStateHistory(self))
20312032
return True
20322033

2034+
@deprecated("Use tool.get_param_values(job) instead")
2035+
def get_param_values(self, app, ignore_errors=False):
2036+
"""
2037+
Read encoded parameter values from the database and turn back into a
2038+
dict of tool parameter values.
2039+
"""
2040+
tool = app.toolbox.get_tool(
2041+
self.tool_id,
2042+
tool_version=self.tool_version,
2043+
tool_uuid=self.dynamic_tool and self.dynamic_tool.uuid,
2044+
user=self.user,
2045+
)
2046+
param_dict = tool.get_param_values(self, ignore_errors=ignore_errors)
2047+
return param_dict
2048+
20332049
def raw_param_dict(self):
20342050
param_dict = {p.name: p.value for p in self.parameters}
20352051
return param_dict

0 commit comments

Comments
 (0)