forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [ACI-901] use customized openedx-events package to prevent CI fa…
…ilures (#2535) * ci: [ACI-901] change standard events to cuztomized to prevent ci failing * fix: [ACI-901] few fixes for ci * refactor: [ACI-901] refactor code to pass ci checks * style: [ACI-901] adjust style to pep8 --------- Co-authored-by: Andrii <[email protected]>
- Loading branch information
1 parent
7b9f037
commit 598d1b5
Showing
12 changed files
with
28 additions
and
27 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
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 |
---|---|---|
|
@@ -516,6 +516,14 @@ | |
# in the LMS and CMS. | ||
# .. toggle_tickets: 'https://github.com/open-craft/edx-platform/pull/429' | ||
'DISABLE_UNENROLLMENT': False, | ||
|
||
# .. toggle_name: FEATURES['BADGES_ENABLED'] | ||
# .. toggle_implementation: DjangoSetting | ||
# .. toggle_default: False | ||
# .. toggle_description: Set to True to enable the Badges feature. | ||
# .. toggle_use_cases: open_edx | ||
# .. toggle_creation_date: 2024-04-10 | ||
'BADGES_ENABLED': False, | ||
} | ||
|
||
# .. toggle_name: ENABLE_COPPA_COMPLIANCE | ||
|
@@ -2699,6 +2707,7 @@ | |
EVENT_BUS_REDIS_CONNECTION_URL = "redis://:[email protected]:6379/" | ||
EVENT_BUS_TOPIC_PREFIX = "dev" | ||
|
||
|
||
def _should_send_learning_badge_events(settings): | ||
return settings.FEATURES['BADGES_ENABLED'] | ||
|
||
|
@@ -2740,7 +2749,10 @@ def _should_send_learning_badge_events(settings): | |
"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) will relaunch the consumer automatically. | ||
# 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) | ||
# will relaunch the consumer automatically. | ||
|
||
#EVENT_BUS_REDIS_CONSUMER_CONSECUTIVE_ERRORS_LIMIT (defaults to None) | ||
|
||
# How long the consumer should wait for new entries in a stream. | ||
|
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
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 |
---|---|---|
|
@@ -5275,6 +5275,7 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring | |
EVENT_BUS_REDIS_CONNECTION_URL = "redis://:[email protected]:6379/" | ||
EVENT_BUS_TOPIC_PREFIX = "dev" | ||
|
||
|
||
def _should_send_learning_badge_events(settings): | ||
return settings.FEATURES['BADGES_ENABLED'] | ||
|
||
|
@@ -5316,7 +5317,9 @@ def _should_send_learning_badge_events(settings): | |
"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) will relaunch the consumer automatically. | ||
# 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) | ||
# will relaunch the consumer automatically. | ||
#EVENT_BUS_REDIS_CONSUMER_CONSECUTIVE_ERRORS_LIMIT (defaults to None) | ||
|
||
# How long the consumer should wait for new entries in a stream. | ||
|
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 |
---|---|---|
|
@@ -100,4 +100,4 @@ pytz==2022.2.1 | |
|
||
# openedx-events>0.13.0 causes test failures due to breaking changes | ||
# These broken tests will be fixed in a separate PR | ||
openedx-events==0.13.0 | ||
-e git+https://github.com/raccoongang/openedx-events[email protected]#egg=openedx_events |
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 |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
# via -r requirements/edx/github.in | ||
-e git+https://github.com/openedx/xblock-google-drive.git@2d176468e33c0713c911b563f8f65f7cf232f5b6#egg=xblock-google-drive | ||
# via -r requirements/edx/github.in | ||
-e git+https://github.com/raccoongang/[email protected]#egg=openedx_events | ||
# via -r requirements/edx/github.in | ||
acid-xblock==0.2.1 | ||
# via -r requirements/edx/base.in | ||
aiohttp==3.8.3 | ||
|
@@ -759,11 +761,6 @@ openedx-calc==3.0.1 | |
# via -r requirements/edx/base.in | ||
openedx-django-pyfs==3.2.1 | ||
# via xblock | ||
openedx-events==0.13.0 | ||
# via | ||
# -c requirements/edx/../constraints.txt | ||
# -r requirements/edx/base.in | ||
# edx-event-bus-kafka | ||
openedx-filters==0.8.0 | ||
# via | ||
# -r requirements/edx/base.in | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
# via -r requirements/edx/testing.txt | ||
-e git+https://github.com/openedx/xblock-google-drive.git@2d176468e33c0713c911b563f8f65f7cf232f5b6#egg=xblock-google-drive | ||
# via -r requirements/edx/testing.txt | ||
-e git+https://github.com/raccoongang/[email protected]#egg=openedx_events | ||
# via -r requirements/edx/testing.txt | ||
acid-xblock==0.2.1 | ||
# via -r requirements/edx/testing.txt | ||
aiohttp==3.8.3 | ||
|
@@ -991,11 +993,6 @@ openedx-django-pyfs==3.2.1 | |
# via | ||
# -r requirements/edx/testing.txt | ||
# xblock | ||
openedx-events==0.13.0 | ||
# via | ||
# -c requirements/edx/../constraints.txt | ||
# -r requirements/edx/testing.txt | ||
# edx-event-bus-kafka | ||
openedx-filters==0.8.0 | ||
# via | ||
# -r requirements/edx/testing.txt | ||
|
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 |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
# via -r requirements/edx/base.txt | ||
-e git+https://github.com/openedx/xblock-google-drive.git@2d176468e33c0713c911b563f8f65f7cf232f5b6#egg=xblock-google-drive | ||
# via -r requirements/edx/base.txt | ||
-e git+https://github.com/raccoongang/[email protected]#egg=openedx_events | ||
# via -r requirements/edx/base.txtß | ||
acid-xblock==0.2.1 | ||
# via -r requirements/edx/base.txt | ||
aiohttp==3.8.3 | ||
|
@@ -942,11 +944,6 @@ openedx-django-pyfs==3.2.1 | |
# via | ||
# -r requirements/edx/base.txt | ||
# xblock | ||
openedx-events==0.13.0 | ||
# via | ||
# -c requirements/edx/../constraints.txt | ||
# -r requirements/edx/base.txt | ||
# edx-event-bus-kafka | ||
openedx-filters==0.8.0 | ||
# via | ||
# -r requirements/edx/base.txt | ||
|