Skip to content

feat: upgrading django-history without migrations. - #32880

Merged
iamsobanjaved merged 3 commits into
masterfrom
upgrading-django-history
Aug 7, 2023
Merged

iamsobanjaved merged 3 commits into
masterfrom
upgrading-django-history

Conversation

@awais786

@awais786 awais786 commented Jul 31, 2023 •

Copy link
Copy Markdown
Contributor

Issue details edx/edx-arch-experiments#376

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

In the future, all migrations will be included. This approach will help us in rolling back the upgrade.

This is actual PR with all the migrations. But it might be risky due to 32 migrations rollback case.

After merging, it is necessary to announce in the dev channel to review the makemigrations and remove any migrations associated with django-simple-history.

@awais786
awais786 force-pushed the upgrading-django-history branch from 0560cc8 to c8eb3c1 Compare July 31, 2023 14:50

@rgraber rgraber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks for splitting this up

@iamsobanjaved
iamsobanjaved marked this pull request as ready for review August 7, 2023 12:14
@iamsobanjaved
iamsobanjaved merged commit e94af3c into master Aug 7, 2023
@iamsobanjaved
iamsobanjaved deleted the upgrading-django-history branch August 7, 2023 13:09
iamsobanjaved added a commit that referenced this pull request Aug 7, 2023
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

ufedaseyeuconsultant added a commit to ufedaseyeuconsultant/openedx-core that referenced this pull request Oct 9, 2026
manage.py defaults to projects.dev when DJANGO_SETTINGS_MODULE isn't
set, and running makemigrations under it (the path a contributor is
most likely to hit locally) regenerated the history_date index on all
three CompetencyCriteria* historical tables, undoing this fix.
projects/dev.py now sets the same value, pointing back at
test_settings.py's comment instead of repeating it.

Also replaces that comment with one that explains why
openedx-platform chose False, not just the baking mechanism: it's been
set since openedx-platform's 2023 django-simple-history upgrade
(openedx/openedx-platform#32880), to avoid adding an index to every
historical table in the platform at once.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
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