Commit Graph

65411 Commits

Author SHA1 Message Date
Isaac Lee
76fbcbe437 fix: also filter for show_dashboard for instructor (#34949)
* fix: also filter for show_dashboard for instructor

* temp: attempting to craft tests

* chore: lint

* test: fixed xblock tests
2024-06-18 15:13:01 -04:00
renovate[bot]
6f1701773e chore(deps): update dependency sinon to v2.4.1 2024-06-18 18:34:58 +00:00
Feanil Patel
333d228668 Merge pull request #34959 from openedx/feanil/update_drf_yasg
Update drf-yasg and fix `make docs`
2024-06-18 11:24:41 -04:00
Feanil Patel
c8aabe4792 Merge pull request #34937 from openedx/feanil/update_docs
docs: Add a note about the second DB that needs to be migrated.
2024-06-18 11:22:14 -04:00
Feanil Patel
02ad64bf60 Merge pull request #34975 from openedx/feanil/unpin_click
fix: Drop the click constraint.
2024-06-18 11:21:23 -04:00
Kyle McCormick
448acc95f6 docs: remove mention of py38 compatibility from readme (#35001)
Support was removed about a week ago
2024-06-17 13:51:23 -04:00
Muhammad Qasim Gulzar
dfb09bbf4f fix: Unexpected "Copied_from_block" field in Advanced Settings (#34472)
Closes https://github.com/openedx/edx-platform/issues/34370
2024-06-17 11:14:15 -04:00
Alex Dusenbery
cb6e69f64b feat: edx-enterprise 4.20.5
submit the create_enterprise_enrollment task with a configurable countdown
2024-06-17 10:15:30 -04:00
Glib Glugovskiy
0153086b61 fix: add edit permissions for limited staff only in LMS 2024-06-17 10:00:39 -04:00
renovate[bot]
68b3a38248 chore(deps): update dependency eslint-import-resolver-webpack to v0.13.8 2024-06-14 21:06:34 +00:00
Muhammad Sameer Amin
7d11c889bb Merge pull request #34989 from openedx/sameeramin/upgrade-edx-enterprise-3c571f3
feat: Upgrade Python dependency edx-enterprise
2024-06-14 15:57:53 +05:00
sameeramin
9e762d4d75 feat: Upgrade Python dependency edx-enterprise
feat: Makes ``career_engagement_network_message`` field nullable in ``EnterpriseCustomer``.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-06-14 10:02:15 +00:00
Alex Dusenbery
3c571f33c6 feat: edx-enterprise-4.20.2 | cancel-fulfillment endpoint is now idempotent 2024-06-13 13:57:23 -04:00
Brandon Bodine
cb7fcabfb4 Merge pull request #34988 from openedx/brandonhbodine/devstack-cors-update
chore: update CSRF_TRUSTED_ORIGINS to include MFE
2024-06-13 11:14:33 -06:00
Prashant Makwana
0928816075 chore: bumping enterprise version to 4.20.1 (#34987) 2024-06-13 13:01:33 -04:00
Brandon Bodine
bafa16e7ff chore: update CSRF_TRUSTED_ORIGINS to include MFE 2024-06-13 10:29:36 -06:00
Feanil Patel
6c2cf87137 Merge pull request #34981 from openedx/feanil/remove_unnecessary_package
fix: Remove the unused edx-custom-a11y-rules package.
2024-06-13 12:24:04 -04:00
Usama Sadiq
f7b6fcb6b4 build: upgrade edxapp docker image to python 3.11 (#34982)
* build: upgrade edxapp docker image to python 3.11
---------

Co-authored-by: Tim McCormack <tmccormack@edx.org>
2024-06-13 21:15:00 +05:00
Juliana Kang
0fc990cf08 chore: Upgrade moment-timezone to v0.5.45 (#34968)
REV-4067
2024-06-13 11:57:23 -04:00
Feanil Patel
944e0588a2 Merge pull request #34811 from irtazaakram/bleach#33209
Replace deprecated bleach package
2024-06-13 10:17:31 -04:00
Ejaz Ahmad
db800dbb94 Merge pull request #34979 from openedx/jajjibhai008/upgrade-edx-enterprise-f256684
feat: Upgrade Python dependency edx-enterprise
2024-06-13 17:16:49 +05:00
Feanil Patel
57350c309b chore: Run npm install to update the lock file. 2024-06-13 07:46:27 -04:00
Feanil Patel
98b5ba5017 fix: Remove the unused edx-custom-a11y-rules package.
This package was only used by bok-choy which was archived a while ago.
We just missed the fact that this package was also a node dependency.

See https://github.com/openedx/public-engineering/issues/13 for more
details.
2024-06-13 07:42:22 -04:00
jajjibhai008
78b282c526 feat: Upgrade Python dependency edx-enterprise
feat: Added a new field show_videos_in_learner_portal_search_results in the EnterpriseCustomer

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-06-13 10:33:46 +00:00
renovate[bot]
f256684646 fix(deps): update dependency whatwg-fetch to v2.0.4 2024-06-12 15:25:02 +00:00
Justin Hynes
1e653d74e7 fix: remove broken management command (and celery task) logic (#34972)
[APER-3385]

This PR fixes an existing management command that now has incorrect logic. We have recently done a lot of work to
improve certificate-related date business logic to fix data inconsistencies between systems. Instead of maintaining
separate and duplicated logic for sending date data to Credentials, instead we can use an existing (and tested)
Celery task that will determine and send the correct date to the Credentials IDA.

Additionally, the original version of this management command skipped self-paced courses completely. This is no
longer the case as we _know_ that there are self-paced courses that have been associated with a certificate available
date because of bugs in the product. This management command will serve as a means to do a mass data fixup for data stored by the Credentials IDA.
2024-06-12 09:44:11 -04:00
Juliana Kang
66fa388dea fix: Remove trial logic using moment-timezone in B2C Subs Programs (#34939)
REV-4067
2024-06-12 09:41:44 -04:00
Irtaza Akram
ceb19b3113 Merge branch 'master' into bleach#33209 2024-06-12 17:12:01 +05:00
Muhammad Sameer Amin
5a9c383414 Merge pull request #34976 from openedx/sameeramin/upgrade-edx-enterprise-221e333
feat: Upgrade Python dependency edx-enterprise
2024-06-12 15:59:35 +05:00
sameeramin
6d053bef1e feat: Upgrade Python dependency edx-enterprise
Adds new fields enable_learner_portal_sidebar_message and learner_portal_sidebar_content in EnterpriseCustomer.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-06-12 04:35:01 +00:00
Feanil Patel
69c0f71afa fix: Drop the click constraint.
Celery is already at version 5.4.0 and so it's unclear why this
dependency is here anymore.  THe latest version of click is less than
9.0.0
2024-06-11 15:41:52 -04:00
Yusuf Musleh
221e333154 feat: Use default pagination class for v2 library views (#34879)
This ensures `num_pages` is included in paginated response.
2024-06-11 11:15:25 -07:00
Feanil Patel
8bfa916ea3 chore: Run make upgrade-package package=drf-yasg 2024-06-11 13:26:50 -04:00
Feanil Patel
b4c28d6c23 chore: Update the openapi spec generated by drf-yasg. 2024-06-11 13:19:28 -04:00
Feanil Patel
1d2569be14 build: Correct the make targets for building the docs. 2024-06-11 13:19:28 -04:00
Feanil Patel
5e1fffe3ab fix: Remove the drf-yasg constraint.
The reason is very unclear so dropping it to see if we can fix the api
docs build in 3.11
2024-06-11 13:18:25 -04:00
Feanil Patel
0b45e99128 Merge pull request #34788 from openedx/feanil/python311_reqs
feanil/python311 reqs
2024-06-11 12:59:48 -04:00
Feanil Patel
623061fde5 chore: Run make upgarde with Python 3.11 2024-06-11 11:30:22 -04:00
Feanil Patel
3660503d2d build: Update dispatch workflows to also run with 3.11 2024-06-11 11:30:22 -04:00
Feanil Patel
63ff4966b9 build: Check consistencies with Python 3.11 now. 2024-06-11 11:30:22 -04:00
Feanil Patel
ff4d084e8b fix: Update to adjust for new scipy.stats.mode behavior.
Previously the default for the `keepdims` parameter was True, but as of
SciPy 1.11.0 it is false. This is actually the behavior we want here
since we only care about the mode value and not other values.

https://docs.scipy.org/doc/scipy/release/1.11.0-notes.html#expired-deprecations
2024-06-11 11:30:22 -04:00
Feanil Patel
7f1d723713 build: Add a missing import for importlib_metadata.
This was being pulled in as a transitive dependency before but it turns
out we need this directly for the usage in
openedx/core/djangoapps/plugins/i18n_api.py

We add it to kernel.in before re-building the requirements files.
2024-06-11 11:30:22 -04:00
Alex Dusenbery
17d3e6686d feat: edx-enterprise 4.19.16 | submit create_enterprise_enrollment on commit
Helps avoid a race-condition-induced lock error.
https://github.com/openedx/edx-enterprise/releases/tag/4.19.16
2024-06-11 10:22:46 -04:00
Hamza Waleed
390a8a4644 Merge pull request #34966 from openedx/hamzawaleed01/enterprise-4.19.15
Bump edx-enterprise to 4.19.15
2024-06-11 15:17:01 +05:00
hamzawaleed01
effc78c2c9 feat: bump edx-enterprise to 4.19.15 2024-06-11 14:47:16 +05:00
Irtaza Akram
b8008a887d Merge branch 'master' into bleach#33209 2024-06-11 13:07:27 +05:00
Daniel Valenzuela
b98cbd4c2c feat: warn when relative dates are past due and can't be shifted 2024-06-10 22:55:16 +02:00
Kyle McCormick
a3bafb2ccd temp: build: compile python requirements with 3.8, not 3.11 (#34960)
We haven't quite dropped Py3.8 support yet, so we can't use these workflows if
they're compiling with 3.11:

* upgrade-one-python-dependency (upgrading a single, targeted dep)
* compile-python-requirements (recompiling all deps without upgrading)

So, we "downgrade" those workflows to use 3.8, for now. We should revert this
commit when we drop 3.8 support.

Note: The upgrade-python-requirements.yml workflow is still using 3.8, so this
commit will update the other workflows to match that one.
2024-06-10 15:50:06 -04:00
Tim McCormack
0eb61e28d1 feat: Start conversion of StaticContentServer from middleware into view (#34703)
See https://github.com/openedx/edx-platform/issues/34702

This necessarily involves switching from calling
`StaticContent.is_versioned_asset_path` to determine whether to handle the
request to having a hardcoded urlpattern. I've made the choice to hardcode
the other two patterns similarly rather than using imported constants. The
mapping of URL patterns to database records should be explicit (even though
we don't expect those constants to change out from under us.)

I've renamed the middleware rather than choosing a new name for the
implementation because there are other references in tests and other code.
This was the smaller change.

A note on HTTP methods: The middleware currently completely ignores the
request's HTTP method, so I wanted to confirm that only GETs were being
used in practice. This query reveals that 99.8% of requests that this
middleware handles are GET, with just a smattering of PROPFIND and OPTIONS
and a tiny number of HEAD and POST:
```
from Transaction select count(*) facet request.method
where name = 'WebTransaction/Function/openedx.core.djangoapps.contentserver.middleware:StaticContentServer'
since 4 weeks ago
```
2024-06-10 15:44:46 +00:00
Alex Dusenbery
5a25e7c8ca feat: edx-enterprise 4.19.14 | revert errant release, update mgmt command 2024-06-10 11:40:31 -04:00