mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Add info about checklist to ticket
So that someone picking up a ticket can be warned that they should be checking these things.
This commit is contained in:
@@ -355,3 +355,23 @@ class Service(dict):
|
||||
return get_default_sms_sender(
|
||||
service_api_client.get_sms_senders(self.id)
|
||||
) in {'GOVUK', 'None'}
|
||||
|
||||
@property
|
||||
def go_live_checklist_completed(self):
|
||||
return all((
|
||||
self.has_team_members,
|
||||
self.has_templates,
|
||||
any((
|
||||
not self.has_email_templates,
|
||||
self.has_email_reply_to_address,
|
||||
)),
|
||||
any((
|
||||
not self.has_sms_templates,
|
||||
not self.shouldnt_use_govuk_as_sms_sender,
|
||||
not self.sms_sender_is_govuk,
|
||||
))
|
||||
))
|
||||
|
||||
@property
|
||||
def go_live_checklist_completed_as_yes_no(self):
|
||||
return 'Yes' if self.go_live_checklist_completed else 'No'
|
||||
|
||||
Reference in New Issue
Block a user