feat: send course role events to the event bus (#34158)
Notify the event bus when a user's role in a course is added or removed
This commit is contained in:
@@ -5455,6 +5455,14 @@ EVENT_BUS_PRODUCER_CONFIG = {
|
||||
# .. toggle_tickets: https://github.com/openedx/openedx-events/issues/210
|
||||
'enabled': False}
|
||||
},
|
||||
'org.openedx.learning.user.course_access_role.added.v1': {
|
||||
'learning-course-access-role-lifecycle':
|
||||
{'event_key_field': 'course_access_role_data.course_key', 'enabled': False},
|
||||
},
|
||||
'org.openedx.learning.user.course_access_role.removed.v1': {
|
||||
'learning-course-access-role-lifecycle':
|
||||
{'event_key_field': 'course_access_role_data.course_key', 'enabled': False},
|
||||
},
|
||||
# CMS events. These have to be copied over here because cms.common adds some derived entries as well,
|
||||
# and the derivation fails if the keys are missing. If we ever fully decouple the lms and cms settings,
|
||||
# we can remove these.
|
||||
|
||||
Reference in New Issue
Block a user