Skip to content

Commit

Permalink
fix: [ACI-560] add events to cms
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii committed Apr 12, 2024
1 parent e684b07 commit 051f253
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2734,6 +2734,18 @@ def _should_send_learning_badge_events(settings):
"enabled": _should_send_learning_badge_events,
},
},
"org.openedx.learning.badge.awarded.v1": {
"learning-badges-lifecycle": {
"event_key_field": "badge.uuid",
"enabled": _should_send_learning_badge_events
},
},
"org.openedx.learning.badge.revoked.v1": {
"learning-badges-lifecycle": {
"event_key_field": "badge.uuid",
"enabled": _should_send_learning_badge_events
},
},
}

derived_collection_entry(
Expand All @@ -2748,6 +2760,18 @@ def _should_send_learning_badge_events(settings):
"learning-badges-lifecycle",
"enabled",
)
derived_collection_entry(
"EVENT_BUS_PRODUCER_CONFIG",
"org.openedx.learning.badge.awarded.v1",
"learning-badges-lifecycle",
"enabled",
)
derived_collection_entry(
"EVENT_BUS_PRODUCER_CONFIG",
"org.openedx.learning.badge.revoked.v1",
"learning-badges-lifecycle",
"enabled",
)

# If the consumer encounters this many consecutive errors, exit with an error.
# This is intended to be used in a context where a management system (such as Kubernetes)
Expand Down

0 comments on commit 051f253

Please sign in to comment.