-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Cannot Launch Workflows if POL enabled but left empty #8420
Comments
Do we know if this is a regression? If not, it probably doesn't belong in this milestone. |
I tried this same thing out with a job template and didn't get an error on launch so that got me looking at what might be different between the two scenarios. For job templates, here's what the OPTIONS response for each of those fields looks like:
And for workflow job templates:
Note that the default value for these fields on a job template is an empty string but on a workflow job template it's null. So when we save a workflow job template without a default limit/scm_branch those values are set to null. When the user goes to launch the workflow, if they don't interact with those fields then we pass the default (null) through to the POST params and we hit: |
Talked to @mabashian about this - if there's a simple way to work around it in the UI (i.e., send an empty string, instead of Also, @wenottingham @jneedle feel free to convince me I'm wrong, but this doesn't belong in this milestone. |
See also: #8561 |
ISSUE TYPE
SUMMARY
Cannot Launch Workflows if POL enabled but left empty
ENVIRONMENT
STEPS TO REPRODUCE
Note: Error
EXPECTED RESULTS
If Prompt on Launch enabled, it should not be required
ACTUAL RESULTS
Error thrown
ADDITIONAL INFORMATION
The text was updated successfully, but these errors were encountered: