Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update django-simple-history package version #324

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

UsamaSadiq
Copy link
Member

@UsamaSadiq UsamaSadiq commented Jul 27, 2023

During the attempt to upgrade history package in the edx-platform repo, the check-migrations-test encountered a failure with new migrations. The updated package includes some enhancements that introduce new migrations. However, these migrations do not involve any alterations to the existing fields; instead, they are focused on meta changes aimed at improving the ordering functionality e.g options={'get_latest_by': ('history_date', 'history_id'

https://django-simple-history.readthedocs.io/en/latest/#section-1
Upgrading the package to 3.1.1

While try to upgrade this package in edx-platform it generates lots of migrations in /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/enterprise/migrations

These are due to the package. Related PR jazzband/django-simple-history#862 ( this pr shows the get_latest_by usage )

Similar PR merged in credentials

@@ -0,0 +1,21 @@
"""
Tests for migrations, especially potentially risky data migrations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding test for checking migrations are in sync.

@@ -49,3 +49,6 @@
}
},
]

# disable indexing on date field via django-simple-history.
SIMPLE_HISTORY_DATE_INDEX = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@awais786 awais786 force-pushed the update-simple-history-package-version branch from f20cc8a to 48cca51 Compare July 28, 2023 15:17
@UsamaSadiq UsamaSadiq merged commit 9002887 into master Aug 8, 2023
7 checks passed
@UsamaSadiq UsamaSadiq deleted the update-simple-history-package-version branch August 8, 2023 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants