Files
galaxy/test/functional/tools/parameters
John ChiltonandClaude Opus 4.6 a557064111 Fix optional text default_value handling across input formats
strictify() and _fill_default_for() in convert.py ignored
parameter.default_value for optional text params, hardcoding None
for absent values. Additionally both used `or` which swallowed
empty string defaults due to Python falsiness.

This caused inconsistent behavior for absent params on tools with
value="" across input formats:

| Input | optional (no default) | optional value="" | optional value="" + regex |
|-------|----------------------|-------------------|--------------------------|
| {}    | None                 | ""                | ""                        |
| None  | None                 | None              | None                      |
| ""    | ""                   | ""                | ""                        |
| valid | value                | value             | value                     |
| bad   | value                | value             | fails                     |

All rows now consistent across legacy, 21.01, and request formats.

Test tools added:
- gx_text_optional_with_empty_default (optional text, value="", no validator)
- gx_text_optional_with_empty_default_regex_validation (the wild case)
- gx_text_optional_regex_validation updated to have no default

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 13:32:38 -04:00
..
2024-09-30 13:25:02 -04:00
2024-09-30 13:25:02 -04:00
2024-09-30 13:25:02 -04:00
2024-10-22 07:49:37 -04:00
2024-10-22 07:49:37 -04:00
2024-10-22 07:49:37 -04:00
2024-09-30 13:25:02 -04:00
2024-10-22 07:49:37 -04:00
2024-10-22 07:49:37 -04:00
2024-10-22 07:49:37 -04:00
2024-10-22 07:49:37 -04:00