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

chore: upgrade django simple history package #527

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

UsamaSadiq
Copy link
Member

@UsamaSadiq UsamaSadiq commented Sep 27, 2023

Description

sed 's/edx-drf-extensions<7.0.0//g' requirements/common_constraints.txt > requirements/common_constraints.tmp
mv requirements/common_constraints.tmp requirements/common_constraints.txt
sed 's/drf-jwt<1.19.1//g' requirements/common_constraints.txt > requirements/common_constraints.tmp
sed 's/django-simple-history==3.0.0//g' requirements/common_constraints.txt > requirements/common_constraints.tmp
Copy link
Member Author

Choose a reason for hiding this comment

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

Override the common constraint to upgrade the package to latest version.

@UsamaSadiq UsamaSadiq force-pushed the upgrade-django-simple-history-package branch from 74b64cc to 4832562 Compare September 27, 2023 11:21
class Migration(migrations.Migration):

dependencies = [
('subscriptions', '0060_historicalsubscriptionlicensesource'),
Copy link
Member Author

Choose a reason for hiding this comment

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

new migration created with the latest version of django-simple-history package.

@@ -435,3 +435,6 @@

# Django Admin Settings
VALIDATE_FORM_EXTERNAL_FIELDS = True

# disable indexing on history_date
SIMPLE_HISTORY_DATE_INDEX = False
Copy link
Member Author

Choose a reason for hiding this comment

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

Added setting to avoid db_index change in migrations due to updated simple-history package.

@UsamaSadiq UsamaSadiq merged commit 0cf48fb into master Sep 27, 2023
7 checks passed
@UsamaSadiq UsamaSadiq deleted the upgrade-django-simple-history-package branch September 27, 2023 11:25
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