Add Global/Per-Inventory Checkbox for Notifications in Templates
#14,054 opened on May 26, 2023
Repository metrics
- Stars
- (13,071 stars)
- PR merge metrics
- (Avg merge 24d 6h) (30 merged PRs in 30d)
Description
Please confirm the following
- I agree to follow this project's code of conduct.
- I have checked the current issues for duplicates.
- I understand that AWX is open source software provided for free and that I might not receive a timely response.
Feature type
New Feature
Feature Summary
I'd like to suggest an enhancement for the AWX notifications feature. Currently, the notifications section for job templates is a great feature that allows us to get notified when certain events occur. However, I noticed that there's no way to easily specify whether these notifications are applied globally or only to a specific inventory.
I propose adding a new checkbox in the notifications settings of each job template that allows users to specify whether the notifications should be considered as global or specific to each inventory.
My use case for this is that I have many dev environments where I don't need notifications, however, prod deployments are worthy of notifications and I'd like to be able to affiliate my notifications with a specific inventory or have it be global. I think having this flag at the template level would be useful.
Select the relevant components
- UI
- API
- Docs
- Collection
- CLI
- Other
Steps to reproduce
-
Navigate to the AWX dashboard and select a Job Template. - In the Job Template, click on the 'Notifications' tab.
- Configure a notification for the template by selecting a notification type and setting the necessary parameters.
- Save the notification.
At this point, the notification is set for the template, but it's applied globally across all inventories. There's no way to specify that the notification should only apply to certain inventories.
Current results
Currently, when a notification is set up in a Job Template, it applies to all events for that template across all inventories. There's no option to limit or designate these notifications to specific inventories. This means that notifications are being sent out globally regardless of the context or the user's specific needs. The only way to manage this currently is to create different job templates for different inventories which can be cumbersome and inefficient, especially when working with a large number of inventories.
Sugested feature result
With the proposed feature, users will have the ability to control the scope of notifications in AWX at a much granular level. A new checkbox would be introduced in the notifications setup section of each Job Template, allowing users to designate notifications as either 'global' or 'per inventory'.
When a user selects 'global', the notification will be sent out for all events related to that Job Template across all inventories, just like it is currently. However, when a user selects 'per inventory' with a dropdown of the existing inventories which can be selected resulting in the notification being sent out for events that are specifically related to certain inventories.
This feature will allow users to have a more targeted and efficient notification system in AWX. It would save time and resources by avoiding unnecessary notifications and allowing users to focus on the events that are most relevant to them. It also enhances the flexibility and customizability of the AWX system, making it easier to tailor to individual needs and workflows.
In summary, this feature brings improved notification management, efficiency, and user control in AWX, significantly enhancing user experience and system usability.
Additional information
No response