Commit Graph

67200 Commits

Author SHA1 Message Date
Feanil Patel
bcd900ef23 build: urllib3 is only a testing direct requirement.
It's only used by botocore and requests in the actual retirement code
and those have been able to handle a newer version of the library for
quite some time.

urllib3 is directly used in the testing code but not in a way where we
need to constrain it from being upgraded.
2025-08-12 11:26:59 -04:00
Feanil Patel
4d7c8a3a3a build: Unpin DRF.
There have been no breaking changes in the minor versions and there is
no ticket for unpinning this constraint. It doesn't make sense to keep.
2025-08-12 11:26:59 -04:00
Krish Tyagi
14cdbc855d fix: SAML provider config references to use current SAML configuration versions (#36954)
Introduces temporary rollout toggle ENABLE_SAML_CONFIG_SIGNAL_HANDLERS
which controls whether SAML configuration signal handlers are active.
When enabled (True), signal handlers will automatically update SAMLProviderConfig
references when the associated SAMLConfiguration is updated.
When disabled (False), SAMLProviderConfigs point to outdated SAMLConfiguration.

Warning: Disabling this toggle may result in SAMLProviderConfig instances
pointing to outdated SAMLConfiguration records.

Use the management command 'saml --fix-references' to fix outdated references.
2025-08-12 09:34:34 -04:00
Irtaza Akram
472801b774 fix: add resourcetemplate to xblock_mixins (#37184)
Add ResourceTemplates to XBLOCK_MIXINS so it’s applied to all CMS XBlocks at
runtime instead of being directly inherited. This keeps the Studio-only feature
in edx-platform (where it belongs), while still making it available to built-in
and extracted XBlocks.

When we extract built-in blocks from the platform, they will not be able to
inherit ResourcesTemplates directly; they will get it from XBLOCK_MIXINS. So,
we also needed to update a few template-related tests to use the mixed block
class (or an instance of it) rather than the unmixed base class, because the
unmixed base classes will soon be extracted and thus lack ResourceTemplates.

Related to https://github.com/openedx/edx-platform/issues/34827
2025-08-12 09:04:34 -04:00
edX requirements bot
218030cfef chore: Upgrade Python requirements (#37179) 2025-08-12 07:57:10 -04:00
Usama Sadiq
612d5c1ee2 fix: fix pylint quality warnings (#37187) 2025-08-12 16:56:49 +05: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
salmannawaz
983cdf9274 Test PR | Enable Extracted Poll XBlock (#36566)
* chore: poll xblock extracted code enable PR
2025-08-12 16:17:10 +05:00
github-actions[bot]
1433cad564 feat: Upgrade Python dependency edx-enterprise (#37167)
fix: Added response received from XAPI in logs to debug the XAPI transmission issues.

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

Co-authored-by: zamanafzal <11922730+zamanafzal@users.noreply.github.com>
Co-authored-by: Zaman Afzal <zamanafzal@gmail.com>
2025-08-12 14:12:25 +05:00
Mubbshar Anwar
a41a413983 chore: Remove assertQuerysetEqual (#37182)
replace assertQuerysetEqual with assertEqual dut to deprecation in Django 5.2
2025-08-12 11:14:16 +05:00
Robert Raposa
1c0fb8dbb8 fix: constrain pip-tools<7.5.0 to fix lxml[html_clean] issue (#37174)
See https://github.com/openedx/edx-platform/issues/37168
for more details.
2025-08-11 13:40:55 -04:00
Feanil Patel
e12caeaeeb Merge pull request #37153 from openedx/repo-tools/upgrade-python-requirements-7c2acdc
chore: Upgrade Python requirements
2025-08-11 10:14:45 -04:00
Awais Qureshi
421da0a947 fix: Correctly handle Django lazy translation objects. (#37155) 2025-08-11 10:03:46 -04:00
github-actions[bot]
910c9e6ae2 feat: Upgrade Python dependency edx-enterprise (#37164)
Bump edx-enterprise to 6.2.16 for requirements upgrade.

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

Co-authored-by: brobro10000 <82611798+brobro10000@users.noreply.github.com>
2025-08-11 09:31:14 -04:00
edX requirements bot
11fa84ce7b chore: Upgrade Python requirements 2025-08-08 15:59:11 -04:00
Feanil Patel
7c2acdca84 Merge pull request #37083 from openedx/repo_checks/ensure_workflows
Update standard workflow files.
2025-08-08 12:01:24 -04:00
Taylor Payne
325a0c116a fix: update mock config to include scheme for csrf domains (#37120)
Since the scheme must be included for the CSRF_TRUSTED_ORIGINS setting since
Django 4.0, this changes the values in the mock.yml configuration files to use
the scheme for the values under CSRF_TRUSTED_ORIGINS. We match the values
defined under CSRF_TRUSTED_ORIGINS_WITH_SCHEME key.

lms/envs/production.py pulls from CSRF_TRUSTED_ORIGINS_WITH_SCHEME in the YAML
config to set the CSRF_TRUSTED_ORIGINS setting , but cms/envs/production.py
pulls from CSRF_TRUSTED_ORIGINS in the YAML. So, this change fixes the CMS when
run with mock.yml.
2025-08-08 11:31:04 -04:00
Muhammad Farhan Khan
4a9fc77ecb test: Allow for Extracted Word Cloud Block | Fix Test Cases (#35983)
Run tests for both the built-in and extracted WordCloud block.
The tests are mostly compatible with both versions of the block,
except for a few places where the XBlock framework and the
built-in XModule system differ which we've had to handle using
conditionals.

This moves us closer to enabling the extracted WordCloud block
by default and eventually removing the built-in block.

Part of: https://github.com/openedx/edx-platform/issues/34840
2025-08-08 11:22:26 -04:00
Irtaza Akram
17f0e256bd chore: bump xblocks-contrib version (#37149) 2025-08-08 15:56:53 +05:00
github-actions[bot]
d08b11bbb0 feat: Upgrade Python dependency edx-enterprise (#37147)
fix: Added more logs to debug the XAPI transmission issues.

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

Co-authored-by: zamanafzal <11922730+zamanafzal@users.noreply.github.com>
Co-authored-by: Zaman Afzal <zamanafzal@gmail.com>
2025-08-08 14:46:20 +05:00
Devasia Joseph
d3eba7a097 fix: refactor API response to handle empty data 2025-08-08 14:04:26 +05:00
Devasia Joseph
c6048fcd68 fix: added exception handling for links descriptor generator function 2025-08-08 14:04:26 +05:00
Devasia Joseph
e2ce7debf2 fix: refactor code based on pep-8 guideline 2025-08-08 14:04:26 +05:00
Devasia Joseph
ca45009a31 fix: apply linting rules and refactor code 2025-08-08 14:04:26 +05:00
Devasia Joseph
466aaad85d feat: Enhance course optimizer to detect previous run links and expand scanning scope 2025-08-08 14:04:26 +05:00
jawad khan
f4d52e070b Fixed jwt scope issue (#37134)
* fix: Fixed jwt scope issue

* fix: fixed test cases
2025-08-08 11:01:21 +05:00
Feanil Patel
636ab6f9cf Merge pull request #36778 from openedx/feanil/remove_legacy_learner_sequence_pages
feanil/remove legacy learner sequence pages
2025-08-07 15:59:22 -04:00
Feanil Patel
f491b97b22 fix: Update naming for courseware section/subsection.
These used to be named chapter and section before but we want to update
the courseware index view to use the new names if it's gonna stick
around.
2025-08-07 15:35:04 -04:00
Feanil Patel
d24f45f3ee feat: Drop unused render_accordion function and template.
This was referenced by the legacy courseware page so we don't need it
anymore.
2025-08-07 15:35:04 -04:00
Feanil Patel
562df7386c feat: Make CoursewareIndex just a redirect.
We don't need to load the old UI and so don't need all the logic related
to it, just the logic that is expected to occur around other backend
functionality like masquerading.
2025-08-07 15:35:04 -04:00
Feanil Patel
2fc068220d style: Fix various linting issues. 2025-08-07 15:35:04 -04:00
Feanil Patel
3520b6b8e1 test: Drop testing for legacy courseware UI
This has all been replaced by the learning MFE and will be removed from
the platform in subsequent commits.

For masquerade testing, the page no longer renders content and so
shouldn't be a part of this test.  The render_xblock url is what is used
by the MFE so we're still testing that the course-wide content is being
loaded correctly for content served by the learning MFE.
2025-08-07 15:35:04 -04:00
Feanil Patel
0121a0ad9e test: Drop a legacy test.
This test tests whether or not we can load the legacy courseware page if
we have not met prerequisites.  We don't need this anymore because we
are in the process of removing those pages and the default is now to
load the MFE instead.

The underlying checks still happens as a part of the
`_has_access_course` function which calls
`lms/djangoapps/courseware/access.py:_can_view_courseware_with_prerequisites`
2025-08-07 15:35:04 -04:00
Feanil Patel
3334325ff9 fix: Drop _get_legacy_courseware_url and related usage.
We were running some tests using this function but it is not actually
used in the running application anymore so drop those tests and remove
the function in preparation for removing the legacy courseware itself.
2025-08-07 15:35:04 -04:00
Syed Sajjad Hussain Shah
31a5ca4d8a feat: make credit provider info fetching pluggable (#37129)
* feat: make credit provider info fetching pluggable
2025-08-07 19:55:53 +05:00
Feanil Patel
7a1788b159 Merge pull request #36910 from dwong2708/django5-storage-36739
feat: deprecate get_storage_class in core/storage.py
2025-08-07 10:07:44 -04:00
M. Sumair Khokhar
628e73ba12 fix: studio swagger api-docs crashes with 500 error (#37099)
* fix: studio api-docs crashes with 500 error
2025-08-07 12:25:08 +05:00
Daniel Wong
7479beb29d fix: adjust storage class path to use SOFTWARE_SECURE settings 2025-08-06 13:25:10 -06:00
Daniel Wong
82f5955ae2 fix: handle errors in nested legacy settings in resolve_storage_backend 2025-08-06 13:25:10 -06:00
Daniel Wong
f114399e12 fix: update resolve_storage_backend function and fix tests 2025-08-06 13:25:10 -06:00
Daniel Wong
792a955e73 feat: deprecate get_storage_class in favor to use class import 2025-08-06 13:25:10 -06:00
Daniel Wong
2b9fb55231 feat: deprecate get_storage_class 2025-08-06 13:25:10 -06:00
Muhammad Faraz Maqsood
64a557d00f fix: course detail page error (#37132)
rest_framework.fields.BuiltinSignatureError: Field source for `InstructorInfoSerializer.title` maps to a built-in function type and is invalid. Define a property or method on the `str` instance that wraps the call to the built-in function.

Co-authored-by: Muhammad Faraz  Maqsood <faraz.maqsood@A006-01130.local>
2025-08-06 12:58:03 -04:00
Raymond Zhou
56f6ef3238 Revert "chore: Upgrade Python requirements" (#37126) 2025-08-06 17:30:33 +05:00
Hunzlah Malik
13944afc91 feat: reset_student_attempts_for_entrance_exam to DRF (#37069)
* feat: reset_student_attempts_for_entrance_exam to DRF

* fix: update imports sequence

---------

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2025-08-06 16:29:54 +05:00
kshitij.sobti
96ace718f4 feat: Send an LTI launch event for LTI Launches 2025-08-06 16:25:13 +05:30
M. Sumair Khokhar
e5184a07e5 feat!: update finder method to work with django 42 and 52 (#37131) 2025-08-06 15:51:46 +05:00
Muhammad Adeel Tajamul
4cba98c513 temp: added logs for debugging in thread delete (#37127) 2025-08-06 12:06:58 +05:00
Feanil Patel
dc23ed7a31 Merge pull request #37047 from mubbsharanwar/mubbshar/issue-37032
refactor: convert function based view to class based
2025-08-05 16:08:56 -04:00
Feanil Patel
2ae9cc95cd Merge pull request #37111 from openedx/feanil/geoip2-bot-update-country-database-c988688
Update GeoLite Database
2025-08-05 10:01:34 -04:00