-
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
Implement an option to choose a job type on relaunch (issue #14177) #15249
base: devel
Are you sure you want to change the base?
Conversation
thanks, this is a nice addition to the job relaunch feature it would be nice to add a functional api test around this
take a look at some other tests have that creates/mocks job runs to get a good example to work with, and let me know if you need help with it |
Thank you. I have now added a working API test. |
I'll also mention that we have a new UI that is going to replace the old UI eventually You may wish to create a PR (or an issue) here as well once the api changes land https://github.com/ansible/ansible-ui |
Yeah, I noticed that and it looks really good. Will do :) |
905450f
to
ea49da0
Compare
ea49da0
to
00a015f
Compare
Hello @Sasa993! Thank you so much for making the requested changes. We have gone ahead and re-run CI checks. Would you mind rebasing this again when you have a chance? |
00a015f
to
a7f600d
Compare
Done 😃 |
e5dac84
to
177f4ae
Compare
177f4ae
to
91700f2
Compare
Hi @fosterseth, |
91700f2
to
8c15e1d
Compare
8c15e1d
to
db4e8b8
Compare
Quality Gate passedIssues Measures |
db4e8b8
to
b8dcbd9
Compare
Quality Gate passedIssues Measures |
b8dcbd9
to
dc2fa0e
Compare
Quality Gate passedIssues Measures |
SUMMARY
Supersedes #14837 - thought removing the issue ID from the feature branch would make the
api-schema
check in the workflow successful.Fixes 14177 issue.
This PR adds a feature for users to change the Job Type (run type) on relaunching the job.
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
Before this change, modifying the run type required creating a new job, which could be inconvenient, especially for jobs with numerous prompts. The aim is to improve the user experience by allowing users to choose the run type while relaunching the job.
I decided to use a dropdown instead of modal (modal was suggested in the issue).
By implementing a dropdown instead of a modal, we avoid potential negative impacts on the user experience. The dropdown was chosen as it is already used for failed jobs, providing a consistent interface.
The drop-down menu with the options for the job type will only appear when the job is relaunched from the Job Details page (as agreed in the previous PR discussion)