Commit Graph

66853 Commits

Author SHA1 Message Date
katrinan029
fbf55876f2 feat: Upgrade Python dependency edx-enterprise
version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-22 15:52:32 +00:00
Ali-Salman29
6f522f3992 feat!: remove cs_comments_service support for forum's flag APIs
This will force the use of the new v2 forum's APIs for flaging/unflaging.
2025-05-22 10:24:52 -04:00
ayesha waris
610906218a fix: stoped group TA to see the posts of other cohorts (#36765)
* fix: stoped group TA to see the posts of other cohorts

* test: updated test cases

---------

Co-authored-by: Ayesha Waris <ayesha.waris@192.168.10.31>
2025-05-22 18:55:22 +05:00
Jillian
21399b4818 fix: recurse through pasted block data to replace static paths (#36723)
Fixes an error that is triggered when trying to copy/pasting Drag-and-drop block into Courses.

When a block is pasted into a Course or Library, we perform a search/replace on block's data to replace any old static URLs with their new path. Ordinary blocks like HTML and Video have a simple string of data where static URLs may live, but DnDv2 blocks have a dict of data which can contain other dicts and lists of strings that need to be modified. Other XBlocks may have similarly complex structures, and so this fix will resolve them as well.

This fixes the issue by recursing into the data structure to locate all the strings where replacements may need to be made.

This fix helps Course Authors use content staging in their Courses.
2025-05-22 00:17:31 +00:00
Rômulo Penido
91247fa02f fix: remove double edit buttons on unit outline (#36770) 2025-05-22 09:20:57 +09:30
github-actions[bot]
93b493b240 feat: Upgrade Python dependency edx-enterprise (#36769)
* feat: Upgrade Python dependency edx-enterprise

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

* fix: typo fix to trigger changes

---------

Co-authored-by: kiram15 <31229189+kiram15@users.noreply.github.com>
Co-authored-by: Kira Miller <kira.miller15@yahoo.com>
2025-05-21 16:32:40 -06:00
Jansen Kantor
5b440b4b13 fix: video caption issue (#36768) 2025-05-21 17:11:27 -04:00
Tim McCormack
6740e75c0f Merge commit from fork
Allow overriding but prevent download by default.

Also, extract `PYTHON_LIB_FILENAME` Django setting as a shared function
and document the setting.
2025-05-21 14:14:51 -04:00
Jorg Are
10c74e1082 feat: update captions content (#36732) 2025-05-21 08:45:10 -04:00
Chris Chávez
30ace04469 fix: clear buttons in advanced components editors in Libraries (#36752) 2025-05-21 11:03:39 +09:30
Chris Chávez
4b8bfe2307 fix: TinyMCE editor in advanced block editors [FC-0076] (#36754)
* fix: TinyMCE editors in advanced block editors
* Sets baseUrl to avoid an error in: 86eee4b05d/xblock/utils/public/studio_edit.js (L52)
* Uncouple the listener func of the cancel button (see the comment)
* chore: Add `edx_sga` in `LIBRARY_ENABLED_BLOCKS`
2025-05-21 10:58:19 +09:30
Daniel Valenzuela
c20e6ec7f3 fix: open mfe modal editor of new duplicated xblock (#36641)
When duplicating an xblock in the authoring MFE, the iframe was opening its own editor modal instead of the MFE modal.
2025-05-20 21:29:32 +00:00
Navin Karkera
1002f5f91b fix: support legacy studio_view in v2 library (#36748)
Fix "Add" button in LTI editor in v2 library. The iframe studio view renderer in library now supports legacy studio view.
2025-05-20 20:52:00 +00:00
edX requirements bot
26b4edf985 chore: Upgrade Python requirements (#36751)
* chore: Upgrade Python requirements

Co-authored-by: Feanil Patel <feanil@axim.org>
2025-05-20 14:19:08 -04:00
Ahtisham Shahid
4d035ea3d4 feat: added API to sync discussions topics (#36529) 2025-05-20 20:18:14 +05:00
Ahtisham Shahid
b0b90921f1 feat: added course creation date in index api (#36750) 2025-05-20 20:18:03 +05:00
Jansen Kantor
2eeccc7d25 feat: only show google attribution for google-translated transcripts (#36619)
* feat: only show google attribution for google-translated transcripts

* fixup! feat: only show google attribution for google-translated transcripts
2025-05-20 10:33:08 -04:00
Muhammad Adeel Tajamul
4e55d72e75 feat: added immediate email notifications (#36749) 2025-05-20 17:15:26 +05:00
Muhammad Adeel Tajamul
bfdba3c914 chore: added email_content in content reported notification (#36758)
* chore: added email_content in content reported notification

* fix: fixed test cases
2025-05-20 17:15:02 +05:00
Chris Chávez
27c4ea44f2 feat: Add units dict to index [FC-0083] (#36650)
* Adds the units dict to the component search documents.
* Send CONTENT_OBJECT_ASSOCIATIONS_CHANGED signal when add/remove components in units.
2025-05-19 17:34:39 +00:00
Feanil Patel
ecdf774e75 Merge pull request #36699 from dwong2708/fix-depr-warnings
fix: use geom_type instead of type for Shapely objects
2025-05-19 12:55:56 -04:00
Feanil Patel
1a66ab5023 Merge pull request #36711 from dwong2708/removing-test
test: removing unused tests related to masking
2025-05-19 11:06:39 -04:00
Feanil Patel
3c9688047e Merge pull request #36728 from wgu-ram-chandra/issue-35273-unpin-event-tracking
chore: update event-tracking constraint to allow newer versions
2025-05-19 10:48:25 -04:00
Robert Raposa
5e4ad1906c fix: typo in static-assets.rst (#36698) 2025-05-19 09:15:26 -04:00
ayesha waris
9750c63f74 temp: adding console statements for testing purpose (#36733)
Co-authored-by: Ayesha Waris <ayesha.waris@192.168.10.31>
2025-05-16 21:55:27 +05:00
github-actions[bot]
7680bf931c feat: Upgrade Python dependency django-multi-email-field (#36730)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <41958659+UsamaSadiq@users.noreply.github.com>
2025-05-16 20:14:29 +05:00
Feanil Patel
6232cd22d8 Merge pull request #36722 from dwong2708/dw/index-together
fix: refactor index_together to indexes for Django 5.2 support (V) model: StudentModuleHistoryExtended
2025-05-16 09:25:48 -04:00
Ram Chandra Bhavirisetty
1679e1ae4d chore: update event-tracking constraint to allow newer versions 2025-05-16 06:18:28 +00:00
Daniel Wong
a80523b936 fix: refactor index_together to indexes for Django 5.2 support 2025-05-15 08:52:15 -06:00
Eemaan Amir
8c8a567dd0 feat: added batching to managemnet command to avoid queueing errors (#36720)
* feat: added batching to managemnet command to avoid queueing errors

* fix: refactored code to fix pylint errors

* fix: fixed quality check errors

* fix: fixed quality check errors
2025-05-15 17:02:37 +05:00
Usama Sadiq
cf372c20ae fix: refactor index_together to indexes for Django 5.2 support (IV) (#36716)
* fix: refactor index_together to indexes for Django 5.2 support

* fix: fix quality issues
2025-05-15 09:41:55 +05:00
Daniel Wong
a51f87be43 test: removing unused tests related to masking 2025-05-14 09:42:43 -06:00
Feanil Patel
489dc774bb Merge pull request #36508 from dwong2708/docs/readme-fix
docs: update dev requirements file name in README
2025-05-14 10:43:40 -04:00
Feanil Patel
f14ac05c3c Merge pull request #36715 from wgu-ram-chandra/issue-35170-django-storages
chore: update django-storages constraint to allow newer versions
2025-05-14 09:54:50 -04:00
Feanil Patel
88c7cd7bf3 feat!: Remove Legacy Preview Functionality (#36460)
* feat!: Remove all trivial mentions of PREVIEW_LMS_BASE

There are a few more mentions but these are all the ones that don't need
major further followup.

BREAKING CHANGE: The learning MFE now supports preview functionality
natively and it is no longer necessary to use a different domain on the
LMS to render a preview of course content.

See https://github.com/openedx/frontend-app-learning/issues/1455 for
more details.

* feat: Drop the `in_preview_mode` function.

Since we're no longer using a separate domain, that check always
returned false.  Remove it and update any places/tests where it is used.

* feat: Drop courseware_mfe_is_active function.

With the removal of the preview check this function is also a no-op now
so drop calls to it and update the places where it is called to not
change other behavior.

* feat!: Drop redirect to preview from the legacy courseware index.

The CoursewareIndex view is going to be removed eventually but for now
we're focusing on removing the PREVIEW_LMS_BASE setting.  With this
change, if someone tries to load the legacy courseware URL from the
preview domain it will no longer redirect them to the MFE preview.

This is not a problem that will occur for users coming from existing
studio links because those links have already been updated to go
directly to the new urls.

The only way this path could execute is if someone goes directly to the
old Preview URL that they saved off platform somewhere.  eg. If they
bookmarked it for some reason.

BREAKING CHANGE: Saved links (including bookmarks) to the legacy preview
URLs will no longer redirect to the MFE preview URLs.

* test: Drop the set_preview_mode test helper.

This test helper was setting the preview mode for tests by changing the
hostname that was set while tests were running.  This was mostly not
being used to test preview but to run a bunch of legacy courseware tests
while defaulting to the new learning MFE for the courseware.

This commit updates various tests in the `courseware` app to not rely on
the fact that we're in preview to test legacy courseware behavior and
instead directly patches either the `_redirect_to_learning_mfe` function
or uses the `_get_legacy_courseware_url` or both to be able to have the
tests continue to test the legacy coursewary.

This will hopefully make the tests more accuarte even though hopefully
we'll just be removing many of them soon as a part of the legacy
courseware cleanup.

We're just doing the preview removal separately to reduce the number of
things that are changing at once.

* test: Drop the `_get_urls_function`

With the other recent cleanup, this function is no longer being
referenced by anything so we can just drop it.

* test: Test student access to unpublihsed content.

Ensure that students can't get access to unpublished content.
2025-05-14 08:59:11 -04:00
Muhammad Abdullah Waheed
2d66047f7c feat: added support of multiple course ids in enrollment API and fixed failing case (#36700)
* feat: added support of multiple course ids in enrollment API and fixed failing case

* refactor: handled course IDs along with course run IDs

* refactor: added dosctring and renamed variable

* fix: added temp mixin

* test: added unit tests of added case
2025-05-14 17:22:48 +05:00
Usama Sadiq
db49b2d0a3 fix: refactor index_together to indexes for Django 5.2 support (#36708) 2025-05-14 09:16:23 +05:00
Ram Chandra Bhavirisetty
8ba1d50123 chore: update django-storages constraint to allow newer versions 2025-05-14 01:12:28 +00:00
github-actions[bot]
92af214b40 feat: Upgrade Python dependency edx-enterprise (#36710)
* feat: Upgrade Python dependency edx-enterprise

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

* fix: typo fix to trigger tests

---------

Co-authored-by: kiram15 <31229189+kiram15@users.noreply.github.com>
Co-authored-by: Kira Miller <kira.miller15@yahoo.com>
2025-05-13 16:19:42 -06:00
Daniel Wong
de036a8d5d docs: update dev requirements file name in README 2025-05-13 14:52:16 -06:00
Daniel Wong
9f244292c2 fix: handled deprecation warnings in xblock_django app 2025-05-13 14:45:57 -06:00
Daniel Wong
204a1eb438 test: test_capa_system helper function replaced by mock_capa_system 2025-05-13 14:45:57 -06:00
Daniel Wong
77eb6e8254 fix: use geom_type instead of type for Shapely objects 2025-05-13 14:45:57 -06:00
Marlon Keating
ba47f1fae5 Merge pull request #36709 from openedx/marlonkeating/upgrade-edx-enterprise-af5faf4
feat: Upgrade Python dependency edx-enterprise
2025-05-13 15:11:24 -04:00
marlonkeating
dad77f52f8 feat: Upgrade Python dependency edx-enterprise
fix: flex groups reject enrollments from outside the org

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-13 18:39:59 +00:00
Usama Sadiq
af5faf4965 fix: refactor index_together to indexes for Django 5.2 support (#36702) 2025-05-13 11:06:34 +05:00
Chris Chávez
2ba9b7977f fix: Issues with get container children [FC-0083] (#36686)
* Fix published param to support strings
* Add published_display_name to children response
2025-05-12 09:44:41 -05:00
Feanil Patel
32e008298d Merge pull request #36642 from openedx/feanil/geoip2-bot-update-country-database-c2d9e40
Update GeoLite Database
2025-05-12 10:21:53 -04:00
feanil
7521a2dddb chore: geoip2: update maxmind geolite country database 2025-05-12 10:00:40 -04:00
Feanil Patel
82b417fb8a Merge pull request #36690 from openedx/feanil/add_constraints
feanil/add constraints
2025-05-12 09:21:35 -04:00