Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions openedx/core/djangoapps/notifications/base_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,25 @@ class NotificationType(TypedDict):

'filters': [FILTER_AUDIT_EXPIRED_USERS_WITH_NO_ROLE],
},
'ora_reminder': {
'notification_app': 'grading',
'name': 'ora_reminder',

'info': 'Reminder notifications for learners who have pending self or peer review steps in an ORA.',
'web': True,
'email': True,
'push': False,
'email_cadence': EmailCadence.DAILY,
'non_editable': ['push'],
Comment thread
AhtishamShahid marked this conversation as resolved.
'content_template': _('<{p}>You have <{strong}>{pending_step}</{strong}> to complete for assessment '
'<{strong}>{ora_name}</{strong}></{p}>'),
'content_context': {
'ora_name': 'Name of ORA in course',
'pending_step': 'Pending step description (e.g. "self review" or "peer reviews")',
},

'filters': [FILTER_AUDIT_EXPIRED_USERS_WITH_NO_ROLE],
},
'new_instructor_all_learners_post': {
'notification_app': 'discussion',
'name': 'new_instructor_all_learners_post',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def get_icon_name_for_notification_type(cls, notification_type, default="POST_OU
"course_updates": cls.NEWSPAPER,
"ora_staff_notifications": cls.OPEN_RESPONSE_OUTLINE,
"ora_grade_assigned": cls.OPEN_RESPONSE_OUTLINE,
"ora_reminder": cls.OPEN_RESPONSE_OUTLINE,
}
return notification_type_dict.get(notification_type, default)

Expand Down
20 changes: 19 additions & 1 deletion openedx/core/djangoapps/notifications/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,20 @@ def setUp(self):
"push": False,
"email_cadence": "Daily",
"info": ""
},
"ora_reminder": {
"web": True,
"email": True,
"push": False,
"email_cadence": "Daily",
"info": "Reminder notifications for learners who have pending self or peer "
"review steps in an ORA."
}

},
"non_editable": {
"ora_grade_assigned": ["push"],
"ora_reminder": ["push"],
"ora_staff_notifications": ["push"]
}
},
Expand Down Expand Up @@ -801,10 +810,19 @@ def test_if_data_is_correctly_aggregated(self):
"email_cadence": "Daily",
"info": ""
},
"ora_reminder": {
"web": False,
"email": False,
"push": False,
"email_cadence": "Daily",
"info": "Reminder notifications for learners who have pending self or peer "
"review steps in an ORA."
},

},
"non_editable": {
"ora_grade_assigned": ["push"]
"ora_grade_assigned": ["push"],
"ora_reminder": ["push"]
}
},
}
Expand Down
Loading