Skip to content

Commit

Permalink
refactor: [ACI-814] simplify grade status events
Browse files Browse the repository at this point in the history
  • Loading branch information
wowkalucky committed Mar 30, 2024
1 parent d72ed78 commit ae46de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lms/djangoapps/grades/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ def course_grade_now_passed(user, course_id):
course=CourseData(
course_key=course_id,
),
update_timestamp=None,
grading_policy_hash=None,
)
)

Expand Down Expand Up @@ -248,8 +246,6 @@ def course_grade_now_failed(user, course_id):
course=CourseData(
course_key=course_id,
),
update_timestamp=None,
grading_policy_hash=None,
)
)

Expand Down
4 changes: 2 additions & 2 deletions lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5277,13 +5277,13 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
# Note: The topic names should not include environment prefix as it will be dynamically added based on
# EVENT_BUS_TOPIC_PREFIX setting.
EVENT_BUS_PRODUCER_CONFIG = {
"org.openedx.learning.course.passing.status.v1": {
"org.openedx.learning.course.passing.status.updated.v1": {
"learning-badges-lifecycle": {
"event_key_field": "course_passing_status.course.course_key",
"enabled": True,
},
},
"org.openedx.learning.ccx.course.passing.status.v1": {
"org.openedx.learning.ccx.course.passing.status.updated.v1": {
"learning-badges-lifecycle": {
"event_key_field": "course_passing_status.course.course_key",
"enabled": True,
Expand Down

0 comments on commit ae46de4

Please sign in to comment.