Commit Graph

66839 Commits

Author SHA1 Message Date
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
Navin Karkera
d664f0e5d4 fix: update container key field usage 2025-05-12 06:58:15 +00:00
Usama Sadiq
956a28996a fix: refactor index_together to indexes for Django 5.2 support (#36693) 2025-05-12 11:46:47 +05:00
Feanil Patel
7d7847f38a chore: Run make upgrade 2025-05-09 13:44:19 -04:00
Feanil Patel
c42e021155 build: Pin django-user-tasks.
The latest version only works with Django 5.2 so we'll either need to
fix that or just wait till we're ready to do that bump.
2025-05-09 13:44:19 -04:00
Feanil Patel
ef93d6b863 build: Pin lxml and xmlsec.
The newest versions don't match the version of libxml2 that is available
on the ubuntu servers.  This causes an error at runtime.
2025-05-09 13:43:59 -04:00
Rômulo Penido
f50565c730 feat: add last_published_at to upstream summary endpoint [FC-0083] (#36656)
Returns the last_published_at date from the upstream summary endpoint.
2025-05-09 12:04:39 -05:00
Justin Hynes
f509bceac2 fix: setup context for emitting event to segment if desired (#36692)
If we wish this event to be sent to Segment through the event-tracking lib, we must ensure that the context includes at least the `user_id` field in the context dict.
2025-05-09 10:54:37 -04:00
Eemaan Amir
841efcc9fb feat: update user segment attribute is_disabled when user is disabled/enabled (#36681) 2025-05-09 19:35:16 +05:00
Eemaan Amir
8758007e9b feat: management command to backfill is_disabled attribute to segment (#36680)
* feat: management command to backfill is_disabled attribute to segment

* fix: fixed pylint errors

* fix: replaced broad exceptions with specific exceptions
2025-05-09 18:54:46 +05:00
Feanil Patel
ad37bc5c38 Merge pull request #36689 from wgu-ram-chandra/issue-35274-unpin-edx-i18n-tools
chore: update edx-i18n-tools constraint to allow newer versions
2025-05-09 09:30:21 -04:00
Feanil Patel
e4a002a409 Merge pull request #36618 from wgu-ram-chandra/issue-35278-unpin-charset-normalizer
chore: update charset-normalizer constraint to allow newer versions
2025-05-09 09:29:09 -04:00
Ram Chandra Bhavirisetty
40de4a9f35 chore: update edx-i18n-tools constraint to allow newer versions 2025-05-09 03:36:59 +00:00
Tim McCormack
4c462918e8 fix: Pass limit overrides context to codejail execution in all places (#36685)
Some of the calls to `safe_exec` were missing the `limit_overrides_context`
parameter. This normally conveys the course key to codejail so that we can
give some courses different resource limits, but it's also valuable for
diagnosing codejail issues in logs and other telemetry.

I wasn't able to test all of these paths manually, but the utility function
`get_course_id_from_capa_block` will swallow errors, so the situation
should be no worse if the `LoncapaResponse.capa_block` field has something
unexpected.
2025-05-08 16:55:57 -04:00
Feanil Patel
ce73ae6445 Merge pull request #36684 from openedx/feanil/upgrade-certifi-2e91a05
feat: Upgrade Python dependency certifi
2025-05-08 16:31:15 -04:00