Commit Graph

66576 Commits

Author SHA1 Message Date
Taimoor Ahmed
0d4281aa2e fix: discussion xblock not compatible with forum v2 (#36315)
fix all endpoints that were currently breaking with the discussion xblock.

Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01434.local>
2025-03-20 12:17:39 +05:00
Rodrigo Martin
8d00b093c3 fix: video transcript links wrapping up (#36392) 2025-03-19 14:39:03 -03:00
Hassan Raza
033bcda99d Hraza/add embargo restricted country (#36398)
* feat: add country disabling feature in embargo app

* revert: disabled countries list in env

* fix: resolved linter issues

---------

Co-authored-by: Hassan Raza <h.raza@192.168.1.12>
2025-03-19 12:22:45 +05:00
Marlon Keating
f20b9cf466 Merge pull request #36405 from openedx/marlonkeating/upgrade-edx-enterprise-d1415bd
feat: Upgrade Python dependency edx-enterprise
2025-03-18 12:07:17 -07:00
Marlon Keating
0ebf1601cb Merge branch 'master' into marlonkeating/upgrade-edx-enterprise-d1415bd 2025-03-18 11:44:43 -07:00
Jillian
626f40c499 chore: bumps the versions for edx-sga and lti-consumer-xblock (#36395)
Specifically to bump the versions for edx-sga and lti-consumer-xblock
2025-03-18 18:36:33 +00:00
marlonkeating
53cc4e3b11 feat: Upgrade Python dependency edx-enterprise
Adds group_uuid field to enterprise group membership api payload.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-18 18:11:30 +00:00
github-actions[bot]
d1415bd752 feat: Upgrade Python dependency edx-enterprise (#36394)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: kiram15 <31229189+kiram15@users.noreply.github.com>
2025-03-18 12:00:58 -06:00
Maxwell Frank
372884781f feat: remove algoliasearch package (#36403) 2025-03-18 11:33:41 -04:00
Muhammad Farhan
dcf95f4f6a fix: handle /jump_to_id/ URLs in course optimizer urls (#36400) 2025-03-18 19:25:30 +05:00
Muhammad Umar Khan
4195186b04 chore: skip data caching for blockstructure content more than or equal to 2MB (#36397)
Co-authored-by: M Umar Khan <umar.khan@A006-01609.local>
2025-03-18 14:05:10 +05:00
Ahtisham Shahid
e7100d813f Revert "feat: refactor country disable logic into the Embargo app (#36202)" (#36393)
This reverts commit 72959ad9d5.
2025-03-17 23:55:59 +05:00
Braden MacDonald
f700c89357 refactor: convert content libraries python API from attr.s to dataclass, fix types [FC-0083] (#36381)
* refactor: convert libraries API from attr.s to dataclass, fix types
* fix: make corresponding updates to 'search' code
2025-03-18 02:40:55 +10:30
Alexander Dusenbery
f685234b48 feat: upgrade enterprise to 5.10.1, removing braze-client 2025-03-17 12:09:17 -04:00
Hassan Raza
72959ad9d5 feat: refactor country disable logic into the Embargo app (#36202)
* feat: add country disabling feature in embargo app

* revert: disabled countries list in env

* fix: resolved linter issues

---------

Co-authored-by: Hassan Raza <h.raza@192.168.1.12>
2025-03-17 16:07:18 +05:00
Hina Khadim
ee7fd497a7 fix: add target='_blank' for videos hosted outside edx (#36361) 2025-03-17 11:10:49 +05:00
Deborah Kaplan
77fe61c19c fix: CourseEnrollment list serializer error on deleted Course (#36378)
If a course is deleted or unpublished, the CourseEnrollment list serializer was causing a AttributeErrors when called for a learner who had been enrolled in the formerly-existing course.

Why no test? Because cache invalidation is the worst problem. tl;dr I could create a mock response for the `course_overview` property, but if I mocked up a response to the queryset filter in `CourseEnrollmentsApiListView`, I was effectively guessing that my code worked correctly and then creating a mock response that was an assertion of correctness. That would make any mocked test deceptive; it would appear to test behavior but it would actually just test that I had constructed a mock that passed the test.

I wanted to make an actual test for what would happen if a Course was deleted, so I made one character code fix, and then spent two days unsuccessfully attempting to completely clear out the ModuleStore so I could actually test what would happen in this instance.

IMO an actual verification by hand (which I performed, and it works) was the better part of valor.

in short, cache invalidation aaaaaaaaargh.

FIXES: APER-3913
2025-03-14 08:45:32 -04:00
Awais Qureshi
62e5904286 feat!: upgrade generate_bulk_certificate_exceptions to drf ( 26 ) (#35577)
* feat!: upgrading api to DRF.
2025-03-14 15:48:06 +05:00
Bryann Valderrama
f90e59e52a docs: add event_type inline code annotation for open edX events (#36355) 2025-03-14 09:55:50 +01:00
jesperhodge
7ef0d61e5f feat: Upgrade Python dependency edx-enterprise
fix ECU table backfill command.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-13 15:15:49 -04:00
jesperhodge
89020c3e98 feat: Upgrade Python dependency edx-enterprise
fix ECU table backfill command to also backfill historical table.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-13 14:08:27 -04:00
Braden MacDonald
3b5edaa1ad chore: fix a few JS lint issues that eslint is warning about (#36177) 2025-03-13 10:08:02 -07:00
renovate[bot]
75185c0c86 fix(deps): update dependency sass to v1.85.1 (#36373)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-13 15:59:19 +00:00
Katrina Nguyen
a112a53e75 Merge pull request #36370 from openedx/katrinan029/upgrade-edx-enterprise-711d6aa
feat: Upgrade Python dependency edx-enterprise
2025-03-12 15:12:57 -07:00
katrinan029
d36c98bdcb feat: Upgrade Python dependency edx-enterprise
version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-12 21:51:37 +00:00
Navin Karkera
711d6aa357 refactor: downstream entity links api [FC-0076] (#36311)
Refactors downstream links API to handle multiple filters using a single API. Also adds a new route to return summary of library links for a given course.
2025-03-12 17:56:12 +00:00
Jesper Hodge
3f844b6a21 fixup! feat: Upgrade Python dependency edx-enterprise 2025-03-12 13:10:28 -04:00
Deborah Kaplan
97675ae404 chore: pre-fix linting (#36368)
* chore: pre-fix linting

Before making some bug fixes in this area, reformatting  these files to modern standards.
2025-03-12 16:44:14 +00:00
github-actions[bot]
d2561af9bd feat: Upgrade Python dependency faker (#36366)
Need to test if the upgrade caused issues

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/repo-tools/upgrade-python-requirements-616aa44`

Co-authored-by: huniafatima-99 <171663979+huniafatima-99@users.noreply.github.com>
2025-03-12 20:41:27 +05:00
Muhammad Umar Khan
c443acddd8 chore: skip data caching for content more than or equal to 2MB (#36359)
Co-authored-by: M Umar Khan <umar.khan@A006-01609.local>
2025-03-12 17:46:31 +05:00
Chris Chávez
f5fde97ae8 fix: Show tag count when paste a component in a course [FC-0046] (#36318)
* fix: Show tag count when paste a component in a course

* refactor: get_children_tags_count updated to get_tags_count
2025-03-12 18:09:12 +05:30
Muhammad Faraz Maqsood
6ddcfaf06d chore: update braze version to latest 2025-03-12 12:48:23 +05:00
renovate[bot]
ca24de0abe fix(deps): update dependency sass-loader to v16.0.5 (#36362)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-11 19:54:05 +00:00
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