Skip to content

Commit

Permalink
fix: [ACI-941, ACI-942] return aci.main badges_enabled feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii committed Apr 24, 2024
1 parent 13fc2b6 commit 12930da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions credentials/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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']
Expand All @@ -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},
},
}

Expand Down

0 comments on commit 12930da

Please sign in to comment.