Commit Graph

65180 Commits

Author SHA1 Message Date
Feanil Patel
0d1346809e Merge pull request #34745 from openedx/feanil/fix_count_tooling
fix: Correct shard count verification.
2024-05-09 08:02:30 -04:00
Chris Chávez
6738faa8f7 feat: Avoid to close tag drawer when click outside (#34740) 2024-05-09 17:29:21 +05:30
Glib Glugovskiy
c5d94d21bf docs: change default value for a toggle to correct doc (#34747) 2024-05-09 08:57:43 -03:00
Braden MacDonald
4c582e64bb feat: Always enable the "copy-paste units" functionality (#34742) 2024-05-09 17:20:56 +05:30
Irtaza Akram
427f436e25 chore: update actions runner (#34731)
* fix: update actions runner
2024-05-09 16:48:58 +05:00
Muhammad Adeel Tajamul
6e48229616 fix: unregistered task of type for email notification (#34751) 2024-05-09 15:16:59 +05:00
jawad khan
67ccd702f5 feat: Added upgrade deadline in blocks api (#34750) 2024-05-09 12:19:50 +05:00
Feanil Patel
ff6edf0791 fix: Correct shard count verification.
The test count was off because without warnings disabled, it was also
counting warning lines as tests.

The `head -n -2` grabs everything but the last two lines which contain a
count (not sure why this isn't used).  If you run without
`--disable-warnings` this will include any warnings that occur during
test collection which we don't want in this case.
2024-05-08 23:00:48 -04:00
David Ormsbee
6308c968db refactor: always define CORS_ALLOW_HEADERS centrally
The LMS and Studio need to set values for CORS_ALLOW_HEADERS so that the
MFEs can work properly, since preflight requests will need to send over
extra headers. Prior to this commit, CORS_ALLOW_HEADERS was being
redefined in multiple places in edx-platform and again in Tutor's config
because it was only being conditionally set if ENABLE_CORS_HEADERS was
True (which was a policy setting). But CORS_ALLOW_HEADERS is application
logic in that the value is determined by what the view needs, and won't
vary by deployment.

By consolidating this to always be defined in the common.py files, we
make sure that deployment environments don't have to define it. An
example of where this bit us was when course import in the course
authoring MFE did not work because Tutor was using an outdated value for
this setting.

A followup to this would be to just rip out the ENABLE_CORS_HEADERS
setting entirely, and just always have it on. But that would benefit
from a little more discovery to make sure there's no weird use case that
still requires it to be False (maybe something in the test suite?).
2024-05-08 16:16:05 -04:00
Feanil Patel
634ab25840 Merge pull request #34727 from openedx/feanil/upgrade-pytz-7092400
feat: Upgrade Python dependency pytz
2024-05-08 14:16:47 -04:00
feanil
1d3fb01d3e feat: Upgrade Python dependency pytz
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 12:21:12 -04:00
Feanil Patel
765f2d864b Merge pull request #34726 from openedx/feanil/upgrade-django-stubs-ext-7092400
feat: Upgrade Python dependency django-stubs-ext
2024-05-08 12:20:27 -04:00
Feanil Patel
ea0128f235 Merge pull request #34723 from openedx/feanil/upgrade-tqdm-f308b5e
feat: Upgrade Python dependency tqdm
2024-05-08 11:21:05 -04:00
Feanil Patel
1d28dca4c0 Merge pull request #34722 from openedx/feanil/upgrade-jwcrypto-f308b5e
feat: Upgrade Python dependency jwcrypto
2024-05-08 11:20:38 -04:00
Feanil Patel
3e6bb1d7b4 Merge pull request #34689 from openedx/feanil/geoip2-bot-update-country-database-5f44c2c
Update GeoLite Database
2024-05-08 11:19:48 -04:00
magajh
4d87410890 chore: upgrade Django to 4.2.13 2024-05-08 11:19:11 -04:00
feanil
9c3fb1ee12 feat: Upgrade Python dependency certifi
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 11:01:32 -04:00
feanil
0a61a6b740 feat: Upgrade Python dependency django-stubs-ext
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 09:20:41 -04:00
feanil
fd39668592 feat: Upgrade Python dependency pillow
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 09:14:18 -04:00
Feanil Patel
6f45093af2 chore: Upgrade cryptography and pyopenssl
Ran 'make upgrade-package package="cryptography --upgrade-package pyopenssl"`
2024-05-08 08:50:48 -04:00
Muhammad Ammar
460dad4999 Merge pull request #34734 from openedx/ammar/upgrade-edx-enterprise-to-4.17.4
chore: upgrade edx-enterprise to 4.17.4
2024-05-08 16:59:41 +05:00
muhammad-ammar
2c78e86316 chore: upgrade edx-enterprise to 4.17.4 2024-05-08 16:05:39 +05:00
MueezKhan246
441d2b2570 Merge pull request #34733 from openedx/MueezKhan246/upgrade-edx-enterprise-c72908f
feat: Upgrade Python dependency edx-enterprise
2024-05-08 14:37:55 +05:00
MueezKhan246
6f21d1383c feat: Upgrade Python dependency edx-enterprise
replaced non encrypted fields of blackboard config model with encrypted ones

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-08 09:03:48 +00:00
Muhammad Adeel Tajamul
c72908f719 fix: updated email digest management command (#34729) 2024-05-08 11:58:01 +05:00
feanil
a92c215d70 feat: Upgrade Python dependency Jinja2
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-07 18:18:21 -04:00
feanil
5efda04416 feat: Upgrade Python dependency tqdm
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-07 18:18:01 -04:00
feanil
f209ce3d91 feat: Upgrade Python dependency jwcrypto
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-05-07 15:49:26 -04:00
Kaustav Banerjee
d43a2f73eb feat: default grade designations configurable from settings (#32406) 2024-05-08 01:14:03 +05:30
feanil
e94b942ec9 feat: Upgrade Python dependency cachetools
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/feanil/fix_one_upgrade`
2024-05-07 15:39:08 -04:00
feanil
7092400da9 feat: Upgrade Python dependency celery
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/feanil/fix_one_upgrade`
2024-05-07 15:32:39 -04:00
feanil
02f4669870 feat: Upgrade Python dependency build
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/feanil/fix_one_upgrade`
2024-05-07 15:26:29 -04:00
Muhammad Farhan Khan
d3d3225fa6 Move user-retirement scripts docs near code (#34695)
* chore: Move user-retirement scripts docs near code

---------

Co-authored-by: Feanil Patel <feanil@axim.org>
2024-05-07 14:45:04 -04:00
Feanil Patel
cf78c27730 Merge pull request #34715 from openedx/feanil/upgrade-babel-d8aab3f
feat: Upgrade Python dependency babel
2024-05-07 14:35:31 -04:00
Chris Chávez
b551a32a49 fix: Stop autotagging nor indexing the course root XBlock (#34627)
* fix: Multiple auto-tagging when creating a course

* Avoid tagging course-block and course-info blocks
* Tests

* feat: Avoid create index for course blocks
2024-05-07 11:14:33 -07:00
Feanil Patel
f308b5ec3d Merge pull request #34714 from openedx/feanil/upgrade-aiohttp-d8aab3f
feat: Upgrade Python dependency aiohttp
2024-05-07 13:50:20 -04:00
Feanil Patel
f9b7dfd07b Merge pull request #34713 from openedx/feanil/fix_one_upgrade
Feanil/fix one upgrade
2024-05-07 13:36:12 -04:00
Yusuf Musleh
a3924f687b feat: Tag sections, subsections, and the whole course (#34690)
(In the legacy UI, if the 'new_studio_mfe.use_tagging_taxonomy_list_page' waffle flag is enabled)
2024-05-07 10:29:35 -07:00
Feanil Patel
88336c78d6 Merge pull request #34712 from openedx/feanil/upgrade-acid-xblock-d8aab3f
feat: Upgrade Python dependency acid-xblock
2024-05-07 13:07:12 -04:00
feanil
1d17f2fba8 feat: Upgrade Python dependency babel
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/feanil/fix_one_upgrade`
2024-05-07 16:58:44 +00:00
feanil
6b88d2db35 feat: Upgrade Python dependency aiohttp
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/feanil/fix_one_upgrade`
2024-05-07 16:55:37 +00:00
Feanil Patel
c66f28dcee fix: Add a trailing wildcard because we don't use an exact path.
We were seeing the following error:

```
  /usr/bin/git add -- requirements scripts/**/requirements
  fatal: pathspec 'scripts/**/requirements' did not match any files
```

Once we introduce wildcards, the whole path needs to be valid so adding
a trailing wildcard to catch all the relevant directories and files.
2024-05-07 12:32:40 -04:00
feanil
1dea3e78d4 feat: Upgrade Python dependency acid-xblock
Routine requirement upgrade.  Doing it individually because there are too many changes in `make upgrade`.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/feanil/fix_one_upgrade`
2024-05-07 15:50:54 +00:00
David Ormsbee
d8aab3f72c fix: remove modulestore init to avoid pymongo deadlocks
Prior to this commit, the LMS would log the following error in tutor
production:

  pymongo/topology.py:175: UserWarning: MongoClient opened before fork.
  Create MongoClient only after forking. See PyMongo's documentation for
  details:
  https://pymongo.readthedocs.io/en/stable/faq.html#is-pymongo-fork-safe

Quoting from that page:

> PyMongo is not fork-safe. Care must be taken when using instances of
> MongoClient with fork(). Specifically, instances of MongoClient must
> not be copied from a parent process to a child process. Instead, the
> parent process and each child process must create their own instances
> of MongoClient. Instances of MongoClient copied from the parent
> process have a high probability of deadlock in the child process due
> to the inherent incompatibilities between fork(), threads, and locks
> described below. PyMongo will attempt to issue a warning if there is a
> chance of this deadlock occurring.

For edx-platform, the MongoClient connection is initalized with the
modulestore() invocation. That call creates and caches a global variable
that Studio or the LMS will reuse across the life of the worker process.

That initialization was put into lms/wsgi.py in 7c758ec9, but originated
in lms/startup.py with 51d0dd1. The original reason for it is because at
that time (2013), we still supported the XML Modulestore, which stored
courses on disk as directories of OLX files and static assets. The XML
Modulestore would then read the entirety of those courses into memory at
startup. This meant that the startup process was *extremely* expensive,
so we needed to have it happen before the workers started serving
requests to users, instead of having the system lazily read them in when
the first user request arrived.

Loading course content in this form hasn't been supported since 2016,
meaning that modulestore initialization is no longer the performance
time bomb that it once was. The fact that this code remained here is
likely an oversight, which was considered harmless until @ztraboo
reported these pymongo log messages during the course of investigating
performance issues:

https://discuss.openedx.org/t/atlas-mongodb-performance-issues-un-indexed-queries/12803/16

Two potential followups that should be explored after this:

1. Tutor should probably be forking earlier than this, before we load
   Django settings and initialize database and cache connections.
2. It's possible that the caching mechanism for modulestore should be
   revisited to operate at the request cache level. The performance
   benefit of keeping it around may not be worth the potential memory
   leaks. Anything we do here would have to be very carefully monitored
   though, since connection costs may add up.
2024-05-07 11:20:20 -04:00
Feanil Patel
468a30e2d5 Merge pull request #34693 from openedx/feanil/remove-sqlparse-dependency
Update sqlparse dependency
2024-05-07 11:07:16 -04:00
Kyle D. McCormick
b1393ac3eb fix: fall back to settings.COMPREHENSIVE_THEME_DIRS correctly
There was a logical error in the compile_sass management command:
instead of falling back to settings.COMPREHENSIVE_THEME_DIRS when
--theme-dirs was *None or missing*, we only fell back to it when
--theme-dirs was *missing*.

This caused theme compilation to be skipped when COMREHENSIVE_THEME_DIRS
*is not set* in the environment, even though
settings.COMPREHENSIVE_THEME_DIRS *is set* in Django settings, which
is currently the case for edx.org.
2024-05-07 08:40:40 -04:00
Kyle D. McCormick
21a1235a28 revert: revert: build: finish replacing paver assets
This reverts commit 4c0284b87d.
2024-05-07 08:40:40 -04:00
Muhammad Ammar
37bcb767b0 Merge pull request #34707 from openedx/ammar/upgrade-edx-enterprise-to-4.17.1
chore: upgrade edx-enterprise to 4.17.1
2024-05-07 15:03:06 +05:00
muhammad-ammar
ba56109498 chore: upgrade edx-enterprise to 4.17.1 2024-05-07 14:27:49 +05:00
Muhammad Adeel Tajamul
a454da9ca6 feat: added daily and weekly email digest (#34539)
* feat: added daily and weekly email digest
2024-05-07 12:15:03 +05:00