mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04:00
Add new virus scan statuses
Added the following new notification statuses: * pending_virus_check * virus_scan_failed If we decide to remove these statuses in future, we will need to replace them with a different status in the notifications and Notification_history tables where they are referenced, so pending-virus-check will be replaced with sending, and virus-scan-failed will be replaced with permanent-failure.
This commit is contained in:
@@ -1003,11 +1003,14 @@ NOTIFICATION_FAILED = 'failed'
|
||||
NOTIFICATION_TECHNICAL_FAILURE = 'technical-failure'
|
||||
NOTIFICATION_TEMPORARY_FAILURE = 'temporary-failure'
|
||||
NOTIFICATION_PERMANENT_FAILURE = 'permanent-failure'
|
||||
NOTIFICATION_PENDING_VIRUS_CHECK = 'pending-virus-check'
|
||||
NOTIFICATION_VIRUS_SCAN_FAILED = 'virus-scan-failed'
|
||||
|
||||
NOTIFICATION_STATUS_TYPES_FAILED = [
|
||||
NOTIFICATION_TECHNICAL_FAILURE,
|
||||
NOTIFICATION_TEMPORARY_FAILURE,
|
||||
NOTIFICATION_PERMANENT_FAILURE,
|
||||
NOTIFICATION_VIRUS_SCAN_FAILED,
|
||||
]
|
||||
|
||||
NOTIFICATION_STATUS_TYPES_COMPLETED = [
|
||||
@@ -1044,6 +1047,8 @@ NOTIFICATION_STATUS_TYPES = [
|
||||
NOTIFICATION_TECHNICAL_FAILURE,
|
||||
NOTIFICATION_TEMPORARY_FAILURE,
|
||||
NOTIFICATION_PERMANENT_FAILURE,
|
||||
NOTIFICATION_PENDING_VIRUS_CHECK,
|
||||
NOTIFICATION_VIRUS_SCAN_FAILED,
|
||||
]
|
||||
|
||||
NOTIFICATION_STATUS_TYPES_NON_BILLABLE = list(set(NOTIFICATION_STATUS_TYPES) - set(NOTIFICATION_STATUS_TYPES_BILLABLE))
|
||||
|
||||
Reference in New Issue
Block a user