Commit Graph

65817 Commits

Author SHA1 Message Date
Kyle McCormick
3f0f7ce705 build: finish replacing paver assets (#34554)
Together, these changes make it so that all features of the Paver-based
asset compilation system are supported with drop-in Paver-free
replacements. The remaining Paver asset functions are trivial wrappers,
which can be comfortably deleted before Sumac.

* Turn `./manage.py ... compile_sass` into a simple wrapper around `npm
  run compile-sass`
* Turn `paver webpack` into a simple wrapper around `npm run webpack`
* Turn `pavelib.assets:collect_assets` into a simple wrapper around
  `./manage.py ... collectstatic`
* Add/improve deprecation warnings for all Paver asset commands.
* Load defaults for asset-related Django settings from environment
  variables. This allows the build to work without Python. For the
  settings which will be removed in Sumac, I've added deprecation
  warnings.
* Change EDX_PLATFORM_THEME_DIRS env var to COMPREHENSIVE_THEME_DIRS.
  This simplifies the migration instructions, because all the new env
  vars now match their corresponding Django settings. This amends an
  ADR, but it should not be a breaking change because the  env var was
  recently added (since Quince) and nobody should be using it yet.
* Future-proof the static assets ADR with links. The linked pages will
  be kept up-to-date even if the ADR isn't.

Part of: https://github.com/openedx/edx-platform/issues/34467
2024-05-06 08:29:45 -04:00
Feanil Patel
fc68d34d12 chore: Upgrade the lti-consumer-xblock to unpin lxml.
Upgrade just the ltx-consumer-xblock to pickup an unpin of lxml.
2024-05-06 08:03:10 -04:00
Ahtisham Shahid
f2067ad700 fix: updated ora and pref version (#34696) 2024-05-06 14:29:24 +05:00
farhan
9777e3a7cf chore: put the geolite database workflow to cron
- Run the workflow on 1st of every month
2024-05-05 12:00:41 +05:00
Troy Sankey
2cb35cb24b fix: remove setting toggle which might be causing bug with future course redirects
We've long rolled out the
`COURSEWARE_COURSE_NOT_STARTED_ENTERPRISE_LEARNER_ERROR` setting toggle so
it should be safe to remove.

I'm completely at a loss as to why course access checks are not
returning the `course_not_started_enterprise_learner` error code when it
should, but it does in stage/local, so this PR is grasping at straws.

ENT-8766
2024-05-03 11:15:59 -07:00
Feanil Patel
5a2db5052c chore: Upgrade the lti-consumer-xblock to unpin lxml. 2024-05-03 13:07:01 -04:00
XnpioChV
b9da8969e6 fix: Update tag counts when changes are saved in the tag drawer
* fix: courseAuthoringUrl on message listener
2024-05-03 11:26:47 -04:00
feanil
967e1c5751 chore: geoip2: update maxmind geolite country database 2024-05-03 14:13:33 +00:00
Feanil Patel
5f44c2ceb2 Merge pull request #34679 from farhan/farhan/remove-reviewer-from-update-geolite-worflow
Remove reviewer from update-geolite workflow to fix issue
2024-05-02 15:09:04 -04:00
farhan
4db6082539 fix: remove reviewer from update-geolite workflow to fix issue 2024-05-02 19:40:07 +05:00
Kyle McCormick
d39bd32768 docs: improve 'bare metal' docs and add static assets reference (#34678) 2024-05-02 10:10:52 -04:00
Feanil Patel
8f4cbeadc4 Merge pull request #34576 from farhan/farhan/move-geoipupdate-script
Adds geoip maxmind database upgrade github workflow
2024-05-02 10:05:44 -04:00
Feanil Patel
c19aca1452 Merge pull request #34374 from openedx/feanil/test_on_3.11
feanil/test on 3.11
2024-05-02 08:50:21 -04:00
farhan
6eacf3a5b1 chore: Address PR change requests 2024-05-02 12:34:25 +05:00
farhan
70af2048d4 feat: Move geoipupdate script from ecommerce-scripts repo
* Ticket: https://github.com/openedx/axim-engineering/issues/1046
2024-05-02 12:34:24 +05:00
qasim.gulzar
3f709bae3f fix: add parentheses to import 2024-05-02 11:53:49 +05:00
Syed Sajjad Hussain Shah
2ce25b3eb6 feat: autogenerate username on registration (#34562)
* feat: autogenerate username on registration

---------

Co-authored-by: Attiya Ishaque <atiya.ishaq@arbisoft.com>
Co-authored-by: Blue <ahtesham-quraish@users.noreply.github.com>
2024-05-02 08:58:37 +05:00
Feanil Patel
325a7b91b2 build: Update more workflows to test on Python 3.11 2024-05-01 10:23:34 -04:00
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