-
Notifications
You must be signed in to change notification settings - Fork 172
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
feat: upgrade to Django 4.2 #4088
Conversation
Thanks for the pull request, @gsueros! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
@e0d could you please enable tests to run for this PR? |
Yep, done. |
@irtazaakram I saw this PR #4086 related to the same issue about Django upgrade to 4.2, is this feature still needed?. Also there are test errors related to Django32 support, we have to keep support for Django32 or it should be removed from the repository. |
bb22eef
to
f10b933
Compare
@e0d please could you help me to enable test to run in the PR? |
f10b933
to
8e85031
Compare
@e0d please could you help me to enable test to run in the PR? |
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.
Hi @gsueros I've updated the issue description according to our internal discussion. We are no longer planning to provide backward compatibility with Django 3.2 so you can follow the instructions and remove the Django 3.2 and Mysql5.7 related envs as well.
@UsamaSadiq already removed 3.2 backward compatibility, please could you enable to run CI tasks. |
@gsueros please rebase your PR to the latest master branch. The PyMemcache backend migration change has been merged in the master branch which is needed to run the tests successfully with Django 4.2 |
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.
I approved the wrong PR so please disregard my approval.
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.
Seems like issue is with the MultiSelectField
countries = MultiSelectField(choices=COUNTRIES, null=True, blank=True)
https://github.com/openedx/course-discovery/actions/runs/6241579132/job/16955605638?pr=4088
5e83f1f
to
28684af
Compare
@UsamaSadiq this branch was already updated with the PR about PyMemcache backend migration. I've just updated to |
@gsueros please squash your commits and rebase with the latest master branch. It'll help you avoid making mistakes when resolving conflicts during the rebase step. |
9c740ac
to
42ed994
Compare
Done. |
@UsamaSadiq Done. |
@gsueros tests are not running giving following error |
@gsueros would you please add me as a maintainer in your fork so I can help you in fixing these issues and make the PR ready to merge as soon as possible. Right now, I am only able to guide you step by step which is taking time and we've reached our deadline for the branch cut for next release of openedx (branch release is expected on upcoming Tuesday). |
@UsamaSadiq I already send you and ivitation. |
5197d73
to
b2773a5
Compare
@@ -117,9 +118,8 @@ defusedxml==0.7.1 | |||
# djangorestframework-xml | |||
# python3-openid | |||
# social-auth-core | |||
django==3.2.22 | |||
django==4.2.6 |
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.
Version upgraded.
b2773a5
to
5fb52ab
Compare
I've made the Django3.2 checks optional so that this PR can merge whenever it's ready. |
5fb52ab
to
c25cda9
Compare
c25cda9
to
d8b01ba
Compare
@gsueros 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
This reverts commit 3c075d4.
@gsueros congrats !!! |
Thanks. |
* feat: upgrade to Django 4.2 (#4088) * chore: upgrading `edx-drf-extensions` to fix django42 issue. (#4153) * chore: using CSRF_TRUSTED_ORIGINS now. No need for extra variable. (#4157) --------- Co-authored-by: Gustavo Suero <[email protected]> Co-authored-by: Awais Qureshi <[email protected]>
Issue: edx/upgrades#207
Upgrade to Django 4.2