-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove manual sends of events (#33642)
- Loading branch information
Rebecca Graber
authored
Nov 3, 2023
1 parent
9ba9935
commit ddabba4
Showing
9 changed files
with
19 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,24 +301,22 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing | |
CREDENTIALS_PUBLIC_SERVICE_URL = 'http://localhost:18150' | ||
|
||
#################### Event bus backend ######################## | ||
# .. toggle_name: FEATURES['ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS'] | ||
# .. toggle_implementation: DjangoSetting | ||
# .. toggle_default: False | ||
# .. toggle_description: Temporary configuration which enables sending xblock events over the event bus. | ||
# .. toggle_use_cases: open_edx | ||
# .. toggle_creation_date: 2023-02-21 | ||
# .. toggle_warning: For consistency in user experience, keep the value in sync with the setting of the same name | ||
# in the LMS and CMS. | ||
# This will be deprecated in favor of ENABLE_SEND_XBLOCK_LIFECYCLE_EVENTS_OVER_BUS | ||
# .. toggle_tickets: 'https://github.com/openedx/edx-platform/pull/31813' | ||
FEATURES['ENABLE_SEND_XBLOCK_EVENTS_OVER_BUS'] = True | ||
FEATURES['ENABLE_SEND_ENROLLMENT_EVENTS_OVER_BUS'] = True | ||
|
||
EVENT_BUS_PRODUCER = 'edx_event_bus_redis.create_producer' | ||
EVENT_BUS_REDIS_CONNECTION_URL = 'redis://:[email protected]:6379/' | ||
EVENT_BUS_TOPIC_PREFIX = 'dev' | ||
EVENT_BUS_CONSUMER = 'edx_event_bus_redis.RedisEventConsumer' | ||
EVENT_BUS_XBLOCK_LIFECYCLE_TOPIC = 'course-authoring-xblock-lifecycle' | ||
EVENT_BUS_ENROLLMENT_LIFECYCLE_TOPIC = 'course-authoring-enrollment-lifecycle' | ||
|
||
course_catalog_event_setting = EVENT_BUS_PRODUCER_CONFIG['org.openedx.content_authoring.course.catalog_info.changed.v1'] | ||
course_catalog_event_setting['course-catalog-info-changed']['enabled'] = True | ||
|
||
xblock_published_event_setting = EVENT_BUS_PRODUCER_CONFIG['org.openedx.content_authoring.xblock.published.v1'] | ||
xblock_published_event_setting['course-authoring-xblock-lifecycle']['enabled'] = True | ||
xblock_deleted_event_setting = EVENT_BUS_PRODUCER_CONFIG['org.openedx.content_authoring.xblock.deleted.v1'] | ||
xblock_deleted_event_setting['course-authoring-xblock-lifecycle']['enabled'] = True | ||
xblock_duplicated_event_setting = EVENT_BUS_PRODUCER_CONFIG['org.openedx.content_authoring.xblock.duplicated.v1'] | ||
xblock_duplicated_event_setting['course-authoring-xblock-lifecycle']['enabled'] = True | ||
|
||
|
||
################# New settings must go ABOVE this line ################# | ||
######################################################################## | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.