From 620516cb48c62d0c21d660fbae0be867040b3f06 Mon Sep 17 00:00:00 2001 From: magajh Date: Fri, 29 Mar 2024 09:36:33 -0400 Subject: [PATCH 01/11] chore: upgrade Django to 4.2.11 --- requirements/edx/base.txt | 2 +- requirements/edx/development.txt | 2 +- requirements/edx/doc.txt | 2 +- requirements/edx/testing.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index cfaecd0ca35a..7b1e102ea4ee 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -181,7 +181,7 @@ defusedxml==0.7.1 # social-auth-core deprecated==1.2.14 # via jwcrypto -django==4.2.10 +django==4.2.11 # via # -r requirements/edx/kernel.in # django-appconf diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 87c17c1e74ae..4a118511706b 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -343,7 +343,7 @@ distlib==0.3.7 # via # -r requirements/edx/testing.txt # virtualenv -django==4.2.10 +django==4.2.11 # via # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index 9ec73dc14a36..11fe51833e3f 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -230,7 +230,7 @@ deprecated==1.2.14 # via # -r requirements/edx/base.txt # jwcrypto -django==4.2.10 +django==4.2.11 # via # -r requirements/edx/base.txt # django-appconf diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index a4b87c9178e4..8addb5189810 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -263,7 +263,7 @@ dill==0.3.7 # via pylint distlib==0.3.7 # via virtualenv -django==4.2.10 +django==4.2.11 # via # -r requirements/edx/base.txt # django-appconf From 900fad09a24466e70d3bda9d9858e50b738aae5f Mon Sep 17 00:00:00 2001 From: magajh Date: Sun, 31 Mar 2024 22:31:38 -0400 Subject: [PATCH 02/11] chore: compile requirements --- requirements/common_constraints.txt | 11 ++++++++++- requirements/edx/base.txt | 5 ++++- requirements/edx/development.txt | 2 ++ requirements/edx/doc.txt | 2 ++ requirements/edx/testing.txt | 2 ++ requirements/pip-tools.txt | 4 +++- 6 files changed, 23 insertions(+), 3 deletions(-) diff --git a/requirements/common_constraints.txt b/requirements/common_constraints.txt index 7313473a1675..4abc9ae22cb3 100644 --- a/requirements/common_constraints.txt +++ b/requirements/common_constraints.txt @@ -17,10 +17,19 @@ # using LTS django version - +Django<5.0 # elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process. # elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html elasticsearch<7.14.0 # django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected + +# opentelemetry requires version 6.x at the moment: +# https://github.com/open-telemetry/opentelemetry-python/issues/3570 +# Normally this could be added as a constraint in edx-django-utils, where we're +# adding the opentelemetry dependency. However, when we compile pip-tools.txt, +# that uses version 7.x, and then there's no undoing that when compiling base.txt. +# So we need to pin it globally, for now. +# Ticket for unpinning: https://github.com/openedx/edx-lint/issues/407 +importlib-metadata<7 diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 7b1e102ea4ee..393d016a73e7 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -183,6 +183,7 @@ deprecated==1.2.14 # via jwcrypto django==4.2.11 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/kernel.in # django-appconf # django-celery-results @@ -610,7 +611,9 @@ idna==3.4 # snowflake-connector-python # yarl importlib-metadata==6.8.0 - # via markdown + # via + # -c requirements/edx/../common_constraints.txt + # markdown importlib-resources==6.1.0 # via # jsonschema diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 4a118511706b..7383f5747be7 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -345,6 +345,7 @@ distlib==0.3.7 # virtualenv django==4.2.11 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt # django-appconf @@ -1011,6 +1012,7 @@ import-linter==1.12.0 # via -r requirements/edx/testing.txt importlib-metadata==6.8.0 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/../pip-tools.txt # -r requirements/edx/doc.txt # -r requirements/edx/testing.txt diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index 11fe51833e3f..026ffa4a9f7a 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -232,6 +232,7 @@ deprecated==1.2.14 # jwcrypto django==4.2.11 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/base.txt # django-appconf # django-celery-results @@ -711,6 +712,7 @@ imagesize==1.4.1 # via sphinx importlib-metadata==6.8.0 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/base.txt # markdown # sphinx diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 8addb5189810..202e33a40ee7 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -265,6 +265,7 @@ distlib==0.3.7 # via virtualenv django==4.2.11 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/base.txt # django-appconf # django-celery-results @@ -767,6 +768,7 @@ import-linter==1.12.0 # via -r requirements/edx/testing.in importlib-metadata==6.8.0 # via + # -c requirements/edx/../common_constraints.txt # -r requirements/edx/base.txt # markdown # pytest-randomly diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index ea283f4ad3ad..d2e5211cc4bd 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -11,7 +11,9 @@ click==8.1.6 # -c requirements/constraints.txt # pip-tools importlib-metadata==6.8.0 - # via build + # via + # -c requirements/common_constraints.txt + # build packaging==23.2 # via build pip-tools==7.3.0 From 0906265588cd7e227878c59146204cf78e94f811 Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Thu, 16 Nov 2023 16:09:08 +0530 Subject: [PATCH 03/11] fix: session_language url renamed to update_language The url was renamed from session_language to update_language but it was still referred to in some html templates --- cms/templates/widgets/header.html | 2 +- lms/templates/header/header.html | 2 +- lms/templates/navigation/navigation.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/templates/widgets/header.html b/cms/templates/widgets/header.html index 6dd94ec78c55..34ea5584c428 100644 --- a/cms/templates/widgets/header.html +++ b/cms/templates/widgets/header.html @@ -324,7 +324,7 @@

${_("Tools")} % else: - + % endif