Commit Graph

64286 Commits

Author SHA1 Message Date
Maham Akif
ecc46cbe7d Merge pull request #33873 from openedx/mahamakifdar19/upgrade-edx-enterprise-f9b6e45
feat: Upgrade Python dependency edx-enterprise
2023-12-04 15:00:27 +05:00
mahamakifdar19
e2bf660755 feat: Upgrade Python dependency edx-enterprise
fix: fixed the domain issue to point to "courses.edx.org" for the resumeCourseRunUrl

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-04 09:33:33 +00:00
MueezKhan246
f9b6e453e4 Merge pull request #33870 from openedx/MueezKhan246/upgrade-edx-enterprise-abfc61e
feat: Upgrade Python dependency edx-enterprise
2023-12-04 14:21:36 +05:00
MueezKhan246
7cdb535557 feat: Upgrade Python dependency edx-enterprise
adds log for learner data transmission run

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-04 08:17:46 +00:00
dependabot[bot]
abfc61eacf build(deps): bump actions/setup-node from 3 to 4 (#33831)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 11:00:05 +05:00
Braden MacDonald
99667f6fb6 fix: "Copy Unit" button should be behind enable_copy_paste_units flag (#33867) 2023-12-01 13:35:58 -08:00
Pooja Kulkarni
f5b246d0e9 feat: copy/paste unit from within a unit in Studio - feature flagged (#33724)
(requires the contentstore.enable_copy_paste_units waffle flag)
2023-12-01 11:33:34 -08:00
Tim McCormack
94441861e0 feat!: Remove legacy-ip code and Waffle switch (#33735)
This switch has been kept disabled in edx.org for well over a year with no
trouble, and the migration to `CLOSEST_CLIENT_IP_FROM_HEADERS`
was introduced in Nutmeg.

DEPR issue: https://github.com/openedx/edx-platform/issues/33733
2023-12-01 14:44:59 +00:00
Awais Qureshi
29a0edd7aa Remove boto pin (#33853)
* chore: upgrade boto.
2023-12-01 15:44:09 +05:00
Kyle McCormick
129940b562 fix: load children in a consistent manner when duplicating LC blocks (#33860)
After refactoring the library_content block to use asynchronous tasks
for syncing and duplicating children, we are seeing an error arise
during library_content duplication process on edx.org:

Traceback (most recent call last):
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/content_libraries/tasks.py", line 305, in duplicate_children
    _copy_overrides(store=store, user_id=user_id, source_block=source_block, dest_block=dest_block)
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/content_libraries/tasks.py", line 383, in _copy_overrides
    dest_block=dest_block.runtime.get_block(dest_child_key),
  File "/edx/app/edxapp/edx-platform/xmodule/x_module.py", line 1401, in get_block
    block = self.load_item(usage_id, for_parent=for_parent)
  File "/edx/app/edxapp/edx-platform/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 127, in _load_item
    block_data = self.get_module_data(block_key, course_key)
  File "/edx/app/edxapp/edx-platform/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 154, in get_module_data
    raise ItemNotFoundError(block_key)
xmodule.modulestore.exceptions.ItemNotFoundError: BlockKey(...)

We cannot reproduce the issue locally.
We are not entirely certain the cause of this, but we think it might
have do with caching. Specifically, the `store.get_item` and
`source_block.runtime.get_block` methods might use a different cache
than `dest_block.runtime.get_block`. It's possible that writes to
Mongo are sitting in one of those caches, causing reads from the
`dest_block.runtime`'s cache to fail to find dest_block's children.

We attempt to fix this by using the same "block getting" method
consistently. So instead of using a mix of `store.get_item`,
`source_block.runtime.get_block`, and `dest_block.runtime.get_block`,
we just use `store.get_item` everywhere.
2023-11-30 14:59:40 -05:00
alangsto
0ffa84df6f chore: update lti-consumer-xblock version (#33859) 2023-11-30 14:09:19 -05:00
nsprenkle
d12b9e48d5 chore: bump ORA to 6.0.10 2023-11-30 13:21:30 -05:00
Awais Qureshi
285f1fbfd7 Remove doc utils pin (#33850)
* chore: removing docutils constraint.
2023-11-30 17:21:59 +05:00
edX requirements bot
b2cc7f8f7e chore: Updating Python Requirements (#33843)
Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2023-11-30 16:43:46 +05:00
Awais Qureshi
a3ff59cca2 Update cons desc (#33849)
* chore: updating constraint description.
2023-11-30 16:22:07 +05:00
Maham Akif
5849952c7e Merge pull request #33847 from openedx/mahamakifdar19/upgrade-edx-enterprise-54b351c
feat: Upgrade Python dependency edx-enterprise
2023-11-30 14:47:20 +05:00
mahamakifdar19
539461365f feat: Upgrade Python dependency edx-enterprise
feat: integrated resumeCourseRunUrl into enrollments API

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-11-30 08:55:09 +00:00
leangseu-edx
54b351c52c feat: Upgrade Python dependency ora2
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-11-29 16:58:59 -05:00
Jenkins
e95b40e266 chore: geoip2: update maxmind geolite country database 2023-11-29 15:59:05 -05:00
Brandon Bodine
443e36517a Merge pull request #33706 from openedx/fix/NOVA-124
fix: hide feedback widget by default
2023-11-29 11:57:16 -07:00
Brandon Bodine
ce2621642f fix: lint 2023-11-29 11:34:55 -07:00
Rodrigo Martin
d7482735c3 fix: hide feedback widget by default 2023-11-29 11:34:55 -07:00
Yusuf Musleh
370507a035 chore: bump openedx-learning to 0.3.6 (#33839) 2023-11-29 10:10:39 -08:00
connorhaugh
183e04d8b1 feat: add duplicate_children logging (#33829)
Add some logging to better capture the failures we've seen in duplication of library blocks.

Co-authored-by: Kyle McCormick <kyle@axim.org>
2023-11-29 12:56:24 -05:00
Awais Qureshi
f852594f54 Upgrading ipware (#33804)
* feat: Upgrade Python dependency django-ipware (#33805)
2023-11-29 16:15:38 +05:00
Saleem Latif
2b8f2a1b0f Merge pull request #33833 from openedx/saleem-latif/ENT-8059
Open AI version 1.0.0 dropped support for openai.ChatCompletion which is currently in use in enterprise
2023-11-29 13:03:52 +05:00
github-actions[bot]
5b5d0f6646 feat: Upgrade Python dependency openai (#33835)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: awais786 <awais786@users.noreply.github.com>
2023-11-29 12:25:17 +05:00
Saleem Latif
6ea07a2ab2 fix: Open AI version 1.0.0 dropped support for APIs in use, so pinning the version. 2023-11-29 11:57:45 +05:00
Irtaza Akram
4d16bad88e Merge pull request #33665 from openedx/dependabot#483
Fix gap in dependabot GitHub Action updates
2023-11-29 10:57:13 +05:00
Rodrigo Martin
8d02b8808f feat: rename 'video_uuid' to 'video_id' in AI translation request (#33787) 2023-11-28 20:56:42 -03:00
Kristin Aoki
9085bc140e fix: usage_locations always returning empty (#33830) 2023-11-28 16:35:45 -05:00
Jillian
7ff1506d32 fix: allows viewing an ObjectTag even if no taxonomy is provided (#33757) 2023-11-28 09:37:26 -08:00
Kristin Aoki
a7ce23602c fix: page redirect for libraries (#33806) 2023-11-28 12:29:12 -05:00
leangseu-edx
e1b1d486ca feat: Upgrade Python dependency ora2
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-11-28 10:21:18 -05:00
Awais Qureshi
0848eeccc0 build: upgrading algoliasearch. (#33771)
* build: upgrading algoliasearch.
2023-11-28 15:55:11 +05:00
Awais Qureshi
52019d3d1f Upgrade pillow lat (#33814)
* chore: upgrade pillow.
2023-11-28 15:03:04 +05:00
github-actions[bot]
e4f2cba945 feat: Upgrade Python dependency edx-django-utils (#33823)
chore: upgrade django utils

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

Co-authored-by: mumarkhan999 <mumarkhan999@users.noreply.github.com>
2023-11-28 14:24:52 +05:00
Leangseu Kim
ae6914fe3d chore: add ora mfe url env 2023-11-27 16:36:23 -05:00
jszewczulak
a9a37bc277 chore: ORA version bump (#33817) 2023-11-27 21:11:12 +00:00
Rômulo Penido
6d4463db99 fix: overwrite previous tags on taxonomy import (#33752) 2023-11-27 11:43:21 -08:00
github-actions[bot]
3b902c8f6f feat: Upgrade Python dependency edx-drf-extensions 9.0.0 (#33807)
Upgrade edx-drf-extensions 9.0.0

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

edx-drf-extensions 9.0.0 requires VERIFY_LMS_USER_ID_PROPERTY_NAME
to be properly set in LMS to get the appropriate verification when
forgiving JWTs is enabled (which will soon be by default).

See openedx/edx-drf-extensions#408 for details.

This is part of:
edx/edx-arch-experiments#429

Co-authored-by: robrap <robrap@users.noreply.github.com>
2023-11-27 18:19:57 +00:00
Feanil Patel
c67a774506 Merge pull request #33497 from openedx/dependabot/github_actions/docker/login-action-3
build(deps): bump docker/login-action from 2 to 3
2023-11-27 13:18:19 -05:00
Feanil Patel
a958097630 Merge pull request #33294 from raccoongang/rg/feat/FC0031/add_pagination_in_user_course_enrollments
feat: [FC-0031] Add DefaultPagination in UserCourseEnrollmentsList
2023-11-27 11:23:18 -05:00
Awais Qureshi
9d959c7d33 build: upgrading babel. (#33778)
* build: upgrading babel.
2023-11-27 16:37:35 +05:00
Awais Qureshi
9998dc58fe Upgrade pillow (#33769)
* build: upgrading pillow.
2023-11-27 13:45:59 +05:00
mubbsharanwar
487b870ae4 revert: remove learner_recommendations app 2023-11-27 10:38:24 +05:00
Jenkins
1734fdc0dc chore(i18n): update translations 2023-11-26 16:09:14 -05:00
Mohammad Ahtasham ul Hassan
a57dd7325b feat: add course key param to track selection url (#33716) 2023-11-24 15:23:36 +05:00
Moeez Zahid
f880855f66 feat: Publish mobile SKUs to LMS (#33754) 2023-11-24 14:14:33 +05:00
Régis Behmo
09dfd8718e fix: CSRF errors in POST requests to LMS (#33727)
POST requests to the LMS are failing systematically when HTTPS is
enabled. This issue is observed in the Quince release branch. Here is
the root cause analysis:

- CorsCSRFMiddleware overrides the `is_secure` attribute by setting it
  to "false".
- CorsCSRFMiddleware calls the parent `process_view` method, from the
  CsrfViewMiddleware.
- CsrfViewMiddleware checks the Origin header, including the scheme. It
  is equal to "https://LMSHOST". But because the request is not
  considered secure, the expected origin is "http://LMSHOST".
- The check fails with "Origin checking failed"

We resolve this issue by running the CsrfViewMiddleware *before* the
custom CorsCSRFMiddleware. After a successful check of the
CsrfViewMiddleware, the request has the "csrf_processing_done = True"
attribute, and CorsCSRFMiddleware is short-circuited.

This issue did not happen in the following environments:

- in Palm because the CsrfViewMiddleware did not check the "Origin" header in Django 3.
- in the Studio, because the Studio already runs the CsrfViewMiddleware before
  the CorsCSRFMiddleware.
- in the master branch because the master branch does not yet run on
  Django 4. But the issue will happen in the master branch without this
  proposed change.

To bypass this issue in the master branch, it was proposed that we add
"https://LMSHOST" to CSRF_TRUSTED_ORIGINS. This would effectily bypass
CSRF checking entirely for all requests that originate from the LMS.
Such a solution would not be acceptable, as we would lose the security
guarantees offered by CSRF.

See discussion: https://github.com/openedx/wg-build-test-release/issues/325
2023-11-23 13:52:16 -04:00