-
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
Allow modification of schedule if there are two of the same name #12407
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.
Thanks for finding and fixing this issue!
Could we also add a test in awx/awx_collection/tests/integration/targets/schedule/tasks
where you create two schedules with the same name and then try to delete one by name and assert that fails and then delete by name/unified_job_template and assert that works?
I can do, however that wouldn't necessarily have failed in the way you expect with the current code. Right now what happens if you create two of the same name using the modules it will just override the first with the second. Obviously the checking for a failure when no UJT is set will help us detect regression here though. |
29f6dc1
to
8e01674
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.
Looks good from a code perspective, will wait for QE to add coverage before merging
8e01674
to
f7a92fe
Compare
@john-westcott-iv I managed to get my pytest working properly and have added a unit test which captures the issue and should prevent regression |
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
f7a92fe
to
a1a98e9
Compare
a1a98e9
to
64b90d6
Compare
SUMMARY
Fixes issue where you couldn't modify or delete a schedule if two schedules of the same name exist.
related #12406
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION