From 51d84c196d711f2ac185cebf60967c3509866cbb Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Mon, 6 May 2024 12:16:17 +0500 Subject: [PATCH] fix: updated notification pref version (#2210) --- openassessment/__init__.py | 2 +- openassessment/xblock/test/test_notifications.py | 2 +- openassessment/xblock/utils/notifications.py | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openassessment/__init__.py b/openassessment/__init__.py index 671adaf9a3..06ac82e266 100644 --- a/openassessment/__init__.py +++ b/openassessment/__init__.py @@ -2,4 +2,4 @@ Initialization Information for Open Assessment Module """ -__version__ = '6.8.0' +__version__ = '6.9.0' diff --git a/openassessment/xblock/test/test_notifications.py b/openassessment/xblock/test/test_notifications.py index 001d46d250..7c3446a873 100644 --- a/openassessment/xblock/test/test_notifications.py +++ b/openassessment/xblock/test/test_notifications.py @@ -34,7 +34,7 @@ def test_send_staff_notification(self, mock_send_event): self.assertEqual(notification_data.content_context['ora_name'], ora_name) self.assertEqual(notification_data.notification_type, 'ora_staff_notification') self.assertEqual(notification_data.content_url, f"/{problem_id}") - self.assertEqual(notification_data.app_name, "ora") + self.assertEqual(notification_data.app_name, "grading") self.assertEqual(notification_data.audience_filters['course_roles'], ['staff', 'instructor']) @patch('openassessment.xblock.utils.notifications.logger.error') diff --git a/openassessment/xblock/utils/notifications.py b/openassessment/xblock/utils/notifications.py index e13275e38b..176206813a 100644 --- a/openassessment/xblock/utils/notifications.py +++ b/openassessment/xblock/utils/notifications.py @@ -25,7 +25,7 @@ def send_staff_notification(course_id, problem_id, ora_name): }, notification_type='ora_staff_notification', content_url=f"{getattr(settings, 'ORA_GRADING_MICROFRONTEND_URL', '')}/{problem_id}", - app_name="ora", + app_name="grading", audience_filters=audience_filters, ) COURSE_NOTIFICATION_REQUESTED.send_event(course_notification_data=notification_data) diff --git a/package-lock.json b/package-lock.json index 20cdb2fd9a..bb831b3b92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "edx-ora2", - "version": "6.6.2", + "version": "6.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "edx-ora2", - "version": "6.6.2", + "version": "6.9.0", "dependencies": { "@edx/frontend-build": "8.0.6", "@openedx/paragon": "^21.5.7", diff --git a/package.json b/package.json index 8c6d28dc8a..24b15e8ce1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "edx-ora2", - "version": "6.8.0", + "version": "6.9.0", "repository": "https://github.com/openedx/edx-ora2.git", "dependencies": { "@edx/frontend-build": "8.0.6",