feat: upgrading django-simple-history without migrations. (#32880)
* feat: upgrading django-history without migrations. * feat: upgrading django-history==3.1.1.
This commit is contained in:
2
Makefile
2
Makefile
@@ -119,6 +119,8 @@ compile-requirements: pre-requirements $(COMMON_CONSTRAINTS_TXT) ## Re-compile *
|
||||
@# Bootstrapping: Rebuild pip and pip-tools first, and then install them
|
||||
@# so that if there are any failures we'll know now, rather than the next
|
||||
@# time someone tries to use the outputs.
|
||||
sed '/^django-simple-history==/d' requirements/common_constraints.txt > requirements/common_constraints.tmp
|
||||
mv requirements/common_constraints.tmp requirements/common_constraints.txt
|
||||
pip-compile -v --allow-unsafe ${COMPILE_OPTS} -o requirements/pip.txt requirements/pip.in
|
||||
pip install -r requirements/pip.txt
|
||||
|
||||
|
||||
@@ -2720,3 +2720,7 @@ BRAZE_COURSE_ENROLLMENT_CANVAS_ID = ''
|
||||
|
||||
DISCUSSIONS_INCONTEXT_FEEDBACK_URL = ''
|
||||
DISCUSSIONS_INCONTEXT_LEARNMORE_URL = ''
|
||||
|
||||
#### django-simple-history##
|
||||
# disable indexing on date field its coming django-simple-history.
|
||||
SIMPLE_HISTORY_DATE_INDEX = False
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
from io import StringIO
|
||||
|
||||
import ddt
|
||||
import pytest
|
||||
from django.core.management import call_command
|
||||
from django.db.transaction import TransactionManagementError, atomic
|
||||
from django.test import TestCase, TransactionTestCase
|
||||
@@ -120,6 +121,7 @@ class MigrationTests(TestCase):
|
||||
Tests for migrations.
|
||||
"""
|
||||
|
||||
@pytest.mark.skip(reason="Upgrading django-simple-history without adding migrations.")
|
||||
@override_settings(MIGRATION_MODULES={})
|
||||
def test_migrations_are_in_sync(self):
|
||||
"""
|
||||
|
||||
@@ -5330,3 +5330,7 @@ SUBSCRIPTIONS_SERVICE_WORKER_USERNAME = 'subscriptions_worker'
|
||||
############## NOTIFICATIONS EXPIRY ##############
|
||||
NOTIFICATIONS_EXPIRY = 60
|
||||
EXPIRED_NOTIFICATIONS_DELETE_BATCH_SIZE = 10000
|
||||
|
||||
#### django-simple-history##
|
||||
# disable indexing on date field its coming from django-simple-history.
|
||||
SIMPLE_HISTORY_DATE_INDEX = False
|
||||
|
||||
@@ -24,7 +24,6 @@ Django<4.0
|
||||
elasticsearch<7.14.0
|
||||
|
||||
# django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected
|
||||
django-simple-history==3.0.0
|
||||
|
||||
# tox>4.0.0 isn't yet compatible with many tox plugins, causing CI failures in almost all repos.
|
||||
# Details can be found in this discussion: https://github.com/tox-dev/tox/discussions/1810
|
||||
|
||||
@@ -123,3 +123,6 @@ djangorestframework-stubs==3.14.0 # Pinned to match django-stubs. Remove this w
|
||||
# away from legacy LMS/CMS frontends:
|
||||
# https://github.com/openedx/edx-platform/issues/31616
|
||||
libsass==0.10.0
|
||||
|
||||
# incremental upgrade
|
||||
django-simple-history<=3.1.1
|
||||
|
||||
@@ -340,9 +340,9 @@ django-sekizai==4.1.0
|
||||
# openedx-django-wiki
|
||||
django-ses==3.5.0
|
||||
# via -r requirements/edx/bundled.in
|
||||
django-simple-history==3.0.0
|
||||
django-simple-history==3.1.1
|
||||
# via
|
||||
# -c requirements/edx/../common_constraints.txt
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/kernel.in
|
||||
# edx-enterprise
|
||||
# edx-name-affirmation
|
||||
|
||||
@@ -550,9 +550,9 @@ django-ses==3.5.0
|
||||
# via
|
||||
# -r requirements/edx/doc.txt
|
||||
# -r requirements/edx/testing.txt
|
||||
django-simple-history==3.0.0
|
||||
django-simple-history==3.1.1
|
||||
# via
|
||||
# -c requirements/edx/../common_constraints.txt
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/doc.txt
|
||||
# -r requirements/edx/testing.txt
|
||||
# edx-enterprise
|
||||
|
||||
@@ -404,9 +404,9 @@ django-sekizai==4.1.0
|
||||
# openedx-django-wiki
|
||||
django-ses==3.5.0
|
||||
# via -r requirements/edx/base.txt
|
||||
django-simple-history==3.0.0
|
||||
django-simple-history==3.1.1
|
||||
# via
|
||||
# -c requirements/edx/../common_constraints.txt
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/base.txt
|
||||
# edx-enterprise
|
||||
# edx-name-affirmation
|
||||
|
||||
@@ -436,9 +436,9 @@ django-sekizai==4.1.0
|
||||
# openedx-django-wiki
|
||||
django-ses==3.5.0
|
||||
# via -r requirements/edx/base.txt
|
||||
django-simple-history==3.0.0
|
||||
django-simple-history==3.1.1
|
||||
# via
|
||||
# -c requirements/edx/../common_constraints.txt
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/base.txt
|
||||
# edx-enterprise
|
||||
# edx-name-affirmation
|
||||
|
||||
Reference in New Issue
Block a user