-
Notifications
You must be signed in to change notification settings - Fork 205
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
Validate parameters passed to job group API routes #2812
Validate parameters passed to job group API routes #2812
Conversation
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.
nice :)
9737218
to
d3c73ef
Compare
+1 UI test failed with:
|
d3c73ef
to
6b7276e
Compare
After spending considerable time debugging this, my finding is this: $self-validation->param consistently returns no value if the value is indeed |
I've proposed an upstream change that might help with this. mojolicious/mojo#1482 |
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.
I guess it is best if @kraih give a review because he knows best how the validator API is supposed to be used.
6b7276e
to
2ef134a
Compare
Codecov Report
@@ Coverage Diff @@
## master #2812 +/- ##
==========================================
+ Coverage 93.27% 93.29% +0.02%
==========================================
Files 189 189
Lines 11917 11912 -5
==========================================
- Hits 11115 11113 -2
+ Misses 802 799 -3
Continue to review full report at Codecov.
|
2ef134a
to
7b31212
Compare
7b31212
to
bae48ac
Compare
bae48ac
to
4d7c8ec
Compare
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.
Let's see whether the tests pass.
{keep_important_logs_in_days => '4 days'}, | ||
{keep_results_in_days => '30 days'}, | ||
{keep_important_results_in_days => '1 days'}, | ||
{default_priority => 'inherit'}, |
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.
It would actually make sense to allow this so one can revert to the inherited value. But it looks like that is really not supported so far so I'm fine considering this invalid at this point.
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.
Yes, and since we support that with job templates one could be forgiven for trying to use that. So I picked the invalid
value here as well to highlight that it is not supported.
See also os-autoinst#2781 for validation in JobTemplate. See: https://progress.opensuse.org/issues/64075
4d7c8ec
to
4495ec4
Compare
See also #2781 for validation in JobTemplate.
See: poo#64075