mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 07:58:25 -04:00
Audit when a service is archived ("deleted")
This is similar to the previous commit. I've used the term 'archive' to match the rest of the code - services aren't ever truly deleted.
This commit is contained in:
@@ -78,6 +78,17 @@ def create_suspend_service_event(
|
||||
)
|
||||
|
||||
|
||||
def create_archive_service_event(
|
||||
service_id,
|
||||
archived_by_id,
|
||||
):
|
||||
_send_event(
|
||||
'archive_service',
|
||||
service_id=service_id,
|
||||
archived_by_id=archived_by_id,
|
||||
)
|
||||
|
||||
|
||||
def _send_event(event_type, **kwargs):
|
||||
event_data = _construct_event_data(request)
|
||||
event_data.update(kwargs)
|
||||
|
||||
Reference in New Issue
Block a user