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:
Awais Qureshi
2023-08-07 18:09:19 +05:00
committed by GitHub
parent df197837cb
commit e94af3c2d3
10 changed files with 23 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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):
"""

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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