110 Commits

Author SHA1 Message Date
Ahtisham Shahid
cbdb721db0 Ahtisham/remove core type from notifications (#37868) 2026-01-15 16:37:50 +05:00
Ahtisham Shahid
85fc7207be feat: added buffer to immediate email notification (#37741) 2026-01-02 17:48:01 +05:00
Ahtisham Shahid
bac7e12b5c feat: make email cadence overrideable from settings (#37822) 2025-12-30 13:10:08 +05:00
Ahtisham Shahid
9d2bbb1797 refactor: removed all references to CourseNotificationPreference (#37768) 2025-12-29 15:11:56 +05:00
Ahtisham Shahid
432926d2dc feat: added option to override default preferences (#37807) 2025-12-24 13:19:11 +05:00
Ahtisham Shahid
251ba28770 chore: updated pref settings for misc notification types (#37733) 2025-12-08 13:34:41 +00:00
Ahtisham Shahid
ad513cbd23 fix: removed course_id from notification flag implementation (#37716) 2025-12-03 16:38:17 +05:00
Ahtisham Shahid
c8e6a760f9 feat: add grouping for new response notification (#37674) 2025-12-02 15:21:36 +05:00
Tarun Tak
18d5abb2f6 chore: Replace pytz with zoneinfo for UTC handling - Part 1 (#37523)
First PR to replace pytz with zoneinfo for UTC handling across codebase.

This PR migrates all UTC timezone handling from pytz to Python’s standard
library zoneinfo. The pytz library is now deprecated, and its documentation
recommends using zoneinfo for all new code. This update modernizes our
codebase, removes legacy pytz usage, and ensures compatibility with
current best practices for timezone management in Python 3.9+. No functional
changes to timezone logic - just a direct replacement for UTC handling.

https://github.com/openedx/edx-platform/issues/33980
2025-10-28 16:23:22 -04:00
Muhammad Adeel Tajamul
acad883a38 fix: added info in notification preferences (#37295) 2025-08-29 11:41:28 +05:00
Muhammad Adeel Tajamul
abd305df85 feat: added rate limit on one click unsubscribe api (#37272)
* feat: added rate limit on one click unsubscribe api

* fix: fixed failing test

* chore: raise 400 error on invalid username

* fix: fixed pylint
2025-08-27 16:58:06 +05:00
Feanil Patel
bf62862b9f test: Fix notifacitons test for new DRF version.
DRF was swallowing an underlying error string and providing its own
which was being checked for here.

See https://github.com/encode/django-rest-framework/pull/8051 for
details.

The new version fixes that underlying issue and so the test failed.

Rather than checking for the exact string of the 404 which is not
relevant, we now just verify that the error code associated with the
request matches the HTTP response. This should make the test more
resilient to future text changes in the underlying Django function
`get_object_or_404`
2025-08-12 16:08:29 -04:00
Muhammad Adeel Tajamul
e8b58f770e feat: updated one click unsubscribe to use account level preference model (#37161) 2025-08-12 16:44:42 +05:00
jawad khan
e15fa506c0 fix: remove enrollment notification until functionality is live (#37116)
* fix: remove enrollment notification until functionality is live

* fix: updated config version

* fix: fixed test cases
2025-08-05 10:50:45 +05:00
Eemaan Amir
0b4c75c21c chore: cleaned up course level preferences (#37106)
* chore: cleaned up course level preferences

* fix: fixed import issue

* fix: fixed lint errors
2025-08-04 12:20:54 +05:00
Hassan Raza
4793f883fc chore: Remove notification app waffle flags (#37086) 2025-08-01 14:59:40 +05:00
Eemaan Amir
df7583778e chore: added show_prefrences flag to NotificationPreferencesView (#37085) 2025-07-31 18:19:53 +05:00
Hassan Raza
cc2126749a chore: Exclude course staff preferences from general user notifications (#37040) 2025-07-21 15:07:00 +05:00
jawad khan
692caf0f46 feat: Added audit access expiry soon notification (#36414)
* feat: Added audit access expiry soon notification
2025-07-21 14:01:11 +05:00
Hassan Raza
64094da239 chore: Update notification preferences for non-editable push notifications (#37003)
* chore: Update notification preferences for non-editable push notifications

* fix: unit tests
2025-07-11 12:04:25 +05:00
Ahtisham Shahid
652fbfcb88 feat: updated management command to use default preferences (#36997) 2025-07-09 12:33:02 +05:00
Ahtisham Shahid
cfe40599bf feat: added API to get account level preferences (#36957)
* feat: added API to get account-level preferences

* feat: added update api for account level preferences (#36978)
2025-07-04 13:04:28 +05:00
Muhammad Adeel Tajamul
f996ed7c16 feat: skip saving non_editable in db notification preferences (#36968) 2025-07-03 11:32:59 +05:00
Ahtisham Shahid
498dd56fec feat: added account level preference model in notification task (#36858)
feat: added account level pref model in notification task

feat: added handler for preference creation on user signup

feat: added unit tests for account level preferences

* fix: removed app level check in notifications

* fix: updated flaky test
2025-07-01 14:09:02 +05:00
jawad khan
e101298fed feat: send mobile push notifications (#36272)
* feat: send mobile braze notifications

* fix: fixed pylint issues

* feat: Added push_notification flag and preferences

* fix: fixed pylint issues

* fix: Moved braze logic to edx-ace

* fix: Un delete admin file

* fix: Added review suggestions

* fix: Added review suggestions

* fix: updated migration file

* fix: Removed all braze references from changes

* fix: fixed test cases

* fix: removed braze metnion in code

* fix: fixed migration file issue

* fix: Added review suggestions

* fix: bumped edx-ace version
2025-06-30 10:48:48 +05:00
Hassan Raza
8fac3bc060 feat: Add notify all learners option for discussion post (#36922)
* feat: Add notify all learners option for discussion post

* fix: Remove waffle flag from default notification dict
2025-06-27 15:25:22 +05:00
Hassan Raza
1a28a2df3b fix: Get latest existing notification for grouping (#36614) 2025-04-28 20:10:00 +05:00
Hassan Raza
2d4defef2c fix: Add info for ORA notifications and fix for account preferences (#36571) 2025-04-25 11:33:02 +05:00
Ahtisham Shahid
af40ac0feb feat: update preference config when version is changed (#36518) 2025-04-16 15:39:22 +05:00
Hassan Raza
694bf77993 fix: Remove code for group new comment notification (#36501) 2025-04-15 12:21:39 +05:00
Hassan Raza
b14ff9ea8d fix: Update ORA notification type for grouper (#36517) 2025-04-14 15:02:25 +05:00
Hassan Raza
0acc44fbcd fix: Enable ORA new submissions course notification preference (#36449)
* fix: Enable ORA new submissions course notification preference

* fix: update edx-ora2 version
2025-04-10 13:32:54 +05:00
Ahtisham Shahid
79f33a670a fix: notification count only for web (#36459) 2025-03-28 13:13:20 +00:00
Hassan Raza
dc548edeca fix: user unsub preference removal on email enable through account preferences (#36451) 2025-03-27 16:15:40 +05:00
Hassan Raza
57c1115791 fix: Resolve digest email on new enrollment after one click email unsubscribe (#36365) 2025-03-24 22:09:47 +05:00
Ahtisham Shahid
cab3ef46b4 fix: enable core notification pref editing (#36327)
fix: enable core notification pref editing
2025-03-21 14:51:43 +05:00
Ahtisham Shahid
9775ceff2b fix: Account level preference visibility WRT roles (#36391)
fix: Account level preference visibility WRT roles
2025-03-21 14:19:33 +05:00
Muhammad Adeel Tajamul
81f825ff15 fix: new discussion post should only be grouped if old notification is not seen (#36032) 2024-12-24 07:47:38 +05:00
Ahtisham Shahid
85a5890dd1 feat: added api to update all notification preferences for user (#35795) 2024-12-19 19:04:16 +05:00
Ahtisham Shahid
4d23866ae4 feat: added grouping for new post notification (#35761) 2024-11-11 16:37:32 +05:00
Muhammad Adeel Tajamul
e1f31fbb45 feat: removed setting email cadence to Never when using one click unsubscribe (#35708) 2024-10-28 15:48:34 +05:00
Muhammad Adeel Tajamul
42febb62ce fix: update email_content when grouping notifications (#35656) 2024-10-18 17:02:03 +05:00
Muhammad Adeel Tajamul
38cddab293 feat: added notification grouping (#35368)
Co-authored-by: Ahtisham Shahid <ahtisham300@gmail.com>
2024-10-02 13:35:30 +05:00
Eemaan Amir
a2e2959617 chore: update default notification preference for ora_grade_assigned (#35522)
* chore: update default notification preference for ora_grade_assigned

* test: updated tests
2024-09-23 18:06:03 +05:00
Eemaan Amir
ad23992a5d feat: added ORA graded notification (#35389)
* feat: added ORA graded by staff notification

* test: updated and added new unit tests

* feat: added waffle flag and updated notification
2024-09-19 13:09:09 +05:00
Muhammad Adeel Tajamul
00772693ef feat: added unsubscribe url in digest header (#35319) 2024-08-19 12:21:43 +05:00
Ahtisham Shahid
9bd692413a fix: make course update email pref false (#35224)
fix: updated unit tests

fix: updated unit tests
2024-08-07 14:55:02 +05:00
Eemaan Amir
03a8f5daf7 refactor: refactored notifications app and removed unused code (#35160) 2024-07-25 11:09:00 +05:00
Muhammad Adeel Tajamul
98dfb12943 feat: added unsubsribe url for email notifications (#34967) 2024-06-28 11:22:09 +05:00
Ahtisham Shahid
15e2834825 chore: removed obsolete feature flags (#34942) 2024-06-27 13:58:54 +05:00