feat: add ora reminder notification#38298
Conversation
ac498d9 to
0634a4e
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a new Notifications “type” for Open Response Assessment (ORA) reminder messages and wires it into the existing notifications configuration/documentation surface (icons, settings docs, and a waffle flag).
Changes:
- Adds
ora_reminderas a new notification type (web/email) under thegradingnotification app. - Adds a new waffle flag
notifications.enable_ora_remindersintended to gate ORA reminders. - Introduces LMS settings for ORA reminder cadence/batching and documents the new notification key in notification settings docs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| openedx/core/djangoapps/notifications/base_notification.py | Adds ora_reminder notification type definition. |
| openedx/core/djangoapps/notifications/config/waffle.py | Adds ENABLE_ORA_REMINDERS feature flag. |
| openedx/core/djangoapps/notifications/email/notification_icons.py | Maps ora_reminder to an ORA icon for emails. |
| openedx/core/djangoapps/notifications/docs/settings.md | Documents the new ora_reminder notification key. |
| lms/envs/common.py | Adds configuration settings for reminder cadence/sweeping/batching. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9cc455b to
2f3ac12
Compare
| | 12 | updates | course_updates | False | Course updates | | ||
| | 13 | grading | ora_staff_notifications | False | New ORA submission for staff | | ||
| | 14 | grading | ora_grade_assigned | False | ORA grade received | | ||
| | 15 | grading | ora_reminder | False | ORA peer/self review reminder | |
There was a problem hiding this comment.
all notification documentation has moved to readthedocs. you can update this line here: https://github.com/openedx/docs.openedx.org/blob/main/source/site_ops/how-tos/enable_notifications.rst?plain=1#L434 (or enter an issue in that repo and I can do it if you are out of hours)
There was a problem hiding this comment.
@saraburns1 We are keeping as a document that is more centric to developers.
|
@AhtishamShahid it will be great if you can add testing instructions to the PR. |
Added testing instructions. |
fix: removed extra code fix: removed extra config fix: updated failing tests
2f3ac12 to
6c69231
Compare
|
LGTM once readthedocs is fixed |
Doc PR was merged . |
This pull request introduces a new notification type for Open Response Assessment (ORA) reminders, ensuring learners are notified about pending self or peer review steps. The changes include configuration, documentation, icon mapping, and updates to tests for this new notification.
New ORA Reminder Notification
ora_reminderto theNotificationTypedictionary, with web and email channels enabled, daily email cadence, and a content template for pending ORA steps.ora_reminderentry.ora_remindernotification type to the correct icon in the notification icon mapping.Testing Updates
ora_reminderto test data for notification settings and non-editable preferences to ensure correct aggregation and display in views.)Testing Instructions
Prerequisites
Test 1: Learner Receives a Peer Review Reminder
Expected:
Test 2: Learner Receives a Self Review Reminder
Expected:
Test 3: Completing the Review Stops Reminders
Expected:
Test 4: Reminder Stops After Maximum Count
Expected:
Test 5: No Reminder for an ORA With No Peer/Self Steps
Expected:
Test 6: First Submitter — No Notification Until Peers Are Available
Expected:
Expected:
Test 7: Notification Links to the Correct ORA
Expected:
Test 8: Step Transition — Reminder Switches From Peer to Self
(Applies only to ORAs with both peer and self review steps.)
Expected:
Pass / Fail Summary