Open jakemcdermott opened 4 years ago
Note: If this gets put on the roadmap for some release, I would be happy to do it. lmk
@jakemcdermott @wenottingham is this a near-term priority that we should track as part of the upcoming UI rewrite?
Add a global toggle switch to the system settings (sysadmins only) for disabling all notifications and scheduled jobs.
Also, I would like to disable it on each notification template. At the current Tower cannot disable the notification template without removing the setting.
ISSUE TYPE
SUMMARY
As an admin of several well-loved towers and awx instances used by people to do work in the past, I've often wished for a simple way to turn off all notifications and/or scheduled jobs globally.
Example scenarios:
A job or workflow has started unexpectedly failing and I want to debug the playbooks in production. To avoid spamming the team's slack channels, emails, etc. with repeat failure notifications while I shamelessly hack my way to a solution, I need to sign in and manually disable every single notification related to any job template in my workflows before iterating. I also need to remember to turn everything back on once I'm done.
I'm running a backup-restore (or export-import) procedure to preview some new changes or set up a development, test, or staging environment with rich data copied over from a live tower or awx instance. Unless I immediately sign in and delete all schedules, the timed jobs on the copied instance will attempt to run at their scheduled times, likely creating unexpected and potentially disastrous results like duplicate jobs from both the source and destination instances executing against the same hosts at the same time.
Proposed idea
Add a global toggle switch to the system settings (sysadmins only) for disabling all notifications and scheduled jobs.
Also add an option to installers and restore playbooks that disable these things as part of the post-install or post-restore process.