From c6b468307aa211df79017773d15a0af147f04504 Mon Sep 17 00:00:00 2001 From: eemaanamir Date: Mon, 23 Sep 2024 16:59:02 +0500 Subject: [PATCH 1/2] chore: update default notification preference for ora_grade_assigned --- openedx/core/djangoapps/notifications/base_notification.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/notifications/base_notification.py b/openedx/core/djangoapps/notifications/base_notification.py index 02b49df89444..b57d88cea616 100644 --- a/openedx/core/djangoapps/notifications/base_notification.py +++ b/openedx/core/djangoapps/notifications/base_notification.py @@ -212,8 +212,8 @@ 'name': 'ora_grade_assigned', 'is_core': False, 'info': '', - 'web': False, - 'email': False, + 'web': True, + 'email': True, 'push': False, 'email_cadence': EmailCadence.DAILY, 'non_editable': [], From c9372aa3ff5369c6d06dd8e729e0cf452df82fd9 Mon Sep 17 00:00:00 2001 From: eemaanamir Date: Mon, 23 Sep 2024 17:23:19 +0500 Subject: [PATCH 2/2] test: updated tests --- openedx/core/djangoapps/notifications/tests/test_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/notifications/tests/test_views.py b/openedx/core/djangoapps/notifications/tests/test_views.py index 27b369d925af..b7bd0414a27f 100644 --- a/openedx/core/djangoapps/notifications/tests/test_views.py +++ b/openedx/core/djangoapps/notifications/tests/test_views.py @@ -315,8 +315,8 @@ def _expected_api_response(self, course=None): 'info': 'Notifications for submission grading.' }, 'ora_grade_assigned': { - 'web': False, - 'email': False, + 'web': True, + 'email': True, 'push': False, 'email_cadence': 'Daily', 'info': ''