Commit Graph

655 Commits

Author SHA1 Message Date
Taimoor Ahmed
1bed70b73e feat!: remove cs_comments_service support for forums pin API
This will force the use of the new v2 forums API for pinning/unpinning.
2025-05-07 10:41:37 -04:00
Taimoor Ahmed
0595e5a57d fix: legacy forum issues (#36470)
Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01434.local>
2025-04-07 19:04:14 +05:00
Ali Salman
65cf7a9288 fix: legacy discussion issues (#36433)
Explicitly passed course_id to all views
2025-03-24 14:26:22 +05:00
Taimoor Ahmed
0d4281aa2e fix: discussion xblock not compatible with forum v2 (#36315)
fix all endpoints that were currently breaking with the discussion xblock.

Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01434.local>
2025-03-20 12:17:39 +05:00
jawad khan
a84ad87f4b fix: Adjusted discussion notification context for mobile (#36304)
* fix: Adjusted discussion notification context for mobile
2025-03-03 10:44:47 +05:00
Deborah Kaplan
29de9b2dc4 feat!: Legacy account, profile, order history removal (#36219)
* feat!: Legacy account, profile, order history removal

This removes the legacy account and profile applications, and the order
history page. This is primarily a reapplication of #31893, which was
rolled back due to prior blockers.

FIXES: APER-3884
FIXES: openedx/public-engineering#71


Co-authored-by: Muhammad Abdullah Waheed <42172960+abdullahwaheed@users.noreply.github.com>
Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
2025-02-10 14:39:13 -05:00
Usama Sadiq
1a16073ad0 fix: enable pylint warnings (#36196) 2025-02-03 14:18:11 +05:00
Usama Sadiq
b6828cecaa fix: enable pylint warnings (#36195)
* fix: enable pylint warnings
2025-01-30 17:15:33 +05:00
jawad khan
76cceaa298 feat: Populate notification context with post, comment and response ids (#36008)
* feat: Populate notification context with post, comment and response ids
2024-12-20 15:23:47 +05:00
Régis Behmo
065adf398e feat: reapply forum v2 changes (#36002)
* feat: Reapply "Integrate Forum V2 into edx-platform"

This reverts commit 818aa343a2.

* feat: make it possible to globally disable forum v2 with setting

We introduce a setting that allows us to bypass any course waffle flag
check. The advantage of such a setting is that we don't need to find the
course ID: in some cases, we might not have access to the course ID, and
we need to look for it... in forum v2.

See discussion here: https://github.com/openedx/forum/issues/137

* chore: bump openedx-forum to 0.1.5

This should fix an issue with index creation on edX.org.
2024-12-12 12:18:33 +05:00
Diana Huang
818aa343a2 Revert "feat: Integrate Forum V2 into edx-platform"
This reverts commit 70b60ff256.
2024-12-06 11:19:06 -05:00
Muhammad Faraz Maqsood
70b60ff256 feat: Integrate Forum V2 into edx-platform
This commit introduces the new Forum V2 application, allowing users to choose between the legacy Forum V1 and the new Forum V2 at the course level.

Key Changes:
- Added waffle flag `discussions.enable_forum_v2` to enable Forum V2 for selected courses, allowing coexistence with Forum V1.
- Default data storage for Forum V2 is set to MongoDB, with an option to switch to MySQL using the waffle flag `forum_v2.enable_mysql_backend`.
- Introduced management command `forum_migrate_course_from_mongodb_to_mysql` for per-course data migration from MongoDB to MySQL.

Note: This PR does not include all unit tests for the Forum V2 native API due to ongoing migration efforts. Further updates will follow to ensure full test coverage before final release.

Co-authored-by: [Muhammad Faraz Maqsood] <faraz.maqsood@arbisoft.com>
Co-authored-by: [Ali Salman] <ali.salman@arbisoft.com>
2024-12-03 11:00:51 -05:00
Ahtisham Shahid
0b3d05dda6 chore: removed new comment notification grouping (#35920) 2024-11-27 18:28:07 +05:00
Ahtisham Shahid
4d23866ae4 feat: added grouping for new post notification (#35761) 2024-11-11 16:37:32 +05:00
Muhammad Adeel Tajamul
d72e87d3f3 feat: removed extra spaces from start and end of content (#35647) 2024-10-16 13:58:40 +05:00
Muhammad Adeel Tajamul
7cf12d861c chore: removed style from email digest content (#35592) 2024-10-09 13:56:58 +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
Muhammad Adeel Tajamul
87771e76ce feat: replaced button and heading tags in email digest content (#35518) 2024-09-23 13:37:54 +05:00
Іван Нєдєльніцев
c193d940f1 Merge branch 'NiedielnitsevIvan/FC-0047/feature/implement-push-notifications-chanel' of github.com:raccoongang/edx-platform into NiedielnitsevIvan/FC-0047/feature/implement-push-notifications-chanel 2024-09-11 15:40:47 +03:00
Іван Нєдєльніцев
069a52a27b style: [FC-0047] remove unnecessary pass 2024-09-11 15:39:44 +03:00
Ivan Niedielnitsev
6a2fe8cd03 Merge branch 'master' into NiedielnitsevIvan/FC-0047/feature/implement-push-notifications-chanel 2024-09-11 15:26:22 +03:00
Іван Нєдєльніцев
eef99a6acc chore: [FC-0047] change push notifications texts 2024-09-06 17:45:23 +03:00
Іван Нєдєльніцев
13e3024ae3 style: [FC-0047] fix code style issues 2024-09-06 17:40:26 +03:00
Muhammad Adeel Tajamul
ec76baf15f feat: added additional content in endorsed notification (#35425) 2024-09-06 08:18:09 +05:00
Іван Нєдєльніцев
9d0c45680e refactor: [FC-0047] fix review issues 2024-09-05 15:30:07 +03:00
Іван Нєдєльніцев
ce21022fe2 refactor: [FC-0047] rename subject files to title 2024-09-05 15:29:48 +03:00
Ivan Niedielnitsev
28eb406f8d feat: [FC-0047] add settings for edx-ace push notifications
feat: [FC-0047] Add push notifications for user enroll

feat: [FC-0047] Add push notifications for user unenroll

feat: [FC-0047] Add push notifications for add course beta testers

feat: [FC-0047] Add push notifications for remove course beta testers

feat: [FC-0047] Add push notification event to discussions
2024-09-05 15:29:48 +03:00
Ahtisham Shahid
66f3a0803c feat: added email content in misc notifications (#35341) 2024-08-26 13:13:47 +05:00
Eemaan Amir
ca46c20abb fix: update content reported notification (#35315) 2024-08-16 14:20:33 +05:00
Eemaan Amir
152b678e62 feat: save author pronoun separately for notification to prevent info loss (#35234)
* feat: save author pronoun separately for notification to prevent info loss

* fix: missing pronoun in comment on followed post

* test: updated tests for new comment notifications
2024-08-12 12:04:20 +05:00
Eemaan Amir
b438349795 fix: rephrasing and removing bugs from response endorsed notifications (#35136)
* fix: rephrasing and removing bugs from response endorsed notifications

* test: updated test for response endorsed notifications
2024-07-19 15:56:05 +05:00
Ahtisham Shahid
15e2834825 chore: removed obsolete feature flags (#34942) 2024-06-27 13:58:54 +05:00
ayesha waris
3bc03b33ac fix: fixed permissions for voted (#34993)
* fix: fixed permissions for voted

* fix: fixed test cases
2024-06-26 15:55:48 +05:00
Irtaza Akram
f7229e0aad chore: replace bleach with nh3 2024-05-28 13:02:16 +05:00
Ahtisham Shahid
cb14a9261a feat: added new v2 for course config api (#34804) 2024-05-23 14:46:44 +05:00
Kyle McCormick
11626148d9 refactor: switch from mock to unittest.mock (#34844)
As of Python 3.3, the 3rd-party `mock` package has been subsumed into the
standard `unittest.mock` package. Refactoring tests to use the latter will
allow us to drop `mock` as a dependency, which is currently coming in
transitively through requirements/edx/paver.in.

We don't actually drop the `mock` dependency in this PR. That will happen
naturally in:

* https://github.com/openedx/edx-platform/pull/34830
2024-05-22 13:52:24 -04:00
Ahtisham Shahid
d3ffb3e882 fix: get topics for blocks with discussions enabled (#34732) 2024-05-13 16:50:37 +05:00
Ahtisham Shahid
5b1d52d811 fix: endorsed post notification audiance updated (#34513) 2024-04-22 13:09:04 +05:00
Feanil Patel
9bd4474f7d test: Reduce query counts now that we dropped django-splash. 2024-04-18 12:43:33 -04:00
Ahtisham Shahid
09cb944801 fix: removed cohorts filter from reported notifications (#34369) 2024-03-21 15:44:49 +05:00
ayesha waris
c913a55b17 feat: updated api to get all question type reponses (#34215)
* feat: updated api to get all question type reponses

* test: fixed and added new test cases
2024-02-29 11:58:07 +05:00
sundasnoreen12
1748d96544 fix: added table tags in allowed tags 2024-02-22 23:53:39 +05:00
ayesha waris
fc86b431af feat: modified author labels to add moderator (#34239)
Co-authored-by: sohailfatima <23100065@lums.edu.pk>
2024-02-15 20:43:30 +05:00
salmannawaz
57b480b04f Update all edx-platform REST endpoints to support JWT Auth (#34152)
* chore: update API endpoints to support default JWT auth

The default DRF Auth classes were recently updated to allow for both JWT and Session auth by default. Any endpoint that overrides the AUTHENTICATION_CLASSES but has just session, just JWT or just both of those should be updated to remove the override.

Details in https://github.com/openedx/edx-platform/issues/33662
2024-02-13 10:46:58 -05:00
Muhammad Adeel Tajamul
b28db57d88 feat: allow staff and admin to pin posts (#34169) 2024-02-12 14:28:11 +05:00
ayesha waris
9f136a4149 feat: added notifications when response is endorsed or answered (#34082)
* feat: added notification when response is endorsed or answered

* test: added and fixed test cases

* fix: fixed lint errors

* refactor: changed method name for readibility

* feat: added notification when my response is endorsed

* test: fixed failed test cases
2024-02-01 13:33:16 +05:00
Ahtisham Shahid
039583f88f feat: added reported notification type (#34067) 2024-01-30 12:07:49 +05:00
Saad Yousaf
928e810b33 Revert "temp: add temporary logs for course wide notifications" 2024-01-29 12:42:39 +05:00
Muhammad Adeel Tajamul
692b3ac4b2 fix: removed enable_discussion_mfe from email content (#34061) 2024-01-16 12:12:55 +05:00
ayesha waris
53270f17b3 chore: removed and merged multiple flags into enable_discussions_mfe flag (#33983) 2024-01-12 15:07:00 +05:00