Commit Graph

66345 Commits

Author SHA1 Message Date
andrey-canon
fd74df3857 feat: filter by current site organizations 2025-01-21 16:21:38 -05:00
Katrina Nguyen
14ec4b9ef6 Merge pull request #36145 from openedx/katrinan029/upgrade-edx-enterprise-d018675
feat: Upgrade Python dependency edx-enterprise
2025-01-21 12:13:42 -08:00
katrinan029
e269c13be8 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-01-21 19:15:56 +00:00
David Ormsbee
d018675968 perf: reduce ORM queries needed for video quality info
The CourseQualityView used to call edx-val's get_video_for_course(),
which would return a fully serialized data structure that included all
encodings and inefficiently serialized them with many n+1 queries. This
is tolerable in a paginated web view, but not when pulling all of a
large courses's videos at once.

Making this change collapsed the number of queries for a large sample
MIT course from over 3000 down to 1.
2025-01-21 12:06:40 -05:00
Feanil Patel
88735f454e Merge pull request #36127 from openedx/feanil/more_terrain_cleanup
fix: Dropping terrain related config and docs.
2025-01-21 11:51:15 -05:00
David Ormsbee
7635b8edcb perf: normalize LMS vs. Studio debug-toolbar settings
This change disables the profiling panel for performance reasons. It's
rarely useful anyway, given the lack of granularity in the data it
displays.

This commit also enables the Cache panel, which is import for tracking
where we're making excessive calls to redis/memcached.
2025-01-21 11:03:01 -05:00
renovate[bot]
824a766fb1 chore(deps): update dependency selenium-webdriver to v4.28.1 (#36141)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 10:36:11 +00:00
renovate[bot]
3c74224c8d chore(deps): update dependency eslint-import-resolver-webpack to v0.13.10 (#36140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 10:35:40 +00:00
Robert Raposa
4035aa3487 Revert "refactor: Clean up lms/envs/production.py cruft (#36115)" (#36129)
This reverts commit 15939232d5.
2025-01-17 16:16:38 +00:00
Muhammad Faraz Maqsood
7419ae85f5 chore: upgrade openedx-forum version to 0.1.6 2025-01-17 10:18:57 -05:00
Feanil Patel
43624fd922 fix: Dropping terrain related config and docs.
The terrain app and its stub servers were removed as a part of
https://github.com/openedx/edx-platform/pull/36102 but these last few
things got missed.
2025-01-17 09:04:48 -05:00
Kyle McCormick
15939232d5 refactor: Clean up lms/envs/production.py cruft (#36115)
This is a pure refactoring of lms/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.

Notes on some of the more involved refactorings:

* AWS Locals Load block is handled by the YAML loading at the very top, we
  don't need to re-load it since there were no changes to those settings
  between the YAML loading at the top and this section.

* MKTG_URL_OVERRIDES, we drop doing any overrides and remove it from the merge
  list beacuse the default value in
  lms/envs/common.py is empty.  So the update is a no-op and is the same as just
  loading this data directly from the YAML config.

* CODE_JAIL block, we've been overriding the entire dict if it is in your YAML
  config, so then going through and updating the individual values is not necessary.

* SSL_AUTH_EMAIL_DOMAIN and SSL_AUTH_DN_FORMAT_STRING are not used anywhere in
  the openedx org, looks like they were used by the old `dashboard` djangoapp
  and can probably be deleted but might be used by plugins so not removing for
  now to keep the change backward compatible.

* DEFAULT_FILE_STORAGE, previously two of the braches were no-ops so we only
  keep the one branch we need for when we want to update DEFAULT_FILE_STORAGE
  automatically if AWS keys are set.

Somewhat related to: https://github.com/openedx/open-edx-proposals/issues/587

Co-Authored-By: Feanil Patel <feanil@axim.org>
2025-01-16 15:19:47 -05:00
Chris Chávez
e930bc60b1 feat: Changes in xblock_v2 to support studio_view [FC-0076] (#36029)
Updates to support studio_view (editors) in xblock_v2 iframe.

- Send a message when cancel button is clicked on xblock_v2 iframe only in studio_view
- Send a message when save.end event is notified on xblock_v2 iframe.
- Send notify function in runtime. This is to avoid errors when saving the Xblock
2025-01-16 18:10:59 +00:00
Ihor Romaniuk
8aeaaf4e21 feat: [FC-0070] add message events and styles to the library content page (#35785)
This introduces improvements for XBlock interactions within iframes:

* Add default styles for Library Content that renders in the iframe in the new Studio unit page
* When the `isIframeEmbed` option is enabled, the XBlock sends a `postMessage` to the parent window. When sending such a message, the standard link transition is cancelled and the transition is carried out in the MFE.
2025-01-16 14:05:26 -03:00
Alison Langston
b885618ae1 fix: remove lti-consumer-xblock pin and upgrade package (#36119)
* fix: remove lti-consumer-xblock pin and upgrade package

* feat: Upgrade Python dependency lti-consumer-xblock (#36120)

9.13.1 contains a fix for broken LTI 1.3 launches

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

Co-authored-by: alangsto <46360176+alangsto@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-16 09:41:46 -05:00
Hunia Fatima
829f6dbf33 chore: remove dockerfile setup (#35731)
* chore: remove dockerfile setup
2025-01-16 17:46:57 +05:00
Kyle McCormick
343a4cad56 docs: update settings comment 2025-01-15 17:35:13 -05:00
Jillian
b96a3bf249 fix: allow_to_create_new_org checks org autocreate [FC-0076] (#36094)
Updates the StudioHome API's allow_to_create_new_org to require both organization-creation permissions and ORGANIZATION_AUTOCREATE to be enabled. It also adds the list of "allowed organizations for libraries" to the Studio Home API so that the Authoring MFE can use it.
2025-01-15 17:32:37 +00:00
Feanil Patel
fa0ead4f4f Merge pull request #36102 from openedx/feanil/remove_stubs
test: Drop some stub code.
2025-01-15 10:33:25 -05:00
Brian Mesick
749b3ebc82 build: Cache images in unit tests (#36110)
Another attempt to stop Dockerhub from rate limiting us in CI. If this
works here, we'll try to add this caching to other relevant workflows.

https://github.com/openedx/axim-engineering/issues/1350#issuecomment-2591237325
2025-01-15 10:05:07 -05:00
irfanuddinahmad
fd3cfacd32 Merge pull request #36071 from openedx/iahmad/ENT-6471
feat: Disabled MITx from program nudge emails
2025-01-15 14:46:53 +05:00
irfanuddinahmad
f64a3a62c5 feat: Disabled MITx from program nudge emails 2025-01-15 14:17:27 +05:00
jawad khan
e859d7e9d9 feat: Add course id in notifications list api for mobile Devices (#36106) 2025-01-15 14:12:34 +05:00
Juan Carlos Iasenza (Aulasneo)
7fa68243a0 style: Explore Courses button doesn't follow the same style conventions of MFE header (#35994) 2025-01-14 19:43:51 +00:00
Peter Kulko
755bf98091 feat: [FC-0070] Listen to xBlock interaction events (#35694)
This is part of the effort to support the new Studio Unit Page embedded in the authoring MFE.  It introduces several changes to improve the handling of XBlock events and the user interface in the CMS. The most important changes include adding event listeners for message handling, refining the postMessage logic, and updating the CSS for better visual consistency.
2025-01-14 11:56:51 -05:00
github-actions[bot]
511b440045 feat: Upgrade Python dependency edx-enterprise (#36105)
fix: Log all learner transmission records.

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

Co-authored-by: zamanafzal <11922730+zamanafzal@users.noreply.github.com>
Co-authored-by: Zaman Afzal <zamanafzal@gmail.com>
2025-01-14 19:44:53 +05:00
Peter Pinch
952c297941 Merge pull request #36061 from mitodl/anas/fix-date-label
fix: date label for instructor paced courses
2025-01-14 09:37:16 -05:00
Peter Pinch
51c99c5a23 Merge branch 'master' into anas/fix-date-label 2025-01-14 09:04:32 -05:00
Peter Pinch
ad4ef9f1d3 Merge pull request #36069 from marslanabdulrauf/marslan/6346-remove-depr-flag
feat: Remove DEPR waffle switch: ENABLE_GLOBAL_STAFF_OPTIMIZATION
2025-01-14 08:59:11 -05:00
Muhammad Anas
5f302a3ae7 fix: date label for instructor paced courses 2025-01-14 18:30:16 +05:00
Muhammad Arslan
343d521619 chore: Remove unused variable and rebased 2025-01-14 14:03:00 +05:00
Muhammad Arslan
f6f72290b7 build: Remove unused imports 2025-01-14 14:03:00 +05:00
Muhammad Arslan
838977a8f3 feat!: Remove DEPR waffle switch: ENABLE_GLOBAL_STAFF_OPTIMIZATION 2025-01-14 14:02:37 +05:00
Feanil Patel
bdef5ad6aa test: Drop some stub config.
I believe this was only used with BokChoy and just got missed in the
various cleanup.  Removing it now since we're not using it.
2025-01-13 14:41:30 -05:00
Navin Karkera
cd9b90fc21 feat: show math in plain text in library cards (#36055)
Converts mathjax equations to unicode to be rendered as plain text in library card previews
2025-01-13 13:09:47 -05:00
Muhammad Adeel Tajamul
f4c2b46671 chore: updated notification preference url in email digest (#36101) 2025-01-13 12:56:40 +05:00
Kyle McCormick
290209b1b1 build: Don't fail the build if DockerHub login fails (#36100)
This iterates on https://github.com/openedx/edx-platform/pull/36089, which
logged us into DockerHub during unit tests in order to reduce how often
DockerHub rate-limits us.

Forks will fail to log into DockerHub unless the fork owner configures their
own DockerHub creds. This PR is an attempt to make it so that unit tests don't
fail when DockerHub login fails.
2025-01-10 17:04:41 +00:00
Navin Karkera
e6ddd9c7c1 refactor: remove unnecessary padding from lib component picker (#36073)
Library component picker and Problem bank picker iframe had unnecessary
padding resulting in multiple border/shadow in the modal.
2025-01-10 10:30:58 -05:00
Muhammad Umar Khan
5ae71873a3 Add pin for lti-consumer-xblock (#36097)
* chore: add pin for lti-consumer-xblock

* feat: Upgrade Python dependency lti-consumer-xblock (#36098)

chore: downgrade lti-consumer-xblock

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

Co-authored-by: mumarkhan999 <42294172+mumarkhan999@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-10 17:21:03 +05:00
Brian Mesick
c5fabd5863 Merge pull request #36089 from openedx/bmtcril/dockerhub_login
build: Log in to dockerhub for unit test CI
2025-01-09 17:39:59 -05:00
Brian Mesick
899703fc95 Merge branch 'master' into bmtcril/dockerhub_login 2025-01-09 16:04:09 -05:00
Brian Mesick
042c0441b0 fix: Use correct secret name for dockerhub password 2025-01-09 15:41:21 -05:00
Brian Mesick
18cf33864d build: Log in to dockerhub for unit test CI
We're being rate limited by dockerhub for pulling too many images in CI.
There isn't a greate solution for caching images for GH actions, but in
theory we should have less strict limits as an authenticated user.
2025-01-09 15:36:03 -05:00
github-actions[bot]
4a7d991074 feat: Upgrade Python dependency lti-consumer-xblock (#36088)
The latest version replaces pyjwkset with the pyjwt package

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

Co-authored-by: alangsto <46360176+alangsto@users.noreply.github.com>
2025-01-09 14:26:56 -05:00
Felipe Montoya
9acdfe6fd2 feat: show exception message from filters in the user interface (#35407) 2025-01-09 18:22:56 +01:00
Alison Langston
d15e520acc Revert "feat: Upgrade Python dependency lti-consumer-xblock (#36084)" (#36086)
This reverts commit 71965ea799.
2025-01-09 11:22:53 -05:00
Kyle D. McCormick
3dc28abcf7 build: Fix type annotations for new mypy version
Includes some new Request type annotations in openedx.core.types.http,
plus a new meta-utility @type_annotation_only to ensure that we don't
accidentally start instantiating those new classes.
2025-01-09 10:31:01 -05:00
Kyle D. McCormick
9262c9aa42 build: Upgrade django-stubs even further, to fix mypy
Rather than constraining django-stubs' major version to our django
major version (4.x.x), we are going to go one ahead (5.x.x), as
recommended by https://github.com/python/mypy/issues/17958

Also includes an unrelated common_constraints update.
2025-01-09 10:31:01 -05:00
Kyle D. McCormick
f7ccd7cc3a build: Unpin mypy and upgrade it to latest
This is possible now that django-stubs and djangorestframework-stubs
are unpinned:
a5b773ce7b

which became possible once we upgraded to django 4.2.

Closes: https://github.com/openedx/edx-platform/issues/35667
2025-01-09 10:31:01 -05:00
github-actions[bot]
71965ea799 feat: Upgrade Python dependency lti-consumer-xblock (#36084)
The latest version replaces pyjwkset with the pyjwt package

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

Co-authored-by: alangsto <46360176+alangsto@users.noreply.github.com>
2025-01-09 10:08:30 -05:00