Commit Graph

66543 Commits

Author SHA1 Message Date
leoaulasneo98
0a05dc292b Saml redirect mfe (#36197)
* fix: Redirect non-enterprise SAML to authn MFE

The original request was that enterprise users with tpa hint and SAML should not be redirected to MFE. The current condition also excludes regular non-enterprise users with SAML authentication from the MFE.

* test: Add test for enterprise SAML authentication MFE redirection logic

This test validates the conditional redirection to the authentication
microfrontend (MFE) for enterprise and SAML authentication scenarios.

The test covers different combinations of:
- Enterprise customer presence
- Third-party authentication provider
- SAML provider status
- Redirection setting

Ensures that enterprise customers with SAML providers are not redirected
to the authentication MFE, while other scenarios follow the standard
redirection rules.

* fix: change spaced between line codes in test_logistration.py

---------

Co-authored-by: Andrés González <andres@aulasneo.com>
2025-03-11 12:27:51 -04:00
Brandon Bodine
532ea8730e Merge pull request #36343 from openedx/BrandonHBodine/upgrade-edxval-fb31f82
feat: Upgrade Python dependency edxval
2025-03-11 09:47:03 -06:00
BrandonHBodine
431e6e6cfb feat: Upgrade Python dependency edxval
edx-val upgrade to include transcript patch endpoint

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-11 09:23:24 -06:00
Rodrigo Martin
91acd3a26f feat: Update link styling (#36348) 2025-03-11 12:07:29 -03:00
Feanil Patel
04085af1ef Merge pull request #36356 from openedx/feanil/update_minimal_config
fix: Be able to run celery tasks on baremetal.
2025-03-11 09:56:29 -04:00
Feanil Patel
a7311ce55e fix: Be able to run celery tasks on baremetal.
At some point something changed in upstream config or in celery and now
a black transport is no longer valid.  You have to supply some transport
even if you are running in always eager mode.  Add enough config so that
celery tasks will execute without issues when running `runserver` on
baremetal.

Fixes the "No such transport" error:

```
File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/celery/app/task.py", line 575, in apply_async
    with app.producer_or_acquire(producer) as eager_producer:                                                                                                                                                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/celery/app/base.py", line 932, in producer_or_acquire                                                                                                  producer, self.producer_pool.acquire, block=True,
              ^^^^^^^^^^^^^^^^^^
  File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/celery/app/base.py", line 1354, in producer_pool
    return self.amqp.producer_pool                                                                                                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/celery/app/amqp.py", line 591, in producer_pool
    self.app.connection_for_write()]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/celery/app/base.py", line 829, in connection_for_write
    return self._connection(url or self.conf.broker_write_url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                         File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/celery/app/base.py", line 880, in _connection
    return self.amqp.Connection(
           ^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                 File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/kombu/connection.py", line 201, in __init__
    if not get_transport_cls(transport).can_parse_url:                                                                                                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/kombu/transport/__init__.py", line 91, in get_transport_cls                                                                                            _transport_cache[transport] = resolve_transport(transport)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                   File "/home/feanil/.virtualenvs/edx-platform/lib/python3.11/site-packages/kombu/transport/__init__.py", line 72, in resolve_transport
    raise KeyError(f'No such transport: {transport}')                                                                                                                                                                          KeyError: 'No such transport: '

```
2025-03-11 09:35:05 -04:00
renovate[bot]
616aa44406 fix(deps): update dependency webpack to v5.98.0 (#36354)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 19:45:20 +00:00
renovate[bot]
cd1d3fc55f fix(deps): update dependency edx-ui-toolkit to v1.8.7 (#36352)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 19:39:25 +00:00
Rômulo Penido
6ce674a7a7 fix: set imported xblock parent (#36338)
Fixes a bug in which the index document was created while pasting a component with empty breadcrumbs field.
2025-03-10 19:11:27 +00:00
Feanil Patel
8fc0615ea0 Merge pull request #36351 from openedx/feanil/check_make_upgrade
build: Drop an errant requirements.txt file.
2025-03-10 14:58:46 -04:00
renovate[bot]
5735058d7e fix(deps): update dependency react-slick to v0.30.3 (#36350)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 18:12:25 +00:00
Feanil Patel
264637ad9e build: Drop an errant requirements.txt file.
This file should not exist, we do not use a top-level requirements file
in this repo to manage dependencies.  All dependency files should live
in the `requirements` folder.
2025-03-10 13:58:35 -04:00
renovate[bot]
111d75fe4a fix(deps): update dependency moment-timezone to v0.5.47 (#36347)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 16:42:03 +00:00
Feanil Patel
27707bb79d Merge pull request #36341 from openedx/feanil/drop_picturefill_polyfill
feat!: Drop usage of the picturefill polyfill.
2025-03-10 12:13:20 -04:00
Feanil Patel
e36db6e251 feat!: Drop usage of the picturefill polyfill.
This package is no longer supported (https://www.npmjs.com/package/picturefill)
and it was a polyfill for the Picture element which is now widely
supported (https://caniuse.com/?search=Picture) and we only used it in
one spot to make things work correctly in IE.  I think it's safe to drop
as we and the world has stopped supporting IE a while ago.

BREAKING CHANGE: Program Card images on the legacy learner dashboard may
no longer load properly on IE.
2025-03-10 11:51:33 -04:00
renovate[bot]
48c65bda12 fix(deps): update dependency @edx/edx-proctoring to v4.18.4 (#36346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-10 15:49:41 +00:00
Feanil Patel
c03c207384 Merge pull request #36339 from openedx/renovate/node-gyp-11.x
fix(deps): update dependency node-gyp to v11
2025-03-10 11:16:08 -04:00
renovate[bot]
b1f06705b5 fix(deps): update dependency node-gyp to v11 2025-03-10 14:44:15 +00:00
Feanil Patel
a056aa3189 Merge pull request #35824 from openedx/renovate/css-loader-7.x
fix(deps): update dependency css-loader to v7
2025-03-10 10:42:40 -04:00
irfanuddinahmad
09e3ba367f Merge pull request #36345 from omar-sarfraz/osarfraz/upgrade-python-dependency
chore: upgrade edx-enterprise to 5.8.3
2025-03-10 15:06:32 +05:00
omar-sarfraz
18c1112a58 chore: upgrade edx-enterprise to 5.8.3 2025-03-10 14:21:52 +05:00
Diana Huang
8935af7ab4 feat: Add observability to codejail darklaunch.
Sets up tracing in code jail calls to track remote
and local execution, and adds custom attributes
to track error messages from the calls.

https://github.com/edx/edx-arch-experiments/issues/895
2025-03-07 11:19:40 -05:00
Saad Yousaf
fb31f82177 docs: update course optimizer toggle documentation to accurate represent toggles working 2025-03-07 17:56:30 +05:00
zawan-ila
ab3928284f feat: only fetch published pathways (#36332)
* feat: only fetch published pathways
2025-03-07 12:42:33 +05:00
Hina Khadim
0054eb2d33 fix: Exclude Drag and Drop blocks from the link-scanning step in the Course Optimizer (#36321)
* fix: ignore drag and drop in course optimizer scanning links step
2025-03-07 11:32:57 +05:00
Jesper Hodge
d85cb7c63d fix: test 2025-03-06 16:25:54 -05:00
jesperhodge
ac72bef927 feat: upgrade python dependency edx-enterprise 2025-03-06 16:25:54 -05:00
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