mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Merge pull request #2935 from GSA/feature_enabled
Feature flag enabled for polling
This commit is contained in:
@@ -191,7 +191,7 @@ def create_app(application):
|
|||||||
@application.context_processor
|
@application.context_processor
|
||||||
def inject_feature_flags():
|
def inject_feature_flags():
|
||||||
# this is where feature flags can be easily added as a dictionary within context
|
# this is where feature flags can be easily added as a dictionary within context
|
||||||
feature_socket_enabled = application.config.get("FEATURE_SOCKET_ENABLED", False)
|
feature_socket_enabled = application.config.get("FEATURE_SOCKET_ENABLED", True)
|
||||||
return dict(
|
return dict(
|
||||||
FEATURE_SOCKET_ENABLED=feature_socket_enabled,
|
FEATURE_SOCKET_ENABLED=feature_socket_enabled,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ cloud_dot_gov_route: notify.app.cloud.gov
|
|||||||
redis_enabled: 1
|
redis_enabled: 1
|
||||||
nr_agent_id: '1050708682'
|
nr_agent_id: '1050708682'
|
||||||
nr_app_id: '1050708682'
|
nr_app_id: '1050708682'
|
||||||
FEATURE_SOCKET_ENABLED: false
|
FEATURE_SOCKET_ENABLED: true
|
||||||
API_PUBLIC_URL: https://notify-api-production.app.cloud.gov
|
API_PUBLIC_URL: https://notify-api-production.app.cloud.gov
|
||||||
API_PUBLIC_WS_URL: wss://notify-api-production.app.cloud.gov
|
API_PUBLIC_WS_URL: wss://notify-api-production.app.cloud.gov
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ cloud_dot_gov_route: notify-staging.app.cloud.gov
|
|||||||
redis_enabled: 1
|
redis_enabled: 1
|
||||||
nr_agent_id: '1134291385'
|
nr_agent_id: '1134291385'
|
||||||
nr_app_id: '1031640326'
|
nr_app_id: '1031640326'
|
||||||
FEATURE_SOCKET_ENABLED: false
|
FEATURE_SOCKET_ENABLED: true
|
||||||
API_PUBLIC_URL: https://notify-api-staging.app.cloud.gov
|
API_PUBLIC_URL: https://notify-api-staging.app.cloud.gov
|
||||||
API_PUBLIC_WS_URL: wss://notify-api-staging.app.cloud.gov
|
API_PUBLIC_WS_URL: wss://notify-api-staging.app.cloud.gov
|
||||||
|
|||||||
Reference in New Issue
Block a user