Commit Graph

65097 Commits

Author SHA1 Message Date
Feanil Patel
e9d716375f build: Update to allow tests to run on python 3.11
* Update so tox will allow running on the new version.
* Update so the hosted runner actually respects the python version in
  the matrix
2024-05-01 10:23:34 -04:00
Feanil Patel
85db730cef build: Run tests on python 3.11 as well as 3.8 2024-05-01 10:03:42 -04:00
Feanil Patel
1d485ca2b8 build: Don't require the backports.zoneinfo package for newer python.
We do this so that we can build requirements files that could work to
`pip install` on both the old (3.8) and new (3.11) versions of python.
2024-05-01 10:03:42 -04:00
Feanil Patel
fb727c101e feat!: Upgrade numpy to be python 3.8 and 3.12 compatible.
BREAKING CHANGE: Because numpy is available in the codejail sandbox, the
update from 1.22.4 to 1.24.4 does have completed deprecations, and more
details can be found in the Numpy Release Notes:
https://numpy.org/doc/stable/release/1.23.0-notes.html#expired-deprecations
2024-05-01 10:03:42 -04:00
Feanil Patel
05ec09fcdc chore: Upgrade scipy
Ran `package=scipy make upgrade-package` to upgrade just this one
dependency.
2024-05-01 10:03:42 -04:00
Feanil Patel
ab60a0800d feat!: Unpin scipy.
Scipy was constrained to prevent a numpy upgrade however the numpy
upgrade happened a while ago and this never got updated. Now the scipy
version is preventing us from going to an even newer numpy version that
would be compatible with both Python 3.8 and Python 3.12

BREAKING CHANGE: This will update scipy in the codejail sandbox from
1.7.3 to a newer version.  This contains many backwards incompatible
changes that are all documented in the SciPy changelogs:
https://docs.scipy.org/doc/scipy/release/1.8.0-notes.html
2024-05-01 10:03:42 -04:00
Feanil Patel
98dd951225 Merge pull request #34669 from openedx/feanil/update_quality_check_node
build: Update quality checks to node 18
2024-05-01 09:31:08 -04:00
Adolfo R. Brandes
04391973b6 Merge pull request #34668 from raccoongang/g-glugovskiy/change_path_to_textbooks_page
feat: [FC-0044] Update path for MFE Textbook page
2024-04-30 18:29:54 -03:00
Ahtisham Shahid
2bd73ca96b change notification app name (#34672) 2024-05-01 01:38:30 +05:00
iloveagent57
d022766fd6 feat: Upgrade Python dependency edx-enterprise
edx-enterprise 4.17.0 | limit the number of resulting learners in Django admin manage learners view

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-30 15:16:27 -04:00
Feanil Patel
c9d85dbbb4 build: Update quality checks to node 18 2024-04-30 13:48:28 -04:00
Kyle McCormick
d4ca537f21 docs: add upgrade details to edx-sandbox readme (#34632) 2024-04-30 13:36:37 -04:00
Glib Glugovskiy
f9caa8ee48 feat: update path for textbook page on course-authoring mfe redirect 2024-04-30 20:31:08 +03:00
github-actions[bot]
25e2048c0a feat: Upgrade Python dependency edx-django-utils (#34666)
Add custom Datadog telemetry support.

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

Co-authored-by: timmc-edx <timmc-edx@users.noreply.github.com>
2024-04-30 16:19:00 +00:00
Usama Sadiq
188e486699 fix: fix lxml constraint issue (#34652)
* fix: pin lxml<5.0 version
* fix: update lxml constraint comment
---------
Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-30 20:08:29 +05:00
Feanil Patel
9b25c54344 Merge pull request #34462 from farhan/farhan/add-rst-files-in-docs-2
Add repository rst files in the sphinx docs
2024-04-30 10:39:23 -04:00
Tim McCormack
afe93559b9 Revert "build: Python requirements upgrade and lxml build without binary (#34…" (#34661)
This reverts commit 52adce48d1 because we were getting this in the build pipeline:

```
WARNING: lxml 5.2.1 does not provide the extra 'html-clean'
ERROR: Exception:
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 173, in _main
    status = self.run(options, args)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 203, in wrapper
    return func(self, options, args)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 315, in run
    requirement_set = resolver.resolve(
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve
    result = self._result = resolver.resolve(
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 472, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 366, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 221, in _attempt_to_pin_criterion
    satisfied = all(
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 222, in <genexpr>
    self._p.is_satisfied_by(requirement=r, candidate=candidate)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 178, in is_satisfied_by
    return requirement.is_satisfied_by(candidate)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/requirements.py", line 84, in is_satisfied_by
    assert candidate.name == self.name, (
AssertionError: Internal issue: Candidate is not for this requirement lxml[html-clean,html-clean] vs lxml[html-clean]
WARNING: You are using pip version 21.2.1; however, version 24.0 is available.
You should consider upgrading via the '/edx/app/edxapp/venvs/edxapp/bin/python -m pip install --upgrade pip' command.
```
2024-04-29 21:06:45 +00:00
Feanil Patel
e52f28385d Merge pull request #34657 from openedx/feanil/upgrade-edx-codejail-45cd459
feat: Upgrade Python dependency edx-codejail
2024-04-29 15:54:19 -04:00
Feanil Patel
1f7facc8e4 Merge pull request #34660 from openedx/feanil/upgrade-enmerkar-underscore-3f7ac2c
feat: Upgrade Python dependency enmerkar-underscore
2024-04-29 15:20:20 -04:00
edX requirements bot
52adce48d1 build: Python requirements upgrade and lxml build without binary (#34655)
* build: build lxml without binary in requirements and CI workflows
---------
Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com>
2024-04-29 23:48:57 +05:00
feanil
d954141fa4 feat: Upgrade Python dependency enmerkar-underscore
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-29 18:30:06 +00:00
Alexander J Sheehan
3f7ac2c620 Merge pull request #34659 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-45cd459
feat: Upgrade Python dependency edx-enterprise
2024-04-29 14:03:01 -04:00
alex-sheehan-edx
504068f67b feat: Upgrade Python dependency edx-enterprise
enterprise version bump 4.16.5

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-29 17:33:02 +00:00
Kyle McCormick
85d726f797 feat!: remove SkillTaggingMixin from common XBLOCK_MIXINS (#34530)
Skill tagging [1] is not a core feature, and it is not installed into core
requirements, evidenced by the fact that a try-except clause must be used to
import it into common settings. Setting overrides like this should be made in
each operator's private settings file rather than the upstream common settings
file.

BREAKING CHANGE: Operators who install the xblock-skilltagging package will
need to add SkillTaggingMixin to XBLOCK_MIXINS_EXTRA (or XBLOCK_MIXINS) in a
private settings/YAML file, as it will no longer be done automatically in
common settings. The README for xblock-skilltagging has an example [2]

[1] https://github.com/openedx/xblock-skill-tagging
[2] https://github.com/openedx/xblock-skill-tagging?tab=readme-ov-file#configuration
2024-04-29 13:29:47 -04:00
connorhaugh
674c3edaab Revert "Revert "Revert "temp: trace celery tasks in dd"" (#34563)" (#34578)
This reverts commit ebe36a2957.
2024-04-29 13:09:43 -04:00
feanil
fbdae763a0 feat: Upgrade Python dependency edx-codejail
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-29 16:17:21 +00:00
Saad Yousaf
45cd459dde feat: add flag for showing/hiding new discussion sidebar view on course home page. (#34561)
Co-authored-by: Saad Yousaf <saad.yousaf@A006-01048.local>
2024-04-29 12:57:49 +05:00
github-actions[bot]
70c5087562 feat: Upgrade Python dependency pytest (#34647)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-27 13:43:06 +05:00
github-actions[bot]
2b1578564f feat: Upgrade Python dependency xblock-drag-and-drop-v2 (#34646)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-27 00:35:48 +05:00
github-actions[bot]
d124bd2aca feat: Upgrade Python dependency edx-opaque-keys (#34645)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-27 00:23:12 +05:00
Navin Karkera
61b8961cdf fix: auto enroll users when added as staff (#32561)
The course team management section under Instructor > Membership tab
allows users to be added a role even if are not enrolled in the course.
This is behaviour does not match the help text displayed in the section.

This PR updates modify_access api to enrolls user if they are not enrolled
after adding them to a role as well as changes the help text to reflect
actual changes.
2024-04-26 13:16:32 -04:00
Usama Sadiq
734a5508ee fix: fix constraints path (#34638) 2024-04-26 21:15:51 +05:00
Ivan Niedielnitsev
30836729b7 feat: Implement Sidebar Navigation [FC-0056] (#34457)
This commit addresses to the need to add an API for Sidebar Navigation
that returns the course structure with sections, subsections, and
**units**, according to user access rules. (Previous outline requests
only went down to subsections.)

To improve the performance of the API, we cache the course structure
for a user, which makes it much easier to calculate the block structure
for the user at each request. However, there may be cases when this
caching can lead to an overflow of the cache storage in high-loaded LMS
with large courses, so the corresponding flag
"courseware.disable_navigation_sidebar_blocks_caching" was added so
that this caching can be disabled.
2024-04-26 12:04:42 -04:00
farhan
e99347eb08 chore: address PR request changes 2024-04-26 17:41:21 +05:00
Usama Sadiq
9630d4080a build: use constraints in scripts requirements as well (#34635) 2024-04-26 16:17:40 +05:00
Usama Sadiq
68fedc024a fix: pin path package version (#34631)
* fix: pin path<16.12.0
---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-26 14:39:42 +05:00
farhan
6c4170b407 feat: Add repository rst files in the sphinx docs 2024-04-26 12:56:53 +05:00
Feanil Patel
9118c9ab9d Merge pull request #34628 from openedx/feanil/fix_tx_extraction
fix: Be able to extract translations again.
2024-04-25 23:30:52 -04:00
Feanil Patel
b7128a7e2d docs: Update conf/locale/config.yaml
Co-authored-by: Brian Smith <112954497+brian-smith-tcril@users.noreply.github.com>
2024-04-25 15:27:10 -04:00
Feanil Patel
d63e295e0e fix: Be able to extract translations again.
* The `conf/locale/en/LC_MESSAGES` folder does not get automatically
  created by other tooling so message extraction to that folder fails.

* The `gettext_fallback.js` file should not be getting picked up for
  translation since it's there only to be used when the the language
  gettext catalog is not available
2024-04-25 14:53:50 -04:00
Rômulo Penido
7fc6cd6755 feat: add usage_key to breadcrumbs in Studio search index (#34535) 2024-04-25 11:00:50 -07:00
github-actions[bot]
f51c161fbf feat: Upgrade Python dependency future (#34623)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-25 22:46:07 +05:00
github-actions[bot]
dfbc17ca6b feat: Upgrade Python dependency requests-oauthlib (#34624)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-25 22:45:45 +05:00
Chris Chávez
a33165aaa6 feat: bump openedx-learning to support tagging with multiple taxonomies at once (#34490) 2024-04-25 10:44:47 -07:00
github-actions[bot]
df7fb35867 feat: Upgrade Python dependency pytest-cov (#34621)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-25 22:33:00 +05:00
github-actions[bot]
988fd94a43 feat: Upgrade Python dependency regex (#34625)
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: UsamaSadiq <UsamaSadiq@users.noreply.github.com>
2024-04-25 22:15:15 +05:00
Maria Grimaldi
809ffc3743 feat: connect teams with content groups using dynamic partition generator (#33788)
Implements the connection from the teams feature to the content groups feature. This implementation uses the dynamic partition generator extension point to associate content groups with the users that belong to a Team.

This implementation was heavily inspired by the enrollment tracks dynamic partitions.
2024-04-25 13:02:49 -04:00
Feanil Patel
69692c69d9 Merge pull request #34604 from openedx/feanil/upgrade-olxcleaner-5967dde
feat: Upgrade Python dependency olxcleaner
2024-04-25 12:19:03 -04:00
Justin Hynes
e2e014cab5 feat!: remove the clean_certificate_available_date mgmt cmd (#34596)
This PR removes the `clean_certificate_available_date` management command. Recently, a change was made to sync the end date of a course run with a display behavior of "end" as its certificate available date in the Credentials IDA. This change was made to resolve a long running issue with the Credentials IDA not displaying certificates to learners correctly on learner records when the display behavior is set to "end".

This management command, if run, would clear the certificate available date from the course certificate configurations in the Credentials IDA. This would be a regression based on the new functionality.  Other improvements have been made to ensure that updates made in the LMS properly flow to Credentials.

TL;DR -- this management command is no longer needed because of feature changes in edx-platform. Allowing this management command to run would break functionality for learners.
2024-04-25 12:02:34 -04:00
Zachary Hancock
3852358ca2 feat: feature setting to gate courseware search to verified enrollments (#34606)
Adds a Django setting that limits courseware search to users in a verified enrollment track.
2024-04-25 11:41:53 -04:00