-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement workflow parameter validators. #19092
base: dev
Are you sure you want to change the base?
Conversation
952cc64
to
8b3ae58
Compare
lib/galaxy/workflow/modules.py
Outdated
if source_type == "regex": | ||
form_validators.append( | ||
{ | ||
"__index__": i, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we we need the __index__
field ? I thought this was legacy stuff from way back ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just felt safer since it is only used by the client UI. I tried dropping it though and everything seems fine still.
Which allows building repeats and conditionals.
We don't need to replciate this logic just for workflow parameters.
8b3ae58
to
dc63ce8
Compare
- Allow specifying a min/max for integer and float parameters. - Swap language from regex to "Regular Expression" and synchronize help with regular expression fields in rule builder. - Extend regular expression help. - Improve default message for in_range validator. Probably a reversion in some ways introduced with galaxyproject#19027.
dc63ce8
to
2507b03
Compare
The API test failure is legit - no clue why though. |
Synchronized the working implementation in #18781 with the parameter models introduced in #19027. Extended it to include min/max on integer and float parameters and to synchronize language and help with regular expression inputs form the rule builder.
How to test the changes?
(Select all options that apply)
License