Skip to content

Commit

Permalink
add profile version
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Nov 13, 2024
1 parent 661dd2a commit 78a8f91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/galaxy/tool_util/xsd/galaxy.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ List of behavior changes associated with profile versions:
- Do not use Galaxy python environment for `data_source_async` tools.
- Drop request parameters received by data source tools that are not declared in `<request_param_translation>` section.
### 24.2
- require a valid `data_ref` attribute for `data_column` parameters
### Examples
A normal tool:
Expand Down
5 changes: 4 additions & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,10 @@ def __init__(self, tool, input_source):
if self.accept_default:
self.optional = True
self.data_ref = input_source.get("data_ref", None)
assert self.data_ref is not None, f"data_column parameter {self.name} requires a valid data_ref attribute"
profile = tool.profile if tool else None
assert (
profile is None or Version(str(profile)) < Version("24.2") or self.data_ref is not None
), f"data_column parameter {self.name} requires a valid data_ref attribute"
self.ref_input = None
# Legacy style default value specification...
self.default_value = input_source.get("default_value", None)
Expand Down

0 comments on commit 78a8f91

Please sign in to comment.