From 12930da009e4a2a4b02bb4a7d99cda88b32d5f7f Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 24 Apr 2024 13:43:40 +0300 Subject: [PATCH] fix: [ACI-941, ACI-942] return aci.main badges_enabled feature --- credentials/settings/base.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/credentials/settings/base.py b/credentials/settings/base.py index b653a1a4d4..23977aff58 100644 --- a/credentials/settings/base.py +++ b/credentials/settings/base.py @@ -543,6 +543,9 @@ FAVICON_URL = "https://edx-cdn.org/v3/default/favicon.ico" LOGO_POWERED_BY_OPEN_EDX_URL = "https://edx-cdn.org/v3/prod/open-edx-tag.svg" +# Badges settings +BADGES_ENABLED = True + # Event Bus Settings EVENT_BUS_PRODUCER = "edx_event_bus_redis.create_producer" EVENT_BUS_CONSUMER = "edx_event_bus_redis.RedisEventConsumer" @@ -560,7 +563,7 @@ # .. toggle_warning: The default may be changed in a later release. # .. toggle_use_cases: opt_in "org.openedx.learning.badge.awarded.v1": { - "learning-badges-lifecycle": {"event_key_field": "badge.uuid", "enabled": True}, + "learning-badges-lifecycle": {"event_key_field": "badge.uuid", "enabled": BADGES_ENABLED}, }, # .. setting_name: EVENT_BUS_PRODUCER_CONFIG['org.openedx.learning.badge.revoked.v1'] # ['learning-badges-lifecycle']['enabled'] @@ -570,7 +573,7 @@ # .. toggle_warning: The default may be changed in a later release. # .. toggle_use_cases: opt_in "org.openedx.learning.badge.revoked.v1": { - "learning-badges-lifecycle": {"event_key_field": "badge.uuid", "enabled": True}, + "learning-badges-lifecycle": {"event_key_field": "badge.uuid", "enabled": BADGES_ENABLED}, }, }