Commit Graph

66588 Commits

Author SHA1 Message Date
Tim McCormack
2009e8972c feat: Set TMPDIR for codejail executions (#36412)
This makes it easier to run matplotlib in codejail, and should prevent a
number of other issues in the future with other packages that need to
create tempfiles.

No change is required for existing codejail installations, but after this
change operators may be able to tighten their apparmor configuration to
prevent write access to global temp or cache dirs.

Manual testing instructions: Create a codejail problem that runs
`import matplotlib` and confirm that it runs without error. (Unit tests
aren't feasible here because this requires a fully configured codejail in
order for the tmp subdirectory to exist.)

Also: Add comment for `OPENBLAS_NUM_THREADS` and numpy support.
2025-03-20 15:41:43 -04:00
Kyle McCormick
f8775087a3 docs: Nix "service-oriented" (#36417)
In acknowledgement of the architectural direction of the
openedx codebase over the past 4 years.
2025-03-20 13:58:43 -04:00
Feanil Patel
46503e4466 Merge pull request #36383 from openedx/robrap/remove-eslint
style: remove eslint with frontend code removal ADR
2025-03-20 13:00:26 -04:00
Andres Malagon
4638615f31 Unpin Click - issue #35279 (#36191)
* build: unpin click
2025-03-20 20:59:40 +05:00
Robert Raposa
399be67fc4 style: remove eslint with frontend code removal ADR
- Add ADR for frontend code removal
- Drop eslint, as explained in the ADR
2025-03-20 11:03:41 -04:00
Muhammad Farhan
e9c52100ef fix: improve regex to exclude data: urls (#36415) 2025-03-20 19:33:10 +05:00
Muhammad Soban Javed
314e604f4c Merge pull request #36386 from openedx/iamsobanjaved/unpin-optimzely-sdk
chore: remove optimizely-sdk constraint
2025-03-20 19:17:49 +05:00
Muhammad Noyan Aziz
ca463f918d SONIC-917: Added pluggable_override on `get_program_price_info` util (#36382)
* feat: add override for one click purchase eligibility

* refactor: remove extra line

* chore: move service worker inside util

* refactor: pylint issue

* fix: pylint errors

* fix: pycodestyle

---------

Co-authored-by: Muhammad Noyan  Aziz <noyan.aziz@A006-01474.local>
2025-03-20 15:37:17 +05:00
Taimoor Ahmed
be0a53834e chore: update openedx-forum version to 0.1.9 (#36411)
Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01434.local>
2025-03-20 13:00:13 +05:00
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
Muhammad Soban Javed
5e519ec4a9 feat: Upgrade Python dependency optimizely-sdk
Merge pull request #36387 from openedx/iamsobanjaved/upgrade-optimizely-sdk-0c7846c
2025-03-17 12:39:16 +05:00
iamsobanjaved
894f1d650b feat: Upgrade Python dependency optimizely-sdk
chore: upgrade optimizely-sdk to the latest version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-03-17 07:14:41 +00:00
Muhammad Soban Javed
0c7846cf39 chore: remove optimizely-sdk constraint 2025-03-17 12:06:05 +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