-
Notifications
You must be signed in to change notification settings - Fork 19
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
Upgrading history package #678
Conversation
…nts-5023223 Python Requirements Update
upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade | ||
upgrade: piptools ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in | ||
# Make sure to compile files after any other files they include! | ||
COMMON_CONSTRAINTS_TXT=requirements/common_constraints.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was not working as expected. Fixed.
name='historicalenterprisecatalog', | ||
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Enterprise Catalog', 'verbose_name_plural': 'historical Enterprise Catalogs'}, | ||
), | ||
migrations.AlterField( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This migration
model_name='catalogquery', name='content_filter',
is part of some old change in this repo.
operations = [ | ||
migrations.AlterModelOptions( | ||
name='historicalcontentmetadata', | ||
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Content Metadata', 'verbose_name_plural': 'historical Content Metadata'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its due to history-table.
operations = [ | ||
migrations.AlterModelOptions( | ||
name='historicalcontentmetadata', | ||
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Content Metadata', 'verbose_name_plural': 'historical Content Metadata'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are expected due to history package.
|
Upgrading history package to its latest version. To minimize the django42 scope make this separate PR.
https://django-simple-history.readthedocs.io/en/latest/#section-1
Upgrading the package.
jazzband/django-simple-history#862 ( this pr shows the get_latest_by usage )
Similars PR merged in credentials openedx/credentials#1787
and platform openedx/edx-platform#32880