5 Commits
Author SHA1 Message Date
John ChiltonandClaude Opus 5.5 7c269bf424 Load reference_data inputs through their authoring model
The parser, parameter model factory and ReferenceDataToolParameter read
the table from the validated YamlReferenceDataParameter instead of the raw
dict; the factory returns its to_internal(). Disk tools now get the API's
validation errors (e.g. a leftover filter key).

CanonicalYamlReferenceDataInputSource validates once and hands raw-dict
readers (SelectToolParameter) the model's coerced flags, so the form and
the parameter model agree on multiple/optional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:16:23 +01:00
John ChiltonandClaude Opus 5.5 0b481f9d68 Reject reference_data unless the input source is a YAML tool's
XML params with an <options> child passed the basic.py guard, and the
parameter model factory accepted any reference_data param. Both now ask
the input source for its validated reference_data definition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:02:55 +01:00
John ChiltonandClaude Opus 5.5 a610accbfa Baseline tests: Load reference_data nested in sections and conditional whens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:02:44 +01:00
John ChiltonandClaude Opus 5.5 11fd271982 Baseline tests: Strengthen closed reference_data table tests
API test asserts the form offers no options and the 400 names the
parameter; closed-after-submit unit test covers validated_state too and
pins the failure to from_json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:31:12 +01:00
mvdbeek 7d600b0b90 Add reference_data input for YAML tools
User-defined tools had no way to read reference data installed through
tool data tables. A `reference_data` input offers a table's entries as
a select and hands the chosen entry to expressions like a dataset, with
`path`, `basename`, `source` and the table's other columns under
`metadata`. `multiple: true` supplies a list of entries.

It has its own parameter model, ReferenceDataParameterModel
(gx_reference_data), which runtimeify, the YAML v1 parameter allowlist
and the test case conversions match on. The tool form renders it as a
select.

GalaxyUserTool can only read tables an admin marked `user_accessible`,
checked on the form and again when the job runs. Admin-installed
GalaxyTool YAML tools can read every table.

Refs #22700
2026-11-10 19:05:07 +01:00