Commit Graph

66516 Commits

Author SHA1 Message Date
renovate[bot]
96c88eef1b fix(deps): update dependency css-loader to v7 2025-03-06 19:53:27 +00:00
Feanil Patel
fed7757e29 Merge pull request #35929 from openedx/renovate/uglify-js-3.x
fix(deps): update dependency uglify-js to v3
2025-03-06 14:51:49 -05:00
Navin Karkera
2613c8ef4e feat: preserve image alt text while converting html to text (#36333)
Replace image with its alt text while converting html to plain text for indexing.
2025-03-06 16:55:45 +00:00
Jillian
cc56e41d0c fix: allow LTI blocks to be loaded in a Library v2 context [FC-0076] (#36265)
Fixes errors thrown when previewing/editing (built-in) LTI blocks in a Libraries v2 context.

These fixes allow Library Authors to store LTI blocks in their content libraries.
2025-03-06 16:28:26 +00:00
Kyle McCormick
363f0fc1b4 build: Ping Feanil and Kyle when github.in is changed (#36330) 2025-03-06 11:23:07 -05:00
Emad Rad
7c8781ee9b chore: Clean up workflow YAML files
- Removed unnecessary blank lines in the add-remove-label-on-comment.yml and check_python_dependencies.yml files to improve readability and maintainability.
2025-03-06 10:46:43 -05:00
Emad Rad
40a4a718c0 chore: fixed typo 2025-03-06 10:46:43 -05:00
Emad Rad
1b1a8fa047 fix: Add username generation tests and utility functions
- Introduced `remove_special_characters_from_name` and `generate_username_suggestions` functions to enhance username handling.
- Added comprehensive test cases for username generation, including ASCII validation and uniqueness checks.
- Implemented tests for special character removal and suggestion generation based on various input scenarios, including edge cases.
2025-03-06 10:46:43 -05:00
Emad Rad
c544550a8d fix: Enhance username suggestion generation with ASCII validation and detailed docstring
- Updated `generate_username_suggestions` function to include validation for non-ASCII characters.
- Improved function documentation to clarify arguments, return types, and username generation logic.
- Added type hints for better code clarity and maintainability.
2025-03-06 10:46:43 -05:00
Diana Huang
ef49090c31 feat: Add codejail darklaunch toggle.
This adds a toggle for running codejail in both remote
and local configurations for testing purposes.

https://github.com/edx/edx-arch-experiments/issues/895
2025-03-05 17:56:40 -05:00
jesperhodge
3401d09fa4 feat: Upgrade Python dependency edx-enterprise
Adds a new field `user_fk` to EnterpriseCustomerUser table. Part 1 of multiple releases to add a user foreign key.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-05 16:01:02 -05:00
Maxwell Frank
e1e9e1cbfa chore: remove unused values for cross product recommendations (#36328) 2025-03-05 13:58:22 -05:00
Chris Chávez
475d61729b feat: Enable library blocks using settings [FC-0076] (#36292)
LIBRARY_ENABLED_BLOCKS added to verify enabled blocks in get_allowed_block_types
2025-03-05 12:45:43 -05:00
Feanil Patel
af1f424910 Merge pull request #36323 from openedx/feanil/drop-whatwg-fetch
build: Drop the `whatwg-fetch` polyfill.
2025-03-05 10:11:06 -05:00
Feanil Patel
f310c02aba build: Drop the whatwg-fetch polyfill.
This package polyfills the Fetch api but that API is now widely
available so I don't think we need this package anymore.
2025-03-05 08:58:35 -05:00
Kyle McCormick
774b7e9821 refactor: Clean up CMS production settings cruft (#36306)
This is a pure refactoring of cms/envs/production.py, removing several
redundant statements that have accrued over the years as the platform moved
from python-only, to python+json, to python+json+yaml, to today's python+yaml
setup.

This is the CMS version of:
* a81493ce7f
* (originally 15939232d5)

Also included:

* Add some more explicit structure to the both LMS's and CMS's
  production.py using big comments.

* In both LMS and CMS settings, alphabetize the production overrides,
  and remove the extraneous comments. Separate out the handful of settings
  which have useful comments. The rest of the settings' comments were not
  helpful--they were either just stating the obvious, or they were duplicative
  of what's documented in common.py.

Co-Authored-By: Feanil Patel <feanil@axim.org>

Part of: https://github.com/openedx/edx-platform/issues/36215
2025-03-05 08:24:59 -05:00
renovate[bot]
0b918efb76 chore(deps): update dependency selenium-webdriver to v4.29.0 (#36325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-05 10:12:22 +00:00
Feanil Patel
c9e7d2ce51 Merge pull request #36322 from openedx/feanil/update_package_lock
build: Regenerate package-lock.json
2025-03-04 15:20:20 -05:00
Feanil Patel
2417ca0057 build: Regenerate package-lock.json
This file is very out of date so just buliding it from scratch to get
the latest versions of 2nd order dependencies that are still compatible
with our explicit dependencies.
2025-03-04 12:54:50 -05:00
renovate[bot]
aa3c143831 fix(deps): update dependency uglify-js to v3 2025-03-04 17:44:27 +00:00
Feanil Patel
af6b35a9d7 Merge pull request #35950 from openedx/renovate/uglify-js-2.x
fix(deps): update dependency uglify-js to v2.8.29
2025-03-04 12:42:59 -05:00
Feanil Patel
042be0a181 Merge pull request #36285 from openedx/renovate/migrate-config
chore(config): migrate renovate config
2025-03-04 12:40:22 -05:00
Feanil Patel
43c59db731 Merge pull request #36320 from openedx/repo-tools/upgrade-python-requirements-fd3a106
chore: Upgrade Python requirements
2025-03-04 12:10:14 -05:00
Feanil Patel
d99a481c3c fix: Downgrade social-auth-core to fix tests.
It looks like the testing failures seem related to social-auth-core so
just downgrading that package to see if it unblocks the rest of the
upgrades.
2025-03-04 11:16:10 -05:00
edX requirements bot
e21d4b40db chore: Upgrade Python requirements 2025-03-04 11:16:09 -05:00
Feanil Patel
acdaef62cb Merge pull request #36182 from openedx/repo-tools/upgrade-python-requirements-1fe67d3
chore: Upgrade Python requirements
2025-03-04 11:12:46 -05:00
edX requirements bot
d853350eb3 chore: Upgrade Python requirements 2025-03-04 10:48:32 -05:00
Robert Raposa
468e1e3135 Merge pull request #36302 from ormsbee/remove-custom-startup
fix: remove custom startup to fix dev reloading
2025-03-04 08:35:19 -05:00
Muhammad Farhan
988801f3c0 fix: handle AttributeError in exception clause (#36317) 2025-03-04 13:05:04 +05:00
Feanil Patel
fd3a106ac4 Merge pull request #36313 from openedx/feanil/geoip2-bot-update-country-database-05890d2
Update GeoLite Database
2025-03-03 15:52:26 -05:00
feanil
bd165a5b9b chore: geoip2: update maxmind geolite country database 2025-03-03 14:45:34 -05:00
github-actions[bot]
50acf2c4f6 feat: Upgrade Python dependency edx-enterprise (#36316)
Exposes Waffle-based feature flag for migrating to CatalogQuery-based Algolia filtering on frontends.

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

Co-authored-by: adamstankiewicz <2828721+adamstankiewicz@users.noreply.github.com>
2025-03-03 12:34:20 -05:00
Peter Kulko
cf7e45cf4d feat: manage tag events for new Unit page (#35751) 2025-03-03 10:59:05 -03:00
Saad Yousaf
790fdcf05a fix: fix accessibility issue with video editor speed option selected speed 2025-03-03 13:21:45 +05:00
Muhammad Adeel Tajamul
1d0c72a0e1 chore: updated openedx-forum to 0.1.8 (#36314) 2025-03-03 12:00:52 +05:00
jawad khan
a84ad87f4b fix: Adjusted discussion notification context for mobile (#36304)
* fix: Adjusted discussion notification context for mobile
2025-03-03 10:44:47 +05:00
Abdul Rehman
385ea8382e fix: Remove duplicate imports of js files in instructor dashboard pages (#36289)
Co-authored-by: Abdul Rehman <abdul.rehman02@A006-01628.local>
2025-03-03 09:48:22 +05:00
David Ormsbee
d5aa834b6c refactor: move get_user_model call out of method
The get_service_user method used to do a local call to the
get_user_model function because it was not guaranteed to be properly
initialized at the time of import. This was partly due to how we did
custom initialization using lms/startup.py, but it was also because
when it was implemented (commit f318661), the platform was still
running on Django 1.8.18. At that time, get_user_model was guaranteed to
work only after Django has imported all models.

In Django 1.11, the behavior of get_user_model was changed:

  https://docs.djangoproject.com/en/1.11/releases/1.11/#django-contrib-auth

> get_user_model() can now be called at import time,
> even in modules that define models.

Now that lms/startup.py is gone and get_user_model is safe to call at
the module level, I'm refactoring the catalog app's models.py file to
follow the convention we use everywhere else in edx-platform with
respect to get_user_model.
2025-02-28 23:16:05 -05:00
David Ormsbee
c4f21b6931 fix: remove custom startup to fix dev reloading
The cms/startup.py and lms/startup.py files were created to
allow us to do a lot of custom initialization around things
like the ModuleStore, monkey-patching, adding MIME types to
our process, etc. As far back as 2017, we recognized that
this was a bad thing, marked these modules as "deprecated",
and started removing things or putting them in the standard
Django locations for them (0279181).

In its current state, these startup modules no longer do any
custom work, and just invoke django.startup(). But this is
meant for running Django code in "standalone" usage, e.g. if
you have a script that isn't a management command but needs
some Django functionality.

The "runserver" command used during development normally
launches a child process to serve requests and knows how to
kill and respawn that process when files are modified, so
that changes are reflected. It can also normally handle the
case where there's a SyntaxError in the child process, and
fixing that error will reload the code again.

Something about running django.startup() manually interferes
with this functionality in "runserver". It still reloads the
code in response to changes, but if the code gets into a
broken state for any reason (like a syntax error), the master
process itself dies. That causes the container to restart,
only to die again shortly afterwards in a loop until the
error is fixed. The container restarts will break any shell
you had opened into the container, as well as any IDE
integrations that connected to that container to access the
files and Python instance.

Getting rid of the custom startup code fixes this and moves
us one small step closer to being a more normal Django
project.
2025-02-28 23:16:05 -05:00
jawad khan
05890d25b6 feat: Add hide_after_due field in blocks api (#36284) 2025-02-28 12:36:04 +05:00
Kyle McCormick
2dc4dfe281 docs: Settings Simplification ADR (#36224)
Part of: https://github.com/openedx/edx-platform/issues/36215

Follow up in: https://github.com/openedx/open-edx-proposals/issues/684
2025-02-27 09:27:28 -05:00
Ahtisham Shahid
b1efc9b609 fix: resolved allow enroll email issue (#36309) 2025-02-27 15:34:05 +05:00
Hassan Raza
35243385eb fix: track duplicate unsubscribe events in snowflake by adding preference updates (#36299)
Co-authored-by: Hassan Raza <h.raza@A006-01472.local>
2025-02-27 11:42:38 +05:00
Katrina Nguyen
9416fba6fa Merge pull request #36308 from openedx/katrinan029/upgrade-edx-enterprise-6d21b97
feat: Upgrade Python dependency edx-enterprise
2025-02-26 12:09:42 -08:00
katrinan029
ff4d7d5107 feat: Upgrade Python dependency edx-enterprise
version bummp

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-02-26 19:18:46 +00:00
Ahtisham Shahid
6d21b97a8b fix: user id in allow enroll email inconsistent (#36300) 2025-02-26 18:12:57 +05:00
Awais Qureshi
3ef635b584 feat!: upgrading add_users_to_cohorts api to DRF ( 33 ) (#35613)
* feat!: upgrading api to DRF.
2025-02-26 17:49:46 +05:00
Muhammad Farhan
0e0d1dab95 feat: Add test for detecting broken and locked links (#36286) 2025-02-26 12:09:23 +05:00
Rômulo Penido
9451cfca26 feat: add API to return list of downstream blocks for an upstream [FC-0076] (#36253)
Adds the API for listing downstream contexts and parents for a given publishable entity.
2025-02-25 13:55:02 -05:00
Muhammad Afaq Shuaib
b83c8495e1 chore: add TRANSCRIPT_LANG_CACHE_TIMEOUT setting variable in common setting envs (#36296)
* chore: add TRANSCRIPT_LANG_CACHE_TIMEOUT setting variable in common setting envs
* chore: bump edx-val version
2025-02-25 20:07:14 +05:00