Commit Graph

67177 Commits

Author SHA1 Message Date
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
Feanil Patel
70e4cf44a1 Merge pull request #37121 from openedx/repo-tools/upgrade-python-requirements-16d9656
chore: Upgrade Python requirements
2025-08-05 09:57:17 -04:00
Devasia Joseph
aae3f62555 fix: Update vertical block test to use dynamic course id 2025-08-05 14:20:52 +05:00
jawad khan
e15fa506c0 fix: remove enrollment notification until functionality is live (#37116)
* fix: remove enrollment notification until functionality is live

* fix: updated config version

* fix: fixed test cases
2025-08-05 10:50:45 +05:00
edX requirements bot
df0bb51163 chore: Upgrade Python requirements 2025-08-04 22:54:03 -04:00
Taylor Payne
16d96565e3 refactor: move production defaults to common modules (#37045)
In the effort to simplify settings in edx-platform, as discussed in ADR 22 -
Settings Simplification, this PR brings some of the production defaults defined
in `lms/envs/production.py` and `cms/envs/production.py` up to
`openedx/envs/common.py` or `lms/envs/common.py` and `cms/envs/common.py` as
appropriate.

Bringing these defaults up from the `production.py` settings modules caused
changes in the rendered settings of the `test.py` modules, and so I have
settings to the `test.py` modules to bring the rendered settings back in line
with what is has been. I have not deeply looked at which settings are needed
for tests to pass or not, but just the differences between the rendered
settings between `master` and this branch.

ADR 22: https://github.com/openedx/edx-platform/blob/master/docs/decisions/0022-settings-simplification.rst
Fixes https://github.com/openedx/edx-platform/issues/36892.
2025-08-04 17:06:16 -04:00
Feanil Patel
674c748547 Merge pull request #37112 from openedx/dependabot/github_actions/supercharge/mongodb-github-action-1.12.0
build(deps): bump supercharge/mongodb-github-action from 1.11.0 to 1.12.0
2025-08-04 16:51:48 -04:00
dependabot[bot]
9d524a91f1 build(deps): bump supercharge/mongodb-github-action
Bumps [supercharge/mongodb-github-action](https://github.com/supercharge/mongodb-github-action) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/supercharge/mongodb-github-action/releases)
- [Changelog](https://github.com/supercharge/mongodb-github-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/supercharge/mongodb-github-action/compare/1.11.0...1.12.0)

---
updated-dependencies:
- dependency-name: supercharge/mongodb-github-action
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 19:56:00 +00:00
feanil
e553d48a6a chore: geoip2: update maxmind geolite country database 2025-08-04 15:47:28 -04:00
Kyle McCormick
27369b3af7 fix: Sort the output of dump_settings (#37118)
The dump_settings management command is
used for debugging changes to Django settings.
When comparing settings between two branches or
modules side-by-side, it is very useful to have the keys
print out in a deterministic order.

Affects developers only. This has no end-user impact.
2025-08-04 14:43:19 -04:00
Eemaan Amir
0b4c75c21c chore: cleaned up course level preferences (#37106)
* chore: cleaned up course level preferences

* fix: fixed import issue

* fix: fixed lint errors
2025-08-04 12:20:54 +05:00
Muhammad Adeel Tajamul
d59f5b39fe fix: fixed missing course in bulk delete (#37103) 2025-08-04 11:25:50 +05:00
Navin Karkera
103a152c36 feat: disallow adding children to containers imported from library (#37088)
Updates `childAddable` action in xblocks that have upstream link to stop users from updating imported sections and subsections.
2025-08-04 06:05:12 +00:00
Ahtisham Shahid
c2a86534e6 fix: updated captcha api to use enterprise assessment (#37079)
* fix: updated captcha api to use enterprise assessment
2025-08-03 21:27:12 +00:00
Feanil Patel
32abbc2763 Update who gets tagged now that Arbi-bom is shutting down. (#37097)
* build: Update places where Arbi-bom was getting tagged.

The arbi-bom team no longer exists and we need to make sure these still
land in a timely manner.  So tag the maintainers to review and merge
these PRs

* build: Drop unnecessary common_constraint overrides.

These are no longer necessary now that
https://github.com/openedx/edx-lint/pull/500 has landed.
2025-08-02 07:42:18 +00:00
mubbsharanwar
95db5fb28d fix: remove redundant code 2025-08-01 18:46:58 +05:00
Hassan Raza
4793f883fc chore: Remove notification app waffle flags (#37086) 2025-08-01 14:59:40 +05:00
Ishan Masdekar
c9886882e3 feat: include the usage_key in API to get ancestor blocks (#37072)
- includes location along with the child ancestor block as it is
required in the frontend authoring app for unit scrolling purpose in the
breadcrumbs.

Required for https://github.com/openedx/frontend-app-authoring/issues/1924
2025-07-31 14:22:38 -07:00
Kyle McCormick
8485b2f353 docs: Update codeowners to use normal CC teams (#37098)
See https://github.com/openedx/axim-engineering/issues/1511

Referenced teams:

https://github.com/orgs/openedx/teams/committers-edx-platform-2u-infinity/members
https://github.com/orgs/openedx/teams/committers-edx-platform-2u-aperture/members
https://github.com/orgs/openedx/teams/committers-edx-platform-2u-tnl/members
2025-07-31 14:04:03 -04:00
Akanshu Aich
03771e0f24 feat: Upgrade Python dependency edx-toggles (#37096)
Commit generated by workflow `Akanshu-2u/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: Akanshu-2u <211787872+Akanshu-2u@users.noreply.github.com>
2025-07-31 10:40:41 -04:00
Feanil Patel
14a1ffd3b8 Merge pull request #37090 from openedx/repo-tools/upgrade-python-requirements-02c45c5
chore: Upgrade Python requirements
2025-07-31 10:08:40 -04:00
Mubbshar Anwar
6d150acf81 refactor: Remove HIBP settings from CMS (#36998)
Remove HIBP settings from CMS common settings module
2025-07-31 09:43:36 -04:00
Eemaan Amir
df7583778e chore: added show_prefrences flag to NotificationPreferencesView (#37085) 2025-07-31 18:19:53 +05:00