Fix feature flag case sensitivity for Cloud Foundry environments

This commit is contained in:
Beverly Nguyen
2025-10-29 10:15:36 -07:00
parent 3cbdffa21e
commit f498553a49
3 changed files with 4 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ class Config(object):
NOTIFY_SERVICE_ID = "d6aa2c68-a2d9-4437-ab19-3ae8eb202553"
ORGANIZATION_DASHBOARD_ENABLED = (
getenv("ORGANIZATION_DASHBOARD_ENABLED", "False") == "True"
getenv("ORGANIZATION_DASHBOARD_ENABLED", "false").lower() == "true"
)
NOTIFY_BILLING_DETAILS = json.loads(getenv("NOTIFY_BILLING_DETAILS") or "null") or {
@@ -115,7 +115,7 @@ class Development(Config):
# Feature Flags
ORGANIZATION_DASHBOARD_ENABLED = (
getenv("ORGANIZATION_DASHBOARD_ENABLED", "True") == "True"
getenv("ORGANIZATION_DASHBOARD_ENABLED", "true").lower() == "true"
)
# Buckets

View File

@@ -8,4 +8,4 @@ redis_enabled: 1
nr_agent_id: '1050708682'
nr_app_id: '1050708682'
API_PUBLIC_URL: https://notify-api-production.app.cloud.gov
ORGANIZATION_DASHBOARD_ENABLED: False
ORGANIZATION_DASHBOARD_ENABLED: false

View File

@@ -8,4 +8,4 @@ redis_enabled: 1
nr_agent_id: '1134291385'
nr_app_id: '1031640326'
API_PUBLIC_URL: https://notify-api-staging.app.cloud.gov
ORGANIZATION_DASHBOARD_ENABLED: True
ORGANIZATION_DASHBOARD_ENABLED: true