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

Upgrading history package #678

Closed
wants to merge 9 commits into from
Closed

Upgrading history package #678

wants to merge 9 commits into from

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Sep 26, 2023

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

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
Copy link
Contributor Author

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(
Copy link
Contributor Author

@awais786 awais786 Sep 26, 2023

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'},
Copy link
Contributor Author

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.

@awais786 awais786 changed the title Upgrading history Upgrading history package Sep 26, 2023
@awais786 awais786 closed this Sep 26, 2023
@awais786 awais786 reopened this Sep 26, 2023
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'},
Copy link
Contributor Author

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.

@UsamaSadiq
Copy link
Member

django-simple-history has already been updated in the PR #673 so this is not needed anymore.

@UsamaSadiq UsamaSadiq closed this Jun 25, 2024
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.

4 participants