-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fixes issues with extra var prompting in workflow nodes #4525
Fixes issues with extra var prompting in workflow nodes #4525
Conversation
Build succeeded.
|
Non-workflow scenarios locally tested:
I did come across #4293 (comment) The way I reproduced was by creating a JT with default and promptable extra vars that look like: When creating the workflow node I changed the variables to look like: Editing the node results in the extra vars looking like: I'll work on including a fix for ^^ in this PR |
Workflow scenarios tested:
|
…orm. Small bug fixes for extra var corner cases in workflow nodes.
Build succeeded.
|
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.
this all looks good so far as I understand it
recheck |
Build succeeded.
|
Build succeeded (gate pipeline).
|
SUMMARY
link #4293
The easiest way to reproduce the
pipe
in the extra vars was to:Here's a gif of part of that process:
This bug got introduced by #3669 which was a fix for a bug introduced by #3359.
The short of it is that
params.currentValues.extra_data
can be an object (json) or a string (yaml) when being processed and we need to be able to handle both scenarios.I went back and doubled checked that yaml comments were still being presented to the user on launch (see #3359 (comment) for more info on that).
I also dropped a commit in here to address the prompt tab spacing issues seen when launching a job from the job template form.
Before:
After:
ISSUE TYPE
COMPONENT NAME
AWX VERSION
awx: 6.1.0
ADDITIONAL INFORMATION
In addition to testing out the cases listed in #4293 and #3359 I've done some manual regression testing in the other places where extra variables are prompted. Schedules is one place that can be impacted by prompting changes. I double checked to make sure that promptable extra vars display properly when prompted for a schedule (both add and edit).