move service to broadcast org when broadcasting is enabled

we want to keep track of all broadcast services across govt easily. As
such, when broadcasting is enabled for a service, we've decided we're
going to add the service to a special broadcasting organisation.

This organisation is defined in the config file. It's hard coded for
production, if you want to test locally, you should set
BROADCAST_ORGANISATION_ID in your local environment.
This commit is contained in:
Leo Hemsted
2020-09-22 18:18:00 +01:00
parent a75cde039f
commit 93d1137474
4 changed files with 50 additions and 4 deletions

View File

@@ -84,6 +84,8 @@ class Config(object):
ASSET_DOMAIN = ''
ASSET_PATH = '/static/'
BROADCAST_ORGANISATION_ID = os.environ.get('BROADCAST_ORGANISATION_ID')
NOTIFY_SERVICE_ID = 'd6aa2c68-a2d9-4437-ab19-3ae8eb202553'
@@ -177,6 +179,8 @@ class Live(Config):
ASSET_DOMAIN = 'static.notifications.service.gov.uk'
ASSET_PATH = 'https://static.notifications.service.gov.uk/'
BROADCAST_ORGANISATION_ID = '38e4bf69-93b0-445d-acee-53ea53fe02df'
class CloudFoundryConfig(Config):
pass