Repository navigation
chore: support upgrading to django 5.2 - #359
pomegranited wants to merge 10 commits into
Conversation
* Ran django-upgrade and updated migration * Added django52 target to tox & CI
|
Thanks for the pull request, @pomegranited! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Also renamed the migration generated after django-upgrade to something more legible.
Testing the api views requires openedx platform.
|
Hi @irtazaakram , do you happen to have any time available to review this PR? Just looking for a sanity check :) |
| @@ -1,5 +1,5 @@ | |||
| [tox] | |||
| envlist = drf{314,latest},py{311,312}-django{42} | |||
| envlist = drf{314,latest},py{311,312}-django{42,52} | |||
There was a problem hiding this comment.
py{311,312}-django{42,52}-drf{314,latest}, docs, quality
| @@ -0,0 +1,23 @@ | |||
| # Generated by Django 4.2.20 on 2025-04-03 05:37 | |||
There was a problem hiding this comment.
Could you share the SQL this migration generates (sqlmigrate output)?
There was a problem hiding this comment.
Sure thing:
--
-- Rename unnamed index for ('user', 'context_key', 'modified') on blockcompletion to completion__user_id_861fe5_idx
--
ALTER TABLE `completion_blockcompletion` RENAME INDEX `completion_blockcompletio_user_id_course_key_modifi_ed54291e_idx` TO `completion__user_id_861fe5_idx`;
--
-- Rename unnamed index for ('context_key', 'block_type', 'user') on blockcompletion to completion__course__c6e6ad_idx
--
ALTER TABLE `completion_blockcompletion` RENAME INDEX `completion_blockcompletio_course_key_block_type_use_0f0d4d2d_idx` TO `completion__course__c6e6ad_idx`;|
Thank you @irtazaakram ! |
|
Hi @mphilbrick211 , can you help me find a reviewer with write access to approve this PR? It won't let me approve my own PRs :) |
|
Or maybe @irtazaakram , if you're willing to open a new PR with these changes, then I can approve and merge? |
|
Closed in favor of #364 |
Description:
Support upgrading to django 5.2 while maintaining django 4.2 compatibility.
index_togetherSee https://discuss.openedx.org/t/django-5-2-upgrade-plan/15397
Closes: #360
Testing instructions:
CI should be sufficient here.
Merge checklist:
Post merge: