Repository navigation
feat: upgrading django-history without migrations. - #32880
Merged
Merged
Conversation
awais786
force-pushed
the
upgrading-django-history
branch
from
July 31, 2023 14:50
0560cc8 to
c8eb3c1
Compare
rgraber
approved these changes
Jul 31, 2023
rgraber
left a comment
Contributor
There was a problem hiding this comment.
LGTM, thanks for splitting this up
iamsobanjaved
marked this pull request as ready for review
August 7, 2023 12:14
Contributor
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
Contributor
|
2U Release Notice: This PR has been deployed to the edX production environment. |
Contributor
|
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue details edx/edx-arch-experiments#376
https://django-simple-history.readthedocs.io/en/latest/#section-1
Upgrading the package to
3.1.1In 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
devchannel to review themakemigrationsand remove any migrations associated withdjango-simple-history.