Commit Graph

25241 Commits

Author SHA1 Message Date
Diana Huang
818aa343a2 Revert "feat: Integrate Forum V2 into edx-platform"
This reverts commit 70b60ff256.
2024-12-06 11:19:06 -05:00
Saleem Latif
9d859a8247 refactor: Removed unused django setting. 2024-12-04 14:57:07 +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
Muhammad Farhan Khan
f9126bfdd9 Add Django settings flags to roll out the extracted XBlocks (#35549)
chore: Add Django settings flags to roll out the extracted XBlocks
2024-12-02 20:38:40 +05:00
Awais Qureshi
81d4239117 feat!: upgrade start_certificate_regeneration to drf ( 29 ) (#35599)
* feat!: upgrading api to DRF.
2024-12-02 17:08:01 +05:00
0x29a
69216e5560 test: has_course_author_access correctness 2024-11-29 00:39:58 +05:30
0x29a
dd814c3910 docs: explain why specifying 'cms' service 2024-11-29 00:39:58 +05:30
0x29a
ac9861fd73 feat: add has_course_author_access to CourseHomeMetadataView response 2024-11-29 00:39:58 +05:30
Awais Qureshi
a4d3bf91db feat!: upgrade certificate_exception_view to DRF ( 28 ) (#35594)
* feat!: upgrading api to DRF.
2024-11-28 14:58:54 +05:00
Ahtisham Shahid
0b3d05dda6 chore: removed new comment notification grouping (#35920) 2024-11-27 18:28:07 +05:00
Kyle McCormick
9274852f2d fix: Remove pointless Maintenance and Announcement apps (#35852)
The Studio Maintenance app had two features:

* "Force Course Publish", which literally doesn't do anything. All it
  does is tell you what version *would* be seen by users *if* the course
  were to be published--no publishing actually occurs via this feature.

* "Announcements", which writes to the announcements_announcement
  database table, but doesn't actually display anywhere.

Having these pages in the platform is actively misleading and creates a
maintenance burden for edx-platform developers, so we remove them.

Note that this commit does not include a migration for the announcements
Django app. So, announcements_announcement table will not be deleted.
Given the small expected size of any past-authored announcements, we are
not worried about leaving them in the database perpetually.
2024-11-26 15:15:27 +00:00
Awais Qureshi
bfa756b7c9 feat!: upgrading api to DRF. (#35584) 2024-11-26 16:56:03 +05:00
Alison Langston
139b4167b3 feat: update logic for courseware search enabled endpoint (#35922) 2024-11-25 10:44:49 -05:00
Awais Qureshi
8ea2d1030e feat!: upgrade get_issued_certificates to DRF ( 24 ) (#35534)
* feat!: upgrading api to DRF.
2024-11-25 16:04:59 +05:00
Kristin Aoki
0f03bf686e feat: update twitter brand icon in social share (#35885)
* feat: update twitter brand icon in social share

* fix: icon alignment
2024-11-21 09:30:18 -05:00
Tim McCormack
e9ab422101 feat: Default Celery task protocol to version 2 (by removing setting) (#35865)
We've been keeping this pinned to 1, but since we're well past the first
version of Celery that can understand both protocol versions, we can just
remove the pin. Celery should then default to protocol 2.

No action should be required from operators.
2024-11-18 11:54:33 -05:00
Eemaan Amir
f722e3cd43 feat: add verify_uuid to response of CertificatesListView (#35760)
* feat: add verify_uuid to response of CertificatesListView

* test: updated tests
2024-11-18 12:00:01 +05:00
Irtaza Akram
ec2a698604 cleanup references of python 2 & <3.11 (#35799)
* chore: cleanup of old python references
2024-11-15 16:58:20 +05:00
Feanil Patel
b2a4066bce feat!: Remove the import command from the lms.
This used to be a symlink that then turned into a copy of the same
command that exists in the contentstore in the CMS.  That command is the
correct one to use, this one is going to be removed to reduce confusion.

BREAKING CHANGE: The `python manage.py lms import` command will no
longer work.  Use the `python manage.py cms import` command instead.
2024-11-14 11:20:23 -05:00
Demid
d4f3c37326 docs: document ORA lease expiration settings (#35818) 2024-11-12 20:55:35 +05:30
Ahtisham Shahid
4d23866ae4 feat: added grouping for new post notification (#35761) 2024-11-11 16:37:32 +05:00
jawad khan
6ad5b1014c feat: Add deprecate_youtube flag in course blocks api (#35754) 2024-11-08 11:06:34 +05:00
Fatima Sohail
f0c94cda13 feat: improved logging and tracking for goal reminder email (#35780)
* feat: improved logging and tracking for goal reminder email

* feat: updated base exception tracking
2024-11-08 01:40:03 +05:00
Tim McCormack
22b9ced6c0 feat: Make celery task protocol configurable via Django setting (#35789)
This will allow us to test protocol 2 in a stage environment before
removing the override to make 2 the default.

We may have seen a bug where something in celery (or an
associated library) was adding headers to a v1 message as
if it were a v2 message, which caused a bug in ddtrace; such
things may become more likely over time as code is written
with the assumption of v2 messages. Moving to v2 will avoid
those issues.

See https://github.com/edx/edx-arch-experiments/issues/800 for further details.
2024-11-06 15:54:24 -05:00
Peter Pinch
5d1566c4c2 Merge pull request #35655 from mitodl/asad/bypass-access-checks-when-populating-cache
fix: bypass access checks when populating course blocks cache
2024-11-06 12:22:25 -05:00
Brian Mesick
767e1a2c07 Merge pull request #35779 from openedx/bmtcril/pii_safelist_update
chore: Add missing PII annotations, update safelist
2024-11-06 16:27:09 +00:00
Brian Mesick
e478975105 chore: Add missing PII annotations, update safelist
PII Annotations are very out of date, this commit adds most that were
missing in edx-platform, and some additional annotations to the
safelist. It is not comprehensive, several other upstream Open edX
packages also need to be updated. It also does not include removing
annotations that have been moved upstream, or been removed entirely.
Those are separate follow-on tasks.
2024-11-05 12:58:36 -05:00
Feanil Patel
398160c2c4 fixup! test: Update the course in the cache after it's got new content. 2024-11-05 10:44:17 -05:00
Feanil Patel
a6e5b818e2 fixup! test: Update the course in the cache after it's got new content. 2024-11-05 10:44:17 -05:00
Feanil Patel
d58dea336c fixup! test: Update the course in the cache after it's got new content. 2024-11-05 10:44:17 -05:00
Feanil Patel
f0f18f8405 refactor: Make the test easier to debug in the future.
This test had a redundant call to get the course data from the store
because that already happens at the end of the setup function.  And also
because expected call structure was being built inside the assert, it
made it harder to inspect when debugging.  Make the code a little bit
easire to debug in case we're back here in the future.
2024-11-05 10:44:17 -05:00
Feanil Patel
cf37ca48b7 test: Update the course in the cache after it's got new content.
Because signals are disabled by default for performance reasons, this
doesn't happen automatically.  So we manually refresh the course in the
cache after all the changes have been made so that the course in the
cache matches the latest version in the modulestore.
2024-11-05 10:44:16 -05:00
Feanil Patel
db266e25f7 test: Update query counts.
With the new block_structure model cache enabled by default, we're donig
queries to it as a part of other tests.
2024-11-05 10:44:16 -05:00
Feanil Patel
57cdbfa013 test: Remove test variants that test without a cache.
Since the cache is now always on, remove test cases that test the case
when it's disabled.
2024-11-05 10:44:16 -05:00
Kristin Aoki
e13d66d1e4 feat: support unit preview in learning MFE (#35747)
* feat: update preview url to direct to mfe

* fix: use url builder instead of string formatter

* fix: url redirect for never published units

* fix: remove 404 error when  not a preview or staff

* feat: update sequence metadata to allow draft branch
2024-11-01 11:03:06 -04:00
Max Sokolski
bd22449d73 Merge pull request #34859 from raccoongang/kireiev/AXM-549/feat/upstream_PR_active_inactive_courses_API
feat: [FC-0047] Implement user's enrolments status API (#2530)
2024-11-01 16:27:17 +02:00
Awais Qureshi
d6e0528148 feat!: upgrade certificate_invalidation_view to drf ( 23 ) (#35521)
* feat!: upgrading api to DRF.
2024-11-01 16:56:20 +05:00
Asad Ali
361ed61d05 test: add tests when user is not in any group 2024-11-01 11:58:35 +05:00
Asad Ali
61df45712e refactor: update docs 2024-11-01 11:33:48 +05:00
Asad Ali
29d748de0f style: pycodestyle fix 2024-10-31 23:36:28 +05:00
Asad Ali
9ed41b0759 test: add tests for known and unknown user 2024-10-31 23:20:41 +05:00
Asad Ali
1f86786b15 fix: bypass access checks when populating course blocks cache 2024-10-31 23:20:40 +05:00
KyryloKireiev
e868888f54 refactor: [AXM-549] Use course keys instead ids 2024-10-30 17:55:31 +02:00
Kyrylo Kireiev
4015aab0f7 Merge branch 'master' into kireiev/AXM-549/feat/upstream_PR_active_inactive_courses_API 2024-10-30 17:45:15 +02:00
Alison Langston
338a0a1166 feat: check course start date for courseware search (#35740) 2024-10-30 08:52:43 -04:00
Adam Stankiewicz
d54e3bd4c1 feat: bump edx-enterprise to 4.30.0, extend system-wide roles for enrollment intentions feature (#35739) 2024-10-29 11:50:43 -04:00
Kristin Aoki
afd1394112 Revert "feat: update preview url to direct to mfe (#35687)" (#35732)
This reverts commit 2373dd02f9.
2024-10-28 17:26:29 +00:00
Fatima Sohail
0a2e8a914a feat: updated bulk email context for updated footer (#35702)
* feat: updated bulk email context for updated footer

* refactor: remove unnecessary f-string
2024-10-28 22:10:09 +05:00
Kristin Aoki
2373dd02f9 feat: update preview url to direct to mfe (#35687)
* feat: update preview url to direct to mfe

* fix: use url builder instead of string formatter

* fix: url redirect for never published units
2024-10-28 10:31:53 -04:00
KyryloKireiev
bc71be4811 feat: [AXM-549] Add query limit to User Enrollments 2024-10-24 13:15:36 +03:00